Repository navigation
perf(ci): parallelize CI jobs and speed up slow test suites - #399
Open
PerfectPan wants to merge 4 commits into
Open
PerfectPan wants to merge 4 commits into
PerfectPan wants to merge 4 commits into
Conversation
PerfectPan
force-pushed
the
perf/ci-speedup
branch
from
December 2, 2026 16:05
3993125 to
3a954c6
Compare
…speed up windows CI
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reduce CI wall-clock time on both Linux and Windows by parallelizing serial bottlenecks and preventing CPU/disk oversubscription on 4-core runners:
infra/architecture):run-lint-cases.tsbatches by package (largest first) and run disjoint package groups concurrently (capped at 4 withRAYON_NUM_THREADS=1).pnpm ls -r --depth -1 --jsononce per unchanged root viaAGENT_KIT_PNPM_LIST_ROOT/AGENT_KIT_PNPM_LIST_JSONso repeatedvp lintstartups skip spawningpnpm ls.packages/testing,claude-code,codex,grok):gc()every 8 chunks (~512 KB) inwithSampledReadsinstead of every 64 KB chunk (~32 samples across a 16 MB session), and run 3 measured rounds after warm-up instead of 5.packages/harness/test/uninstall-created-config.test.tsby agent (codex+ cross-agent in original file,claude-codeinuninstall-created-config-claude-code.test.ts, shared cases intest/support/uninstall-created-config.ts).packages/acp/test/connect-agent.test.tsintoconnect-agent.test.tsandconnect-agent-lifecycle.test.ts..github/workflows/ci.yml,package.json):--no-sortto rootformat,format:check,lint,typecheck, andtestscripts.checkinto parallellint(building only shells +tsr generatewith cachedpnpm ls),verify(build+knip+typecheck+check:package),test(--workspace-concurrency=2), andarchitecturejobs while keeping an aggregatecheckjob for branch protection.windows,windows-harness, andwindows-architecturejobs so heavy NTFS/icacls churn does not contend with SQLite provider tests.Validation
pnpm run format && pnpm run checkpassed.gh repo-checks repository && gh repo-checks release-planpassed.#46891786147onmain(Linuxcheck4m40s, Windowswindows3m31s):#46912772152(all green): Linuxcheck2m18s (static2m14s,test1m35s,architecture1m19s,check4s); WindowsArchitecture testsdropped from 175.9s -> 55.0s.#46922540056(after splittingstatic->lint/verifyandwindows-architecture):lint1m19s,verify1m20s,windows-architecture1m21s,architecture1m31s,test2m16s,check4s (all green);windowshit NTFS contention betweenharnessand SQLite tests (goose/kilo), addressed in789b88e7by isolatingwindows-harness(pending GitHub Actions webhook dispatch).Risks
withSampledReadssamples every 8 chunks instead of every chunk; heap retention regressions on large streams (16 MB) are still sampled ~32 times per run and asserted against the same thresholds.