Repository navigation
ci(infra): a failed detect turns terraform plan red instead of skipping it (#676) - #1376
Merged
Merged
Conversation
…ping it (#676) When `detect infra changes` failed, its outputs were empty, so validate, helpers, plan and the plan gate all reported skipped, and branch protection read three skipped required Terraform contexts as satisfied: an infra PR that validated and planned nothing, shown green. The plan gate now also runs when detect did not succeed, and carries detect's result as a leg, so gate-all-legs fails it. A fork PR (detect succeeds, plan skips itself for lack of an id-token) still passes, as does any PR that touches no infra (detect succeeds, infra false, gate skipped). test_ci_selection's InfraPlanGate pins all three shapes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
terraform plan
|
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 02:01 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #676
What
infra.yml'sterraform plangate now also runs whendetect infra changesdid not succeed, and carriesdetect's result as a gate leg, so a failed classification turns that required context red instead of skipping it.Why
A failed
detectemptied its outputs, sovalidate,helpers,planand the gate all skipped, and branch protection read the three required Terraform contexts as satisfied: an infra PR that planned and validated nothing, shown green. Rust and frontend got the same fix in ce3fd01; infra was the remaining hole.Proof
make checkexit 0. NewInfraPlanGateinscripts/ci/test_ci_selection.py: the job admits a failed detect and lists it as a leg;detect=failure|cancelled|""with plan skipped is never green; a fork PR (detect=success, plan skipped) and a real success still pass, a failed leg fails. Regeneratedrequired-checks.md.Risk & rollback
Only changes when the gate job runs. On a non-infra PR detect succeeds with
infra=false, so the gate still skips as before. Rollback:git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-29T02:26:32Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: — 86cb03b, rust 46213856822 + frontend 46213856726 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — n/a — workflow and a CI test only
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — n/a — nothing deploys from infra.yml's gate
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra 46213856763 success on main: the push run carried detect as a gate leg and passed; devcontainer success
Donethrough the automation rather than byhand, and the issue closed: — infra.yml: a failed
detect infra changesleaves all three Terraform required contexts skipped, so an unverified infra PR reads CLEAN #676 CLOSED by ci(infra): a failed detect turnsterraform planred instead of skipping it (#676) #1376 via automation(a skill, a reference, memory) — or nothing new was learned: — every required aggregate gate now treats a failed detect as red; rust, frontend and infra all follow the same shape
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
Validate and helpers still skip on a failed detect; one red required context is enough to block the merge, which is the same shape rust.yml uses.
🤖 Generated with Claude Code