build
build copied to clipboard
ansible: use Java 17 on AIX
Update the JRE used to run the Jenkins agent on AIX to Java ~11~17.
Also adds /opt/freeware/bin
to the PATH
for the agent to
pick up binaries from yum packages that no longer create symbolic
links in /usr/bin
.
Refs: https://github.com/nodejs/build/issues/2718
Trying this out on test-osuosl-aix72-ppc64_be-3
to see if we still hit issues with agent disconnects and/or zombie processes when the Jenkins agent is run with Java ~11~17.
Is there a reason to add
/opt/freeware/bin
to the START of thePATH
? In general I'd consider it preferable to not override the default system utilities from/usr/bin
where possible but there may be a good reason for doing it in this case so I won't block this if the comment can be dismissed :-)
It might not need to be at the start of the PATH. I'll try moving it to the end.
Maybe it should be java 17 now ;-)
Maybe it should be java 17 now ;-)
Tried. Can't find a Java 17 JRE for AIX via the api.adoptopenjdk.net rest API we're using in the Ansible scripts.
Maybe it should be java 17 now ;-) Tried. Can't find a Java 17 JRE for AIX via the api.adoptopenjdk.net rest API we're using in the Ansible scripts.
That is a fair point. We haven't been able to release AIX17 formally yet although there are nightly builds that are available if you use ea
instead of ga
and go for hotpost
instead of openj9
but they should obviously not necesarily be considered production ready. But they might be worth trying to see if they do show the same problems.
Updated to try Java 17 ea. (FWIW it appears that openj9
still worked 🤷.)
Status on this is we're still encountering https://github.com/nodejs/build/issues/2718 with Java 17 (and 11 before that) so just changing Java hasn't affected the Jenkins behavior. We may still want to use a later Java so I'll leave this open for now but we're focusing on trying to resolve https://github.com/nodejs/build/issues/2718.
Superseded by https://github.com/nodejs/build/pull/3047.