Repository navigation
Conversation
…se-exposure tests Five tests fail on a Windows source checkout (issue morluto#10532). Two assert POSIX-only behavior and three hard-code POSIX path expectations. McpClientRegistration.formats: - The owned-directory permission test and the private-directory close-owner test assert verified_posix_modes, POSIX mode bits, and private-directory ownership. Windows reports requested_windows_modes and skips securePrivateDirectory, so guard both with it.skipIf(process.platform === "win32"). The existing runIf(win32) case already covers the Windows permission request and the semantic no-op. - The Windows case read the launcher command from .mcp.rea, but the Fx writer publishes the rea entry under mcpServers (fxConfigurationServersKey). Read .mcpServers.rea.command. ReleaseExposureReader: - The oversized-linker-map companion regex hard-coded a "/" separator; accept either separator. - The unreadable-member limitation names packaged members as `${hostFile}/${memberPath}` with a literal "/", matching the sibling expectations; drop the extra join segment. The sixth failure reported in the issue (EPERM creating a symlink) is environmental to this account and is intentionally out of scope. Fixes morluto#10532
Codex Review Summary: ❌ FailedThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The test changes appear safe to merge. SummaryThis test-only PR fixes five Windows failures while keeping the POSIX assertions unchanged.
Reviews (1) · Last reviewed commit: "test: fix five Windows-only failures in ..." · Reviewed by Greptile |
Summary
Fixes #10532. Five tests fail on a Windows source checkout; two assert POSIX-only
permission behavior and three hard-code POSIX path expectations. The change makes
them pass on Windows without weakening their POSIX coverage.
Problem and expected behavior
On Windows,
npm run test:localfails five tests:McpClientRegistration.formats.test.ts— the owned-directory permission test andthe private-directory close-owner test assert
verified_posix_modes, POSIX modebits, and private-directory ownership. Windows returns
requested_windows_modes,and
securePrivateDirectoryis skipped, so the injected close failure never fires.McpClientRegistration.formats.test.ts(therunIf(win32)case) — reads.mcp.rea, but the Fx writer publishes thereaentry undermcpServers(
fxConfigurationServersKey).ReleaseExposureReader.test.ts— the oversized-linker-map companion regex and theunreadable-member limitation hard-code
/separators.Expected: these tests pass on Windows while POSIX behavior elsewhere is unchanged.
Change and scope
it.skipIf(process.platform === "win32"), matching the existing convention in bothfiles. The
runIf(win32)case already covers the Windows permission request and thesemantic no-op.
.mcpServers.rea.command.packaged member as
${hostFile}/${memberPath}to match the sibling expectations.Test-only change; no production code is touched. The sixth failure reported in the issue
(EPERM creating a symlink) is environmental to this account and is intentionally not
changed.
Follow the contribution scope.
Not applicable — ordinary test fix within existing boundaries.
Contract and boundary impact
runtime change.
Expected effects:
Evidence and regression coverage
skipIf(win32); three havecorrected Windows expectations.
(reproduced locally on the current
main).lane remains the authority for it.
Validation performed
vitest run src/application/McpClientRegistration.formats.test.ts src/artifacts/ReleaseExposureReader.test.ts—1 failed | 288 passed | 13 skipped; the only failure is the excluded EPERM symlink test (ReleaseExposureReader source spellings).vitest runon both files with--testNamePatternfor the five tests — 5 pass (2 skipped on win32, 3 run and pass).oxfmt --checkon both files — clean.oxlinton both files — clean.node scripts/run-typescript.mjs --noEmit— no errors.npm run check:fast(pre-push hook) — typecheck and lint successful, architecture guards passed.Compatibility, safety, and release
Author readiness
Human owner: @Dev9269
Before merge
type(scope): outcome.