-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Compensate for letters in jck version string #4635
Compensate for letters in jck version string #4635
Conversation
Error found in test run:
The code seems to balk at the letter "a", as it only allows b or c. I've modified the code to allow the full alphabet, and to simplify the regex. |
a173f2c
to
45f093a
Compare
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.
I'd probably go for [a-z]?
rather than [a-z]*
since I would not expect us to have multiple suffix letters, but I'm happy that this will work regardless so approving.
Noting that this is a follow up fix to #4601
Having the jck version turned into an int in many different places seems messy. Let's see if we can set it once as a global variable. |
71939a0
to
4919420
Compare
Ok, ready for review. Note: the big changes to the "execute" and "getTestSpecificJvmOptions" functions should just be formatting changes. I reversed a couple of if statements so they didn't indent the entire remainder of the method. Though, tbh, the entire getTestSpecificJvmOptions "jckVerNum < 11" section happens within a "> 8" section, so we could probably remove that entire section unless we plan on building 9 or 10 again. |
Rerunning the test here to ensure the formatting tweaks didn't break anything: |
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.
Assuming builds and runs ok..?
4919420
to
87e5c9e
Compare
This change should prevent the trailing letters in new jck version strings from causing errors. This change also includes some formatting changes intended to aid readability. These should not change the functional behaviour of the code. Signed-off-by: Adam Farley <adfarley@redhat.com>
87e5c9e
to
819dfea
Compare
Typo. Fixed and re-running test. |
Test has passed, no errors. Ready for merge. Thanks for the feedback! |
This change should prevent the trailing letters in new jck version strings from causing errors.
Test run: https://ci.eclipse.org/temurin-compliance/view/JCK11/job/Test_openjdk11_hs_extended.jck_aarch64_linux/51/console