mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-27 11:47:46 -07:00
# 🤖 Gemini Bot: Optimize CI Build Efficiency
## Summary This PR optimizes the CI build pipeline by enabling parallel workspace builds in all environments and removing redundant `posttest` hooks that caused unnecessary rebuilds after test execution. ## Changes - **`scripts/build.js`**: Removed the sequential build bottleneck in CI. The script now always uses parallelized builds (ensuring `@google/gemini-cli-core` is built first), which significantly reduces build time in GitHub Actions. - **`package.json`**, **`packages/cli/package.json`**, **`packages/core/package.json`**: Removed `"posttest": "npm run build"`. Since the CI workflow explicitly builds the project before running tests, these hooks were triggering redundant full rebuilds in every test shard, wasting significant CI minutes. ## Impact - **Reduced CI Spend**: Eliminates approximately 15 redundant full rebuilds per push across the various test shards (Linux, Mac, Windows). - **Faster Feedback**: Decreases total CI wall-clock time by parallelizing the initial build in the `lint` and `test` jobs. Verified with a local full build and targeted unit tests. No regressions identified.
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
"test:ci": "npm run test:ci --workspaces --if-present && npm run test:scripts && npm run test:sea-launch",
|
||||
"test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts",
|
||||
"test:sea-launch": "vitest run sea/sea-launch.test.js",
|
||||
"posttest": "npm run build",
|
||||
"test:always_passing_evals": "vitest run --config evals/vitest.config.ts",
|
||||
"test:all_evals": "cross-env RUN_EVALS=1 vitest run --config evals/vitest.config.ts",
|
||||
"test:e2e": "cross-env VERBOSE=true KEEP_OUTPUT=true npm run test:integration:sandbox:none",
|
||||
|
||||
Reference in New Issue
Block a user