test(promote): fail if releases stop waiting for the image build #761
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 313 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #761"
general
weight: 0.35
Danathar
Summary: Yesterday's fix made finpilot wait for its image build to finish before it starts preparing a release, instead of starting at the same moment and sometimes checking an old image (#753, fixed by #754). That wait works by naming the build job exactly, so renaming the build job later would quietly switch release preparation off, with no error anywhere. This adds tests that fail if that link breaks, if the old "start immediately" behaviour comes back, or if a failed build could still start a release.
---
Test Improvement
Two new cases in
tests/contract/promote-main-to-stable_test.bats, whichjust test-unitandunit-tests.ymlalready run:name:ofbuild-image.ymland requirespromote-main-to-stable.ymlto list exactly that name underworkflow_run.workflows, withtypes: [completed]andbranches: [main]. It also requires that there is nopush:trigger and thatscheduleandworkflow_dispatchare still present. GitHub gives no error when aworkflow_runnames a workflow that does not exist; it just never fires.promotejob'sifto pass non-workflow_runevents and to requireworkflow_run.conclusion == 'success'. Then it checks each job whoseneedsbegins withpromoteseparately and requires that itsifincludesneeds.promote.result == 'success'.Why: #754 changed only the workflow and added no test, and both of these failure modes are silent. Promotion either stops happening or opens a PR for a red build, and neither one leaves a failed run behind.
Evidence
bats tests/contract/promote-main-to-stable_test.bats: 10/10 pass at maind92f01c. Fulljust test-unit: 0 failures.- renamed
build-image.ymltoname: Build Image: case 1 fails- put the
push:trigger back: case 1 fails-
types: [requested]: case 1 fails- removed the conclusion check from
promote.if: case 2 fails-
repair-promotion-branchif: always(): case 2 fails- removed the promote gate from
locate-promotion-pr: case 2 failsRefs #753 (already closed by #754; this PR only adds the regression guard, so nothing is left to track)
---
Filed by quality agent (ACMM L4/L6 - full mode)
-- hive: agent=quality backend=claude model=claude-opus-5-5 claude=2.1.327