Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI test failures on Windows #627

Closed
gabrielschulhof opened this issue Dec 9, 2019 · 5 comments
Closed

CI test failures on Windows #627

gabrielschulhof opened this issue Dec 9, 2019 · 5 comments

Comments

@gabrielschulhof
Copy link
Contributor

We've been having some issues with Windows 10, especially when building against v8.x:

On the machines below, there is a consistent failure to remove a directory because one of the files is being used by a process, ultimately resulting in failure:

test-rackspace-win2012r2_vs2019-x64-6
test-rackspace-win2012r2_vs2019-x64-1
test-rackspace-win2012r2_vs2019-x64-3
test-rackspace-win2012r2_vs2019-x64-2

cc @nodejs/build ... ?

@gabrielschulhof
Copy link
Contributor Author

C:\workspace\node-test-node-addon-api-new\nodes\win-vs2019>rmdir C:\workspace\node-test-node-addon-api-new\nodes\win-vs2019 /s /q 
The process cannot access the file because it is being used by another process.

@gabrielschulhof
Copy link
Contributor Author

Maybe we need some Windows equivalent of

killall some_relevant_process

before we do the rmdir?

@richardlau
Copy link
Member

Not sure about the rmdir failures.
cc @joaocgreis

As for failures with Node.js 8 see: nodejs/build#2084 (comment)

PR to exclude Visual Studio 2019 from Node.js < 10 (since Node.js 8 ships with an older npm/node-gyp): nodejs/build#2085

@gms1
Copy link
Contributor

gms1 commented Jan 6, 2020

C:\workspace\node-test-node-addon-api-new\nodes\win-vs2019>rmdir C:\workspace\node-test-node-addon-api-new\nodes\win-vs2019 /s /q 
The process cannot access the file because it is being used by another process.

I've had to deal with such errors many times; sometimes these are caused by virus scanners, sometimes by asynchronous behaviour (on network drives), but in this case it is probably caused by trying to remove the current working directory :-)

@mhdawson
Copy link
Member

mhdawson commented Jan 6, 2020

@gabrielschulhof and I worked through this during Node+JS Interactive and we believe we updated the job to avoid the problem. Believe it was a result of not having removed a command that did not seem to do anything on WIndows. Now it is cased out and looks like we've had good results since. Closing.

@mhdawson mhdawson closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants