[codex] Fix Windows workspace CI tests#1056
Conversation
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR updates two workspace test files to handle platform-robust path canonicalization and improve PATH environment variable detection. Changes include computing the correct PATH-like environment variable key dynamically (case-insensitive), using canonicalized paths in VS Code editor assertions, and refining opener selection validation logic. ChangesPlatform-Robust Path Handling in Workspace Tests
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
alfred-openspec
left a comment
There was a problem hiding this comment.
Looks good. CI is green and the Windows path expectations line up with the implementation.
Summary
Fixes the failing main CI Windows test job by aligning the workspace tests with the intended Windows path behavior.
Root cause
The latest
mainCI failure was inTest (windows-pwsh)for workflow run25415627238. The workspace implementation canonicalizes existing Windows paths before persisting or using them in generated workspace surfaces, expanding short temp aliases likeC:\Users\RUNNER~1\...to long paths likeC:\Users\runneradmin\.... A few test assertions for generated.code-workspacefiles and unavailable-opener messages still expected the short alias.One interactive test also replaced
PATHwith only a fake bin directory. On Windows that can remove the system shell path needed to launch a.cmdshim, leavingprocess.exitCodeset to1even though the fake opener was meant to succeed.Changes
Validation
pnpm vitest run test/commands/workspace.test.ts test/commands/workspace.interactive.test.tspnpm testpnpm run buildpnpm exec tsc --noEmitpnpm lintSummary by CodeRabbit
Release Notes