Skip to content

test: fix five Windows-only failures in registration-format and release-exposure tests - #11198

Closed
Dev9269 wants to merge 1 commit into
morluto:mainfrom
Dev9269:fix/windows-test-platform-10532
Closed

Dev9269 wants to merge 1 commit into
morluto:mainfrom
Dev9269:fix/windows-test-platform-10532

Conversation

@Dev9269

@Dev9269 Dev9269 commented Nov 15, 2026

Copy link
Copy Markdown

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:local fails five tests:

  • McpClientRegistration.formats.test.ts — the owned-directory permission test and
    the private-directory close-owner test assert verified_posix_modes, POSIX mode
    bits, and private-directory ownership. Windows returns requested_windows_modes,
    and securePrivateDirectory is skipped, so the injected close failure never fires.
  • McpClientRegistration.formats.test.ts (the runIf(win32) case) — reads
    .mcp.rea, but the Fx writer publishes the rea entry under mcpServers
    (fxConfigurationServersKey).
  • ReleaseExposureReader.test.ts — the oversized-linker-map companion regex and the
    unreadable-member limitation hard-code / separators.

Expected: these tests pass on Windows while POSIX behavior elsewhere is unchanged.

Change and scope

  • Guard the two POSIX-only registration tests with
    it.skipIf(process.platform === "win32"), matching the existing convention in both
    files. The runIf(win32) case already covers the Windows permission request and the
    semantic no-op.
  • Read the Windows launcher command from .mcpServers.rea.command.
  • Accept either path separator in the linker-map companion regex, and name the unreadable
    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

  • Semantic owner and earliest changed stage: none — test expectations only.
  • Contribution scope fit and linked maintainer decision: not applicable.
  • CLI and MCP/tool-catalog contract: none.
  • Provider, bridge, target-format, or platform compatibility: Windows test behavior; no
    runtime change.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details: not applicable.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: the five failing tests. Two are now skipIf(win32); three have
    corrected Windows expectations.
  • Base reproduction or other evidence: on the base revision all five fail on Windows
    (reproduced locally on the current main).
  • Remaining proof gaps: not re-run on Linux. POSIX behavior is unchanged, but CI's Linux
    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 run on both files with --testNamePattern for the five tests — 5 pass (2 skipped on win32, 3 run and pass).
  • oxfmt --check on both files — clean.
  • oxlint on 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

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: Windows source checkout; no provider lanes.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner: @Dev9269

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

…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
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T14:12:49.631542Z
We couldn’t complete this review. Comment @codex review to try again.
d2e06f5 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The test changes appear safe to merge.

Summary

This test-only PR fixes five Windows failures while keeping the POSIX assertions unchanged.

  • Registration tests check the right Fx table and skip POSIX-only cases on Windows.
  • Release reader tests accept Windows path spellings.

Reviews (1) · Last reviewed commit: "test: fix five Windows-only failures in ..." · Reviewed by Greptile

@morluto

morluto commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks for covering the five Windows failures. I compared both patches and am consolidating review in #10533, which covers the same five cases against the current registration owner. #10532 remains open until that fix lands.

@morluto morluto closed this Nov 18, 2026
@morluto morluto added the area: tests Test suite and verification label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Five registration-format and release-exposure tests fail on Windows

2 participants