Repository navigation
ci: publish scheduled SDK build cache - #185369
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 SummaryThis 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR publishes existing SDK build-cache records after successful scheduled-main compilation. Example: A scheduled main build generates the SDK declaration record that the full warmer does not produce.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed PR adds useful cache publication missing from current main, with no concrete introduced defect identified; its failed CI gate still needs attribution. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe CI artifact producer compiles runtime, UI, and SDK outputs; the shared setup action restores immutable cache generations, and individual build owners validate records before reuse. flowchart LR
A[Scheduled main] --> B[Preflight trust classification]
B --> C[Restore build cache]
C --> D[Compile CI artifacts]
D --> E[Guarded cache publication]
E --> F[Compatible later builds]
Technical reviewBest possible solution: Retain the focused publication step and existing record validation, then assess its net benefit from scheduled publication and compatible consumer observations. Do we have a high-confidence way to reproduce the issue? This is a CI optimization rather than a broken runtime contract; source confirms the distinct SDK record and missing publication path. Is this the best way to solve the issue? The patch is the smallest complete change: publish already-produced records through the existing cache action without adding compilation, cache identity, or another validity owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bfb988fc7f15. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +57, Docs +11, Config +9. Total +77 across 4 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 26, 2026, 11:24 PM ET / October 27, 2026, 03:24 UTC. |
…cache-publication
Keep the existing callout geometry contract while waiting for the rendered node after viewport changes. Capture bounded synthetic catalog and picker facts only when the existing Cron model assertion fails; the intermittent catalog failure remains unresolved.
|
Merged via squash.
|
* ci: publish scheduled SDK build cache * test(ui): await callout geometry and diagnose catalog refreshes Keep the existing callout geometry contract while waiting for the rendered node after viewport changes. Capture bounded synthetic catalog and picker facts only when the existing Cron model assertion fails; the intermittent catalog failure remains unresolved.
What Problem This Solves
The shared build-cache warmer publishes full declarations, while the UI CI producer needs the distinct SDK-only declaration record. The observed producer restored the archive successfully but still spent 137.8 seconds generating its missing SDK record.
After a successful scheduled-main build, publish the existing build-all cache tree using the existing key. This preserves full-profile records alongside the SDK-only record. It adds no compiler invocation or runner and does not change the full warmer, declaration ownership, cache identities or PR write permissions. Publication is restricted to trusted current main, with frozen, compatibility and release targets excluded. A dist-cache hit skips publication because no new build ran.
Archive compression/upload cost and compatible consumer hit rate are not yet measured. The 137.8-second phase is an opportunity bound, not a claimed saving.
Evidence
No UI renderer or application startup code changes; screenshots and startup-size proof do not apply. The guard reuses existing workflow authority and tests its positive/denied contexts; no new production seam or cache owner.
Measured before
Current-main run 40434422133, head
8d50df8c2698cad92ed46ca967f68118ddb1a124, has a 977-second / 16.2833-minute producer job. The build-all archive restored in 0.642 seconds (68,268,686 bytes). The SDK writer used 137.8 seconds, including 133.3 seconds in its compiler. These nested times are not additive to the complete job. The table retains failed work and distinguishes API job spans from billing.The accepted checkpoint remains 88.33 comparable / 91.50 full minutes and 593 seconds; the original baseline is 106.00 comparable. The target is 74.20 comparable and ≤593 seconds. The exact-head measurement is below; it does not exercise scheduled publication or establish a causal cache saving. Independent cuts are not added together.
Current reviewed head
b6e22b23664d0ae2a5b1b54b5b7eeb5abf685a7f. It includes the four-file cache publication change and a focused CI follow-up in two existing test files.CI follow-up and remaining uncertainty
Run 40452534921, head
0c7b17fdd30b3d1791f422f07b83a47abc7aa405, failed three UI cases. The Claude catalog-header case also fails in completed scheduled-main run 40450656502. The plugin callout geometry and Cron catalog-publication cases passed that main run and passed one local reproduction on the PR run's exact main parent96da011f80404ed03beafeacb0f8a1b3de0c6636. Neither is classified as inherited. The newer completed scheduled-main run 40456097192 passed all 13 UI jobs, so there is no current inherited UI attribution. Exact-head PR run 40457965281 completed successfully with all 13 selected UI jobs passing. The replacement PR-context check 40459438528 also passed after using the required problem/evidence headings.The plugin test now waits for the same complete geometry contract after a viewport change: at least 14 px top/bottom padding, at least 16 px spacing, and contained content. It waits for the rendered alert to satisfy the contract instead of relying on a one-shot computed-style reading; thresholds and behavior are unchanged.
The Cron cause remains unresolved. Its original failure occurred while checking that the last successful catalog remains available after an injected failed read. The retained artifact showed a connected, ready page without browser errors but omitted picker state. The test now records a bounded trace of catalog request/reply/publication labels, pending counts, fixture option presence, and retained-draft booleans on failure, then rethrows the original assertion. This diagnostic addition is not a Cron fix. The exact-head CI run passed the unchanged model assertions. That passing run does not diagnose or repair the intermittent Cron cause.
The local test wrapper additionally prepared its owned private QA runtime and matching UI assets. These setup costs are retained separately from test results. No task-owned remote lease was used.
Size
Six files, 18,083 → 18,233 LOC (net +150); no application runtime changes. The original cache publication adds 77 lines, and the two test follow-ups add 73 net lines for readiness and failure-only diagnostics.
Latest main cost receipt
Run 40456097192, head
1299676aacb6230a0960bd4f2178fb7ddd103849. 13/13 exact-job raw logs retained. All 13 UI rows are terminal; the whole workflow is completed/failure. Outer totals: 90.30 full /87.33 comparable minutes, 686 seconds completion path, with 13 UI passes and 0 failures. No savings claim.The acceptance target remains 74.20 comparable minutes and a completion path ≤593 seconds. This is a current-main observation, not a measured effect of this SDK publication PR. The historical SDK compile observation above remains pinned to its own run.
Additive job and owner phases
All cells are runner minutes. Env/deps and browser are refined in the next table. Setup/callback/cleanup/queue/mixed/unclassified replace the original inclusive test cell and sum to it. Unclassified on a missing-log row means the entire test window is unresolved, not test execution.
Completed nested intervals are clipped to API job windows. Missing owner markers remain unclassified; callback-only can include fixture work or waits and is not pure CPU. Failed work and post-job teardown remain charged. The whole-workflow failure is distinct from the 13 passing UI jobs; the observer owns non-UI attribution.
Exact-head CI result
Run 40457965281 completed successfully at
b6e22b23664d0ae2a5b1b54b5b7eeb5abf685a7f: 13 UI jobs passed, 86.77 comparable / 89.75 full runner-minutes, 557-second completion path. The producer took 436 seconds. The locale row was skipped. These API spans are not billing-invoice measurements.The scheduled-main cache save does not run for PR events, so this successful run proves the changed workflow and tests, not publication savings. Actual upload cost and downstream SDK hits still need the first landed scheduled producer/consumer pair. The observed 557-second path is within the 593-second campaign checkpoint; no independent savings are added.
Env/deps is composite. Fixture/Gateway startup and cleanup remain inside inclusive tests unless separately named. Other preserves the prior reducer policy; see all step names/categories in JSON. These are whole-second GitHub timestamps, not billed-invoice measurements.