fix: use nodejs20 runtime for Gen1 extension functions (v0.2.7)#797
Merged
Conversation
- Pin nodejs20 in emulator firebase configs - Fix callable region (europe-west1) in token-generation tests - Disable Jest watchman for CI stability Co-authored-by: Cursor <cursoragent@cursor.com>
- Pin emulator project ID and auth/firestore emulator hosts - Use longer sync timeouts when CI=true - Validate extension env files before running integration suite Co-authored-by: Cursor <cursoragent@cursor.com>
Hardcoding europe-west1 broke token-generation when CI ENV_LOCAL uses us-central1. Load env in emulator setup and match getFunctions region. Co-authored-by: Cursor <cursoragent@cursor.com>
Auth tests were starting only the functions emulator, so extension env vars never reached Cloud Functions and Stream sync timed out. Start the extensions emulator, drop duplicate functions deploy config, and call ext-auth-chat-getStreamUserToken in the correct LOCATION region. Co-authored-by: Cursor <cursoragent@cursor.com>
STREAM_API_KEY is a secret param in extension.yaml but CI wrote it to .env.local only, so functions never received credentials. Add prepare-extension-env.js to split secrets, sync into functions/, and run it before validation and each emulator test suite. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gen1 Cloud Functions fail to deploy with nodejs22 on many Firebase projects. Revert all extension runtimes and package engines to Node 20, which is the supported Gen1 target while auth triggers remain v1-only.
Fixes #711
Fixes #787