test(update): spell expected mise owner paths the way the detector reports them - #5685
Conversation
…ports them On Windows two update-mise tests failed in a lane=all run (windows 7/9): the detector reports installPath and toolRoot for a drive-letter or UNC path with forward slashes, so the lexical and resolved candidates compare in one spelling, while the fixture built its expectations with native path.join (backslashes). Detection itself was correct: installer, tool, backend and install boundary all matched, and the 8.3 RUNNER~1 prefix was identical on both sides. The fixture now spells its expected owner paths through reportedPath, and a platform-independent test pins the reported spelling for backslash and forward-slash Windows inputs, so a change to it fails on every OS instead of only on the Windows shards.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe update adds Windows path normalization to install ownership test expectations. It also adds coverage for detector results when Windows package paths use mixed separators. ChangesInstall ownership path tests
Priority: ⚪ Not assessed Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Merge Risk: ⚪ Minimal · up to The updated tests consistently expect forward-slash Windows owner paths and add coverage for mixed separators. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
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 |
리뷰 · 우선순위 34 / 80이 PR은 테스트만 고칩니다. 베이스는 윈도우에서 mise 설치 경로를 보는 테스트 두 개가 실패했습니다. 실행 35857034366의 windows 7/9입니다. 감지기 기대 경로를 경로를 소문자로 맞춰 비교하는 안은 이번 커밋에 없습니다. 대소문자를 구분하는 디스크에서 다른 폴더를 하나로 볼 수 있습니다. tests/update/update-mise.test.ts:136 - 113행부터 135행은 감지기 tests/update/update-mise.test.ts:28 - 주석은 UNC 경로도 슬래시로 보고한다고 적습니다. 새 테스트가 넣는 경로는 메인테이너의 판단이 필요한 지점 너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
|
Summary
Two
tests/update/update-mise.test.tscases from #5682 failed on Windows in alane=allrun (run 35857034366, jobwindows 7/9):recognises a custom data directory, local alias, and nested aube packageanduses the resolved exact version behind a floating link.The defect was in the fixture, not in detection.
src/update/install-detection.mjsreportsinstallPathandtoolRootfor a drive-letter or UNC path with forward slashes, so lexical and resolved candidates compare in one spelling; the fixture built its expectations with nativepath.join(backslashes). In the failing job, installer, tool, backend and install boundary all matched; only the separators differed, and the 8.3RUNNER~1prefix was identical on both sides.installPath/toolRoothave no consumer outside the detector.reportedPath, the detector's own convention.No source change. A proposed normalisation of
realpathresults insameDirectorywas dropped after review: case-folding there could equate distinct directories on case-sensitive volumes, and this failure does not need it. Two pre-existing detector limits were noted in review and are not changed here: an 8.3 spelling inside the mise tool directory name itself, and slash-form UNC paths (//server/share).Refs #5682
Verification
bun test tests/update/update-mise.test.ts tests/update/update-pnpm.test.ts— 47 pass, 0 fail (macOS)bun run typecheck,bun run structure:check,git diff --check— passgh workflow run ci.yml --ref codex/260923-bundle-g-mise-windows-fix -F lane=all— Windows shards 1/9 to 9/9 are the proof for this change; result in the comments below once complete.Checklist
Summary by CodeRabbit