Skip to content

chore(firestore): silence conformance logs and fix system test concurrency - #9060

Merged
bshaffer merged 2 commits into
mainfrom
firestore-ci-fixes
Aug 3, 2026
Merged

chore(firestore): silence conformance logs and fix system test concurrency#9060
bshaffer merged 2 commits into
mainfrom
firestore-ci-fixes

Conversation

@bshaffer

@bshaffer bshaffer commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Separated from #9058 to isolate Firestore CI fixes:

  • Runs standard and enterprise Firestore system tests sequentially to avoid Cloud Build database lock contention
  • Uses getTestRoot().firestore in enterprise system tests to respect FIRESTORE_DATABASE_ID
  • Removes verbose spec console logging in conformance runner

@bshaffer
bshaffer requested a review from a team as a code owner August 3, 2026 19:11
@product-auto-label product-auto-label Bot added the api: firestore Issues related to the Firestore API. label Aug 3, 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 removes a verbose console log in the conformance runner, refactors the Firestore system test setup to retrieve the Firestore instance from the test root collection, and updates the package.json scripts to run system tests sequentially instead of concurrently. I have no feedback to provide.

"system-test:enterprise:emulator:rest": "RUN_ENTERPRISE_TESTS=yes FIRESTORE_DATABASE_ID=firestore-enterprise FIRESTORE_EMULATOR_HOST=localhost:8080 FIRESTORE_PREFER_REST=true mocha build/system-test --timeout 1200000",
"system-test:emulator:grpc": "FIRESTORE_EMULATOR_HOST=localhost:8080 mocha build/system-test --timeout 1200000",
"system-test:enterprise:emulator:grpc": "RUN_ENTERPRISE_TESTS=yes FIRESTORE_DATABASE_ID=firestore-enterprise FIRESTORE_EMULATOR_HOST=localhost:8080 mocha build/system-test --timeout 1200000",
"system-test": "concurrently -p \"[{name}]\" -n \"grpc,rest,enterprise-grpc,enterprise-rest\" -c \"cyan,magenta,blue,yellow\" \"npm:system-test:grpc\" \"npm:system-test:rest\" \"npm:system-test:enterprise:grpc\" \"npm:system-test:enterprise:rest\"",

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.

@wu-hui introduced these changes for running concurrently earlier this year. This was in response to Cloud SDK requesting reduced run time for Firestore CI. What's the reason we're reverting this change?

@bshaffer bshaffer Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I made this change because I was seeing flakey tests from deadline exceeded errors that seemingly were fixed by this. I have since made the change in system-tests/firestore.ts that may have fixed the root cause, so let me revert this and see if it's now resolved!

@bshaffer
bshaffer merged commit c6b4775 into main Aug 3, 2026
34 checks passed
@bshaffer
bshaffer deleted the firestore-ci-fixes branch August 3, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the Firestore API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants