[jdk8u-dev] RFR: 8301550: [8u] Enable additional linux build testing in GitHub

Andrew John Hughes andrew at openjdk.org
Wed Feb 1 02:57:55 UTC 2023


On Tue, 31 Jan 2023 14:32:51 GMT, Zdenek Zambersky <zzambers at openjdk.org> wrote:

> Parts of testing in GitHub are currently still disabled as they needed changes to work with JDK 8.
> 
> This change does fixes for JDK 8 and enables them. Enabled tests include building hotspot in different configurations and also cross building for other architectures.
> 
> **Notes on modifications:**
> - `optimized` jvm-variant does not exist on JDK 8, `client` variant tested instead
> - added support for multilib testing to linux additional (to existing native and cross) as `client` and `minimal` variants are only for 32-bits on JDK 8
> - arm and s390x are only available as `zero` variant on JDK 8 so they use this variant (added required libffi to buildroot)
> - JDK 8 does not support `--with-build-jdk` configuration option (not to be confused with boot jdk), so it was removed as well as code preparing build jdk
> - dropped dependence of linux additional on linux x64 build (was only needed to get build jdk)
> - In case of JDK 8, a bit more persuasion was required to successfully configure cross build. Explicit configuration of libs was required. Also  *FLAGS env. variables with sysroot had to be set for configuration to succeed, but they must not remain set for build, otherwise it fails.
> 
> **Testing:**
> All test passed in Github CI.

Looks good to me.

When I did the bare minimum to get the builds working, these additional builds and testing had to be turned off due to the need to pass a JDK bundle between steps, which 8u didn't (and still doesn't) support. It looks like for this, we didn't even need it anyway.

I haven't dug into `--with-build-jdk` in the later JDKs a lot, but I believe the idea is to save rebuilding the platform independent class files. So our 8u build will take a bit longer as we'll be rebuilding those in cross-compilation, but at least we're not trying to run javac on a Zero-based architecture.

It will be good to have these extra architectures tested, especially arm[32] as I don't believe that's in any of my testing on RHEL and Fedora any more.  Please add `jdk8u-fix-request` to the bug and I'll approve.

-------------

Marked as reviewed by andrew (Reviewer).

PR: https://git.openjdk.org/jdk8u-dev/pull/254


More information about the jdk8u-dev mailing list