Relationships
#5039 serve workspace requests test races a background state probe: the untouched workspace's state can move from unknown to stopped between reads
Opened by stack72 · 11/24/2026
Description
integration/serve_workspace_requests_test.ts, the test named 'the dashboard switcher reads the root's list as each workspace's name and state, and a resumed workspace changes state at the next read', reads the workspace list once, resumes edge-dns, waits for it to be ready, reads again, and asserts that the untouched workspace cost has the same state in both reads.
The first read can happen before the root has probed cost, so its state is null (not yet known). By the second read the probe has settled it to stopped, and the assertion fails with: expected null, actual stopped.
Seen
It failed once in a verify-build run (run dd7bd4b3-6aff-48c5-aede-7a491b1b0d54, commit e941ea5e on branch 4477, while verify-reviews and verify-skills ran in parallel on the same host). It passed in the previous verify-build run of the same code, and passes alone and with --repeats=10. The change under test there (swamp-club#4477, workflow run memory) does not touch serve workspaces.
Expected
The test asserts on a settled state: wait until cost's state is known before taking the first reading, or assert that a resume of edge-dns leaves cost's settled state unchanged rather than comparing against a possibly unprobed first read.
Open
No activity in this phase yet.
Sign in to post a ripple.