Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublic
AssigneesNone

Relationships

#5020 Flaky test: serve host restart after shutdown is refused as another host still running on the state folder

Opened by stack72 · 11/23/2026

integration/serve_host_test.ts, the test named: serve host: a second host on one state folder is refused, the first keeps serving, and a restart after shutdown starts (serve host work in swamp-club#4970 and swamp-club#4975).

Under load the restart step failed with:

UserError: Another swamp serve host is running on the state folder <tmp>/swamp-serve-host-<id>/data/host. Stop it first; one host runs per state folder.

So after the first host shut down, its hold on the state folder was still seen when the restart checked it. The restart appears to race the release of the first host's hold, which shutdown does not wait for, or the hold is judged live before its release lands.

Seen in a verify-build run on commit 82146ff7 (swamp-club#5017), whose change touches only extension install. The file passed 39 of 39, three times in a row, run alone, and a verify-build re-run on the same commit passed.

Expected: a restart after shutdown always starts. Either shutdown resolves only after the state-folder hold is released, or the test waits for the release before restarting.

02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/23/2026, 6:25:39 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.