-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Fixing file leaks in tests (preadapting to proposed TemporaryDirectoryAllocator.dispose
change)
#8006
Fixing file leaks in tests (preadapting to proposed TemporaryDirectoryAllocator.dispose
change)
#8006
Conversation
smells like a genuine test bug. |
https://github.com/jenkinsci/jenkins/pull/8006/checks?check_run_id=13524678256 also probably a test bug; does not wait for all builds it triggered to complete. |
This comment was marked as outdated.
This comment was marked as outdated.
…mporaryDirectoryAllocator.dispose
…or completion of any builds it started
…otAllowed_windowsJunction` to clean up junctions it created
…mporaryDirectoryAllocator.dispose
} else { | ||
ps.cmds("echo", "hello"); | ||
try (var listener = new RemotableBuildListener(log)) { | ||
Launcher.ProcStarter ps = rule.createOnlineSlave().createLauncher(listener).launch(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(hide whitespace to review)
TemporaryDirectoryAllocator.dispose
changeTemporaryDirectoryAllocator.dispose
change)
…mporaryDirectoryAllocator.dispose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/label ready-for-merge
This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback.
Please see the merge process documentation for more information about the merge process.
Thanks!
|
Thanks, will take a look soon. |
Fixing some issues in tests that could result in file handles being left open, especially on Windows.
Testing done
Ran tests against jenkinsci/jenkins-test-harness#198 which is stricter about cleanup.
Proposed changelog entries
Maintainer checklist
Before the changes are marked as
ready-for-merge
:upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidate
to be considered (see query).