Repository navigation
Builds failing on test-azure_msft-win10_vs2019-x64-4 #2526
Copy link
Copy link
Closed
Description
Jobs on test-azure_msft-win10_vs2019-x64-4 are consistently failing:
11:43:17 > git clean -dffx
11:43:17 warning: failed to remove test/.tmp.520UN9cn6/middle: Permission denied
11:43:17
11:43:17 > if errorlevel 1 exit /b
11:43:17
11:43:17 > if errorlevel 1 exit /b
11:43:17
11:43:17 > if errorlevel 1 exit /b
11:43:17
11:43:17 > if errorlevel 1 exit /b
11:43:17 Build step 'Execute Windows batch command' marked build as failure
Looking at build history, jobs were generally passing until https://ci.nodejs.org/job/node-test-binary-windows-js-suites/RUN_SUBSET=3,nodes=win10-COMPILED_BY-vs2019/7798/console which had this test failure:
14:27:26 not ok 520 parallel/test-rmdirSync-busy-loop-windows
14:27:26 ---
14:27:26 duration_ms: 0.167
14:27:26 severity: fail
14:27:26 exitcode: 1
14:27:26 stack: |-
14:27:26 node:assert:119
14:27:26 throw new AssertionError(obj);
14:27:26 ^
14:27:26
14:27:26 AssertionError [ERR_ASSERTION]: Missing expected exception.
14:27:26 at Object.<anonymous> (C:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-rmdirSync-busy-loop-windows.js:25:8)
14:27:26 at Module._compile (node:internal/modules/cjs/loader:1108:14)
14:27:26 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
14:27:26 at Module.load (node:internal/modules/cjs/loader:973:32)
14:27:26 at Function.Module._load (node:internal/modules/cjs/loader:813:14)
14:27:26 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
14:27:26 at node:internal/main/run_main_module:17:47 {
14:27:26 generatedMessage: false,
14:27:26 code: 'ERR_ASSERTION',
14:27:26 actual: undefined,
14:27:26 expected: /EACCES/,
14:27:26 operator: 'throws'
14:27:26 }
14:27:26 ...
After that build every build on the machine has failed with the permission denied warning.
parallel/test-rmdirSync-busy-loop-windows is a new test being added by nodejs/node#36815 and it looks like this test is intentionally stripping permissions from the middle dir:
const middle = join(root, 'middle');
fs.mkdirSync(middle);
fs.mkdirSync(join(middle, 'leaf')); // Make `middle` non-empty
fs.chmodSync(middle, 0);Reactions are currently unavailable
Activity
richardlau commentedon Jan 21, 2021
Tried to wipe out the workspace but that failed with an AccessDeniedException on the same dir:
I don't think rebooting (https://ci.nodejs.org/job/windows-update-reboot/) this host will help, so I'll mark it offline in Jenkins for the moment.
cc @joaocgreis
richardlau commentedon Jan 21, 2021
Looks like the new CI run for nodejs/node#36815 has caused the issue to pop up on https://ci.nodejs.org/computer/test-azure_msft-win10_vs2019-x64-1/
https://ci.nodejs.org/job/node-test-binary-windows-js-suites/RUN_SUBSET=0,nodes=win10-COMPILED_BY-vs2017/7819/console
via the test failure in https://ci.nodejs.org/job/node-test-binary-windows-js-suites/7818/RUN_SUBSET=3,nodes=win10-COMPILED_BY-vs2019/.
The test also failed in https://ci.nodejs.org/job/node-test-binary-windows-js-suites/7818/RUN_SUBSET=3,nodes=win2012r2-COMPILED_BY-vs2019-x86/ so https://ci.nodejs.org/computer/test-rackspace-win2012r2_vs2019-x64-2/ may also be affected now.
richardlau commentedon Jan 21, 2021
https://ci.nodejs.org/computer/test-rackspace-win2012r2_vs2013-x64-1 also looks to be affected.
richardlau commentedon Jan 21, 2021
Reading https://github.com/nodejs/build/blob/master/doc/jenkins-guide.md#windows and the job config for https://ci.nodejs.org/view/All/job/git-clean-windows/ we may be able to fix by running the
git-clean-windowsscript (which moves away the workspace instead of deleting:I suspect we'll still be left with the renamed workspaces on the machine(s).
richardlau commentedon Jan 21, 2021
Ran https://ci.nodejs.org/view/All/job/git-clean-windows/194/ and this appears to have fixed https://ci.nodejs.org/computer/test-azure_msft-win10_vs2019-x64-4/:

Looks like that might not be the case 😀:
https://ci.nodejs.org/job/git-clean-windows/label=test-azure_msft-win10_vs2019-x64-4/194/consoleFull
richardlau commentedon Jan 21, 2021
Fixed by running https://ci.nodejs.org/view/All/job/git-clean-windows/.
Underlying issue in nodejs/node#36815 remains.