-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
alpine aarch64 build hanging downloading jar #3245
Comments
I note that the cycloneDX bits are running ant using JDK-11 which I've generally found to be unreliable (we stopped using it for the jenkins agents...) so that may be related. At the point it's happening there's on obvious sign of a curl process on the machine (I'm assuming it's calling the |
@sxa The curl is called from ant build.xml here: https://github.com/adoptium/temurin-build/blob/a7bc2254ef9d6aaed26c10c49e07bbf855fdfbdd/cyclonedx-lib/build.xml#L487 |
This appears to work ok, when I run a container with the same base image on the same host, I'll continue investigating..
|
Yeah it doesn't seem to get as far as actually calling I tried running a test and managed to overload the machine a little so I haven't got proof that what I've said above will fix it yet 😇 |
Hmmm I've just tried again and been able to run But I am a little worried about the fact that the machine does appear to be getting slow - we should perhaps keep an eye on the load on it through the day to see if it behaves |
Im 90% certain now , that it relates to the jdk being used to run the cyclone dx bits, when running with the jdk11 on the container created by the jenkins build it hangs, when I switch it to use jdk21 ( the first official release for alpine on aarch64 ) it works fine |
I was convinced of that too until I started up a container and ran a build myself with the default jdk11 in the past and it seemed to work ok which somewhat confused me ... Unless that test was invalid somehow .. Or I just got REALLY lucky since 11 was quite temperamental. May be worth trying that test yourself standalone (outside Jenkins) |
FYI it's the hangs that mean I'm not considering releasing a Temurin11 on that platform |
OK THAT'S odd ...17 has been pretty reliable in my experience. I was tempted to adjust the code to print out |
Yup, It was still defaulting to 11... I've a current run that should hopefully be more productive.. |
I've tried with numerous versions of java, 11, 17 & 21, all have the same intermittent hangs, at different points during the curl downloads of individual dependencies... |
The issue is definitely tied to JDK_11 being present, in particular, I think this piece of code from build.sh
|
Ok, regardless of what is set in the image, I think the docker build of an image file replaces the jdk17 home with the default one of the java agent running on jenkins... this is why the build works on dockerhost-equinix-ubuntu2004-armv8-1 and not on dockerhost-equinix-ubuntu2204-armv8-1 |
Ok, so changing the jdk used to run the jenkins agent makes no difference, but removing jdk11 from the alpine build image works. |
The jdk21u alpine aarch64 linux builds are hanging during download of jackson-core.jar:
https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/jdk21u-alpine-linux-aarch64-temurin/2/console
Possibly specific to node dockerhost-equinix-ubuntu2204-armv8-1
The text was updated successfully, but these errors were encountered: