Repository navigation
fix(ci): keep hourly main validation on the main tier - #157186
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 24, 2026, 9:05 AM ET / 13:05 UTC (Revision 9). ClawSweeper reviewWhat this changesThe PR makes hourly main CI select a compact whole-product validation tier, retains full manual and release coverage, and updates workflow documentation and guard tests. Merge readiness⛔ Blocked before merge - 8 items remain The compact hourly tier is useful, but the prior blocking finding remains: a successful main-tier run can satisfy the full-validation receipt that admits the Docs Agent’s write job. Priority: P2 Review scores
Verification
How this fits togetherThe hourly dispatcher starts CI for a main revision. CI selects platform and Docker checks, and its aggregate result can admit the Docs Agent workflow that updates documentation on main. flowchart LR
A[Hourly dispatcher] --> B[Main-tier CI input]
B --> C[CI job planner]
C --> D[Platform and Docker checks]
D --> E[CI validation receipt]
E --> F[Docs Agent admission]
F --> G[Documentation write on main]
Decision needed
Why: The existing admission contract grants a write job after the full-CI confirmation; changing which coverage earns that authority requires an explicit owner decision. Before merge
Findings
Agent review detailsSecurityNeeds attention: The compact CI result can cross the existing validation-to-main-write boundary without a tier-specific admission decision. PR surfaceTests +133, Docs +12, Config +22. Total +167 across 9 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep whole-product hourly checks compact while making Docs Agent’s write admission explicitly tier-aware, with observed allowed and rejected outcomes at the write boundary. Do we have a high-confidence way to reproduce the issue? Yes, current-main source shows hourly CI taking the full default path, and the earlier-head run demonstrates compact job selection. The Docs Agent admission concern is source-reproducible, but no successful final write-admission trace is supplied. Is this the best way to solve the issue? No, the compact tier addresses hourly cost, but the unchanged write receipt does not distinguish it from full validation. A tier-aware producer and consumer gate is the narrowest safe completion. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f60ad5926e2d. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
a7aa63b to
af5c7bf
Compare
What Problem This Solves
Hourly main CI entered the full release path, restoring expensive proofs and declaration-complete Docker packaging to every hour. This patch restores the existing main tier while keeping complete product-family scope.
The ≤30-minute objective is not yet achieved. The measured hourly-equivalent run fell from 76m36s to 56m16s; a 49m10s hosted Node job remains the critical path. The coordinator armed auto-merge; the follow-up targets the remaining hosted Node tails.
User Impact
No product behavior changes. Hourly CI still validates Node, native builds/tests, docs, browser and Gateway flows, and the published-updater survivor. Full Release Validation and ordinary manual dispatch retain full coverage by default. No assertions, deadlines, worker limits, runner routes, repository variables, or rulesets were relaxed.
Why This Change Was Made
The hourly dispatcher selects
validation_tier=main, preserving complete family scope independently of the last commit's diff. It uses existing compact-main and release-only inventories, iOS smoke, Android test/lint rows, and the checked main Docker package.fullremains the default; frozen release targets and PR release gates cannot substitute the main tier.Docker previously spent 1,760 seconds preparing a release package before the survivor ran. Hourly now selects the already-proven
build:ci-artifactsplus canonical checked packer, keeping runtime, assets, public SDK declarations, tarball integrity, legacy operator state, and authenticated managed restart. The five additional scenarios retain their full-tier execution.Build sharing remains unchanged:
build-artifactsspent 250 seconds building and 691 seconds in behavior checks. Making private-QA UI jobs depend on that complete job would delay them to replace only 94–114 seconds of different builds. The protected cache publisher and routing policies remain with their existing owners.Evidence
Baseline: hourly run 35966218043, source
1f01706bc75c3a96ff8f918c99272336fd8d546c. Candidate: hourly-equivalent run 35983526919, sourcea7aa63b79eab77581eb2b75cb3125bd3cb7af6be. These are observed runs, not an isolated claim that every changed duration is caused by this patch. Baseline waited 904s before preflight; candidate waited 5s. The preceding hourly run ended at 07:02:33Z and baseline preflight began two seconds later, consistent with hourly-slot backlog. Excluding that initial wait gives 61m32s → 56m11s, so the full observed 20m20s reduction must not be attributed solely to tiering.scripts/lib/ci-docker-seed-plan.mtslegacy-operator-state+auto-auth; checked runtime/public-SDK packagebuild-artifactsDocker step evidence: release package preparation 1,760 → 422s; candidate Docker seed execution 910s, successful. The artifact build's
build-allcompute phase completed in 242.6s. Hourly iOS smoke finished 29m24s after dispatch. The full recorded job inventory changed 228 → 141.Excluded native/minimum-Node and named-tooling jobs represent 20,746 observed baseline job-seconds per hourly plan. Subtract the new 1,660s iOS smoke before counting net placement savings; retained Android rows also absorb lint work. Docker saved another 2,206 observed job-seconds against a timed-out baseline. These figures are not interchangeable with workflow wall time. PR test inventory removed: 0 seconds; this is an hourly-tier change.
Guard cost and proof
Linux file walls use two CI workers, three-run medians on the same configured Blacksmith Testbox. The candidate column is the paired measurement; final-tree confirmation is recorded separately.
test/scripts/ci-hourly.test.tstest/scripts/ci-workflow-planning.test.tstest/scripts/ci-workflow-guards.test.tsAll three passed 10/10 paired candidate runs. The final typed planner fixture also passed 10/10 on the exact frozen candidate. New cases execute the real manifest and job conditions, reject main-tier release substitutions, and prove both retained main coverage and default full-tier selection. No file-runtime speedup is claimed for these guard additions.
Original owner shards passed at 312.09/341.35/521.60s. Candidate shards 12/15 passed at 314.11/325.93s before transport interruption; the remaining shard 16 subsequently passed at 437.17s on a fresh task-owned lease. Exact-head native CI additionally confirms all required planner/guard files,
test-projects, workflow-evidence, and the shared helper's docs-agent sibling.PR CI 35983743545 passed 65 executed jobs in 11m43s, with 13 intentional skips. Changed-file checks, strict test-root typing, type-aware lint with a failing floating-Promise canary, workflow/Zizmor checks, docs MDX/link sanity, formatting, and diff checks passed. Final branch autoreview is P2 scoped-clean.
Remaining tail and failures
The 30-minute goal still needs the separately owned planner/runtime/routing work:
Both jobs were forecast at 210s. There are 62 compact rows under the existing 70-row cap. The existing refit accepts this positive cohort but requires two independent samples before changing weights; no timing data or caps were manually overridden. T1 should evaluate unpacking from a second matching observation before paid promotions. Its collector currently samples main
pushevents, so admitted hourly main-tier dispatches also need a source-identity-safe route into the existing collector; ordinary security-only pushes cannot refresh these costs. S2 currently excludes ordinary hourly dispatches from RunsOn, so merging S2 alone does not close this gap. Any narrow integration must keep main-tier full-family scope independent of backend and qualify complete runtime preparation.The hourly run failed on three independent surfaces: SDK rendering matches the already-landed empty-tuple fix #157183, absent from this frozen candidate; topology received a runner shutdown during madge; restart-notice
serializes stable notice preparation before modifiers can run twicehit its wait limit, followed by an unjoined enqueue meeting database cleanup. The same restart-notice case also failed in the independent full-release child. One replay of that exact seven-file child passed on Linux in 80.98s; that is non-reproduction, not a fix. No retry, timeout increase, or assertion weakening was used.Full-tier execution
Full Release Validation 35988312957 is a nonpublishing
ci-group run for this exact candidate with immutable main Tooling SHA6e008165e1e827f10ae9e3d6266186fc6292a64e. Its full-CI child 35988899953 selected Node-floor compatibility, both iOS phases, both screenshot devices, Android packaging, and full Docker seed. Frozen-tree UI build and both locale checks passed; existing unchanged UI size diagnostics were retained as warnings, not waived or reset. No repository variable or publication action was requested.Full-tier results so far: minimum-Node qualification, iOS Release, iPhone screenshots, and both Android package builds passed. iPad capture failed and its evidence reducer remained blocked. Full Docker hit its unchanged 60-minute limit after the survivor and three MCP lanes passed; update-channel-switch was interrupted and Fleet never started. The initial two-lane Linux fallback stopped before execution on a Blacksmith HTTP 429. The authorized later retry succeeded on a disposable Blacksmith Testbox with four observed CPUs: full package preparation passed in 1,699s and update-channel-switch passed in 308s. Fleet rejected that SSH invocation at its disposable-GitHub-host prerequisite before assertions. Its separate hosted recovery retains the exact frozen source and host guard; no passing Docker lane was rerun. Full iOS native tests, including lifecycle and Watch simulator tests, passed in 81m37s on the same candidate, compared with the retained hourly smoke at 27m40s. The full-CI child is terminal with failure; all test jobs have finished. The parent verifier completed with failure. The update-channel remainder is complete; the Fleet-only hosted recovery is recorded below.
Rebase recovery
Rebased onto
ead3b2ee776casaf5c7bf0676e774b6439a2e51cfee9ea1dc61f82. The three workflow conflicts preserve both main’s release runner-group routing and this PR’s tier conditions. Workflow guards passed once (304 passed, 10 intentional skips, 160.24s), andnode scripts/check-changed.mjsplus diff checks passed once. The rebase preserves the previously reviewed patch; completed paired measurements and full-tier proof above were not repeated. Auto-merge remains coordinator-owned.Recovery closeout
The rebased head
af5c7bf0676e774b6439a2e51cfee9ea1dc61f82passed CI 36000979891 with 65 successful jobs, and its required security review passed. The coordinator-armed auto-merge completed as87d8924207acd82eb2a4a67c70d876b188807136.Fleet recovery: hosted lane-only run 36006876136 passed against exact frozen source
a7aa63b79eab77581eb2b75cb3125bd3cb7af6be, with immutable tooling23f89eecc93484442d6b2d4c9a8066eb9388b0f9. The canonical lane passed once in 1,130s; complete job wall was 1,262s, after separate shared-image preparation. Its artifact confirms the previous2026.8.2CLI, Docker cache variants, Podman lifecycle health checks (all HTTP 200) and completed cleanup. The earlier setup-only attempt could not reach the orphaned pre-rebase commit; an exact temporary source ref restored canonical reachability without changing source or guards. Both previously unfinished Docker scenarios are now complete. The broader full-tier failures already recorded above remain distinct from these successful remainder proofs. No release artifacts were published to a package or image registry.The separate hosted-tail follow-up #157302 retains every test and puts its eight dedicated rows below 15 minutes. Its hourly-equivalent wall is 40m03s, so the overall 30-minute target still needs the documented remaining mixed-row, routing and native/queue work.