-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-19776: trunk pre-commits for native code still try to use Java 8 #8166
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
|
💔 -1 overall
This message was automatically generated. |
| // This stage serves as a means of cross platform validation, which is | ||
| // really needed to ensure that any C++ related/platform change doesn't | ||
| // break the Hadoop build on Rocky Linux 8. | ||
| stage ('precommit-run Rocky Linux 8') { |
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.
can we install openjdk 17 instead of removing rocky linux 8? I think we should at least keep one rhel-like OS in pre-commit, along-side with other debian-like OS
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've updated the patch to keep Rocky 8 and install Java 17. We can reconsider modernizing the OS targets separately from this patch.
|
These new build targets I'm trying to set up are failing, related to the Fuse dependency: I think I'm going to switch gears to take the simplest path to fixing pre-submit by getting Java 17 into the existing build targets. Then, we can look at modernizing the platforms in a subsequent patch. |
|
I have updated this patch to stick with the original build targets, but make sure they are using Java 17. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
|
jenkins.sh overrides the Yetus |
|
Modern maven seems to leverage: However based on maven versions it is no magic. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
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 is a blank line warning by the CI, Once fixed we can merge this
| { | ||
| // MT-Safe under Solaris or glibc >= 2.32 not supporting sys_errlist/sys_nerr | ||
| #if defined(__sun) | ||
| #define USE_STR_ERROR | ||
| #elif defined(__GLIBC_PREREQ) | ||
| #if __GLIBC_PREREQ(2, 32) | ||
| #define USE_STR_ERROR | ||
| /* STD_ERROR is the new standard. Alpine musc does not want to be 'detected' it want to be pure and modern. Thus we detect the old glib and handle. */ | ||
| #ifdef __GLIBC__ | ||
| #if defined(__GLIBC_PREREQ) | ||
| #if __GLIBC_PREREQ(2, 32) | ||
| #define USE_STR_ERROR | ||
| #endif | ||
| #endif | ||
| #else | ||
| #define USE_STR_ERROR | ||
| #endif | ||
|
|
||
|
|
||
| #if defined(USE_STR_ERROR) | ||
| return strerror(errnum); |
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.
are we overlapping with:
#8151
@edwardcapriolo can you check once?
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.
Edward's PR is what made me first notice this problem. I had temporarily included it here just so Yetus would trigger a native code patch run. I'm going to commit #8151 separately.
|
I forgot to remove the exception.c change that was only part of testing, so you'll see one extra commit. I reverted it so I can give the real author proper credit in a separate commit. |
Description of PR
Pre-commits contain some steps specifically triggered for native code patches to check cross-platform compatibility. These are still trying to run with Java 8 targets. (Example: #8151 .) This patch introduces Java 17 and 21 in the Rocky 8 image.
How was this patch tested?
Relying on pre-submit results. I'm temporarily including the native code change from #8151 to try to trigger it. I won't include that when I commit this.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?