Karm / mandrel-integration-tests

Integration tests for GraalVM and its Mandrel distribution. Runs Quarkus, Helidon and Micronaut applications and small targeted reproducers. The focus is solely on native-image utility and compilation of Java applications into native executables.
Apache License 2.0
5 stars 3 forks source link

quarkus based mandrel IT tests fail with the 22.3 builder image #150

Closed jerboaa closed 1 year ago

jerboaa commented 1 year ago

It fails to compile the quarkus app like this:

Error:  COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[3,21] package jakarta.ws.rs does not exist
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[4,21] package jakarta.ws.rs does not exist
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[5,21] package jakarta.ws.rs does not exist
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[6,26] package jakarta.ws.rs.core does not exist
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[8,2] cannot find symbol
  symbol: class Path
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[11,6] cannot find symbol
  symbol:   class GET
  location: class org.acme.getting.started.問候Resource
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[12,6] cannot find symbol
  symbol:   class Produces
  location: class org.acme.getting.started.問候Resource
Error:  /home/runner/work/mandrel/mandrel/mandrel-integration-tests/builder-image-apps/quarkus-spöklik-encoding/src/main/java/org/acme/getting/started/問候Resource.java:[12,15] cannot find symbol
  symbol:   variable MediaType
  location: class org.acme.getting.started.問候Resource
[INFO] 8 errors 

See: https://github.com/graalvm/mandrel/actions/runs/4705326599/jobs/8346003618#step:10:5866

Earlier in the build we see it's using quarkus version:

999-SNAPSHOT

while it should be Quarkus 2.13. Thus, because it thinks it's quarkus 3.x, applies the jakarta patch, which is wrong.

jerboaa commented 1 year ago

This should be fixed by passing the right quarkus version from the CI workflow file. Fix is: https://github.com/graalvm/mandrel/pull/497

jerboaa commented 1 year ago

Next CI run should have it fixed.

jerboaa commented 1 year ago

https://github.com/graalvm/mandrel/actions/runs/4719124540/jobs/8370107555

Fixed. See: https://github.com/graalvm/mandrel/actions/runs/4719124540/jobs/8370107555#step:10:47