Skip to content

test: run functions-discover test on Node 24#10474

Open
joehan wants to merge 3 commits intomainfrom
jh-func-disco
Open

test: run functions-discover test on Node 24#10474
joehan wants to merge 3 commits intomainfrom
jh-func-disco

Conversation

@joehan
Copy link
Copy Markdown
Member

@joehan joehan commented May 7, 2026

Description

The test:functions-discover test was failing on Node 20 because the latest pnpm requires Node 22+ (due to node:sqlite). This PR updates the CI workflow to run this specific test on Node 24 instead.

Scenarios Tested

  • Verified that the workflow file syntax is correct.
  • Verified that run.sh is restored to use the latest pnpm.

Sample Commands

npm run test:functions-discover

### Description
The test:functions-discover test was failing on Node 20 because the latest pnpm requires Node 22+ (due to node:sqlite). This PR updates the CI workflow to run this specific test on Node 24 instead.

### Scenarios Tested
- Verified that the workflow file syntax is correct.
- Verified that run.sh is restored to use the latest pnpm.

### Sample Commands
npm run test:functions-discover
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@joehan joehan requested a review from ajperel May 7, 2026 22:25
joehan added 2 commits May 7, 2026 15:35
### Description
Newer versions of pnpm require explicit approval for build scripts. This PR adds onlyBuiltDependencies to the pnpm fixture's package.json to allow @firebase/util and protobufjs to run their build scripts.

### Scenarios Tested
- Verified that the fixture package.json was updated.
### Description
Adding onlyBuiltDependencies to package.json didn't resolve the ERR_PNPM_IGNORED_BUILDS error in CI. This PR switches to using pnpm install --ignore-scripts in the fixture's install script to bypass the issue entirely, as the test likely does not need the build scripts to run.

### Scenarios Tested
- Verified that the fixture install.sh was updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants