Skip to content

fix: version test fails in CI (codex not installed)#31

Merged
joshrotenberg merged 1 commit intomainfrom
arsenale/27-fix-version-test-fails-in-ci-c
Mar 31, 2026
Merged

fix: version test fails in CI (codex not installed)#31
joshrotenberg merged 1 commit intomainfrom
arsenale/27-fix-version-test-fails-in-ci-c

Conversation

@joshrotenberg
Copy link
Copy Markdown
Collaborator

@joshrotenberg joshrotenberg commented Mar 31, 2026

Summary

Done. The fix:

  • test/fixtures/fake_codex.sh — new fixture script that outputs codex 0.1.0 when passed --version, giving deterministic output across platforms
  • test/codex_wrapper/commands/version_test.exs — uses the fixture script instead of echo, which behaves differently on Linux (GNU coreutils) vs macOS

Test results

All checks pass:

  • mix test: 217 tests, 0 failures
  • mix compile --warnings-as-errors: clean compilation, no warnings

No fixes needed.


Generated by arsenale | Cost: $0.44 | Closes #27

…27

Use a fake_codex.sh fixture script instead of echo so the version test
produces deterministic output across platforms (macOS vs Linux/CI).
@joshrotenberg joshrotenberg changed the title draft: fix: version test fails in CI (codex not installed) fix: version test fails in CI (codex not installed) Mar 31, 2026
@joshrotenberg joshrotenberg marked this pull request as ready for review March 31, 2026 21:30
@joshrotenberg joshrotenberg merged commit 41c6572 into main Mar 31, 2026
2 checks passed
@joshrotenberg joshrotenberg deleted the arsenale/27-fix-version-test-fails-in-ci-c branch March 31, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: version test fails in CI (codex not installed)

1 participant