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
[BUG] BATS detect_editor_cli 'neither cursor nor code' test is host-dependent #202
The BATS test for detect_editor_cli assumes PATH=\"/usr/bin:/bin\" contains neither cursor nor code, but on some hosts /usr/bin/code exists. This makes the test fail for environment reasons rather than script logic.
Steps to Reproduce
Check out branch feature/70-remote-devc-orchestration.
Run just build no_cache.
Run just check.
Observe failure in tests/bats/devc-remote.bats for:
detect_editor_cli fails when neither cursor nor code in PATH
Expected Behavior
The test should deterministically validate the "neither editor CLI found" path, independent of host-installed binaries.
Actual Behavior
On environments where code exists in /usr/bin, detect_editor_cli selects code and execution proceeds to SSH checks. The assertion expecting Neither cursor nor code fails.
Environment
OS: Linux 6.17.0-14-generic
Container Runtime: N/A (failure occurs before remote runtime checks)
Image Version/Tag: N/A
Architecture: AMD64
Additional Context
Observed output snippet:
ℹ Detecting local editor CLI...
✓ Using code
ℹ Checking SSH connectivity to myserver...
✗ Cannot connect to myserver. Check your SSH config and network.
Likely fix: isolate PATH in the test with an empty temp directory and invoke /bin/bash "$DEVC_REMOTE" under env -i to keep shebang behavior deterministic.
Activity
fix: make detect_editor_cli no-editor case deterministic
fix: make detect_editor_cli no-editor case deterministic (#203)