Skip to content

process: improve error message when cwd no longer exists #80812

process: improve error message when cwd no longer exists

process: improve error message when cwd no longer exists #80812

Re-run triggered February 9, 2026 11:32
Status Failure
Total duration 34m 36s
Artifacts

test-linux.yml

on: pull_request
Matrix: test-linux
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 notices
test-linux (ubuntu-24.04-arm)
Process completed with exit code 2.
test-linux (ubuntu-24.04-arm): test/parallel/test-cwd-enoent-improved-message.js#L25
--- stderr --- node:assert:456 throw err; ^ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected Comparison { code: 'ENOENT', + message: 'The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.' - message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd' } at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js:25:8) at Module._compile (node:internal/modules/cjs/loader:1811:14) at Object..js (node:internal/modules/cjs/loader:1942:10) at Module.load (node:internal/modules/cjs/loader:1532:32) at Module._load (node:internal/modules/cjs/loader:1334:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { generatedMessage: true, code: 'ERR_ASSERTION', actual: Error: The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again. at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:146:27) at assert.throws.code (/home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js:26:17) at getActual (node:assert:580:5) at assert.throws (node:assert:728:24) at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js:25:8) at Module._compile (node:internal/modules/cjs/loader:1811:14) at Object..js (node:internal/modules/cjs/loader:1942:10) at Module.load (node:internal/modules/cjs/loader:1532:32) at Module._load (node:internal/modules/cjs/loader:1334:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) { code: 'ENOENT', syscall: 'process.cwd' }, expected: { code: 'ENOENT', message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd' }, operator: 'throws', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node /home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js
test-linux (ubuntu-24.04)
Process completed with exit code 2.
test-linux (ubuntu-24.04): test/parallel/test-cwd-enoent-improved-message.js#L25
--- stderr --- node:assert:456 throw err; ^ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected Comparison { code: 'ENOENT', + message: 'The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.' - message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd' } at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js:25:8) at Module._compile (node:internal/modules/cjs/loader:1811:14) at Object..js (node:internal/modules/cjs/loader:1942:10) at Module.load (node:internal/modules/cjs/loader:1532:32) at Module._load (node:internal/modules/cjs/loader:1334:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { generatedMessage: true, code: 'ERR_ASSERTION', actual: Error: The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again. at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:146:27) at assert.throws.code (/home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js:26:17) at getActual (node:assert:580:5) at assert.throws (node:assert:728:24) at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js:25:8) at Module._compile (node:internal/modules/cjs/loader:1811:14) at Object..js (node:internal/modules/cjs/loader:1942:10) at Module.load (node:internal/modules/cjs/loader:1532:32) at Module._load (node:internal/modules/cjs/loader:1334:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) { code: 'ENOENT', syscall: 'process.cwd' }, expected: { code: 'ENOENT', message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd' }, operator: 'throws', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node /home/runner/work/node/node/node/test/parallel/test-cwd-enoent-improved-message.js
sccache stats
72% - 3520 hits, 1338 misses, 0 errors
sccache stats
77% - 3737 hits, 1108 misses, 0 errors