Repository navigation
test(backends): raise lock-test timeout to tolerate shared GPU nodes - #1726
Merged
Merged
Conversation
test_generate_with_lock_does_not_block_when_awaiting_value failed on the 2026-09-01 nightly GPU verification with the 30s asyncio.wait_for timeout firing while a heavy co-tenant slowed generation, with nothing wrong (generative-computing#1602). Raise the timeout to 120s so variable GPU compute latency does not trip the deadlock check; a genuine deadlock still fails, it just takes longer to surface. Fixes generative-computing#1602 Assisted-by: pi Signed-off-by: Nigel Jones <[email protected]>
ajbozarth
approved these changes
Oct 13, 2026
ajbozarth
left a comment
Member
There was a problem hiding this comment.
I think I'm ok upping the timeout on a single qualitative test
Merged
via the queue into
generative-computing:main
with commit Oct 14, 2026
9a395f0
11 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue
Fixes #1602
Description
The nightly GPU verification intermittently fails
test_generate_with_lock_does_not_block_when_awaiting_valuewith aTimeoutErrorthat looks like the deadlock the test exists to catch, but is not one: on a shared GPU node with a heavy co-tenant, the 100-token streaming generation simply takes longer than the test's 30sasyncio.wait_fortimeout (observed 2026-09-01, PR #1587 nightly run). The failure sends someone hunting for a concurrency bug that is not there.This raises the timeout to 120s with a comment recording why. A genuine deadlock still fails the test; it just takes longer to surface. The tradeoff (a slower failure when the deadlock is real) is worth it for a qualitative nightly test whose false positives cost more than its slow negatives.
Testing
uv run pytest "test/backends/test_huggingface.py::test_generate_with_lock_does_not_block_when_awaiting_value"— 1 passed in 50s locally (Granite 4.1 3B on MPS, model cached). The timeout change itself is only exercised under heavy shared-GPU load, so the nightly GPU verification is the real check; marking that expectation here rather than claiming local proof.Attribution
Adding a new component, requirement, sampling strategy, or tool?
If your PR adds or modifies one of the types below, check the matching box. A checklist of type-specific review items will be posted as a comment.
NOTE: Please ensure you have an issue that has been acknowledged by a core contributor and routed you to open a pull request against this repository. Otherwise, please open an issue before continuing with this pull request.