Title: `test-fs-cp-async-socket` / `test-fs-cp-sync-copy-socket-error` failure on Darwin (path length) · Issue #66324 · nodejs/node · GitHub
Open Graph Title: `test-fs-cp-async-socket` / `test-fs-cp-sync-copy-socket-error` failure on Darwin (path length) · Issue #66324 · nodejs/node
X Title: `test-fs-cp-async-socket` / `test-fs-cp-sync-copy-socket-error` failure on Darwin (path length) · Issue #66324 · nodejs/node
Description: 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 Git...
Open Graph Description: 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-s...
X Description: 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-co...
Opengraph URL: https://github.com/nodejs/node/issues/66324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test-fs-cp-async-socket` / `test-fs-cp-sync-copy-socket-error` failure on Darwin (path length)","articleBody":"Refs: https://github.com/nodejs/node/pull/66259#issuecomment-5836477902\n\n## Situation\n\nhttps://github.com/nodejs/node/blob/v26.x/test/parallel/test-fs-cp-async-socket.mjs &\nhttps://github.com/nodejs/node/blob/v26.x/test/parallel/test-fs-cp-sync-copy-socket-error.mjs\n\nfail when running in GitHub Actions\nhttps://github.com/nodejs/node/blob/v26.x/.github/workflows/test-shared.yml and only in the darwin (macOS) jobs:\n\n- x86_64-darwin: with shared libraries\n- aarch64-darwin: with shared libraries\n\nhttps://github.com/nodejs/node/pull/66163 showed the error when it was landed in https://github.com/nodejs/node/commit/151845ab90d3926ceb36eedf1eade09619c3adc9\n\n`address: '/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock'`\n\nshows a path length of 106 characters\n\n```console\n$ echo \"/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock\" | wc -c\n106\n```\n\n`sun_path` is limited to 104 bytes on macOS (typically 103 bytes + terminating `NUL`), so the path described above exceeds the limits.\n\nCloning the `node` repo to Ubuntu under a long path, such as `A23456789-B23456789-C23456789-D23456789-E23456789-F23456789-G` also allows reproduction with:\n\n```shell\npython3 tools/test.py parallel/test-fs-cp-async-socket.mjs\n```\n\n## Logs\n\nSee https://github.com/nodejs/node/actions/runs/35540304798/job/106156822961\n\n```console\n=== release test-fs-cp-async-socket ===\nPath: parallel/test-fs-cp-async-socket\nError: --- stderr ---\nnode:events:505\n throw er; // Unhandled 'error' event\n ^\n\nError: listen EINVAL: invalid argument /Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock\n at Server.setupListenHandle [as _listen2] (node:net:2368:21)\n at listenInCluster (node:net:2499:12)\n at Server.listen (node:net:2641:5)\n at file:///Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/parallel/test-fs-cp-async-socket.mjs:29:10\n at ModuleJob.run (node:internal/modules/esm/module_job:569:25)\n at async node:internal/modules/esm/loader:650:26\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:105:5)\nEmitted 'error' event on Server instance at:\n at emitErrorNT (node:net:2478:8)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n code: 'EINVAL',\n errno: -22,\n syscall: 'listen',\n address: '/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1214/copy_%1/42770.sock',\n port: -1\n}\n\nNode.js v26.10.0\nCommand: out/Release/node /Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/parallel/test-fs-cp-async-socket.mjs\n=== release test-fs-cp-sync-copy-socket-error ===\nPath: parallel/test-fs-cp-sync-copy-socket-error\nError: --- stderr ---\nnode:internal/modules/run_main:111\n triggerUncaughtException(\n ^\n\nAssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:\n+ actual - expected\n\n Comparison {\n+ code: 'ENOENT'\n- code: 'ERR_FS_CP_SOCKET'\n }\n\n 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\n at ModuleJob.run (node:internal/modules/esm/module_job:569:25)\n at async node:internal/modules/esm/loader:650:26\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:105:5) {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n 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'\n at cpSyncFn (node:internal/fs/cp/cp-sync:56:13)\n at cpSync (node:fs:3846:3)\n 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)\n at getActual (node:assert:580:5)\n at assert.throws (node:assert:728:24)\n 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\n at ModuleJob.run (node:internal/modules/esm/module_job:569:25)\n at async node:internal/modules/esm/loader:650:26\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:105:5) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'lstat',\n path: '/Users/runner/work/_temp/node-v26.10.0-nightly2026-09-208469b59d62-slim/test/.tmp.1235/copy_%1/42922.sock'\n },\n expected: { code: 'ERR_FS_CP_SOCKET' },\n operator: 'throws',\n diff: 'simple'\n}\n```\n","author":{"url":"https://github.com/MikeMcC399","@type":"Person","name":"MikeMcC399"},"datePublished":"2026-09-26T17:12:43Z","url":"https://github.com/nodejs/node/issues/66324"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:52ecda54-ca7d-e0b0-0797-5d2f05b08ec5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE60:12F69A:3AFA95:4C6393:6AED206E |
| html-safe-nonce | 6d8295886300e7de0b83a2dd678459bd8374044483df058850b69c6e9ea7f05e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTYwOjEyRjY5QTozQUZBOTU6NEM2MzkzOjZBRUQyMDZFIiwidmlzaXRvcl9pZCI6IjYyNDM3MDY4NTc0OTk0Njc4ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 69076a8b83b15d0247f49ace70aa9841e311bd33e12e67d47bd40d066a2007e5 |
| hovercard-subject-tag | issue:5595806402 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a34335d35dcd7b34864f6bb103295639d81f8afdfabd9ad5ec2ba3694751eb2/nodejs/node/issues/66324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a34335d35dcd7b34864f6bb103295639d81f8afdfabd9ad5ec2ba3694751eb2/nodejs/node/issues/66324 |
| og:image:alt | 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-s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MikeMcC399 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width