Skip to content

fix(tests): Exempt wait_until polls from the sleep budget - #6737

Merged
dan-petty merged 2 commits into
mainfrom
fix/6696-the-polls-of-wait-until-count
Nov 22, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/6696-the-polls-of-wait-until-count

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

A test that waits for a thread handoff with wait_until fails the real-sleep guard of tests/conftest.py when the handoff takes more than 0.25 s, because each poll sleep counts toward the test's budget (#6696).

Closes #6696

Change: openspec/changes/archive/2026-11-22-6696-the-polls-of-wait-until-count/

@devops-cli-service devops-cli-service Bot added scope/tests The test suite, its fixtures, fakes and floor type/bug Type bug: the code does not do what it must labels Nov 22, 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 1143690/13113 -
group 2 done 1 1455714/13362 -
group 3 done 1 374825/2389 -
  • tools: run_command 46, read_file 19, grep 17, edit_file 10, write_file 7, list_files 1
  • scoped check pre-push: passed, 11 s
  • scoped check static: passed, 88 s
  • scoped check tests: passed, 35 s
  • scoped check strength: passed, 0 s
  • group 1: skipped, group 1: kind other
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/
  • verify of group 1: uv run devops ci test tests/invariants/test_hermetic_floor.py exits 0.
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/invariants/test_hermetic_floor.py \u2192 tests/invariants/test_hermetic_floor.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/roadmap/implement-runs/devops-implement-blg77vc9/work/model-clone
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, platformdirs-4.14.8, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, syrupy-7.0.3, timeout-2.4.0, hypothesis-6.170.17
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/invariants/test_hermetic_floor.py ...................................                                                                                                                                                                        [100%]

================================================================================================================== 35 passed in 25.75s ===================================================================================================================
/home/devops/.data/roadmap/implement-runs/devops-implement-blg77vc9/work/model-clone/.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))
  • verify of group 2: uv run devops ci test tests/invariants/test_hermetic_floor.py exits 0.
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/invariants/test_hermetic_floor.py \u2192 tests/invariants/test_hermetic_floor.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /home/devops/.data/roadmap/implement-runs/devops-implement-blg77vc9/work/model-clone
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, platformdirs-4.14.8, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, syrupy-7.0.3, timeout-2.4.0, hypothesis-6.170.17
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 36 items

tests/invariants/test_hermetic_floor.py ....................................                                                                                                                                                                       [100%]

================================================================================================================== 36 passed in 26.36s ===================================================================================================================
/home/devops/.data/roadmap/implement-runs/devops-implement-blg77vc9/work/model-clone/.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))
  • verify of group 3: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/roadmap/implement-runs/devops-implement-blg77vc9/work/model-clone
\u2713 All documentation files are up to date.

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 22, 2026 03:56
@dan-petty
dan-petty merged commit dafda4a into main Nov 22, 2026
29 checks passed
@dan-petty
dan-petty deleted the fix/6696-the-polls-of-wait-until-count branch November 22, 2026 04:02
dan-petty-release Bot added a commit that referenced this pull request Nov 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.192.1](v0.192.0...v0.192.1)
(2026-11-22)


### Bug Fixes

* **roadmap:** Find a job block marker only as an HTML block
([#6720](#6720))
([9e3b092](9e3b092))
* **tests:** Exempt wait_until polls from the sleep budget
([#6737](#6737))
([dafda4a](dafda4a))

---
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): the polls of wait_until count as real sleeps

1 participant