GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: use common.PIPE in fs.cp socket tests by maksim-romanov · Pull Request #66329 · nodejs/node

Conversation

@maksim-romanov

@maksim-romanov maksim-romanov commented Sep 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Both tests created the socket at an absolute path under tmpdir/copy_%1/. On the x86_64-darwin and aarch64-darwin shared-library jobs that path is 106 bytes, over the 104-byte sun_path limit on macOS, so listen() fails with EINVAL and cpSync() then sees ENOENT instead of ERR_FS_CP_SOCKET.

Both tests now use common.PIPE, which is relative to the cwd, as the other pipe tests do.

I reproduced both failures locally by running the tests from a checkout with a 132-character path; they pass with this change (20 runs each, from both the long path and a regular checkout).

test-fs-cp-async-special-files-in-tree hits the same limit but only skips its socket case, and common.PIPE doesn't fit there since the socket has to live inside the copied tree, so I've left it for a separate change.

Fixes: #66324

Assisted-by: Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MikeMcC399 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. labels Sep 26, 2026
@github-actions

github-actions Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Welcome to Node.js, and thank you for your first contribution!

Before review, please take a moment to read:

  • the guide for first-time contributors
  • the contribution and automation policies
  • the pull request guide
  • the AI use policy
  • the Code of Conduct

Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maksim-romanov
test: use common.PIPE in fs.cp socket tests
1f56017
The socket was created under a nested tmpdir using an absolute path,
which can exceed the 104-byte sun_path limit on macOS when the
checkout lives in a long directory. common.PIPE uses a path relative
to the cwd, as the other pipe tests do.

Fixes: nodejs#66324
Assisted-by: a closed-source coding agent
Signed-off-by: Maksim Romanov <[email protected]>
@maksim-romanov
maksim-romanov force-pushed the test-fs-cp-socket-path branch from 2da8df2 to 1f56017 Compare September 26, 2026 20:07
panva
panva approved these changes Sep 26, 2026
View reviewed changes
@panva panva added flaky-test Issues and PRs involving tests that fail intermittently in CI. author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Sep 26, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 26, 2026
@nodejs-github-bot

nodejs-github-bot commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/77975/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lpinca
lpinca approved these changes Sep 26, 2026
View reviewed changes
@codecov

codecov Bot commented Sep 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.36%. Comparing base (d35c89e) to head (1f56017).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66329      +/-   ##
==========================================
- Coverage   90.36%   90.36%   -0.01%     
==========================================
  Files         790      790              
  Lines      274657   274657              
  Branches    52587    52592       +5     
==========================================
- Hits       248207   248181      -26     
- Misses      16935    16945      +10     
- Partials     9515     9531      +16     

see 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@panva panva added the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 27, 2026
atlowChemi
atlowChemi approved these changes Sep 27, 2026
View reviewed changes
This was referenced Sep 28, 2026
[v26.x] deps: upgrade npm to 11.20.0 #66259
Closed
[v26.x] tools: skip failing tests on test-shared #66323
Closed
@nodejs-github-bot
nodejs-github-bot merged commit ae9c25a into nodejs:main Sep 28, 2026
80 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Landed in ae9c25a

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 28, 2026
aduh95 pushed a commit that referenced this pull request Sep 28, 2026
@maksim-romanov @aduh95
test: use common.PIPE in fs.cp socket tests
886ae21
The socket was created under a nested tmpdir using an absolute path,
which can exceed the 104-byte sun_path limit on macOS when the
checkout lives in a long directory. common.PIPE uses a path relative
to the cwd, as the other pipe tests do.

Fixes: #66324
Assisted-by: a closed-source coding agent
Signed-off-by: Maksim Romanov <[email protected]>
PR-URL: #66329
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 28, 2026
@maksim-romanov @aduh95
test: use common.PIPE in fs.cp socket tests
886fd32
The socket was created under a nested tmpdir using an absolute path,
which can exceed the 104-byte sun_path limit on macOS when the
checkout lives in a long directory. common.PIPE uses a path relative
to the cwd, as the other pipe tests do.

Fixes: #66324
Assisted-by: a closed-source coding agent
Signed-off-by: Maksim Romanov <[email protected]>
PR-URL: #66329
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
HoonDongKang pushed a commit to HoonDongKang/node that referenced this pull request Sep 29, 2026
@maksim-romanov @HoonDongKang
test: use common.PIPE in fs.cp socket tests
895f862
The socket was created under a nested tmpdir using an absolute path,
which can exceed the 104-byte sun_path limit on macOS when the
checkout lives in a long directory. common.PIPE uses a path relative
to the cwd, as the other pipe tests do.

Fixes: nodejs#66324
Assisted-by: a closed-source coding agent
Signed-off-by: Maksim Romanov <[email protected]>
PR-URL: nodejs#66329
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
@github-actions github-actions Bot mentioned this pull request Oct 5, 2026
2026-10-07, Version 26.11.0 (Current) #66546
Merged
aduh95 pushed a commit that referenced this pull request Oct 23, 2026
@maksim-romanov @aduh95
test: use common.PIPE in fs.cp socket tests
6ee1f6d
The socket was created under a nested tmpdir using an absolute path,
which can exceed the 104-byte sun_path limit on macOS when the
checkout lives in a long directory. common.PIPE uses a path relative
to the cwd, as the other pipe tests do.

Fixes: #66324
Assisted-by: a closed-source coding agent
Signed-off-by: Maksim Romanov <[email protected]>
PR-URL: #66329
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
aduh95 pushed a commit that referenced this pull request Oct 28, 2026
@maksim-romanov @aduh95
test: use common.PIPE in fs.cp socket tests
762fd1d
The socket was created under a nested tmpdir using an absolute path,
which can exceed the 104-byte sun_path limit on macOS when the
checkout lives in a long directory. common.PIPE uses a path relative
to the cwd, as the other pipe tests do.

Fixes: #66324
Assisted-by: a closed-source coding agent
Signed-off-by: Maksim Romanov <[email protected]>
PR-URL: #66329
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
@leapmux-renovate leapmux-renovate Bot mentioned this pull request Nov 1, 2026
chore(deps): Update Node.js to v26 leapmux/leapmux#578
Merged
aduh95 pushed a commit that referenced this pull request Nov 11, 2026
@maksim-romanov @aduh95
test: use common.PIPE in fs.cp socket tests
a9da8e4
The socket was created under a nested tmpdir using an absolute path,
which can exceed the 104-byte sun_path limit on macOS when the
checkout lives in a long directory. common.PIPE uses a path relative
to the cwd, as the other pipe tests do.

Fixes: #66324
Assisted-by: a closed-source coding agent
Signed-off-by: Maksim Romanov <[email protected]>
PR-URL: #66329
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2026-11-30, Version 24.23.0 'Krypton' (LTS) #67663
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@panva panva panva approved these changes
@lpinca lpinca lpinca approved these changes
@atlowChemi atlowChemi atlowChemi approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. flaky-test Issues and PRs involving tests that fail intermittently in CI. needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

test-fs-cp-async-socket / test-fs-cp-sync-copy-socket-error failure on Darwin (path length)

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@maksim-romanov @nodejs-github-bot @panva @lpinca @atlowChemi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.