Repository navigation
test: hermeticize bootstrap fixtures - #528
Open
robinbraemer wants to merge 3 commits into
Open
robinbraemer wants to merge 3 commits into
robinbraemer wants to merge 3 commits into
Conversation
robinbraemer
force-pushed
the
fm/bootstrap-cmux-hermetic-q2
branch
from
July 13, 2026 21:30
1c9a0e5 to
e204ec1
Compare
0futuresystems
added a commit
to 0futuresystems/firstmate
that referenced
this pull request
Aug 10, 2026
Three host-dependent failures blocked tests/ here: - fm-bootstrap: the missing-tool fixture deleted node from the fake bin, but host node in /usr/bin still resolved, so the MISSING diagnostic never fired and the assertion failed. Assert on quota-axi, which exists only inside the fixture. - fm-calm-pi-extension, fm-busy-adapter-wiring: this Node build ships without TypeScript support (ERR_NO_TYPESCRIPT), so importing the .ts extensions failed outright. Load them through Pi's bundled jiti loader, matching the pattern fm-pi-watch-extension already used, and unwrap the extra default layer jiti introduces. - fm-backend-herdr-focus-flash-e2e: gate on Herdr >= 0.7.5 so older hosts skip with a stated reason instead of failing. Also replace a literal \x27 escape in an fm-pi-watch-extension error message, which would have printed the escape rather than an apostrophe. Deliberately not upstreamed: kunchenguid#1476 already fixes the fixture bug at a sibling call site with a better mechanism (it masks the lookup and keeps the original assertion), and kunchenguid#528 is open against fm-bootstrap.test.sh. Known remaining failure: once loading is unblocked, fm-calm-pi-extension still fails its legacy_away follow-up case. That assertion predates this change and is a known upstream failure, noted as separately queued in kunchenguid#1476.
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
Fix only the fm-bootstrap test fixture hermeticity defect at upstream baseline b708731. The suite must clear the inherited macOS __CFBundleIdentifier=com.cmuxterm.app cmux fallback marker when its default-backend fixtures intend tmux. Add one focused fixture regression, change only tests/fm-bootstrap.test.sh, preserve explicit cmux runtime-detection coverage, and do not modify production backend detection, documentation, or unrelated backend work.
What Changed
__CFBundleIdentifier, while preserving explicit cmux detection coverage.Risk Assessment
✅ Low: Captain, the narrow test-only patch now deterministically seeds and clears the inherited cmux marker, resolving the prior false-pass while preserving production behavior and explicit cmux coverage.
Testing
Completed 1 recorded test check.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
tests/fm-bootstrap.test.sh:37- Seed__CFBundleIdentifier=com.cmuxterm.appbefore exercising the fixture scrub. This assertion runs only after the file-levelunset, so it passes on normal CI where the marker was never present—even if the new sanitizer entry is later removed—making the regression environment-dependent.🔧 Fix: Captain, seed cmux marker for hermetic fixture regression
✅ Re-checked - no issues remain.
⏭️ **Test** - skipped
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"🔧 Fix: Captain: hermeticize bootstrap cmux fixture
1 error still open:
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"🔧 Fix: Captain, hermeticize bootstrap cmux fixture
1 error still open:
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"🔧 Fix: Captain, stabilize bootstrap fixture timing
1 error still open:
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.