Repository navigation
Conversation
The interrupt-cleanup assertion required TMPDIR to be entirely empty after an interrupted snapshot. On hosts without timeout, gtimeout, or perl, the bash timeout fallback in bin/fm-timeout-lib.sh leaves fm-bash-timeout-command.* files directly in TMPDIR, so the assertion failed for a file the snapshot does not own. - Assert only fm-fleet-snapshot.* residue, one level deep under TMPDIR. - Add a bash-fallback test that forces FM_TIMEOUT_MECHANISM_OVERRIDE=bash so it runs on every host, with no skip branch. It seeds one crew row so the snapshot reaches a timed collector, and it fails unless the fallback's own temp entry appears during the run. - Add a negative control: planted snapshot residue fails the assertion, and fallback files are ignored.
This was referenced Nov 17, 2026
Owner
Author
|
Superseded by #277 (merged). |
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.
Intent
fm-fleet-snapshot tests: the interrupt-cleanup assertion in tests/fm-fleet-snapshot-view.test.sh (test_interrupted_snapshot_leaves_no_temp_files) requires TMPDIR to be entirely empty after an interrupted bin/fm-fleet-snapshot.sh run, which is overbroad on hosts lacking timeout/perl: the bin/fm-timeout-lib.sh bash fallback leaves fm-bash-timeout-command.* files directly in TMPDIR. An earlier fix, #39, narrowed the assertion to snapshot-owned temp files, but it is months stale (hundreds of commits behind main) and its review raised two findings: the new fallback test skips whenever timeout/gtimeout/perl exist, so it never runs; and one find in the narrowed check is unreachable.
What Changed
Final changed paths and statuses:
Risk Assessment
✅ Low: The change is test-only. It narrows the cleanup assertion to snapshot-owned residue and adds a fallback test that forces the bash timeout path through the real FM_TIMEOUT_MECHANISM_OVERRIDE=bash hook. That test waits for the fallback's own temp file, so it can't pass without reaching the fallback. A negative-control test covers the assertion. I did not run the tests, per review rules.
Testing
Ran the changed test file end to end. The default interrupt test, the new bash-timeout-fallback interrupt test (forced via FM_TIMEOUT_MECHANISM_OVERRIDE=bash, so it does not skip), and the planted-residue negative control all pass. The baseline suite had already passed. The worktree is clean.
Evidence: test output
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh --changed --exclude-family real-herdr-gated --exclude-quarantined --pc02-if-idlebash tests/fm-fleet-snapshot-view.test.sh(full file, exit 0)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.