René's URL Explorer Experiment


Title: Tests broken with externalized undici · Issue #58865 · nodejs/node · GitHub

Open Graph Title: Tests broken with externalized undici · Issue #58865 · nodejs/node

X Title: Tests broken with externalized undici · Issue #58865 · nodejs/node

Description: Version 24.3.0, 22.17.0 Platform Linux Subsystem No response What steps will reproduce the bug? To reproduce: Clone https://github.com/nodejs/undici. Build undici with EXTERNAL_PATH environment variable set. e.g. EXTERNAL_PATH=/home/rlau...

Open Graph Description: Version 24.3.0, 22.17.0 Platform Linux Subsystem No response What steps will reproduce the bug? To reproduce: Clone https://github.com/nodejs/undici. Build undici with EXTERNAL_PATH environment var...

X Description: Version 24.3.0, 22.17.0 Platform Linux Subsystem No response What steps will reproduce the bug? To reproduce: Clone https://github.com/nodejs/undici. Build undici with EXTERNAL_PATH environment var...

Opengraph URL: https://github.com/nodejs/node/issues/58865

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tests broken with externalized undici","articleBody":"### Version\n\n24.3.0, 22.17.0\n\n### Platform\n\n```text\nLinux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nTo reproduce:\n1. Clone https://github.com/nodejs/undici.\n2. Build undici with `EXTERNAL_PATH` environment variable set. e.g. \n```console\nEXTERNAL_PATH=/home/rlau/sandbox/github/undici node build/wasm.js --docker\n```\n3. Delete `deps/undici` from Node.js (downstream builders such as Fedora do this to ensure the externalized version of undici is being used instead of the in-tree copy in Node.js).\n4. Configure Node.js to use the externalized undici from step 2 (note that `loader.js` is generated during step 2.).\n```\n./configure --shared-builtin-undici/undici-path /home/rlau/sandbox/github/undici/loader.js\n```\n5. Build Node.js and run tests.\n\n\n\n### How often does it reproduce? Is there a required condition?\n\nEvery time\n\n### What is the expected behavior? Why is that the expected behavior?\n\nTests pass on all supported release lines of Node.js.\n\n### What do you see instead?\n\nFor Node.js 22, this test fails:\nhttps://github.com/nodejs/undici/actions/runs/15926591410/job/44925161073\n```console\n=== release test-inspector-network-fetch ===\nPath: parallel/test-inspector-network-fetch\n--- stderr ---\nDebugger listening on ws://127.0.0.1:43805/7add9ccb-dd3b-471d-bf52-d3b5e0431cc1\nFor help, see: https://nodejs.org/en/docs/inspector\nnode:internal/modules/cjs/loader:1404\n  throw err;\n  ^\n\nError: Cannot find module '../../deps/undici/src/index.js'\nRequire stack:\n- /home/runner/work/undici/undici/node-v22.17.0/test/parallel/test-inspector-network-fetch.js\n    at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)\n    at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)\n    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)\n    at Function._load (node:internal/modules/cjs/loader:1211:37)\n    at TracingChannel.traceSync (node:diagnostics_channel:322:14)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)\n    at Module.require (node:internal/modules/cjs/loader:1487:12)\n    at require (node:internal/modules/helpers:135:16)\n    at Object.\u003canonymous\u003e (/home/runner/work/undici/undici/node-v22.17.0/test/parallel/test-inspector-network-fetch.js:15:16)\n    at Module._compile (node:internal/modules/cjs/loader:1730:14) {\n  code: 'MODULE_NOT_FOUND',\n  requireStack: [\n    '/home/runner/work/undici/undici/node-v22.17.0/test/parallel/test-inspector-network-fetch.js'\n  ]\n}\n\nNode.js v22.17.0\nCommand: out/Release/node --inspect=0 --experimental-network-inspection --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/undici/undici/node-v22.17.0/test/parallel/test-inspector-network-fetch.js\n```\n\nFor Node.js 24,\nhttps://github.com/nodejs/undici/actions/runs/15926591410/job/44925161078\n```console\n=== release test-http-proxy-fetch ===\nPath: parallel/test-http-proxy-fetch\n--- stderr ---\nnode:internal/process/promises:394\n    triggerUncaughtException(err, true /* fromPromise */);\n    ^\n\nAssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:\n+ actual - expected\n\n  {\n+   code: 1,\n-   code: 0,\n    signal: null,\n+   stderr: 'node:internal/assert:11\\n' +\n+     '    throw new ERR_INTERNAL_ASSERTION(message);\\n' +\n+     '    ^\\n' +\n+     '\\n' +\n+     'Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.\\n' +\n+     'Please open an issue with this stack trace at https://github.com/nodejs/node/issues\\n' +\n+     '\\n' +\n+     '    at assert (node:internal/assert:11:11)\\n' +\n+     '    at setupUserModules (node:internal/process/pre_execution:187:3)\\n' +\n+     '    at prepareExecution (node:internal/process/pre_execution:159:5)\\n' +\n+     '    at prepareMainThreadExecution (node:internal/process/pre_execution:46:10)\\n' +\n+     '    at node:internal/main/run_main_module:15:19 {\\n' +\n+     \"  code: 'ERR_INTERNAL_ASSERTION'\\n\" +\n+     '}\\n' +\n+     '\\n' +\n+     'Node.js v24.3.0',\n+   stdout: ''\n-   stderr: '',\n-   stdout: 'Hello world'\n  }\n\n    at exports.checkProxiedRequest (/home/runner/work/undici/undici/node-v24.3.0/test/common/proxy-server.js:89:10)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async /home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-http-proxy-fetch.js:39:3 {\n  generatedMessage: true,\n  code: 'ERR_ASSERTION',\n  actual: {\n    stderr: 'node:internal/assert:11\\n' +\n      '    throw new ERR_INTERNAL_ASSERTION(message);\\n' +\n      '    ^\\n' +\n      '\\n' +\n      'Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.\\n' +\n      'Please open an issue with this stack trace at https://github.com/nodejs/node/issues\\n' +\n      '\\n' +\n      '    at assert (node:internal/assert:11:11)\\n' +\n      '    at setupUserModules (node:internal/process/pre_execution:187:3)\\n' +\n      '    at prepareExecution (node:internal/process/pre_execution:159:5)\\n' +\n      '    at prepareMainThreadExecution (node:internal/process/pre_execution:46:10)\\n' +\n      '    at node:internal/main/run_main_module:15:19 {\\n' +\n      \"  code: 'ERR_INTERNAL_ASSERTION'\\n\" +\n      '}\\n' +\n      '\\n' +\n      'Node.js v24.3.0',\n    stdout: '',\n    code: 1,\n    signal: null\n  },\n  expected: { stderr: '', code: 0, signal: null, stdout: 'Hello world' },\n  operator: 'deepStrictEqual'\n}\n\nNode.js v24.3.0\nCommand: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-http-proxy-fetch.js\n=== release test-https-proxy-fetch ===\nPath: parallel/test-https-proxy-fetch\n--- stderr ---\nnode:internal/process/promises:394\n    triggerUncaughtException(err, true /* fromPromise */);\n    ^\n\nAssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:\n+ actual - expected\n\n  {\n+   code: 1,\n-   code: 0,\n    signal: null,\n+   stderr: 'node:internal/assert:11\\n' +\n+     '    throw new ERR_INTERNAL_ASSERTION(message);\\n' +\n+     '    ^\\n' +\n+     '\\n' +\n+     'Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.\\n' +\n+     'Please open an issue with this stack trace at https://github.com/nodejs/node/issues\\n' +\n+     '\\n' +\n+     '    at assert (node:internal/assert:11:11)\\n' +\n+     '    at setupUserModules (node:internal/process/pre_execution:187:3)\\n' +\n+     '    at prepareExecution (node:internal/process/pre_execution:159:5)\\n' +\n+     '    at prepareMainThreadExecution (node:internal/process/pre_execution:46:10)\\n' +\n+     '    at node:internal/main/run_main_module:15:19 {\\n' +\n+     \"  code: 'ERR_INTERNAL_ASSERTION'\\n\" +\n+     '}\\n' +\n+     '\\n' +\n+     'Node.js v24.3.0',\n+   stdout: ''\n-   stderr: '',\n-   stdout: 'Hello world'\n  }\n\n    at exports.checkProxiedRequest (/home/runner/work/undici/undici/node-v24.3.0/test/common/proxy-server.js:89:10)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async /home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-https-proxy-fetch.js:43:3 {\n  generatedMessage: true,\n  code: 'ERR_ASSERTION',\n  actual: {\n    stderr: 'node:internal/assert:11\\n' +\n      '    throw new ERR_INTERNAL_ASSERTION(message);\\n' +\n      '    ^\\n' +\n      '\\n' +\n      'Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.\\n' +\n      'Please open an issue with this stack trace at https://github.com/nodejs/node/issues\\n' +\n      '\\n' +\n      '    at assert (node:internal/assert:11:11)\\n' +\n      '    at setupUserModules (node:internal/process/pre_execution:187:3)\\n' +\n      '    at prepareExecution (node:internal/process/pre_execution:159:5)\\n' +\n      '    at prepareMainThreadExecution (node:internal/process/pre_execution:46:10)\\n' +\n      '    at node:internal/main/run_main_module:15:19 {\\n' +\n      \"  code: 'ERR_INTERNAL_ASSERTION'\\n\" +\n      '}\\n' +\n      '\\n' +\n      'Node.js v24.3.0',\n    stdout: '',\n    code: 1,\n    signal: null\n  },\n  expected: { stderr: '', code: 0, signal: null, stdout: 'Hello world' },\n  operator: 'deepStrictEqual'\n}\n\nNode.js v24.3.0\nCommand: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-https-proxy-fetch.js\n=== release test-inspector-network-fetch ===\nPath: parallel/test-inspector-network-fetch\n--- stderr ---\nDebugger listening on ws://127.0.0.1:42081/5b84e2a3-7770-4357-8970-7a0a5f457a0f\nFor help, see: https://nodejs.org/en/docs/inspector\nnode:internal/modules/cjs/loader:1372\n  throw err;\n  ^\n\nError: Cannot find module '../../deps/undici/src/index.js'\nRequire stack:\n- /home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-inspector-network-fetch.js\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1369:15)\n    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)\n    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)\n    at Module._load (node:internal/modules/cjs/loader:1179:37)\n    at TracingChannel.traceSync (node:diagnostics_channel:322:14)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)\n    at Module.require (node:internal/modules/cjs/loader:1449:12)\n    at require (node:internal/modules/helpers:135:16)\n    at Object.\u003canonymous\u003e (/home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-inspector-network-fetch.js:15:16)\n    at Module._compile (node:internal/modules/cjs/loader:16[92](https://github.com/nodejs/undici/actions/runs/15926591410/job/44925161078#step:13:93):14) {\n  code: 'MODULE_NOT_FOUND',\n  requireStack: [\n    '/home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-inspector-network-fetch.js'\n  ]\n}\n\nNode.js v24.3.0\nCommand: out/Release/node --inspect=0 --experimental-network-inspection --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/undici/undici/node-v24.3.0/test/parallel/test-inspector-network-fetch.js\n```\n\ni.e.\n- parallel/test-http-proxy-fetch.js (Node.js 24)\n- parallel/test-https-proxy-fetch.js (Node.js 24)\n- parallel/test-inspector-network-fetch.js (Node.js 22, 24)\n\n### Additional information\n\nWhen building Node.js with an externalized copy of undici, some tests fail. This was noticed on https://github.com/nodejs/undici/: https://github.com/nodejs/undici/pull/4276\n\ne.g. https://github.com/nodejs/undici/actions/runs/15926591410","author":{"url":"https://github.com/richardlau","@type":"Person","name":"richardlau"},"datePublished":"2025-06-27T15:49:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/58865/node/issues/58865"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3e67c62a-3b62-deca-509e-2330b5db6ed7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id80AC:1BB557:EA049:13A22B:6A4C209D
html-safe-nonce7c9ce74d34937d7765c15601af8bb129e2584152f2a0aa771ae2ca317692c731
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEFDOjFCQjU1NzpFQTA0OToxM0EyMkI6NkE0QzIwOUQiLCJ2aXNpdG9yX2lkIjoiMTIzMTQzNTg5MjI2Nzk1MDIzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac865f2ece250634dfa182155ba0c6371ebe4898ca936de915ae9e7da38c51b2e6
hovercard-subject-tagissue:3183278040
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/58865/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1b76f7f25a8a05fd749931d5da566a148a691c0c96db25906465d338612d09a2/nodejs/node/issues/58865
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b76f7f25a8a05fd749931d5da566a148a691c0c96db25906465d338612d09a2/nodejs/node/issues/58865
og:image:altVersion 24.3.0, 22.17.0 Platform Linux Subsystem No response What steps will reproduce the bug? To reproduce: Clone https://github.com/nodejs/undici. Build undici with EXTERNAL_PATH environment var...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerichardlau
hostnamegithub.com
expected-hostnamegithub.com
None1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef95fb36c72adc940ff991c03531114b2245658d0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/58865#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F58865
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F58865
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/58865
Reloadhttps://github.com/nodejs/node/issues/58865
Reloadhttps://github.com/nodejs/node/issues/58865
Please reload this pagehttps://github.com/nodejs/node/issues/58865
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/58865
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 968 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
nodejs/undici#4426https://github.com/nodejs/undici/pull/4426
Tests broken with externalized undicihttps://github.com/nodejs/node/issues/58865#top
nodejs/undici#4426https://github.com/nodejs/undici/pull/4426
testIssues and PRs related to the tests.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22test%22
https://github.com/richardlau
richardlauhttps://github.com/richardlau
on Jun 27, 2025https://github.com/nodejs/node/issues/58865#issue-3183278040
https://github.com/nodejs/undicihttps://github.com/nodejs/undici
https://github.com/nodejs/undici/actions/runs/15926591410/job/44925161073https://github.com/nodejs/undici/actions/runs/15926591410/job/44925161073
https://github.com/nodejs/undici/actions/runs/15926591410/job/44925161078https://github.com/nodejs/undici/actions/runs/15926591410/job/44925161078
https://github.com/nodejs/undici/https://github.com/nodejs/undici/
nodejs/undici#4276https://github.com/nodejs/undici/pull/4276
https://github.com/nodejs/undici/actions/runs/15926591410https://github.com/nodejs/undici/actions/runs/15926591410
testIssues and PRs related to the tests.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22test%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.