Skip to content

fix(infra): Fix the offline separator of a comma limit - #6387

Merged
dan-petty merged 6 commits into
mainfrom
fix/6337-apply-skips-the-last-host-of
Nov 19, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/6337-apply-skips-the-last-host-of

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

devops infra apply skips the last host of a run of hosts with no disruptive class, so that host keeps its old state and the run leaves the cluster inconsistent. host_pattern appends :!<offline group> to the limit, and Ansible splits a pattern that holds a comma on the commas only, so the term <last host>:!offline matches no host and the exclusion applies to none of the run (#6337).

Closes #6337

Change: openspec/changes/archive/2026-11-19-6337-apply-skips-the-last-host-of/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 19, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/6337-apply-skips-the-last-host-of branch from e765dc9 to f52ec21 Compare November 19, 2026 06:49
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #6337 Fix the offline separator of a comma limit fix(infra): Fix the offline separator of a comma limit Nov 19, 2026
@devops-cli-service devops-cli-service Bot added type/bug Type bug: the code does not do what it must scope/infra Docker container images, DevContainers, and infrastructure tooling and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 19, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 1392210/4806 pytest on base: tests/infra/test_plan.py
group 2 done 1 1070687/4695 pytest on base: tests/commands/test_infra_plan.py
group 3 done 1 1594633/71186 pytest on base: tests/commands/test_infra_apply.py
group 4 done 1 973723/6356 -
  • scoped check pre-push: passed, 27 s
  • scoped check static: passed, 125 s
  • scoped check tests: passed, 28 s
  • scoped check strength: passed, 0 s
  • group 4: skipped, group 4: kind other
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.infra.test_plan::test_a_host_in_the_offline_group_is_never_in_the_limit[comma-limit].
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.commands.test_infra_plan::test_the_dry_run_shows_each_term_of_a_comma_limit.
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.commands.test_infra_apply::test_the_dry_run_shows_each_together_host_as_its_own_term.
  • verify of group 4: uv run devops ci test tests/commands/test_infra_apply.py exits 0.
rootdir: /home/devops/.data/agent/worktrees/w-6337
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, hypothesis-6.170.15, platformdirs-4.14.7, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, syrupy-7.0.2, timeout-2.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 35 items

tests/commands/test_infra_apply.py ...................................                                                                                                                                                                             [100%]

---------------------------------------------------------------------------------------------------------------- snapshot report summary -----------------------------------------------------------------------------------------------------------------
1 snapshot passed.
================================================================================================================== 35 passed in 11.08s ===================================================================================================================
Bytecode compiled 23342 files in 2.26s
Bytecode compiled 23342 files in 2.39s
/home/devops/.data/agent/worktrees/w-6337/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 19, 2026 07:21
@dan-petty
dan-petty merged commit 98493e4 into main Nov 19, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/6337-apply-skips-the-last-host-of branch November 19, 2026 11:13
dan-petty-release Bot added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.179.5](v0.179.4...v0.179.5)
(2026-11-19)


### Bug Fixes

* **ai:** bound the number of prewarm model label values
([#6391](#6391))
([e3fa4f1](e3fa4f1))
* **ci:** count a changed test that errors on base as proof
([#6379](#6379))
([6881b4c](6881b4c))
* **deps:** update Helm release argo-cd to v10.18.2
([#6398](#6398))
([2604ace](2604ace))
* **infra:** Fix the offline separator of a comma limit
([#6387](#6387))
([98493e4](98493e4))
* **roadmap:** Name the cause of a stopped verification run
([#6333](#6333))
([bbf308d](bbf308d))
* **roadmap:** Stage a long plan body and a null optional text
([#6351](#6351))
([053aabc](053aabc))
* **telemetry:** Keep the age metrics' reads across pods
([#6326](#6326))
([ad0ee60](ad0ee60))


### Code Refactoring

* **ai:** rank the benchmark with numpy and pytrec-eval
([#6388](#6388))
([051217e](051217e))

---
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): apply skips the last host of a multi-host run

1 participant