Skip to content

parallel/test-runner-cli-concurrency fails with EBUSY: resource busy or locked #50101

Description

@richardlau

Test

parallel/test-runner-cli-concurrency

Platform

Windows

Console output

08:25:15 not ok 648 parallel/test-runner-cli-concurrency08:25:15 ---08:25:15 duration_ms: 1568.0190008:25:15 severity: fail08:25:15 exitcode: 108:25:15 stack: |-08:25:15 TAP version 1308:25:15 # Subtest: concurrency of one08:25:15 ok 1 - concurrency of one08:25:15 ---08:25:15 duration_ms: 1120.003908:25:15 ...08:25:15 # Subtest: concurrency of two08:25:15 not ok 2 - concurrency of two08:25:15 ---08:25:15 duration_ms: 1.367208:25:15 location: 'C:\\workspace\\node-test-binary-windows-js-suites\\node\\test\\parallel\\test-runner-cli-concurrency.js:36:1'08:25:15 failureType: 'hookFailed'08:25:15 error: "EBUSY: resource busy or locked, rmdir '\\\\?\\C:\\workspace\\node-test-binary-windows-js-suites\\node\\test\\.tmp.644'"08:25:15 code: 'EBUSY'08:25:15 stack: |-08:25:15 rmdirSync (node:fs:1232:10)08:25:15 _rmdirSync (node:internal/fs/rimraf:235:5)08:25:15 rimrafSync (node:internal/fs/rimraf:193:7)08:25:15 Object.rmSync (node:fs:1281:10)08:25:15 rmSync (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:20:8)08:25:15 Object.refresh (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:35:3)08:25:15 TestContext.<anonymous> (C:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-runner-cli-concurrency.js:20:10)08:25:15 TestHook.runInAsyncScope (node:async_hooks:206:9)08:25:15 TestHook.run (node:internal/test_runner/test:631:25)08:25:15 TestHook.run (node:internal/test_runner/test:856:18)08:25:15 ...08:25:15 1..208:25:15 # tests 208:25:15 # suites 008:25:15 # pass 108:25:15 # fail 108:25:15 # cancelled 008:25:15 # skipped 008:25:15 # todo 008:25:15 # duration_ms 1136.230908:25:15 Can't clean tmpdir: C:\workspace\node-test-binary-windows-js-suites\node\test\.tmp.64408:25:15 Files blocking: [ 'test-2.js' ]08:25:15 08:25:15 C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:6908:25:15 throw e;08:25:15 ^08:25:15 08:25:15 Error: EBUSY: resource busy or locked, rmdir '\\?\C:\workspace\node-test-binary-windows-js-suites\node\test\.tmp.644'08:25:15 at rmdirSync (node:fs:1232:10)08:25:15 at _rmdirSync (node:internal/fs/rimraf:235:5)08:25:15 at rimrafSync (node:internal/fs/rimraf:193:7)08:25:15 at Object.rmSync (node:fs:1281:10)08:25:15 at rmSync (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:20:8)08:25:15 at onexit (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:54:5)08:25:15 at process.<anonymous> (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:43:14)08:25:15 at process.emit (node:events:527:35) {08:25:15 errno: -4082,08:25:15 syscall: 'rmdir',08:25:15 code: 'EBUSY',08:25:15 path: '\\\\?\\C:\\workspace\\node-test-binary-windows-js-suites\\node\\test\\.tmp.644'08:25:15 }08:25:15 08:25:15 Node.js v21.0.0-pre08:25:15 ...

Build links

Additional information

parallel/test-runner-cli-concurrency was added by #49996 yesterday and failed in today's daily build.

Given file deletion is involved, this is probably a case of file deletion semantics on Windows being different to POSIX, see https://www.youtube.com/watch?v=uhRWMGBjlO8&t=534s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testIssues and PRs related to the tests with unstable failures on the CI.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions