Skip to content

fix(test): pin the platform in the Codex dispatcher render test - #1284

Closed
SaulMoro wants to merge 1 commit into
Tencent:mainfrom
SaulMoro:fix/codex-team-hooks-windows-pin
Closed

SaulMoro wants to merge 1 commit into
Tencent:mainfrom
SaulMoro:fix/codex-team-hooks-windows-pin

Conversation

@SaulMoro

Copy link
Copy Markdown
Collaborator

Summary

 describe('reconcileCodexDispatchers — the Windows override keeps the block contract (#1209)')
   beforeEach
+    pin process.platform to linux, reset the shell cache
   afterEach
+    reset the shell cache, restore mocks

#1210 pinned the POSIX bash -lc rendering in codex-team-hooks.test.ts. #1221 put that file on the Windows test list. The two landed separately, so main is red:

  • every Lint & Test leg fails windows-test-list.test.ts: a pinned POSIX rendering needs a pinned platform.
  • the Windows job fails the test itself: Windows renders "C:/Program Files/Git/bin/bash.exe" -lc ....

Evidence

  • Before: main at d9d0e0f, run 39734895938: Tests 1 failed | 11978 passed, codex-team-hooks.test.ts has no POSIX-only construct.
    After: npx vitest run src/__tests__/codex-team-hooks.test.ts src/__tests__/windows-test-list.test.ts: 31 passed. tsc --noEmit and npm run lint are clean.

Tests-only change, so no real-CLI record.

Merge Danger

Door: two-way

Blast Radius: test-only

Tencent#1210 pinned the POSIX `bash -lc` rendering in codex-team-hooks.test.ts,
and Tencent#1221 put that file on the Windows test list. On Windows the
command renders the Git Bash path, and the Windows list guard rejects a
pinned POSIX rendering in a file that does not pin the platform. Every
Lint & Test leg and the Windows job on main fail.
@SaulMoro

Copy link
Copy Markdown
Collaborator Author

Folded into #1283.

@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff.

The change is tests-only, and the PR description documents 31 passing targeted tests plus clean type-check and lint results. No real-CLI verification record is required.

Review was read-only; I did not run, build, or install anything from the PR.

@SaulMoro

Copy link
Copy Markdown
Collaborator Author

Superseded by #1287, which fixes the cause in getTeamHookDispatchCommand: Codex keeps bare bash, as getDispatchCommand already does. Pinning the test to linux is no longer needed.

@SaulMoro SaulMoro closed this Oct 22, 2026
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.

2 participants