Skip to content

docs: note symlink EPERM in Windows source test failures - #7211

Merged
vincentkoc merged 1 commit into
morluto:mainfrom
KJLavender:docs/windows-symlink-tests
Nov 30, 2026
Merged

vincentkoc merged 1 commit into
morluto:mainfrom
KJLavender:docs/windows-symlink-tests

Conversation

@KJLavender

@KJLavender KJLavender commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CONTRIBUTING already warns that some source tests fail on a Windows checkout and lists the usual reasons (POSIX paths, #!/bin/sh stubs, rename semantics). Symlink creation is missing from that list, and on my machine it was the single most common cause. This adds one sentence for it.

Problem and expected behavior

On Windows, fs.symlink needs Developer Mode or an elevated shell. Without either, every test that builds a symlink fixture fails with EPERM: operation not permitted, symlink .... GitHub's Windows runners are elevated, so CI never sees it, and a contributor who hits it has nothing in the docs pointing at the cause.

Change and scope

Docs only: one sentence in the "Windows source checkouts" section of CONTRIBUTING.md. I didn't touch the tests. The failures are spread over 39 files and most Windows failures have other causes anyway, so a skip helper wouldn't make the suite green on Windows.

Contract and boundary impact

  • Semantic owner and earliest changed stage: not applicable (docs)

  • Contribution scope fit and linked maintainer decision: not applicable

  • CLI and MCP/tool-catalog contract: none

  • Provider, bridge, target-format, or platform compatibility: none

  • Evidence, artifact, provenance, or reconstruction contract: none

  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable

  • Generated metadata, package, or installation impact: none

  • Documentation or usability only; no target interaction.

Evidence and regression coverage

  • Tests added or updated: none
  • Base reproduction or other evidence: full vitest run on origin/main (1173c0a), Windows 11, Node 24.22.1, non-elevated shell, Developer Mode off. 12,063 tests: 733 failed, and 96 of those (in 39 files) fail with EPERM ... symlink. I went through six of those files by hand, and in each one the symlink calls were the only thing failing.
  • Remaining proof gaps: I haven't rerun with Developer Mode on or in an elevated shell. The claim rests on Windows' documented symlink privilege rules and on CI (elevated) passing these tests.

Validation performed

  • npm run docs:check: passed

Compatibility, safety, and release

  • Breaking changes or migration steps: none
  • Real Hopper/Ghidra, browser, or OS coverage: Windows 11 (measurement only)
  • Package or release metadata impact: none
  • Security, privacy, process, or containment review: none

Author readiness

Human owner: @KJLavender

  • 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.

@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only change appears safe to merge.

Summary

Adds a Windows troubleshooting note to CONTRIBUTING.md.

  • Windows contributors can trace symlink test failures to permission settings.

Reviews (2) · Last reviewed commit: "docs: note symlink EPERM in Windows sour..." · Reviewed by Greptile

@morluto morluto added area: tests Test suite and verification documentation Improvements or additions to documentation labels Nov 23, 2026
@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@KJLavender thanks for the PR — this branch has merge conflicts with main. Could you merge or rebase onto the latest main and resolve them? Once it's clean and CI is green we can take another look.
cc @gensokyo-dev @dandgabr

@KJLavender
KJLavender force-pushed the docs/windows-symlink-tests branch from cf97351 to c6b8eca Compare November 25, 2026 00:48
@KJLavender

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (8e4c1c5). The paragraph had been rewritten upstream, so I kept the new wording, including the parent-swap rename note and the moved testing link, and only added the symlink sentence. Still a 3-line docs change. npm run docs:check passes locally on Windows.

@KJLavender
KJLavender marked this pull request as ready for review November 25, 2026 01:03
@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-25T01:03:33.515994Z
We couldn’t complete this review. Comment @codex review to try again.
c6b8eca Draft marked ready
ℹ️ 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.

@vincentkoc
vincentkoc merged commit 28772e6 into morluto:main Nov 30, 2026
39 of 41 checks passed
@vincentkoc

Copy link
Copy Markdown
Collaborator

Thanks for documenting this! Merged after canonical review and documentation CI passed. The prerequisite also matches Node 24’s Windows implementation and Microsoft’s API documentation; no fresh Windows run was claimed.

vincentkoc added a commit to agnaylor/rea that referenced this pull request Nov 30, 2026
…410-windows-transport

* commit '28772e67d245661b4a66ef5a09353eafda483367': (674 commits)
  docs: note symlink EPERM in Windows source test failures (morluto#7211)
  fix(javascript): scope candidate this event receivers (morluto#4656)
  fix(config): validate target and loader options before printing MCP registrations (morluto#9279)
  fix(native): honor cancellation during PE alias expansion (morluto#9063)
  fix(audit): preserve env shebang argument ownership (morluto#14075)
  feat(evtx): inventory Windows event log records offline
  docs(skill): replace the staged workflow with the rules it encodes (morluto#10374)
  fix(hopper): clarify publisher verification failures
  fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222)
  feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154)
  perf(evidence): inspect retained records without building a bundle (morluto#15219)
  fix(process): report denied inspection as typed cleanup failures (morluto#9261)
  perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210)
  fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205)
  perf(png): reuse scanline storage in screenshot comparisons (morluto#15215)
  fix(javascript): respect Node HTTP path validation (morluto#9684)
  fix(windows): reject native addons with unusable delay-import tables (morluto#15216)
  feat(artifacts): inventory Android super image metadata (morluto#14928)
  fix(paths): reject dotted console device names for portability (morluto#15220)
  fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206)
  ...
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 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants