Skip to content

fix(infra): don't fail the main plan while an apply is pending - #21

Merged
reecelikesramen merged 1 commit into
mainfrom
claude/project-thread-je95no
Sep 30, 2026
Merged

reecelikesramen merged 1 commit into
mainfrom
claude/project-thread-je95no

Conversation

@reecelikesramen

Copy link
Copy Markdown
Contributor

Before: merging a PR that adds infra made the "Infra plan" run on main fail, because the push step exited 1 on any non-empty plan. The normal flow is merge, then run Infra apply, so every infra merge was red until the apply ran.

After: a non-empty plan on a main push is reported as a notice, with the plan in the job summary, and the run passes. A plan that errors still fails. The weekly drift check still opens an issue if changes stay unapplied, and Infra apply still verifies that the plan is empty afterwards.

How: the "Enforce converged state" step is replaced by a step that branches on the plan exit code (0 matches, 2 pending, anything else fails).

🤖 Generated with Claude Code


Generated by Claude Code

Merging infra changes and then running Infra apply is the normal flow, so
the plan on the merge commit is always non-empty until the apply runs.
Report it as a notice with the plan in the job summary instead of failing.
Plan errors still fail, and the weekly drift check still opens an issue.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013n1oPa64gxZ6ELaFaMeo3X
@reecelikesramen reecelikesramen self-assigned this Sep 30, 2026
@reecelikesramen
reecelikesramen marked this pull request as ready for review September 30, 2026 17:54
@reecelikesramen
reecelikesramen merged commit 1b59927 into main Sep 30, 2026
2 checks passed
@reecelikesramen
reecelikesramen deleted the claude/project-thread-je95no branch September 30, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant