-
-
Notifications
You must be signed in to change notification settings - Fork 322
Enhance the environment variable check #5800
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
Conversation
Check environment variable as set only if it's not empty. Signed-off-by: Sophia Guo <[email protected]>
Using macros "set-property" checking both the presence of the property and whether it is non-empty to handle the case where the env.variable might be set but empty. |
Could you please test the change in Grinder? |
Grinder shows the change won't affect current behaviour. This change mainly handle the environment variable is set but empty, which seems can only trigger in this environment #5683 (comment). Set environment variable as empty in jenkinsfilebase https://github.com/adoptium/aqa-tests/blob/master/buildenv/jenkins/JenkinsfileBase#L83 won't trigger this issue. Fix and causes is similar to https://github.com/adoptium/TKG/pull/641/files. Given the high cost of setting up this test environment ( trigger the dynamic agent, might also need to use George's PR) and current behaviour won't be changed I'm skipping the test the environment variable is set but empty. If any issues arise late we can address them at that time. |
I tested openJcePlusTests in 2 scenarios (Grinder_FIPS/2896, Grinder_FIPS/2897) and they both passed. Unfortunately, I cannot test all the cases. But I think this PR is safe to merge. |
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
Check environment variable as set only if it's not empty. Signed-off-by: Sophia Guo <[email protected]>
* support surefire or junit reports (#5796) * Enhance the environment variable check (#5800) Check environment variable as set only if it's not empty. Signed-off-by: Sophia Guo <[email protected]> * non tck ones not limited to use podman (#5822) * Adjust Grinder link to properly rerun with 0 iterations and always rerun with parallel=none (#5829) * Adjust Grinder link to properly rerun with 0 iterations and always rerun with parallel=none * Fix Parallel value to 'None' and revert change of order for declaring env variables --------- Signed-off-by: Sophia Guo <[email protected]> Co-authored-by: Jie Kang <[email protected]>
Check environment variable as set only if it's not empty.
Related #5683 (comment)