Relationships
#4915 Flaky test: hosted workspace lock test loses its own lock under load
Opened by zack · 11/19/2026· Shipped 11/19/2026
src/libswamp/hosted_workspace/lifecycle_test.ts, test 'createHostedWorkspaceDeps: a change that cannot get the lock says the workspace is busy and names no host path', failed once in verify-build (shard 2) with UserError 'Workspace edge-dns is busy with another change. Retry in a moment.' thrown from deps.withLock at the test's own await of the holding call. The test starts a first withLock without waiting for it to acquire, then a second one with lockWaitMs 50; under parallel load the second can win the lock, so the first (meant to hold it) times out as busy. Passes locally on repeat. Fix: wait until the first withLock body is running (resolve a promise inside its callback) before starting the second.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.