-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Ensure any old openjdk build directory is removed before building #1030
Conversation
Signed-off-by: Andrew Leonard <[email protected]>
Thank you for creating a pull request!Please check out the information below if you have not made a pull request here before (or if you need a reminder how things work). Code Quality and Contributing GuidelinesIf you have not done so already, please familiarise yourself with our Contributing Guidelines and Code Of Conduct, even if you have contributed before. TestsGithub actions will run a set of jobs against your PR that will lint and unit test your changes. Keep an eye out for the results from these on the latest commit you submitted. For more information, please see our testing documentation. In order to run the advanced pipeline tests (executing a set of mock pipelines), it requires an admin to post |
run tests |
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.
LGTM
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.
PR TESTER RESULT ❎ Some pipelines failed or the job was aborted! ❎ |
Wondered if this should be done in temurin-build? |
yes, this line: |
So no, because a user may have specified a user openjdk build folder that maybe by accident is some location they don't want to delete like /home ! |
run tests |
Aborted Windows build jobs are always going to be an issue, as kill -9 on Windows processes can cause "locked" files, so I warn against aborting Windows jobs if possible |
PR TESTER RESULT ❎ Some pipelines failed or the job was aborted! ❎ |
If cleanWorkspace=true context.WORKSPACE will be cleaned up include openjdk_build_dir(under WORKSPACE). Otherwise openjdk_build_dir will not be cleaned up. This pr will cleanup openjdk_build_dir(under WORKSPACE) even if cleanWorkspace=false. However any other files or directory under the WORKSPACE will not be cleaned up if cleanWorkspace=false. Just curious any reason we don't do the cleanWorkspace by default CLEAN_WORKSPACE": false? |
We have always not cleaned the WORKSPACE before a build by default for nightly/weekly builds, the reason is to save time in having to re-clone the openjdk src repository(~2Gb) each time. |
The openjdk build output directory may exist from a previous build if it was aborted or purposely kept.
It must always be deleted prior to a new build.