Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeszack

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.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 6 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/19/2026, 8:01:03 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/19/2026, 7:34:31 PM

Sign in to post a ripple.