You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deploy shell tests stop on macOS (BSD sed in #701's OIDC cases; two bash 3.2 stops) #720
Three deploy shell tests stop before finishing when run on macOS (they pass on Linux CI). Found while running the test suites on macOS after syncing a fork to main at dd0ce71.
sed: 1: "…": invalid command code f: two sed -i '/^…=/d' FILE lines. BSD sed reads the next word after -i as the backup suffix. The file's other sed -i lines already use the portable sed -i.bak … && rm -f ….bak form.
deploy/vm/tests/setup-vm.test.sh
bash 3.2 (macOS's /bin/bash)
line 338
mapfile: command not found (mapfile is bash 4+), in the settings-key check from b2bf8dd.
deploy/microvm/tests/build-snapshot.test.sh
bash 3.2
line 1319
vfs_out: unbound variable, in the virtio-fs preflight's scenarios (2b328a6). The cause isn't established yet.
The two bash 3.2 stops: either make the tests bash-3.2-safe (while read loops instead of mapfile, and a look at line 1319), or state that the deploy tests need bash 4+ (e.g. a version check at the top that says so). Happy to send either, whichever the maintainers prefer.
How to reproduce
On macOS, from a checkout of main:
bash deploy/vm/tests/setup-vm.test.sh # bash 5 on PATH: stops at the OIDC sed lines
/bin/bash deploy/vm/tests/setup-vm.test.sh # bash 3.2: stops at line 338 (mapfile)
/bin/bash deploy/microvm/tests/build-snapshot.test.sh # bash 3.2: stops at line 1319 (vfs_out)
A note on CI coverage, since deploy-scripts-bash32 passes on #725.
That job runs make test-deploy-bash32, which covers three tests chosen as bash-3.2-safe: deploy/k8s/tests/setup.test.sh, deploy/k8s/tests/smoke.test.sh and deploy/microvm/tests/setup-microvm.test.sh. The two bash 3.2 stops reported here are in tests outside that list: deploy/vm/tests/setup-vm.test.sh and deploy/microvm/tests/build-snapshot.test.sh. Their Linux runs use bash 5 and GNU sed, so neither the bash 3.2 stops nor the BSD-sed issue can show up in CI today.
So the open choice for these two tests is: make them 3.2-safe and add them to the target, or state that they need bash 4+ and GNU-compatible tools. #725 fixes only the sed lines, which are correct under both.
An update. The BSD-sed stop is fixed on main: #717's merge (e1d57b6) changed the two OIDC lines to sed -i.bak … && rm -f ….bak. With it, setup-vm.test.sh passes on macOS with bash 5. So #725 is closed as superseded.
Still open on main at d15b807 under macOS's bash 3.2:
deploy/vm/tests/setup-vm.test.sh stops at mapfile: command not found;
deploy/microvm/tests/build-snapshot.test.sh stops in its vfs_out scenarios.
The question from the issue stands: make these two 3.2-safe and add them to test-deploy-bash32, or state that they need bash 4+.
Activity
test(deploy/vm): setup-vm.test.sh's two OIDC sed -i lines are portable (
webchang commentedon Nov 12, 2026
A note on CI coverage, since
deploy-scripts-bash32passes on #725.That job runs
make test-deploy-bash32, which covers three tests chosen as bash-3.2-safe:deploy/k8s/tests/setup.test.sh,deploy/k8s/tests/smoke.test.shanddeploy/microvm/tests/setup-microvm.test.sh. The two bash 3.2 stops reported here are in tests outside that list:deploy/vm/tests/setup-vm.test.shanddeploy/microvm/tests/build-snapshot.test.sh. Their Linux runs use bash 5 and GNU sed, so neither the bash 3.2 stops nor the BSD-sed issue can show up in CI today.So the open choice for these two tests is: make them 3.2-safe and add them to the target, or state that they need bash 4+ and GNU-compatible tools. #725 fixes only the
sedlines, which are correct under both.fix(sbx): G50's seed runs SBX0's own worker binary and keeps its cach…
webchang commentedon Nov 12, 2026
An update. The BSD-
sedstop is fixed onmain: #717's merge (e1d57b6) changed the two OIDC lines tosed -i.bak … && rm -f ….bak. With it,setup-vm.test.shpasses on macOS with bash 5. So #725 is closed as superseded.Still open on
mainat d15b807 under macOS's bash 3.2:deploy/vm/tests/setup-vm.test.shstops atmapfile: command not found;deploy/microvm/tests/build-snapshot.test.shstops in itsvfs_outscenarios.The question from the issue stands: make these two 3.2-safe and add them to
test-deploy-bash32, or state that they need bash 4+.Assisted-By: Claude Code
test(deploy): setup-vm and build-snapshot tests run on macOS's bash 3.2