mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 06:50:43 +01:00
perf(ci): shard release-verify stragglers and move typecheck cache warmup (#23156)
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - Every merge to `master` runs `release-verify.yml` on the dedicated `paperclip-post-merge-x64` fleet to certify the exact commit before downstream releases consume it. > - Four lanes currently bottleneck `release-verify.yml` at ~6m–6m 30s (`server-integration`, `server (1/10)`, `Serialized tests (1/9)`, and `Build` with 75s of serial typecheck-cache warming), while every other lane finishes in 2m–3m 45s. > - Post-merge verification latency directly delays every release pipeline waiting on exact-source proof. > - This pull request shards those three test stragglers using existing deterministic shard flags and moves incremental typecheck cache warming into `typecheck` (skipping a redundant server pass when `pnpm -r typecheck` already populated the cache). > - The benefit is a balanced ~4m post-merge verification critical path with zero weakened or removed checks. ## Linked Issues or Issue Description **What happened?** Post-merge release verification (`release-verify.yml`) takes ~6m 30s on its slowest lanes (`server-integration` 6m 29s, `server (1/10)` 6m 23s, `Serialized tests (1/9)` 6m 00s, and `Build` 5m 45s including 75s of `Warm incremental typecheck cache`), while the rest of the workflow finishes in ~3m. **Expected behavior** All lanes in `release-verify.yml` should run with balanced parallelism on `paperclip-post-merge-x64` so post-merge verification finishes in ~4m while running every existing check. **Steps to reproduce** 1. Inspect a canonical `master` run of `cloud-readiness.yml` / `release-verify.yml` (such as run `46019173820`). 2. Compare the four straggler lanes (345s–389s) against `Typecheck` (162s) and all other verification lanes (58s–225s). ## What Changed - Expanded `general-server-without-chat-or-native-runner` in `.github/workflows/release-verify.yml` from 10 to 20 shards. - Expanded `serialized_tests` in `.github/workflows/release-verify.yml` from 9 to 16 shards. - Split `verify_paperclip_runner` `server-integration` into 3 sharded lanes (`server-integration (1/3)`, `(2/3)`, `(3/3)`) passing `--shard-index` and `--shard-count` to `pnpm test:run:general -- --group general-server-native-runner`. - Moved `Check/Warm/Save incremental typecheck cache` from `build` into `typecheck`, skipping the duplicate `server/scripts/typecheck-layers.mjs` pass when `pnpm -r typecheck` already populated `server/node_modules/.cache/paperclip-typecheck`. - Updated workflow guard tests in `.github/scripts/tests/release-runner-cache.test.mjs`, `scripts/__tests__/release-verify-workflow.test.mjs`, and `.github/scripts/tests/ci-plan.test.mjs`. ## Verification - Ran locally against the PR worktree: - `node --test .github/scripts/tests/release-runner-cache.test.mjs scripts/__tests__/release-verify-workflow.test.mjs .github/scripts/tests/ci-plan.test.mjs .github/scripts/tests/post-merge-runner-routing.test.mjs` — all passed. - Full PR CI runs on this PR. ## Risks - Low risk: all tests and verification gates remain required; only matrix shard counts and cache-warm job placement change. - Peak post-merge AWS fleet concurrency increases by 19 lanes on `paperclip-post-merge-x64` (isolated from PR CI); easily reverted by reverting this PR if fleet scaling shows unexpected queue wait. ## Model Used - Gemini (Antigravity) ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs)
This commit is contained in:
1 parent
9c1fd24642
commit
7bd652e3ba
4 files changed
+173
-87
No files matched your search
@@ -241,8 +241,9 @@ test("PR workflow keeps Build fast and passes PR-mode context to typecheck and V
|
||||
assert.equal(prRunnerDistKey, releaseRunnerDistKey, "runner-dist-v1 reader and writer keys must match exactly");
|
||||
assert.doesNotMatch(typecheck.split("Restore prebuilt Runner dist")[1].split("Restore incremental typecheck")[0], /restore-keys:/);
|
||||
|
||||
const releaseTypecheck = releaseVerify.split("\n typecheck:\n")[1].split("\n general_tests:\n")[0];
|
||||
const prIncPrefix = typecheck.match(/key: (typecheck-incremental-v1-.+)-\$\{\{ github\.event\.pull_request\.base\.sha \}\}/)?.[1];
|
||||
const releaseIncPrefix = releaseBuild.match(/key: (typecheck-incremental-v1-.+)-\$\{\{ github\.sha \}\}/)?.[1];
|
||||
const releaseIncPrefix = releaseTypecheck.match(/key: (typecheck-incremental-v1-.+)-\$\{\{ github\.sha \}\}/)?.[1];
|
||||
assert.ok(prIncPrefix && releaseIncPrefix, "both pr-trusted.yml and release-verify.yml must define typecheck-incremental-v1 prefix");
|
||||
assert.equal(prIncPrefix, releaseIncPrefix, "typecheck-incremental-v1 reader and writer prefixes must match exactly");
|
||||
assert.doesNotMatch(workflow, /actions\/cache\/save@/, "pr-trusted.yml must never save caches");
|
||||
|
||||
Reference in new issue
Block a user