Skip to content

fix(tests): remove the runner variable in the test floor - #4988

Merged
dan-petty merged 5 commits into
mainfrom
fix/3990-isolate-in-runner-fixture
Nov 12, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/3990-isolate-in-runner-fixture

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The pod of a runner Job sets DEVOPS_CLI_ROADMAP_IMPLEMENT_IN_RUNNER=true, and a setting variable wins over the config file. The test floor did not remove this variable, so in that pod each test took the in-runner path: 23 tests of test_roadmap_implement_outside.py and 3 tests of the command and job files failed, and the implement job spent repair rounds on them. The floor fixture isolate_devops_cli_config now removes the variable for each test, next to the DEVOPS_CLI_CONFIG and DEVOPS_CLI_DATA_DIR that it already sets. A test that needs the in-runner path sets roadmap.implement.in_runner through config. The issue proposes the removal in the cluster_jobs fixture, but 3 of the failing tests do not use that fixture. A new floor test runs pytester with the variable set in the outer environment. The records test no longer removes the variable itself. docs/TESTING.md names the removal.

Closes #3990

Change: openspec/changes/archive/2026-11-12-3990-isolate-in-runner-setting-in-cluster/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/tests The test suite, its fixtures, fakes and floor labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record

All runs are local, in the devcontainer, on the branch before the push.

  • Reproduction on the base (f55a20b99): DEVOPS_CLI_ROADMAP_IMPLEMENT_IN_RUNNER=true uv run devops ci test tests/roadmap/implement/test_roadmap_implement_outside.py: 23 failed, 8 passed.
  • The same variable on the base, tests that do not use cluster_jobs: test_confirm_outside_a_runner_exits_1_and_runs_nothing, test_the_job_runs_no_step_unless_it_is_in_a_runner and test_a_job_outside_a_runner_does_not_touch_its_process: 3 failed.
  • New test on the commit before the fix (tests/conftest.py the same as on main): uv run devops ci test tests/invariants/test_hermetic_floor.py -k runner_variable: 1 failed, with AssertionError: assert ('true', True) == (None, False) in the inner test test_the_default_is_outside_a_runner.
  • After the fix: uv run devops ci test tests/invariants/test_hermetic_floor.py tests/roadmap/implement/test_roadmap_implement_records.py: 35 passed.
  • After the fix, with the variable set: env DEVOPS_CLI_ROADMAP_IMPLEMENT_IN_RUNNER=true uv run devops ci test tests/roadmap/implement/test_roadmap_implement_outside.py tests/roadmap/implement/test_roadmap_implement_command.py tests/roadmap/implement/test_roadmap_implement_job.py: 144 passed.
  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: all rows pass.
  • mypy: not run. The change has no file under src/.

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main:

0 failed on base (0 failed and 35 passed in tests/invariants/test_hermetic_floor.py, tests/roadmap/implement/test_roadmap_implement_records.py; 0 errored).
A fix needs at least one changed test that fails in the call phase on base (...)

The fix is in tests/conftest.py. The replay puts the whole tests/ tree of the head on the base, so the base gets the fix too. This is the open defect #4908; I added this case to it in a comment. The red run on the commit before the fix (above) is the fail-to-pass proof. The Fail-to-Pass Check workflow does not run for this pull request, because it changes no file under src/ or tests/gate/*_checks/.

Other open pull requests

No other open pull request changes the files of this pull request.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 09:04
@dan-petty
dan-petty merged commit 093aa61 into main Nov 12, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3990-isolate-in-runner-fixture branch November 12, 2026 12:07
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.118.0](v0.117.2...v0.118.0)
(2026-11-12)


### Features

* **ci:** devops ci stops its rows when timeout ends it
([#5031](#5031))
([1fa4e9c](1fa4e9c))
* **roadmap:** keep the stage gate problems as a list with a code
([#5022](#5022))
([5819627](5819627))
* **roadmap:** log one result line for each roadmap job attempt
([#4966](#4966))
([2b6fe3f](2b6fe3f))
* **telemetry:** record each CLI usage error by name and kind
([#4973](#4973))
([a179fd9](a179fd9))


### Bug Fixes

* **ai:** chat loads each persona prompt and challenger gets tools
([#5037](#5037))
([c40b0ad](c40b0ad))
* **ai:** keep the HTTP status of a Claude reply after retries
([#4976](#4976))
([5bf9466](5bf9466))
* **deps:** keep Renovate uv bumps green and groups on Monday
([#4987](#4987))
([b19e153](b19e153))
* **k8s:** raise the limits that 7 d of use shows are too low
([#5030](#5030))
([028c62b](028c62b))
* **roadmap:** a job posts no comment that repeats a recent one
([#4978](#4978))
([fff903a](fff903a))
* **service:** alert when GitHub cannot deliver a webhook
([#5045](#5045))
([2bfbfcb](2bfbfcb))
* **service:** delete the stream route that sends canned verified text
([#5038](#5038))
([e9d51b5](e9d51b5))
* **telemetry:** keep one upstream status series per service
([#4986](#4986))
([3e4ca56](3e4ca56))
* **tests:** remove the runner variable in the test floor
([#4988](#4988))
([093aa61](093aa61))


### Performance Improvements

* **ai:** make the ast graph walk and call search faster
([#5039](#5039))
([3b25cc6](3b25cc6)),
closes [#4662](#4662)
* **ci:** build the devcontainer only on its own inputs
([#4977](#4977))
([c5b15ac](c5b15ac))
* **ci:** test each merge once, on the push to main
([#5043](#5043))
([c6992b1](c6992b1))
* **tests:** remove fixed waste in six slow tests
([#4995](#4995))
([1c7044e](1c7044e))


### Code Refactoring

* **ai:** delete devops ai pipeline and persona leftovers
([#5044](#5044))
([d5fefde](d5fefde)),
closes [#4827](#4827)
* **openspec:** split big capabilities into nested ones
([#4981](#4981))
([dfb09bd](dfb09bd))
* **pr:** devops pr update acts only on a failed check
([#4990](#4990))
([aa4fa1a](aa4fa1a))

---
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/tests The test suite, its fixtures, fakes and floor 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(tests): isolate in_runner setting in cluster_jobs test fixture

1 participant