graalvm / mandrel

Mandrel is a downstream distribution of the GraalVM community edition. Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
Other
394 stars 15 forks source link

[CI] Quarkus main fails with Java 22 mandrel build of graal/master on Linux #580

Closed mandrel-bot closed 10 months ago

mandrel-bot commented 1 year ago

This issue is automatically updated by CI to report issues with Quarkus main and mandrel builds of graal/master

Job Filter: Q main M 22 latest / Q IT

mandrel-bot commented 1 year ago

Unfortunately, the build failed:

zakkak commented 1 year ago

This is caused by https://github.com/graalvm/mandrel/issues/598

jerboaa commented 1 year ago

This is caused by #598

Not sure this is right. It passed the build: https://github.com/graalvm/mandrel/actions/runs/6751899037/job/18356617014#step:8:614

INFO [build] Congratulations you successfully built Mandrel 24.0.0-devb34adc00 based on Java 22-beta+21-ea

Is this reporting the Windows build fail? https://github.com/graalvm/mandrel/actions/runs/6751899037/job/18356617880#step:8:428

Building com.oracle.svm.native.jvm.windows_amd64 with Ninja... [dependency svm-jvmfuncs-fallback-builder updated]
Error: could not open `D:\a\mandrel\mandrelvm\lib\svm\bin\native-image.export-list'
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Failed, exit code: 1
    at OperatingSystem.exec(build.java:1821)
    at build.buildAgents(build.java:310)
    at build.main(build.java:253)
Caused by: java.lang.RuntimeException: Failed, exit code: 1
    at OperatingSystem.exec(build.java:1810)
    at build.buildAgents(build.java:310)
    at build.main(build.java:253)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at jdk.compiler/com.sun.tools.javac.launcher.Main.execute(Main.java:484)
    at jdk.compiler/com.sun.tools.javac.launcher.Main.run(Main.java:208)
    at jdk.compiler/com.sun.tools.javac.launcher.Main.main(Main.java:135)
Error: could not open `D:\a\mandrel\mandrelvm\lib\svm\bin\native-image.export-list'
Error: Process completed with exit code 1.
zakkak commented 1 year ago

Oh, you are right, this is caused by https://github.com/quarkusio/quarkus/issues/36686

Is this reporting the Windows build fail?

No, we have https://github.com/graalvm/mandrel/issues/579 for windows but it looks like it didn't get any update.

mandrel-bot commented 1 year ago

The build is still failing:

mandrel-bot commented 1 year ago

The build is still failing:

mandrel-bot commented 1 year ago

The build is still failing:

jerboaa commented 1 year ago

The build is still failing:

* Link to latest CI run: https://github.com/graalvm/mandrel/actions/runs/6819594271

simple-with-space native integration test is failing.

Tracked by: https://github.com/quarkusio/quarkus/issues/36998

mandrel-bot commented 1 year ago

The build is still failing:

mandrel-bot commented 12 months ago

The build is still failing:

mandrel-bot commented 12 months ago

The build is still failing:

jerboaa commented 12 months ago

Current CI failures are:

  1. simple-with-space native integration test is failing: https://github.com/quarkusio/quarkus/issues/36998
  2. main native IT test failures: https://github.com/quarkusio/quarkus/issues/37037
mandrel-bot commented 12 months ago

The build is still failing:

jerboaa commented 12 months ago

Failures still caused by the same two issues above.

mandrel-bot commented 12 months ago

The build is still failing:

zakkak commented 12 months ago

Current CI failures caused by:

  1. simple-with-space native integration test failing: https://github.com/quarkusio/quarkus/issues/36998
  2. smallrye-opentracing no longer being present https://github.com/quarkusio/quarkus/pull/36602 (native-tests.json needs adjustment, PR handling it https://github.com/quarkusio/quarkus/pull/37101)
mandrel-bot commented 12 months ago

The build is still failing:

zakkak commented 12 months ago

Current CI failures caused by simple-with-space native integration test failing: https://github.com/quarkusio/quarkus/issues/36998

jerboaa commented 12 months ago

But the OOM issue is new. I've filed:

https://github.com/quarkusio/quarkus/issues/37142

zakkak commented 12 months ago

But the OOM issue is new.

True but it was only on GraalVM and I thought it was transient. Good thing you didn't and went on and checked the reachable types.

mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

Current CI failures caused by:

  1. simple-with-space native integration test failing: https://github.com/quarkusio/quarkus/issues/36998
  2. kubernetest-client OOMs due to https://github.com/quarkusio/quarkus/issues/37142
mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

Current CI failures caused by:

  1. simple-with-space native integration test failing: https://github.com/quarkusio/quarkus/issues/36998
  2. kubernetest-client OOMs due to https://github.com/quarkusio/quarkus/issues/37142
  3. pg-using tests due to https://github.com/quarkusio/quarkus/issues/37208 (new)
  4. kotlin-serialization tests due to https://github.com/quarkusio/quarkus/issues/37212 (missed during Friday, Nov 17 triage). Seen since 4 days.
mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

Same failures as in https://github.com/graalvm/mandrel/issues/580#issuecomment-1818847644 as far as I can see.

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

Current CI failures caused by:

  1. simple-with-space native integration test failing: https://github.com/quarkusio/quarkus/issues/36998
  2. pg-using tests due to https://github.com/quarkusio/quarkus/issues/37208 (new)
  3. kotlin-serialization tests due to https://github.com/quarkusio/quarkus/issues/37212 (missed during Friday, Nov 17 triage). Seen since 4 days.

