Skip to content

test(firestore): compile once and reuse build artifacts in npm test#8765

Open
dlarocque wants to merge 1 commit into
mainfrom
optimize-npm-test
Open

test(firestore): compile once and reuse build artifacts in npm test#8765
dlarocque wants to merge 1 commit into
mainfrom
optimize-npm-test

Conversation

@dlarocque

@dlarocque dlarocque commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Previously, running npm test triggered test-only and conformance scripts, each with pre hooks that wiped and recompiled the build directory. This resulted in compiling the entire codebase twice per test run.

This change removes pretest-only and preconformance hooks, updating npm test to compile once and execute unit and conformance tests sequentially against the shared build directory.

@dlarocque dlarocque requested a review from MarkDuckworth June 26, 2026 16:08
@dlarocque dlarocque requested a review from a team as a code owner June 26, 2026 16:08
@dlarocque dlarocque changed the title test: compile once and reuse build artifacts in npm test test(firestore): compile once and reuse build artifacts in npm test Jun 26, 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 test script in handwritten/firestore/package.json to run compilation and test commands directly. The reviewer noted that the pretest-only and preconformance hooks were not removed as stated in the PR description, and suggested reusing existing npm scripts in the test command to improve maintainability and avoid duplication.

Comment thread handwritten/firestore/package.json Outdated
Previously, running npm test triggered test-only and conformance scripts, each with pre hooks that wiped and recompiled the build directory. This resulted in compiling the entire codebase twice per test run.

This change removes pretest-only and preconformance hooks, updating npm test to compile once and execute unit and conformance tests sequentially against the shared build directory.
@dlarocque dlarocque force-pushed the optimize-npm-test branch from f4f2c3f to e86799c Compare June 26, 2026 18:26
@product-auto-label product-auto-label Bot added the api: firestore Issues related to the Firestore API. label Jun 27, 2026
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