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

test-azure-win2012r2-x64-1 workspace needs cleanup #1527

Closed
andrew-m-leonard opened this issue Sep 2, 2020 · 1 comment
Closed

test-azure-win2012r2-x64-1 workspace needs cleanup #1527

andrew-m-leonard opened this issue Sep 2, 2020 · 1 comment
Assignees

Comments

@andrew-m-leonard
Copy link
Contributor

See: https://ci.adoptopenjdk.net/job/Test_openjdk8_j9_sanity.openjdk_x86-32_windows/295/console

[Pipeline] checkout
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/AdoptOpenJDK/openjdk-tests.git
ERROR: Failed to clean the workspace
jenkins.util.io.CompositeIOException: Unable to delete 'C:\Users\jenkins\workspace\Test_openjdk8_j9_sanity.openjdk_x86-32_windows\openjdk-tests'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
	at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:90)
	at hudson.Util.deleteContentsRecursive(Util.java:261)
	at hudson.Util.deleteContentsRecursive(Util.java:250)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:742)
	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
	at hudson.remoting.Request$2.run(Request.java:369)

Seems a regular problem, we need to try to understand why the cleanup does not occur? or perhaps make the above cleanup first before trying to clone maybe?

@Willsparker
Copy link
Contributor

ref: #1396
Done - This is a known issue (see the referenced one) - there's a leftover java.exe process running within the openjdk-tests folder, so it can't be deleted. I propose we run SXA-ProcessCheck after each test run, for the machine the tests have run on. This would theoretically stop any non-Jenkins-Agent processes, allowed the next test run to cleanup the workspace properly. (ping @sxa )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants