Repository navigation
fix(conformance): exit the soak when it finishes and record its status - #145
Merged
Merged
Conversation
The runner kept its timers and sockets alive after writing the final report, so a completed soak never exited: with --restart unless-stopped the container stayed up forever and a finished run looked like a running one. Clear the timers, close the sockets, stop the engine and the bucket, and exit 0 (a non-zero exit would make the restart policy start the finished soak again). Also treat a signal-killed engine as dead when deciding whether to restart after a fault: a child killed by a signal has a null exitCode, so the old check never restarted it. Record the harness validation run and the 14-day procedure in docs/conformance/soak.md, with the run's report.json and daily report. Co-authored-by: autopilot <kimiflare@proton.me> Signed-off-by: Sina Meraji <sina.meraji@gmail.com>
sinameraji
marked this pull request as ready for review
November 2, 2026 09:05
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.
Refs #114. This does not close the issue: the 14-day run is still the gate.
What this does
Fixes a harness defect that would have hidden a finished run.
soak.jskept itssetIntervaltimers and its WebSocket reconnect loop alive after writing the final report, so the process never exited. Under the documenteddocker run -d --restart unless-stopped, a completed 14-day soak would have stayedUpforever and looked identical to a running one. The runner now clears its timers, closes the sockets, stops the engine and SeaweedFS, and exits 0. It exits 0 on purpose: a non-zero exit would make the restart policy start the finished soak again.Fixes the restart check after a fault.
injectFault's recovery path testedengine?.exitCode !== null, but a child killed by a signal has a nullexitCode, so an engine that died during a fault was never restarted. It now checks bothexitCodeandsignalCode.Records the soak. New
docs/conformance/soak.mdcovers what the harness checks, how to run the 14-day soak on a Linux host with a dedicated small disk, what to record, and the current status.docs/conformance/results.mdlinks to it.Validation run
Two 0.5-hour runs (
SOAK_DAYS=0.02, faults every 2 minutes) on macOS arm64 under Docker Desktop againstserverless-objects0.13.6. The second run's artifacts are committed asdocs/conformance/soak-validation-2026-11-02.{json,md}:kill93,sigterm3,wipe-restore2,crash-thread2; the first run also injectedbucket-outagewipe-restorefaults lost nothing acknowledged and excused nothing, as durable mode shoulddisk-fullskipped in both runs (the data directory was not its own small disk)The container now exits cleanly at the end of a run, which is how the exit fix was verified.
Still open
The 14-day run itself. It needs a Linux host that stays up, with the data directory on its own filesystem of 8 GB or less so
disk-fullruns. The procedure and the fields to record are indocs/conformance/soak.md.