Repository navigation
ci: run hosted static checks in parallel - #550
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0efa718cfc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| static: | ||
| # On the pool, gate-bg already overlaps checks; on the Mac it protects the shared memory budget. | ||
| static-local: |
There was a problem hiding this comment.
Map the renamed local job back to static in refusal relaunches
When the Mac runner refuses static-local at job start, scripts/ci-gate-refusals.sh still treats the job name as a public gate name: its relaunched() function only normalizes unit/packaged shards and overflow names. With this workflow's failed static-local and failed aggregate static, it now prints a relaunch containing --gates static-local,static. That relaunch is rejected by .github/scripts/gate-plan.mjs as no such gate: static-local, so the recovery command no longer works for refused Mac static checks. Normalize static-local to static in the refusal helper and cover the new job layout in its tests.
Useful? React with 👍 / 👎.
What changes
Hosted static gets eleven independent runner jobs: six typecheck projects (derived from package.json), lint, build, two gate-script test shards, and both session-host checks. The public static result waits for all of them and fails on any unsuccessful part. The pool and Mac keep their existing memory-aware job as static-local.
Compatibility
The plan still selects static, ci-gate --gates static still runs the whole set, and the workflow conclusion still represents every selected check. No runner-list change or memory-threshold reduction. Refusal recovery maps static-local and static / … back to static and deduplicates, so printed relaunch commands remain valid. Pool-demand assertions understand the hosted-only split.
O15 coordination
No CLASS1_E2E, HOSTED_MAC_E2E, MAC_VM_E2E, or measured lists changed. gate-plan.test.mjs changes only the static job identity in the timeout assertion (around line 1181), Mac-job list (1321), and refused-start mutation expectations (1337–1356): static becomes static-local.
Verification
Focused matrix/result/setup tests: 5 passing. Existing workflow timeout/Mac safety cases: 3 passing; refusal recovery: 21 passing; pool-demand checks: 19 passing.
The first final hosted run passed all eleven parts, including 522 gate-script tests (201 + 321 across the two shards): 42792854907. Static took 3m53s from first worker start through the aggregate result, the whole workflow 4m04s, and ci-gate 4m27s. That is 73% less static wall time than the supplied 14m30s baseline 42551376231. The second same-head run also passed: 42793475466, static 3m46s, workflow 4m03s, ci-gate 4m29s. Static variance was seven seconds; both runs are on source 94361c0.
Two recent baseline logs were read before implementation: 42786143856, static 18m28s, and 42783393152, 19m53s. Their gate-script checks alone took 188/221s; final shards took 142/94s, using Node’s default concurrency inside each shard rather than increasing contention on one machine. The extra baseline setup time was apt font downloads, not Electron prefetch.
A second docs-only gate PR will stack on this one; land this PR first.
Setup bound
Hosted static opts out only of fonts-noto-cjk, fonts-inter and fonts-jetbrains-mono through the existing ci-kit skip interface. No static check renders text: typecheck/lint inspect source, build compiles bundles, gate-script tests use fixtures or Playwright collection without browser launch, and session-host checks exercise Go binaries. Runtime/e2e jobs retain the fonts. In baseline run 42786143856, fonts-noto-cjk alone took 276 seconds; the first split trial had a setup straggler still downloading after ten minutes. This change removes that unrelated critical-path dependency rather than lowering the memory threshold.
The first default invocation discovered that GATE_RUNNER is now pool, so hosted timing runs explicitly pass --class1a linux. The pool/Mac path remains intact.
Consumer audit