test: make workshop symlink tests compatible with Windows#97436
test: make workshop symlink tests compatible with Windows#97436aniruddhaadak80 wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 28, 2026, 3:14 AM ET / 07:14 UTC. Summary PR surface: Tests +27. Total +27 across 1 file. Reproducibility: yes. from source inspection: the new probe uses a different Windows link type than the test bodies it gates. I did not run a Windows host reproduction in this read-only pass. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Use one directory link helper for both the probe and all gated symlink setup, then add redacted Windows terminal proof for the touched workshop test. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: the new probe uses a different Windows link type than the test bodies it gates. I did not run a Windows host reproduction in this read-only pass. Is this the best way to solve the issue? No. The maintainable fix is to align the capability probe with the exact link type used by the gated tests, or to update the test setup to use the cross-platform link type consistently. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9c95abd49d45. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +27. Total +27 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
What Problem This Solves
Fixes an issue where several workspace-load symlink boundary tests were unconditionally skipped on Windows environments, even if the environment supports creating file and directory symlinks (like with Developer Mode enabled).
Why This Change Was Made
Replaces the hardcoded
process.platform !== "win32"skips with dynamic capability checks (canCreateDirectorySymlinksandcanCreateFileSymlinks). If file and directory symlinks are supported by the environment, the tests execute. Otherwise, they skip gracefully while keeping coverage active on capable hosts.User Impact
No user-visible product impact. This improves test portability and preserves regression coverage on capable Windows environments.
Evidence
vitest run src/skills/loading/workspace-load.test.tspasses.