Skip to content

fix(infra): a plan shows a skip by a check-mode when as unchecked - #5442

Merged
dan-petty merged 3 commits into
mainfrom
fix/5435-a-plan-shows-a-skip-by
Nov 13, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/5435-a-plan-shows-a-skip-by

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Bottom line: the owner merges this. The first devops infra apply of the gVisor play of the infra repository needs it; without it, that apply stops after the run and leaves the node cordoned.

devops infra 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. 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 the when item, 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/

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 dan-petty added type/bug Type bug: the code does not do what it must scope/infra Docker container images, DevContainers, and infrastructure tooling labels Nov 13, 2026
@dan-petty
dan-petty force-pushed the fix/5435-a-plan-shows-a-skip-by branch from 82a2998 to 5f63022 Compare November 13, 2026 16:18
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 5f630221991b6245b2bb6a955227c2573b4ea84b

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
CodeQL success run
Plan Check skipped run
Dependency Freshness skipped run
Tests on Main skipped run
Test Job Duration skipped run
Static Analysis success run
Tests & Coverage (shard 2 of 4) success run
Service Image success run
Tests & Coverage (shard 3 of 4) success run
Tests & Coverage (shard 4 of 4) success run
Runner Image success run
Design Tokens success run
Tests & Coverage (shard 1 of 4) success run
Changed-Test Independence success run
MCP Server Image success run
Analyze (python) success run
Analyze (actions) success run
Fail-to-Pass Check success run
Semantic PR title success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/43461485035/job/132009253436

Skipped check: Plan Check
Skipped check: Dependency Freshness
Skipped check: Tests on Main
Skipped check: Test Job Duration

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 16:26
@dan-petty
dan-petty merged commit 499b42c into main Nov 13, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/5435-a-plan-shows-a-skip-by branch November 13, 2026 16:35
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/infra Docker container images, DevContainers, and infrastructure tooling type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(infra): a plan shows a skip by a check-mode when as unchecked

1 participant