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-fs-cp-async-socket` / `test-fs-cp-sync-copy-socket-error` failure on Darwin (path length) · Issue #66324 · nodejs/node

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

New issue
Copy link
New issue
Copy link
Closed
#66329
Closed
test-fs-cp-async-socket / test-fs-cp-sync-copy-socket-error failure on Darwin (path length)#66324
#66329
Copy link
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.testIssues and PRs related to Node.js core tests and test infrastructure.v26.xIssues that can be reproduced on v26.x or PRs targeting the v26.x-staging branch.

Description

@MikeMcC399
MikeMcC399
opened on Sep 26, 2026
Issue body actions

Refs: #66259 (comment)

Situation

https://github.com/nodejs/node/blob/v26.x/test/parallel/test-fs-cp-async-socket.mjs &
https://github.com/nodejs/node/blob/v26.x/test/parallel/test-fs-cp-sync-copy-socket-error.mjs

fail when running in GitHub Actions
https://github.com/nodejs/node/blob/v26.x/.github/workflows/test-shared.yml and only in the darwin (macOS) jobs:

  • x86_64-darwin: with shared libraries
  • aarch64-darwin: with shared libraries

#66163 showed the error when it was landed in 151845a

address: '/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock'

shows a path length of 106 characters

$ echo "/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock" | wc -c
106

sun_path is limited to 104 bytes on macOS (typically 103 bytes + terminating NUL), so the path described above exceeds the limits.

Cloning the node repo to Ubuntu under a long path, such as A23456789-B23456789-C23456789-D23456789-E23456789-F23456789-G also allows reproduction with:

python3 tools/test.py parallel/test-fs-cp-async-socket.mjs

Logs

See https://github.com/nodejs/node/actions/runs/35540304798/job/106156822961

=== release test-fs-cp-async-socket ===
Path: parallel/test-fs-cp-async-socket
Error: --- stderr ---
node:events:505
    throw er; // Unhandled 'error' event
    ^

Error: listen EINVAL: invalid argument /Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock
    at Server.setupListenHandle [as _listen2] (node:net:2368:21)
    at listenInCluster (node:net:2499:12)
    at Server.listen (node:net:2641:5)
    at file:///Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/parallel/test-fs-cp-async-socket.mjs:29:10
    at ModuleJob.run (node:internal/modules/esm/module_job:569:25)
    at async node:internal/modules/esm/loader:650:26
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:105:5)
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:2478:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  code: 'EINVAL',
  errno: -22,
  syscall: 'listen',
  address: '/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock',
  port: -1
}

Node.js v26.10.0
Command: out/Release/node /Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/parallel/test-fs-cp-async-socket.mjs
=== release test-fs-cp-sync-copy-socket-error ===
Path: parallel/test-fs-cp-sync-copy-socket-error
Error: --- stderr ---
node:internal/modules/run_main:111
    triggerUncaughtException(
    ^

AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected

  Comparison {
+   code: 'ENOENT'
-   code: 'ERR_FS_CP_SOCKET'
  }

    at file:///Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/parallel/test-fs-cp-sync-copy-socket-error.mjs:29:10
    at ModuleJob.run (node:internal/modules/esm/module_job:569:25)
    at async node:internal/modules/esm/loader:650:26
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:105:5) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: Error: ENOENT: no such file or directory, lstat '/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1235/copy_%1/42922.sock'
      at cpSyncFn (node:internal/fs/cp/cp-sync:56:13)
      at cpSync (node:fs:3846:3)
      at assert.throws.code (file:///Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/parallel/test-fs-cp-sync-copy-socket-error.mjs:30:11)
      at getActual (node:assert:580:5)
      at assert.throws (node:assert:728:24)
      at file:///Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/parallel/test-fs-cp-sync-copy-socket-error.mjs:29:10
      at ModuleJob.run (node:internal/modules/esm/module_job:569:25)
      at async node:internal/modules/esm/loader:650:26
      at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:105:5) {
    errno: -2,
    code: 'ENOENT',
    syscall: 'lstat',
    path: '/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1235/copy_%1/42922.sock'
  },
  expected: { code: 'ERR_FS_CP_SOCKET' },
  operator: 'throws',
  diff: 'simple'
}

Activity

  1. MikeMcC399
    added
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Sep 26, 2026
  2. maksim-romanov
    added a commit that references this issue on Sep 26, 2026

    test: use common.PIPE in fs.cp socket tests

    1f56017
  3. aduh95
    added
    v26.xIssues that can be reproduced on v26.x or PRs targeting the v26.x-staging branch.
    on Sep 27, 2026
  4. MikeMcC399 commented on Sep 27, 2026

    @MikeMcC399
    MikeMcC399
    on Sep 27, 2026
    MemberAuthor
    More actions

    Although this issue has had the label v26.x Issues that can be reproduced on v26.x or PRs targeting the v26.x-staging branch. applied, it is also reproducible in the main branch. It just needs the node clone to be located on a long path.

    Testing on Ubuntu 26.04.1 LTS, I used an additional path under my /home/mike directory ~/A23456789-B23456789-C23456789-D23456789-E23456789-F23456789-G which made it long enough to reproduce the issue.

  5. MikeMcC399
    added
    flaky-testIssues and PRs involving tests that fail intermittently in CI.
    on Sep 27, 2026
  6. nodejs-github-bot
    added a commit that references this issue on Sep 28, 2026

    test: use common.PIPE in fs.cp socket tests

    ae9c25a
  7. nodejs-github-bot
    closed this as completedin #66329on Sep 28, 2026
  8. aduh95
    added 2 commits that reference this issue on Sep 28, 2026

    test: use common.PIPE in fs.cp socket tests

    886ae21

    test: use common.PIPE in fs.cp socket tests

    886fd32
  9. HoonDongKang
    added a commit that references this issue on Sep 29, 2026

    test: use common.PIPE in fs.cp socket tests

    895f862
  10. aduh95
    added 2 commits that reference this issue on Oct 23, 2026

    test: use common.PIPE in fs.cp socket tests

    6ee1f6d

    test: use common.PIPE in fs.cp socket tests

    762fd1d
  11. aduh95
    added a commit that references this issue on Nov 11, 2026

    test: use common.PIPE in fs.cp socket tests

    a9da8e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testIssues and PRs involving tests that fail intermittently in CI.testIssues and PRs related to Node.js core tests and test infrastructure.v26.xIssues that can be reproduced on v26.x or PRs targeting the v26.x-staging branch.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.