-
Notifications
You must be signed in to change notification settings - Fork 290
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
CI test cycles slow to a crawl with 1.18.0+ #5696
Comments
Hi @internetstaff, As a quick fix I can suggest disabling code coverage in the tracer. This can be done by specifying the system property ( On the other hand, I suspect that you might be using an older way of injecting the tracer: manually configuring Maven Surefire plugin or Gradle test task. If that is the case, my other suggestion would be for you to try the newer configuration way: recent versions of the tracer work best when the build system itself is instrumented, which requires a slightly different way of attaching the tracer. Instructions on how to do it can be found in CI Visibility docs (in short, it boils down to specifying Let me know if this helps. |
Disabling code coverage does appear to resolve the issue. You're also correct in that we are still configuring surefire argLine. Attempting the "new" way of integration we first ran into the requirement to enumerate all our annotation processors, which was frustrating enough that we eventually discovered However, getting past the compile stage, our tests then began crashing.
There's not really much else to go on. We are on Thanks. |
Regarding the "The forked VM terminated without properly saying goodbye." could you please share the command that Maven Surefire was using to start the JVM? It's usually written to console along with the error (should be right before the error message, as far as I recall) |
Here's a slightly redacted version:
|
I believe I have identified and fixed the issue that was causing this failure. Could you please try the newer instrumentation way once more with release v1.19.1? I also think I've solved the problem that was causing your annotation processors to "disappear", so it'd be very nice if you could give it a try without the Thanks! |
We've tried 1.19.2. It seems like we can enable code coverage again without the slow down, and we did not have to do any finagling of annotation processors nor disable the compiler plugin. However, test runs fail in a different way now:
|
I suspect you might have a module in your project that runs multiple test executions bound to the same lifecycle phase. If that is the case, could you please try running the build with v1.19.3? The tracer was not handling this scenario correctly, but the issue is fixed in the newest release. And if that doesn't help, could you please provide some details wrt the setup in the module that is failing? Namely the Surefire and Failsafe plugins configs (anything non-standard would be of interest, such as having multiple Thank you! |
1.19.3 did not fix the session not found problem. However, I noticed it's caused by having two modules with the exact same We seem to be able to compile and test now with this integration method. Thanks! |
Great, I'm glad it works for you now! |
Upgrading past 1.17.0 causes our test cycles to slow down so much they time out (~7 minutes to 60++).
We're on Java 17, Spring Boot 2.7, Junit 5. We haven't dug too deeply yet. What would help?
The text was updated successfully, but these errors were encountered: