Skip to content

fix(deploy): the Rust tracker judges the tip over its OWN push's suites — #4243 fixed the shell copy; this is the copy every node runs and the only one Windows reads (card 2d333f25) - #4246

Merged
joelteply merged 1 commit into
canaryfrom
fix/the-tip-verdict-has-one-owner
Sep 20, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/the-tip-verdict-has-one-owner

Conversation

@joelteply

@joelteply joelteply commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

The defect (card 2d333f25)

The tip's verdict had two owners. #4243 taught track-canary.sh::tip_checks to count only the check-runs from suites the tip's own push started, after a weekly scheduled Dependency Check landed a failure on canary tip 6d34274 and stopped every deploy on the fleet. DeployTrackerModule::parse_check_runs — documented as "the exact rule track-canary applied", the Rust DECISION half every node runs, and the ONLY one the Windows deploy-consume reads — still judged ALL check-runs on the sha.

Replayed against the live API on 6d34274: 7 check-runs, 4 workflow runs (3 push + 1 schedule). All-checks rule = red on the audit failure (suite 96070172760); own-suites rule = green 6 of 7. The next Sunday audit that fails for real (a high advisory in a web-client dependency, now that the lockfile path resolves) would stop the 5090 again while the Macs report green.

The fix

  • parse_tip_checks(check_runs, workflow_runs) — the sha's workflow runs carry the triggering event; only check-runs from suites started by push / pull_request / workflow_dispatch count. Runs API answered with no own suite = Unknown, never green by absence. Runs API absent or unparseable = every check counts, as before (degraded, not a lie). Returns TipChecks { checks, total, excluded, filtered } so the tick can say what it excluded.
  • GitGhDeploySource::tip fetches actions/runs?head_sha=<tip> alongside the check-runs and probes deploy.tip.checks when the filter excluded anything or could not apply.

Tests

a_scheduled_audits_failure_is_not_the_tips_verdict pins the 6d34274 shape: schedule failure + push successes → Green; same body with no runs read → Red; runs read with only a schedule suite → Unknown; a failure in an own suite → Red; a pending own suite is not pre-empted by the schedule's failure. The existing all-checks assertions stand with None for the runs read.

Receipt on IntelMac: 32 passed / 0 failed (deploy_tracker + source_hygiene, both ratchets green), REAL_EXIT 0; cargo check --lib REAL_EXIT 0.

Follow-up (same card)

The shell should call the binary's verdict so there is one copy of the rule.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…es — #4243 fixed the shell copy; this is the copy every node runs and the only one Windows reads (card 2d333f25)

The tip's verdict had two owners. `tools/scripts/track-canary.sh::tip_checks` learned
in #4243 to count only check-runs from suites the tip's own push / pull_request /
workflow_dispatch started, after a weekly SCHEDULED Dependency Check landed a failure
on the canary tip 6d34274 and stopped every deploy on the fleet. The Rust
`DeployTrackerModule` — documented as "the exact rule track-canary applied", the
DECISION half every node runs, and the ONLY one the Windows `deploy-consume` reads —
still fetched `commits/<tip>/check-runs` alone and read any hard failure as red.

Replayed against the live API on 6d34274: 7 check-runs, 4 workflow runs (3 push +
1 schedule). All-checks rule = red on the `audit` failure (suite 96070172760); own-
suites rule = green 6 of 7. The next Sunday audit that fails for real (a high advisory
in a web-client dep, now that the lockfile path resolves) would have stopped the 5090
again while the shell nodes reported green.

- `parse_tip_checks(check_runs, workflow_runs)` replaces `parse_check_runs`: the sha's
  workflow runs carry the triggering event; only check-runs from suites started by
  `OWN_SUITE_EVENTS` count. Runs API answered with no own suite = Unknown (never green
  by absence). Runs API absent or unparseable = every check counts, as before — a
  degraded read, not a lie. Returns `TipChecks { checks, total, excluded, filtered }`.
- `GitGhDeploySource::tip` fetches `actions/runs?head_sha=<tip>` alongside check-runs
  and probes `deploy.tip.checks` when the filter excluded anything or could not apply.
- Test `a_scheduled_audits_failure_is_not_the_tips_verdict` pins the 6d34274 shape:
  schedule failure + push successes → Green; same body with no runs read → Red; runs
  read with only a schedule suite → Unknown; failure in an own suite → Red; a pending
  own suite is not pre-empted by the schedule's failure.

Follow-up (same card): the shell should call the binary's verdict so there is one
copy of the rule.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE at exact head 55eb3e7.

Read against #4243's shell rule line by line: same OWN_SUITE_EVENTS, same three outcomes (runs read answered → own suites only, none = Unknown never green by absence; runs read absent or unparseable → every check counts, degraded not a lie), same hard-fail set. tip is the full sha from git rev-parse (line 131), so actions/runs?head_sha= filters — the short-sha trap that bit my dry run does not apply here. The probe firing only when something was excluded or the filter could not apply is the right silence. The test pins the live 6d34274 shape and the pending-not-pre-empted case I did not think to pin in the shell.

One follow-up, yours to keep on the card: the shell calling the binary's verdict so there is one copy. Merge on green.

@joelteply
joelteply merged commit af87ccb into canary Sep 20, 2026
6 checks passed
@joelteply
joelteply deleted the fix/the-tip-verdict-has-one-owner branch September 20, 2026 01:53
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