kubernetes-client seems more stable now due to https://github.com/quarkusio/quarkus/pull/37278. Image size seems still large (~210MB). Note that GraalVM CE has now caught up with 22+24 (showing same data test failures than mandrel now).

mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

We see a new failure in the AWT stack. Since this is 22+25 (I.e. a new build, newer than GraalVM CE one - which is 22+24.1) I'll wait with reporting this as an issue until GraalVM CE catches up:

 Caused by: jdk.graal.compiler.java.BytecodeParser$BytecodeParserError: java.lang.InternalError: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Error loading a referenced type: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method jdk.internal.loader.NativeLibrary.findEntry0(long, String) is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
    at parsing jdk.internal.loader.RawNativeLibraries$RawNativeLibraryImpl.find(RawNativeLibraries.java:170)
    at jdk.graal.compiler/jdk.graal.compiler.java.BytecodeParser.throwParserError(BytecodeParser.java:2564)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.throwParserError(SharedGraphBuilderPhase.java:176)
    at jdk.graal.compiler/jdk.graal.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3451)
    at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.iterateBytecodesForBlock(SharedGraphBuilderPhase.java:727)
    at jdk.graal.compiler/jdk.graal.compiler.java.BytecodeParser.handleBytecodeBlock(BytecodeParser.java:3403)
    at jdk.graal.compiler/jdk.graal.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3245)
    at jdk.graal.compiler/jdk.graal.compiler.java.BytecodeParser.build(BytecodeParser.java:1136)

See: https://github.com/graalvm/mandrel/actions/runs/6975817696/job/18983963933#step:12:216

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

zakkak commented 11 months ago

Current CI failures caused by:

  1. pg-using tests due to https://github.com/quarkusio/quarkus/issues/37208
  2. simple-with-space native integration test failing https://github.com/quarkusio/quarkus/issues/36998. The fix has been merged but the graal/master branch needed manual syncing due to https://github.com/oracle/graal/commit/a13982993f3138848a21bbb8b91233ef770027b1, the next run should pass.
  3. kotlin-serialization tests due to https://github.com/quarkusio/quarkus/issues/37212
  4. awt issue mentioned in https://github.com/graalvm/mandrel/issues/580#issuecomment-1825392846 due to update to JDK 22+25 (update: upstream issue https://github.com/oracle/graal/issues/7894)
mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

Current CI failures caused by:

  1. pg-using tests due to https://github.com/quarkusio/quarkus/issues/37208
  2. kotlin-serialization tests due to https://github.com/quarkusio/quarkus/issues/37212
  3. awt issue mentioned in https://github.com/graalvm/mandrel/issues/580#issuecomment-1825392846 due to update to JDK 22+25 (update: upstream issue https://github.com/oracle/graal/issues/7894)

Note that the simple-with-space test is now passing as the fix integrated upstream.

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

Current CI failures caused by:

  1. pg-using tests due to https://github.com/quarkusio/quarkus/issues/37208
  2. awt issue mentioned in https://github.com/graalvm/mandrel/issues/580#issuecomment-1825392846 due to update to JDK 22+25 (update: upstream issue https://github.com/oracle/graal/issues/7894)

Note that the kotlin-serialization tests due to https://github.com/quarkusio/quarkus/issues/37212 is now passing as the fix integrated upstream. We also see some test gitches due to quay.io docker pull on two tests, this looks like a random glitch and will probably be gone in the next run.

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

mandrel-bot commented 11 months ago

The build is still failing:

jerboaa commented 11 months ago

Looks like Quarkus main moved to require JDK 17+ for building.

zakkak commented 11 months ago

Looks like Quarkus main moved to require JDK 17+ for building.

FTR the move happened in https://github.com/quarkusio/quarkus/pull/37335

~I will update our CI.~ https://github.com/graalvm/mandrel/pull/625

zakkak commented 11 months ago

Mandrel also fails to build, with:

[1/8] Initializing...                                                                                    (0.0s @ 0.07GB)
Error: Substitution target for com.oracle.svm.core.jdk.Target_java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater is not loaded. Use field `onlyWith` in the `TargetClass` annotation to make substitution only active when needed.
------------------------------------------------------------------------------------------------------------------------
                        0.1s (5.4% of total time) in 10 GCs | Peak RSS: 0.32GB | CPU load: 3.16
========================================================================================================================
Finished generating 'libnative-image-agent' in 1.9s.
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Failed, exit code: 1
    at OperatingSystem.exec(build.java:1827)
    at build.buildAgents(build.java:316)
    at build.main(build.java:259)
Caused by: java.lang.RuntimeException: Failed, exit code: 1
    at OperatingSystem.exec(build.java:1816)
    at build.buildAgents(build.java:316)
    at build.main(build.java:259)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at jdk.compiler/com.sun.tools.javac.launcher.Main.execute(Main.java:484)
    at jdk.compiler/com.sun.tools.javac.launcher.Main.run(Main.java:208)
    at jdk.compiler/com.sun.tools.javac.launcher.Main.main(Main.java:135)

The class java.util.concurrent.atomic.AtomicLongFieldUpdater$LockedUpdater was removed by https://bugs.openjdk.org/browse/JDK-8318776 in jdk-22+26

The issue is already handled by https://github.com/oracle/graal/pull/7940