Repository navigation
ci: exclude the Pi calm-mode test from every CI lane - #13
Merged
Merged
Conversation
…his PR; I ported upstream's two-line fix, but could not reproduce the race locally, so CI on the next push is the real proof. **What failed:** `tests/fm-remote-secondmate-trace-context.test.sh` and `tests/fm-spawn-compact-adviser-disable-remote.test.sh`, both with `fatal: failed to copy file to '.../.fm-home-provisioning.*/.git/objects/xx/<hash>': No such file or directory` -> `could not clone the remote Firstmate home`. **Not caused by this PR:** the same error failed main CI runs 37075553724 (serial 8), 37075456337, 37074879408 and 37072486298 (serial 7) on 2026-10-02. This PR's exclusion only reshuffled shards so both affected tests now sit in shard 8. **Fix:** `bin/fm-remote-home-provision.sh` now uses `git clone --no-local` for the remote home clone and the project clone, plus upstream's explanatory comment. This is the fix from upstream kunchenguid/firstmate commit e2668de (kunchenguid#6162); the file is now byte-identical to upstream's (`diff` printed `IDENTICAL to upstream`). The cause given in the comment (Git 2.55 on the CI image copying loose objects before the destination directory exists) is upstream's diagnosis, not something I confirmed. **Verification (local, macOS git 2.39.5, with the fix):** - `fm-remote-secondmate-trace-context`: exit=0, 6 ok, 0 not ok - `fm-spawn-compact-adviser-disable-remote`: exit=0, 2 ok, 0 not ok - `fm-remote-secondmate-parent-binding`: exit=0, 6 ok, 0 not ok - `fm-secondmate-sync`: exit=0, 32 ok, 0 not ok - `bash -n` passes; shellcheck reports only SC2034/SC1091 on lines 30, 145 and 147, which this change does not touch. **Not reproduced:** in an `alpine:edge` container with git 2.56.0, 40 local clones and 40 `--no-local` clones of the test fixture all succeeded, so the failure appears specific to the CI image's git 2.55.0. **Other notes:** - That same upstream commit is titled as also restoring Pi rendering in CI, so a future upstream sync may make the Pi test exclusion unnecessary. - Nothing is committed; the change is left in the worktree. - The verification pulled the `alpine:edge` Docker image onto this machine
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
Go ahead and remove for now.
Context: that answers an offer to take the Pi calm-mode test out of this repository's CI so it stops coming up.
tests/fm-calm-pi-extension.test.shfails the CI check "Behavior portable serial 2" on this fork (seen twice on 2026-10-04 on PR #12: "grep disappeared from /export calm.html HTML while calm mode was on"), and it also fails locally on main at a different step inside the installed Pi package. Pi is not used here: calm mode runs through a Claude mod. While the test stays in CI, every pull request on this repository shows that check red and cannot merge without the check being waived by name.What Changed
bin/fm-test-run.shgains aCI_EXCLUDED_TESTSlist (currently onlytests/fm-calm-pi-extension.test.sh) and anis_ci_excludedhelper.list_portable_serialskips listed scripts, so the Pi calm-mode test is no longer in the portable serial lane or its CI shards. The test file itself is kept.--check-coverage) now compares the lanes against the test inventory minusCI_EXCLUDED_TESTS, andtests/fm-test-run.test.shcounts the excluded script when checking that the lane union equals--list --all.docs/fm-test-portable-shards.md,docs/calm.md,CONTRIBUTING.md, and the coverage-guard comment in.github/workflows/ci.ymlnow describe the exclusion and point toCI_EXCLUDED_TESTSas its owner.Risk Assessment
✅ Low: A 13-line, CI-lane-only exclusion of one named test that leaves the file in place; listing every lane confirms the Pi test is absent from all of them and the coverage guard still passes, with no other CI job invoking it.
Testing
Drove the real test runner (bin/fm-test-run.sh), which owns CI lane membership, at base and target: listed all 13 lanes on both sides and diffed the CI unions, ran the coverage guard CI runs, confirmed the file is still selectable by path, by --all and by family, and ran the runner's own test file through the runner (40 checks ok, exit 0). In throwaway copies of the target tree, emptying the exclusion list put the test back in shard 2 with the guard passing at 244, and reverting only the guard filter made the guard fail naming the Pi test. A local run of the whole shard 2 lane was started and stopped unfinished: this Mac was 13 minutes into the first script (4 minutes on CI), so it would have run about an hour for a macOS stand-in of an Ubuntu check; its partial log was discarded. No UI surface, so no screenshots. Worktree left clean.
bin/fm-test-run.sh --check-coverageprints 'FM_TEST_COVERAGE ok' and exits 0bin/fm-test-run.sh tests/fm-test-run.test.sh: 40 ok, exit=0, FM_TEST_SUMMARY total=1 failed=0)Evidence: Lane membership, base vs target
Source: Lane membership, base vs target
base portable-serial-2of9 scripts=24 contains_pi_calm_test=YES target portable-serial-2of9 scripts=23 contains_pi_calm_test=no (every other lane: no) base CI total: 244 target CI total: 243 dropped from CI: tests/fm-calm-pi-extension.test.sh added to CI: (end)Evidence: Coverage guard passes; file still selectable
Source: Coverage guard passes; file still selectable
$ bin/fm-test-run.sh --check-coverage FM_TEST_COVERAGE ok total=243 parallel=24 ... serial=203 serial_shards=9 serial_unhinted=20 herdr=16 exit=0 $ bin/fm-test-run.sh --list tests/fm-calm-pi-extension.test.sh tests/fm-calm-pi-extension.test.sh exit=0Evidence: Restore path and guard still failing on a real gap
Source: Restore path and guard still failing on a real gap
CI_EXCLUDED_TESTS="" -> FM_TEST_COVERAGE ok total=244, test back in portable-serial-2of9 guard filter reverted -> fm-test-run: coverage guard: union of portable shards + portable serial + Herdr must equal tests/*.test.sh missing from union: tests/fm-calm-pi-extension.test.sh exit=1Evidence: Runner self-test log
Source: Runner self-test log
FM_TEST_END tests/fm-test-run.test.sh exit=0 duration_ms=546339 gate_skip=false FM_TEST_SUMMARY total=1 failed=0 skipped_gate=0Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-test-run.sh:659- The exclusion block is inserted between list_portable_serial's doc comment and the function, so the "portable serial remainder: every tests/.test.sh that is neither proven-isolated nor real-herdr-gated" comment now sits on top of CI_EXCLUDED_TESTS and is no longer true as written. The same claim is repeated and now overstated in docs/fm-test-portable-shards.md:45 and :97 ("cover every tests/.test.sh script"), the guard's failure message at bin/fm-test-run.sh:1126, and the ci.yml comment at .github/workflows/ci.yml:76-78. Move the CI_EXCLUDED_TESTS block above the lane comment and add "except CI_EXCLUDED_TESTS" to those statements so the next reader of a green coverage guard knows one test is deliberately outside it.bin/fm-test-run.sh:661- The exclusion covers CI lanes only, which is what the intent asks for. Local selections are untouched:bin/fm-test-run.sh --list --changed --base 63fe176on this very diff selects 45 tests including tests/fm-calm-pi-extension.test.sh (the runner-file map and the .pi/extensions and .claude/mods/firstmate-calm arms at lines 1516/1531/1544 name it), and--allstill lists it. The intent says this test also fails locally, so any local--changedrun after touching bin/fm-test-run.sh or the calm mod will still go red on it, including this run's own test step if it uses--changed. Not a defect in the change; extending the exclusion to local selections would be a scope decision beyond the stated intent.✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh --check-coverageprints 'FM_TEST_COVERAGE ok' and exits 0bin/fm-test-run.sh tests/fm-test-run.test.sh: 40 ok, exit=0, FM_TEST_SUMMARY total=1 failed=0)bin/fm-test-run.sh --list --lane <lane>for portable-parallel-1/2, portable-serial, portable-serial-1of9..9of9 and--list --family real-herdr-gated, at base 63fe176 (git archive copy in /tmp) and target fa27bda, thencommon the two CI unionsbin/fm-test-run.sh --check-coverageat target (exit 0, total=243)bin/fm-test-run.sh --list tests/fm-calm-pi-extension.test.sh,--list --all, and--list --family pure-contract-unitto confirm the file stays selectablebin/fm-test-run.sh tests/fm-test-run.test.sh(exit 0, 40 ok, includes the edited lane-union and coverage-guard check)Throwaway copy of target withCI_EXCLUDED_TESTS="":--check-coverageexit 0 total=244, test back in portable-serial-2of9Throwaway copy of target with the guard's exclusion filter reverted:--check-coverageexit 1, 'missing from union: tests/fm-calm-pi-extension.test.sh'bin/fm-test-run.sh --lane portable-serial-2of9 --fail-on-gate-skip 'Pi extension typecheck prerequisite not found'started, stopped unfinished after 13 minutes (not counted as evidence)docs/calm-mode-feasibility.md:19- The runner comment added by this change says tests/fm-calm-pi-extension.test.sh fails against the current Pi release, and the test is now out of CI. docs/calm-mode-feasibility.md (maintainer-verification) and docs/calm.md still present Pi Calm as verified by that test. I left those evidence records alone: correcting them needs a Pi re-verification, which is outside this change. docs/calm.md now carries a one-line pointer saying CI does not run the test. Follow-up when the exclusion is lifted or made permanent: re-run the test and refresh or retire the Pi evidence.✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.