Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove org.graalvm.polyglot:polyglot from classpath when using Mandrel 23.0 #39397

Closed
wants to merge 1 commit into from

Conversation

zakkak
Copy link
Contributor

@zakkak zakkak commented Mar 13, 2024

Mandrel 23.0 ships with org.graalvm.polyglot:polyglot embedded and
adding it to the classpath results in an error.

Closes #39322

@jerboaa please review.

@zakkak zakkak requested a review from geoand March 13, 2024 11:20
@zakkak zakkak changed the title Remove org.graalvm.polyglot:polyglot when using Mandrel 23.0 Remove org.graalvm.polyglot:polyglot from classpath when using Mandrel 23.0 Mar 13, 2024
@zakkak
Copy link
Contributor Author

zakkak commented Mar 13, 2024

CI run with Mandrel 23.0: https://github.com/graalvm/mandrel/actions/runs/8264180082

Copy link
Contributor

@jerboaa jerboaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems OK to me. Have you tested this with some polyglot-using app and 23.0?

@zakkak
Copy link
Contributor Author

zakkak commented Mar 13, 2024

Seems OK to me. Have you tested this with some polyglot-using app and 23.0?

No, I don't have any such app in mind.

CI runs with 23.0 seem to fail with:

Error:  Failed to execute goal on project quarkus-vertx-http-deployment: Could not resolve dependencies for project io.quarkus:quarkus-vertx-http-deployment:jar:999-SNAPSHOT: The following artifacts could not be resolved: io.quarkus:quarkus-resteasy-reactive-server-spi-deployment:jar:999-SNAPSHOT (absent): Could not find artifact io.quarkus:quarkus-resteasy-reactive-server-spi-deployment:jar:999-SNAPSHOT -> [Help 1]

But that seems unrelated to this PR, as it manifests in graalvm/mandrel#696 as well. Not sure why that's happening though will need to investigate.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's sort out what I pointed out inline before thinking about merging.

Comment on lines +1033 to +1034
nativeImageRunnerBuildItem.getBuildRunner()
.setup(processInheritIODisabled.isPresent() || processInheritIODisabledBuildItem.isPresent());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we tried hard to avoid calling this over and over? (ping @Karm as he was the one who fought this fight)

Is it possible to somehow get this information once and for all and propagate it to where it's needed?

@gemmellr
Copy link
Contributor

Error:  Failed to execute goal on project quarkus-vertx-http-deployment: Could not resolve dependencies for project io.quarkus:quarkus-vertx-http-deployment:jar:999-SNAPSHOT: The following artifacts could not be resolved: io.quarkus:quarkus-resteasy-reactive-server-spi-deployment:jar:999-SNAPSHOT (absent): Could not find artifact io.quarkus:quarkus-resteasy-reactive-server-spi-deployment:jar:999-SNAPSHOT -> [Help 1]

But that seems unrelated to this PR, as it manifests in graalvm/mandrel#696 as well. Not sure why that's happening though will need to investigate.

There was a change that used an old module name, which then no longer exists for a new build, if the relocations arent also built. It was updated to the new name in #39398 a little while ago, after your run started on the old revision.

Mandrel 23.0 ships with org.graalvm.polyglot:polyglot embedded and
adding it to the classpath results in an error.
@zakkak
Copy link
Contributor Author

zakkak commented Mar 13, 2024

Thank you @gemmellr. I rebased and rescheduled a Mandrel 23.0 CI run: https://github.com/graalvm/mandrel/actions/runs/8267091725

@quarkus-bot
Copy link

quarkus-bot bot commented Mar 13, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 4f06887.

Failing Jobs

Status Name Step Failures Logs Raw logs Build scan
✔️ JVM Tests - JDK 17 Logs Raw logs 🚧
JVM Tests - JDK 17 Windows Build Failures Logs Raw logs 🚧
✔️ JVM Tests - JDK 21 Logs Raw logs 🚧

Full information is available in the Build summary check run.

Failures

⚙️ JVM Tests - JDK 17 Windows #

- Failing: extensions/qute/deployment 
! Skipped: devtools/cli extensions/mailer/deployment extensions/resteasy-classic/resteasy-qute/deployment and 6 more

📦 extensions/qute/deployment

io.quarkus.qute.deployment.devmode.NoRestartTemplatesDevModeTest.testNoRestartTemplates line 49 - History - More details - Source on GitHub

org.opentest4j.AssertionFailedError: expected: <Hello f7ade625-b05d-4ffe-938b-cf93a82da4cc!!!> but was: <Hello 0fecb741-6f17-4589-92e9-ff4132485736!!!>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at io.quarkus.qute.deployment.devmode.NoRestartTemplatesDevModeTest.testNoRestartTemplates(NoRestartTemplatesDevModeTest.java:49)

Flaky tests - Develocity

⚙️ Maven Tests - JDK 17

📦 integration-tests/maven

io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed - History

  • io.quarkus.maven.it.DevMojoIT expected "c19d1ec8-e685-46a6-861c-178f0fa7fd2e" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: io.quarkus.maven.it.DevMojoIT expected "c19d1ec8-e685-46a6-861c-178f0fa7fd2e" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:691)
	at io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed(DevMojoIT.java:967)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
  • io.quarkus.maven.it.DevMojoIT expected "1544af78-256d-4d59-99df-ec87ab5a34de" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: io.quarkus.maven.it.DevMojoIT expected "1544af78-256d-4d59-99df-ec87ab5a34de" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:691)
	at io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed(DevMojoIT.java:967)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
  • io.quarkus.maven.it.DevMojoIT expected "7ddce704-900c-4547-a76f-98b36dde9dae" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: io.quarkus.maven.it.DevMojoIT expected "7ddce704-900c-4547-a76f-98b36dde9dae" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:691)
	at io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed(DevMojoIT.java:967)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed - History

  • io.quarkus.maven.it.DevMojoIT expected "c19d1ec8-e685-46a6-861c-178f0fa7fd2e" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: io.quarkus.maven.it.DevMojoIT expected "c19d1ec8-e685-46a6-861c-178f0fa7fd2e" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:691)
	at io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed(DevMojoIT.java:967)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
  • io.quarkus.maven.it.DevMojoIT expected "1544af78-256d-4d59-99df-ec87ab5a34de" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: io.quarkus.maven.it.DevMojoIT expected "1544af78-256d-4d59-99df-ec87ab5a34de" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:691)
	at io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed(DevMojoIT.java:967)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
  • io.quarkus.maven.it.DevMojoIT expected "7ddce704-900c-4547-a76f-98b36dde9dae" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes. - org.awaitility.core.ConditionTimeoutException
org.awaitility.core.ConditionTimeoutException: io.quarkus.maven.it.DevMojoIT expected "7ddce704-900c-4547-a76f-98b36dde9dae" but was "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." within 2 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:691)
	at io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed(DevMojoIT.java:967)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

@zakkak
Copy link
Contributor Author

zakkak commented Mar 14, 2024

Closing in favor of #39442 as discussed in #39440 (comment)

@zakkak zakkak closed this Mar 14, 2024
@quarkus-bot quarkus-bot bot added triage/invalid This doesn't seem right and removed triage/backport-3.8 triage/backport labels Mar 14, 2024
@zakkak zakkak deleted the 2024-03-13-fix-39322 branch March 14, 2024 16:32
@zakkak zakkak restored the 2024-03-13-fix-39322 branch March 14, 2024 16:32
@zakkak zakkak deleted the 2024-03-13-fix-39322 branch March 27, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mandrel 23.0] hibernate-orm-panache-kotlin native integration tests fail with 23.0 build and 23.1.2 sdk.
5 participants