Skip to content

fix(deploy): core-binaries is an artifact publisher, never the tip's verdict - #4706

Merged
joelteply merged 2 commits into
canaryfrom
fix/core-binaries-is-not-a-deploy-gate
Oct 4, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/core-binaries-is-not-a-deploy-gate

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The regression (today, our own)

Since #4691 every canary push runs core-binaries.yml: 44–73 min per macOS leg, cancel-in-progress on the branch. The Rust tracker counted its check-runs in the tip's verdict, so a tip was never green before the next merge cancelled its run. Receipt from the M5: deploy.track.decision verdict=ChecksPending from 01:36Z to 04:00Z across five merges, nothing deployed. gh: 5f92036 both legs in_progress; e545f64, 37545f7, a521573 cancelled. Every node reading the same verdict is held the same way.

Fix

core-binaries.yml joins NON_DEPLOY_WORKFLOW_PATHS beside promote-main. It publishes the tip's prebuilt core and judges no code; the deploy consumer already waits for that artifact on its own budget (#4702). A tip whose own suites are green is deployable the moment they are.

Test pins: core-binaries in flight = green; cancelled (superseded by the next push) = green; core-binaries as the only suite = unknown, never green by absence. deploy_tracker tests 4/4.

Same rule as the merge cadence: a gate that takes longer than the merge interval starves every node.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…verdict

Since #4691 every canary push runs core-binaries.yml (44-73 min per macOS leg, cancel-in-
progress on the branch), and the tracker counted its check-runs in the tip's verdict. On
2026-10-04 the M5 sat at ChecksPending from 01:36Z to 04:00Z across five merges and
deployed nothing: no tip was green before the next merge cancelled its run. The same
verdict holds every node that reads it.

core-binaries.yml joins NON_DEPLOY_WORKFLOW_PATHS beside promote-main: it publishes the
tip's prebuilt core and judges no code; the deploy consumer waits for that artifact on its
own budget (#4702). A tip whose own suites are green is deployable the moment they are.
Test pins: in-flight = green, cancelled = green, core-binaries as the only suite = unknown.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) October 4, 2026 04:09
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at 5774b40 on green, with one addition in this PR (Cormac). Right fix, and my #4691 caused it: core-binaries publishes an artifact and judges no code, and #4702's consumer waits for the artifact on its own budget. The test covers in-flight, cancelled, and 'core-binaries as the only suite = Unknown, never green by absence'. Good.
Add: .github/workflows/promote-main.yml carries its own copy of this rule (its comment says 'the same one deploy_tracker.rs::parse_tip_checks applies'). Its NON_DEPLOY_PATHS is still only ('.github/workflows/promote-main.yml',), and its HARD_FAIL includes 'cancelled'. Every canary push cancels the previous tip's core-binaries run, and an in-flight one isn't complete, so the daily promote will find the tip not green almost every time and main stops moving. Add '.github/workflows/core-binaries.yml' to that tuple too. (Longer term, two copies of one rule is the drift this repo's compression rule warns about; one source, e.g. a shared list file both read, would end it.)

… too (Cormac on #4706)

promote-main.yml carries its own copy of the verdict rule and treats cancelled as a hard
fail; a core-binaries run superseded by the next push would have blocked the daily
canary -> main promotion the same way it held the deploy tracker.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at 8eef0f0, on CI green at this head (Cormac). promote-main.yml's NON_DEPLOY_PATHS now carries core-binaries.yml, with a comment tying it to the tracker's list, so a superseded core-binaries run no longer blocks the daily canary→main promote.

@joelteply
joelteply merged commit ad5aadd into canary Oct 4, 2026
7 checks passed
@joelteply
joelteply deleted the fix/core-binaries-is-not-a-deploy-gate branch October 4, 2026 04:35
joelteply added a commit that referenced this pull request Oct 4, 2026
…reads ask gh for only what they use (#4711)

The deploy tracker's workflow-runs read for a canary tip is 90 KB; the bounded probe keeps 64 KB
and `probe()` dropped `Captured`'s truncated flag, so the cut JSON came back "ok", failed to parse,
and parse_tip_checks fell back to counting every check. #4706's core-binaries exclusion never
applied: every node's deploy waited on the 44-73 min macOS legs (the 5090 on b6ddc0d,
2026-10-04: total 10, excluded 0, filtered false, runs_read ok).

- bounded_command: `Probed::Truncated`, outcome "truncated", never `stdout_if_ok`. Every caller
  of `probe` now sees an incomplete answer as one; the existing large-output test asserts it.
- deploy_tracker: both gh reads project with --jq to the fields parse_tip_checks reads
  (check-runs 31 KB -> 1.2 KB, runs 90 KB -> 0.6 KB on b6ddc0d).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant