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

NoSuchMethodException when setting forkCount=0 in maven-surefire-plugin #34756

Closed
kono94 opened this issue Jul 14, 2023 · 3 comments
Closed

NoSuchMethodException when setting forkCount=0 in maven-surefire-plugin #34756

kono94 opened this issue Jul 14, 2023 · 3 comments
Labels
area/maven kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.

Comments

@kono94
Copy link

kono94 commented Jul 14, 2023

Describe the bug

Hello,
I am facing issue when tests include third-party shared libraries. Hence, I want to disable all devservices (and Testcontainers shenanigans).

I disable the devservices by inserting the following in my application.yaml:

quarkus:
  devservices:
    enabled:false

Expected behavior

The tests (mvn quarkus:test) are running the same as mvn quarkus:dev is running on my machine (that has all third-party dependencies installed).

Running surefire with forkCount=0 is not throwing a hard error...

Actual behavior

mvn quarkus:test is crashing the JVM with a SIGSEGV error.
mvn test is failing due to:

Corrupted channel by directly writing to native stream in forked JVM 1
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 134

When setting 0 in the maven-surefire-plugin as some StackOverflow posts suggest, I'll receive:

Runtime java.lang.RuntimeException: java.lang.NoSuchMethodException: io.quarkus.runner.bootstrap.AugmentActionImpl.<init>(io.quarkus.bootstrap.app.CuratedApplication,java.util.List)

How to Reproduce?

No response

Output of uname -a or ver

Linux CDE1103 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu122.04.2) OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.2.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.3

Additional information

No response

@kono94 kono94 added the kind/bug Something isn't working label Jul 14, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 14, 2023

/cc @quarkusio/devtools (maven)

@aloubyansky
Copy link
Member

@kono94 is there a chance you could provide a reproducer? Thanks.

@gastaldi gastaldi added the triage/needs-reproducer We are waiting for a reproducer. label Jul 18, 2023
@geoand
Copy link
Contributor

geoand commented Jul 28, 2023

Closing for lack of feedback

@geoand geoand closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/maven kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.
Projects
None yet
Development

No branches or pull requests

4 participants