Skip to content

[AI Improvement] [Task] Refresh webframeworks-deploy-tests/functions fixture lockfile and drop unused firebase-functions-test - #11537

Open
joehan wants to merge 16 commits into
mainfrom
ai-improve-587013540-task-refresh-webframeworks-deploy-t
Open

joehan wants to merge 16 commits into
mainfrom
ai-improve-587013540-task-refresh-webframeworks-deploy-t

Conversation

@joehan

@joehan joehan commented Nov 17, 2026

Copy link
Copy Markdown
Member

Description

Resolves Buganizer b/587013540 (parent goal b/567660818).

Refreshes scripts/webframeworks-deploy-tests/functions/package.json and scripts/webframeworks-deploy-tests/functions/package-lock.json to clear transitive audit findings and remove an unused dev dependency:

  • Remove unused devDependencies (firebase-functions-test@^3.5.0): scripts/webframeworks-deploy-tests/functions/index.js only imports firebase-functions/v2/https, and nothing in scripts/webframeworks-deploy-tests uses firebase-functions-test. Removing it drops 301 unused package entries (the jest/babel/istanbul tree) from package-lock.json.
  • Add overrides floors ("@fastify/busboy": "^3.2.2", "@grpc/grpc-js": "^1.14.5") alongside "uuid": "^11.1.1": Pins the patched transitive floors deterministically without bumping firebase-admin or firebase-functions majors.
  • Refresh transitive dependencies (--min-release-age=21) and sanitize lockfile URLs: Updates 9 transitive packages (@fastify/busboy 3.2.0 → 3.2.4, @grpc/grpc-js 1.14.4 → 1.14.6, @nodable/entities 2.2.0 → 3.1.0, body-parser 1.20.6 → 1.20.9, express 4.22.2 → 4.22.3, fast-xml-parser 5.10.0 → 5.11.2, proxy-addr 2.0.7 → 2.0.8, qs 6.15.3 → 6.16.1, strnum 2.4.1 → 2.5.1) with all resolved URLs canonicalized to https://registry.npmjs.org/.

npm audit Results (scripts/webframeworks-deploy-tests/functions)

Measured with npm audit --json --registry=https://registry.npmjs.org/:

  • Before: 46 findings (1 critical, 39 high, 6 moderate)
  • After: 1 finding (1 low)

The 1 remaining finding is fast-xml-parser (<=5.11.2, GHSA-474x-hrwr-fgx4, low), which requires 5.12.0 (published 2026-11-03, still within the 21-day min-release-age=21 soak).

Superseded Stale Dependabot PRs

This change supersedes the following open Dependabot PRs on scripts/webframeworks-deploy-tests/functions (left open here without auto-close keywords):
#6850, #6983, #7504, #7817, #8040, #8046, #8960, #9536, #9591, #9683, #10007, #10184, #10195, #10206, #10657, #10671

Test fixture only — no CHANGELOG.md entry required.

Scenarios Tested

  • npm audit --json --registry=https://registry.npmjs.org/ in scripts/webframeworks-deploy-tests/functions: 46 findings (1 critical, 39 high, 6 moderate) → 1 finding (1 low).
  • npm install --package-lock-only --ignore-scripts --min-release-age=21 + sanitizeLockfiles(['scripts/webframeworks-deploy-tests/functions/package-lock.json']): confirmed idempotent (no diff on re-run) and verified all 256 package resolved URLs start with https://registry.npmjs.org/.
  • npx -y npm@9.5 ci --no-audit --prefer-offline in scripts/webframeworks-deploy-tests/functions: passed cleanly (added 256 packages).
  • ESM entrypoint load (node -e 'import("./index.js").then((m) => console.log(Object.keys(m)))' in scripts/webframeworks-deploy-tests/functions): passed on Node v20.20.2 and Node v24.19.0 ([ 'helloWorld' ]).
  • npm run build, npm run lint:quiet, npm run test:compile, and CI=true npx ts-node ./scripts/lint-changed-files.ts: all passed cleanly.
  • npx prettier --check scripts/webframeworks-deploy-tests/functions/package.json scripts/webframeworks-deploy-tests/functions/package-lock.json: passed.
  • npx mocha scripts/sanitize-lockfile.spec.ts (4 passing) and npx mocha 'src/frameworks/**/*.spec.ts' 'src/frameworks/*.spec.ts' (219 passing): all passed.

Sample Commands

N/A

…nd drop unused firebase-functions-test (b/587013540)
@joehan joehan self-assigned this Nov 17, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the package.json for the web frameworks deploy tests functions by removing the firebase-functions-test development dependency and adding overrides for @fastify/busboy and @grpc/grpc-js. There are no review comments, and I have no feedback to provide.

@joehan
joehan marked this pull request as ready for review November 17, 2026 20:35
@joehan
joehan requested a review from avolkovi November 17, 2026 20:35

This branch has not been deployed

No deployments
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.

2 participants