Skip to content

πŸ› netlify: move nps.test.ts out of the functions directory so deploys succeed - #224

Merged
clubanderson merged 1 commit into
mainfrom
fix/netlify-function-test-placement
Oct 5, 2026
Merged

clubanderson merged 1 commit into
mainfrom
fix/netlify-function-test-placement

Conversation

@clubanderson

Copy link
Copy Markdown
Member

Problem

Every Netlify deploy (preview and production) has failed since #202 with:

The following serverless functions failed to deploy: nps.test
To deploy these functions successfully, change the function names to contain only alphanumeric characters, hyphens or underscores

Netlify treats every file in netlify/functions/ as a function; nps.test.ts yields the illegal name nps.test. Production is frozen on main@8212db7 (Oct 4), so #202–#223 (deps bumps, integrations refresh, ACMM wording, Level 6 guide, knowledge MCP endpoint) are not live.

Fix

Move netlify/functions/nps.test.ts β†’ netlify/nps-relay/nps.test.ts (beside relay.test.ts) and repoint its imports. No behaviour change; the functions dir now contains only nps.mts.

Verification

Netlify treats every file in netlify/functions as a deployable function
and rejects the name 'nps.test' (dots are not allowed), which has failed
every production deploy since #202 landed. Move the test beside the
relay tests and point its imports back at the function.

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@clubanderson
clubanderson force-pushed the fix/netlify-function-test-placement branch from c7e5fef to 128f9ac Compare October 5, 2026 19:48
@netlify

netlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

βœ… Deploy Preview for hivecommons-docs ready!

Name Link
πŸ”¨ Latest commit 128f9ac
πŸ” Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ac3ff2917611f0008c0af7b
😎 Deploy Preview https://deploy-preview-224--hivecommons-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@clubanderson

Copy link
Copy Markdown
Member Author

Admin-merging ahead of GitHub Actions: runners have been queued 13+ min with 0 in progress (repo-wide backlog). Netlify deploy-preview is green and serves /docs/hive/running-at-level-6 with 200; vitest passed locally (46/46). This unblocks production, which has been frozen on main@8212db7 since Oct 4.

@clubanderson
clubanderson merged commit f81e6cc into main Oct 5, 2026
10 of 11 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the fix/netlify-function-test-placement branch October 5, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant