Repository navigation
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
Conversation
…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
|
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. One follow-up, yours to keep on the card: the shell calling the binary's verdict so there is one copy. Merge on green. |
The defect (card 2d333f25)
The tip's verdict had two owners. #4243 taught
track-canary.sh::tip_checksto 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 Windowsdeploy-consumereads — 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
auditfailure (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). ReturnsTipChecks { checks, total, excluded, filtered }so the tick can say what it excluded.GitGhDeploySource::tipfetchesactions/runs?head_sha=<tip>alongside the check-runs and probesdeploy.tip.checkswhen the filter excluded anything or could not apply.Tests
a_scheduled_audits_failure_is_not_the_tips_verdictpins 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 withNonefor the runs read.Receipt on IntelMac: 32 passed / 0 failed (
deploy_tracker+source_hygiene, both ratchets green), REAL_EXIT 0;cargo check --libREAL_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