Skip to content

test(server): CodexDriver auth.json watch test no longer needs codex on PATH - #114

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
t3/fix-codex-auth-watch-test
Nov 12, 2026
Merged

ScriptedAlchemy merged 1 commit into
mainfrom
t3/fix-codex-auth-watch-test

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Why

The required Fork Check is red on main and on every PR. One test, "probes again when auth.json in the Codex home changes", times out after 120 s on CI. It passes only on machines that have codex on PATH, and CI runners do not.

What changed

  • The test gives the driver an explicit binary path, so the driver skips the PATH lookup.

Scope

  • Covers this one test. Driver code is unchanged.
  • Without codex on PATH, the driver calls CodexInstallation.acquire. The shared test mock has no acquire, so the probe failed before it spawned and the test waited forever. Production uses the real installation service and is not affected.

Blast Radius

Test-only. While main stays red, auto-merge is blocked on every fork PR, including #113.

Verification

  • With codex removed from PATH, the test failed before the fix (timed out in 120000ms). After the fix, all 21 tests in CodexDriver.test.ts pass, with and without codex on PATH.
  • Mutation check: with the driver's auth.json filter broken, the test fails on a host without codex. It still detects a broken watch.
  • vp run check:changed passes.

Done by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

…on PATH

On a host without codex on PATH the driver asks the mocked CodexInstallation
to acquire a binary. The mock has no acquire, so the probe dies before it
spawns and the test waits for a probe that never comes. CI runners have no
codex, so the test timed out on every run, main included.

Give the test an explicit binary path so the driver skips the PATH lookup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d2e6857

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy enabled auto-merge (squash) November 12, 2026 23:14
@ScriptedAlchemy
ScriptedAlchemy merged commit 9bfcdc4 into main Nov 12, 2026
17 checks passed
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.

1 participant