Skip to content

fix(tests): concurrent slot leasing test synchronizes on barrier - #2962

Merged
dan-petty merged 1 commit into
mainfrom
fix/2841-concurrent-slot-leasing-thread-timing
Nov 1, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2841-concurrent-slot-leasing-thread-timing

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Update test_concurrent_slot_leasing_across_threads in tests/ai/client/test_ollama_dynamic_leasing.py to synchronize slot acquisition across worker threads deterministically.

  • Synchronize the first three acquired slots using a barrier to hold all candidate nodes simultaneously.
  • Replace hardcoded 2.0 s, 1.0 s, and 3.0 s timeouts with THREAD_HANDOFF_BOUND_SECONDS.

Fail-to-pass: not applicable (the change replaces fixed timeouts with event-driven synchronization, which passes on a quiet host on base).

Closes #2841

@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 1, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 00:15
@dan-petty
dan-petty merged commit 20d72ac into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the fix/2841-concurrent-slot-leasing-thread-timing branch November 1, 2026 00:17
dan-petty pushed a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.37.0](v0.36.0...v0.37.0)
(2026-11-01)


### Features

* **config:** preview requests in dry run for config commands
([#2963](#2963))
([47cdf0d](47cdf0d))
* **devcontainer:** preview requests in dry run for devcontainer
commands ([#2969](#2969))
([c30583d](c30583d))
* **roadmap:** a stop sets Blocked; a new image clears it
([#2974](#2974))
([665e058](665e058)),
closes [#2912](#2912)
* **roadmap:** add devops roadmap inbox for what waits for a person
([#2970](#2970))
([f21e459](f21e459)),
closes [#2915](#2915)
* **service:** shorter prime-number intervals for the roadmap rows
([#2973](#2973))
([f414791](f414791)),
closes [#2965](#2965)


### Bug Fixes

* **tests:** concurrent slot leasing test synchronizes on barrier
([#2962](#2962))
([20d72ac](20d72ac)),
closes [#2841](#2841)
* **tests:** fake model calls in tests write to tmp_path ledger
([#2966](#2966))
([d422e3a](d422e3a)),
closes [#2192](#2192)

---
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 concurrent slot leasing test depends on thread timing

1 participant