Repository navigation
fix(infra): a plan shows a skip by a check-mode when as unchecked - #5442
Merged
Merged
Conversation
A task that needs the change of an earlier task cannot run in check mode, so a role skips it with a when that names ansible_check_mode. The skip result has false_condition, so the plan showed the task neither as changed nor as unchecked, and the apply stopped after the run with an unplanned change. The plan now shows a skip by a false when item that names ansible_check_mode as unchecked, for a task and for a loop item. Jinja2 parses the item; a when item that does not parse stays unchecked.
dan-petty
force-pushed
the
fix/5435-a-plan-shows-a-skip-by
branch
from
November 13, 2026 16:18
82a2998 to
5f63022
Compare
Owner
Author
Check resultsHead commit:
Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/43461485035/job/132009253436 Skipped check: Plan Check |
dan-petty
marked this pull request as ready for review
November 13, 2026 16:26
dan-petty
pushed a commit
that referenced
this pull request
Nov 13, 2026
🤖 I have created a release *beep* *boop* --- ## [0.130.0](v0.129.1...v0.130.0) (2026-11-13) ### Features * **k8s:** add RuntimeClass gvisor for the runsc nodes ([#5436](#5436)) ([0d9ffa1](0d9ffa1)) * **roadmap:** make the attempt limits of the failing jobs settings ([#5490](#5490)) ([a13e520](a13e520)), closes [#5440](#5440) ### Bug Fixes * **infra:** a plan shows a skip by a check-mode when as unchecked ([#5442](#5442)) ([499b42c](499b42c)) * **infra:** the apply gate leaves out alerts of offline nodes ([#5478](#5478)) ([3f0d0f0](3f0d0f0)) * **roadmap:** a named fix-plan run can skip the 6-hour wait ([#5459](#5459)) ([94a1999](94a1999)), closes [#5413](#5413) * **roadmap:** a review finding must name a part of the plan ([#5418](#5418)) ([34cdf12](34cdf12)) * **roadmap:** the stage gate log names each refused finding ([#5441](#5441)) ([47b1ec5](47b1ec5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
Bottom line: the owner merges this. The first
devops infra applyof the gVisor play of the infra repository needs it; without it, that apply stops after the run and leaves the node cordoned.devops infra plannow shows a skip by a falsewhenitem that namesansible_check_modeas unchecked, for a task and for a loop item. Such a task needs the change of an earlier task, for example an install from an apt source that check mode did not add. Before, the plan showed it neither as changed nor as unchecked, and the apply stopped on an unplanned change. Jinja2 parses thewhenitem, and an item that does not parse stays unchecked. A new recorded run of the probe pins the rule.Closes #5435
Change:
openspec/changes/archive/2026-11-13-5435-a-plan-shows-a-skip-by/