Skip to content

test(themes): match the probed player path on a Windows host - #17852

Merged
kyle-sexton merged 1 commit into
mainfrom
fix-themes-windows-sound-test
Nov 21, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix-themes-windows-sound-test

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #17823.

Summary

On a Windows host, plugins/themes/hooks/bedroom/pieces/sound.test.ts fails, and the pre-push check-affected step then refuses every push from that host, whatever the branch touches.

Fix

The engine resolves /usr/bin/ffplay to D:\usr\bin\ffplay before the test's fs.exists stand-in sees it, so the stand-in never matched its player. The stand-in now drops the drive letter and turns backslashes into slashes before comparing. Test file only; no runtime change.

Verification

Related

🤖 Generated with Claude Code

On Windows the engine resolves /usr/bin/ffplay to D:\usr�infplay before
the fs.exists stand-in sees it, so the sound test never found its player and
failed there, blocking unrelated pushes through the pre-push check. The
stand-in now drops the drive letter and backslashes before comparing.

Closes #17823

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T07:31:01.613506Z fbd1596 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed fbd159689fa616de5226407df4c0a1177b5e8f9e: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found.

I read every hunk of both changed files:

  • plugins/themes/hooks/bedroom/pieces/sound.test.ts: one line changes in the test's fs.exists stand-in. Before comparing the probed path with /usr/bin/ffplay, it now removes the drive letter and turns backslashes into forward slashes. Only the test mock changes; no runtime code does. Nothing untrusted reaches it, and it touches no tokens, credentials, trust controls, hooks or manifests.
  • .changes/themes/fix-themes-windows-sound-test-b5568c50.md: a new changelog fragment (patch bump, one prose line). It gives no instructions and changes no control.

Neither file matches a trusted-path glob. No plugin manifest changed, and no standing instruction was deleted or weakened. The PR description matches the diff ("Test file only; no runtime change") and contains no embedded directives.

The change has no security-relevant surface, so it meets skip-gate item 2.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed fbd159689fa616de5226407df4c0a1177b5e8f9e: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

The PR changes only a test: the fs.exists stand-in in plugins/themes/hooks/bedroom/pieces/sound.test.ts. It now removes a leading drive letter and turns backslashes into forward slashes before comparing the path with /usr/bin/ffplay. It also adds a patch changelog fragment.

  • Correctness. sound.ts probes `${dir}/${name}` (sound.ts#L136). With PATH stubbed to /usr/bin, that path is /usr/bin/ffplay. On Linux the new comparison behaves exactly like the old one. On Windows it also matches the engine-resolved D:\usr\bin\ffplay. The stand-in still matches only ffplay, so the test still exercises the same player choice (platform: 'linux' is stubbed, so the powershell.exe probe is never reached).
  • Closing issue themes: the bedroom sound mod test fails on Windows and blocks unrelated pushes #17823. The criterion "The test passes on a Windows host … and check-affected no longer blocks unrelated pushes from Windows" is addressed by this change. The test itself would fail again on Windows if it regressed. The Windows pre-push pass is author-claimed and unverified: I ran nothing, and CI runs on Linux.
  • Loosened checks. Not a loosening. No assertion, expected value, skip or threshold changed. The fixture only normalizes host path formatting, and on Linux it accepts exactly what it accepted before.
  • Loosened checks would be marked: fail (default; the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt had no loosened_check_decision_record: line, so I did not check whether a citation was required.
  • Changelog fragment. bump: patch fits a test-only fix.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 5134334 Nov 21, 2026
46 checks passed
@kyle-sexton
kyle-sexton deleted the fix-themes-windows-sound-test branch November 21, 2026 07:51
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 21, 2026
kyle-sexton added a commit that referenced this pull request Nov 21, 2026
The Windows sound-test fix landed on main in #17852 with its own change
note, so this branch's copy would list the same fix twice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

themes: the bedroom sound mod test fails on Windows and blocks unrelated pushes

1 participant