Closed cmoulliard closed 4 months ago
Quarkus buildpack extension fails and reports an error: https://github.com/redhat-buildpacks/testing/actions/runs/7143201984/job/19454158801?pr=51
2023-12-08T15:31:10.9314347Z [INFO] --- quarkus-maven-plugin:3.2.3.Final:build (default) @ getting-started ---
2023-12-08T15:31:13.1123693Z [INFO] [io.quarkus.container.image.buildpack.deployment.BuildpackProcessor] Starting (local) container image build for jar using buildpack.
2023-12-08T15:31:13.1131159Z [INFO] [io.quarkus.container.image.buildpack.deployment.BuildpackProcessor] Initiating Buildpack build
2023-12-08T15:31:13.3628732Z [INFO] Buildpack build invoked, preparing environment...
2023-12-08T15:31:27.6062574Z [INFO] Build configured with..
2023-12-08T15:31:27.6063609Z [INFO] - build image : quay.io/snowdrop/ubi-builder:0.1.0
2023-12-08T15:31:27.6064599Z [INFO] - run image : docker.io/paketocommunity/run-ubi-base:latest
2023-12-08T15:31:27.6479510Z [INFO] - build volumes created
2023-12-08T15:31:27.7145670Z [INFO] - mounted buildpack-build-hfdrabvywh at /bld
2023-12-08T15:31:27.7146640Z [INFO] - mounted buildpack-launch-zrvttxvlrp at /launch
2023-12-08T15:31:27.7147493Z [INFO] - mounted buildpack-app-hexdzegnqf at /app
2023-12-08T15:31:27.7148399Z [INFO] - mounted buildpack-platform-mvpvfqkpov at /platform
2023-12-08T15:31:27.7149337Z [INFO] - mounted /var/run/docker.sock at /var/run/docker.sock
2023-12-08T15:31:27.7150202Z [INFO] - mounted buildpack-output-hiubaoaarg at /out
2023-12-08T15:31:27.7151395Z [INFO] - build container id 29d61b9d4a0cc6867d652c3ed759ba568cab79c463cf97e0afcbd35df3c807f0
2023-12-08T15:31:28.3779554Z [INFO] - uploaded archive to container at /app/content
2023-12-08T15:31:28.3837509Z [INFO] - uploaded env to container at /platform/env
2023-12-08T15:31:28.3838215Z [INFO] - launching build container
2023-12-08T15:31:28.5751709Z [INFO] - attaching log relay
2023-12-08T15:31:28.5926346Z ERROR: failed to set platform API: platform API version '0.4' is incompatible with the lifecycle
2023-12-08T15:31:28.7094792Z [INFO] Buildpack build complete, with exit code 11
2023-12-08T15:31:28.7377767Z [INFO] ------------------------------------------------------------------------
2023-12-08T15:31:28.7378530Z [INFO] BUILD FAILURE
2023-12-08T15:31:28.7380452Z [INFO] ------------------------------------------------------------------------
2023-12-08T15:31:28.7390250Z [INFO] Total time: 38.701 s
2023-12-08T15:31:28.7391872Z [INFO] Finished at: 2023-12-08T15:31:28Z
2023-12-08T15:31:28.7392692Z [INFO] ------------------------------------------------------------------------
2023-12-08T15:31:28.7401708Z [ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.2.3.Final:build (default) on project getting-started: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
2023-12-08T15:31:28.7405358Z [ERROR] [error]: Build step io.quarkus.container.image.buildpack.deployment.BuildpackProcessor#buildFromJar threw an exception: java.lang.IllegalStateException: Buildpack build failed
2023-12-08T15:31:28.7408259Z [ERROR] at io.quarkus.container.image.buildpack.deployment.BuildpackProcessor.runBuildpackBuild(BuildpackProcessor.java:213)
2023-12-08T15:31:28.7410578Z [ERROR] at io.quarkus.container.image.buildpack.deployment.BuildpackProcessor.buildFromJar(BuildpackProcessor.java:91)
2023-12-08T15:31:28.7412510Z [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-12-08T15:31:28.7414563Z [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2023-12-08T15:31:28.7416695Z [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-12-08T15:31:28.7418450Z [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2023-12-08T15:31:28.7419837Z [ERROR] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:864)
2023-12-08T15:31:28.7421219Z [ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:282)
2023-12-08T15:31:28.7422519Z [ERROR] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
2023-12-08T15:31:28.7423985Z [ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
2023-12-08T15:31:28.7426701Z [ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
2023-12-08T15:31:28.7428540Z [ERROR] at java.base/java.lang.Thread.run(Thread.java:840)
2023-12-08T15:31:28.7429889Z [ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
2023-12-08T15:31:28.7430788Z [ERROR] -> [Help 1]
2023-12-08T15:31:28.7431236Z [ERROR]
2023-12-08T15:31:28.7432086Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
@BarDweller Do you know why it fails like also why we got 2023-12-08T15:31:28.5926346Z ERROR: failed to set platform API: platform API version '0.4' is incompatible with the lifecycle
?
Quarkus buildpack extension fails and reports an error: https://github.com/redhat-buildpacks/testing/actions/runs/7143201984/job/19454158801?pr=51
2023-12-08T15:31:28.5926346Z ERROR: failed to set platform API: platform API version '0.4' is incompatible with the lifecycle
@BarDweller Do you know why ?
@cmoulliard please include more information re what is being tested, rather than just spamming a log fragment, I spent quite a while wondering exactly what sort of tekton pipeline (that I was expecting to drive lifecycle commands etc) you were testing before recognising the log statements as coming from the Quarkus Container Image Buildpack support (that uses the snowdrop buildpack library for java).
It looks as though you are attempting to use the Quarkus Container Image Buildpack functionality with the recently released Paketo UBI Builder image.
The issue here is that the snowdrop buildpack library doesn't support a new enough platform spec level (it's still back at 0.4) to allow execution of buildpacks containing extensions (which require platform 0.10 or so, that didn't exist when the library was created). I've been working on an update for it, and I'm hopeful it'll be ready in a week or so =) It's functional locally, but I still have more work to go before it's ready for release =)
I spent quite a while wondering exactly what sort
Sorry but the github action link was provided !
Do you think that I can/should review your PR now, and that we can release it soon to be able to fix this issue: https://github.com/redhat-buildpacks/testing/actions/runs/8647965271/job/23710696359?pr=51 @BarDweller