Repository navigation
fix(roadmap): one event loop and a time limit for decide_all - #4585
Merged
Merged
Conversation
decide_all sent each request in a pool thread with its own event loop, and the callers give one model to all requests. The provider lock of that model binds to the first loop, so a wait on a second loop did not wake, and the pool wait had no time limit. pytest-timeout could not stop the worker. decide_all now sends all requests on one event loop in the calling thread, and asyncio.timeout bounds each request. A stuck request raises TimeoutError, so the step fails open. The default timeout is CONST_ROADMAP_JEV_TIMEOUT_SECONDS.
Owner
Author
|
Fail-to-pass run: On base, the timeout test waits out Other checks on the change:
No stage gate changed, so no |
The tree check refuses a test whose only assertion is a presence check.
dan-petty
force-pushed
the
fix/4513-decide-all-timeout
branch
from
November 11, 2026 10:08
9cb5c00 to
a13367b
Compare
dan-petty
marked this pull request as ready for review
November 11, 2026 10:31
dan-petty
pushed a commit
that referenced
this pull request
Nov 11, 2026
🤖 I have created a release *beep* *boop* --- ## [0.112.0](v0.111.0...v0.112.0) (2026-11-11) ### Features * **k8s:** export gateway spans without key metadata ([#4520](#4520)) ([7234d71](7234d71)) * **k8s:** set the homelab domain in container env values ([#4608](#4608)) ([a3bcf7c](a3bcf7c)) * **telemetry:** send pydantic-ai spans through the exporter seam ([#4538](#4538)) ([fcf2a7a](fcf2a7a)) ### Bug Fixes * **ai:** price cached prompt tokens of chat calls ([#4584](#4584)) ([f84bbe6](f84bbe6)) * **devcontainer:** stop uv noise lines in agent shells ([#4592](#4592)) ([9ba375c](9ba375c)) * **k8s:** delete gateway management bodies from spans ([#4551](#4551)) ([b835d3c](b835d3c)) * **k8s:** set the kube context and namespace on devops pods ([#4514](#4514)) ([9087b39](9087b39)) * **roadmap:** a refused spec after the archive is a plan defect ([#4549](#4549)) ([1db29f7](1db29f7)) * **roadmap:** count and log the reason of a left-out stage item ([#4541](#4541)) ([5600179](5600179)) * **roadmap:** default the step ceiling to twice the budget ([#4556](#4556)) ([1dfb6c8](1dfb6c8)) * **roadmap:** explain --trace shows the argument digest ([#4526](#4526)) ([c92195f](c92195f)) * **roadmap:** explain totals count dropped model events ([#4543](#4543)) ([fe0e979](fe0e979)) * **roadmap:** give each eval verify run its own report file ([#4534](#4534)) ([ad27f2d](ad27f2d)) * **roadmap:** one event loop and a time limit for decide_all ([#4585](#4585)) ([ec51e01](ec51e01)) * **roadmap:** scoped updates send requests with no row scope ([#4531](#4531)) ([5f75d25](5f75d25)) * **roadmap:** the caller gate reads an added parameter span ([#4548](#4548)) ([1ba07c1](1ba07c1)) * **roadmap:** the implement shell waits for its command ([#4536](#4536)) ([571e044](571e044)) * **roadmap:** the module-test and caller gates read imports and calls ([#4490](#4490)) ([8a22e82](8a22e82)) * **service:** put trace ids on Service JSON log lines ([#4511](#4511)) ([0d7a0d2](0d7a0d2)) ### Performance Improvements * **ai:** keep intake embeddings between CLI runs ([#4546](#4546)) ([812871e](812871e)) * **roadmap:** intake reads only the issues that changed ([#4552](#4552)) ([7dfd155](7dfd155)) --- 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>
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.
decide_allsent each request in a pool thread with its own event loop, and the callers give one model to all requests. The provider lock of that model (anyio.Lock) binds to the first loop, so a wait on a second loop did not wake. The pool wait had no time limit, and pytest-timeout could not stop the worker.decide_allnow sends all requests on one event loop in the calling thread withasyncio.gather, and a semaphore keeps the concurrency limit.asyncio.timeoutbounds each request, so a stuck request raisesTimeoutErrorand the step fails open. The defaulttimeoutisCONST_ROADMAP_JEV_TIMEOUT_SECONDS. The Jev fake records the loop of each request and can hold a request open.Closes #4513
Change:
openspec/changes/archive/2026-11-11-4513-decide-all-can-hang-a-test/