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
Build fails when building in parallel #1948
Comments
Hi @folker-kuhn! |
Oh, that is not a bad idea, thanks! I think this fixes my problem, but out of the box parallel would be good to help others, not? Why dont integration test can run in parallel? Can this be fixed? |
I did a quick look in what needs to be done:
Unfortunately, we still need a single run to install the artifacts in the local Maven repo to Arquillian find the dependencies. Other than that, it seems possible. |
That sounds cool to do. Especially fixing the dependency parts has allowed the GlassFish project to build in parallel out of the box. |
…nes in HttpServerTest
This make sure that both projects have already built before running the tests in parallel
…nes in HttpServerTest
This make sure that both projects have already built before running the tests in parallel
Nice! What is the speedup you are seeing? |
…nes in HttpServerTest
This make sure that both projects have already built before running the tests in parallel
… (8080) in Piranha Micro tests
@mnriem In my machine, a full build ( Sometimes, however, we get a pretty confusing error, like this one: It seems that it reads an invalid zip file, so I need to take a closer look. But otherwise, the improvement seems to be pretty good. |
That looks pretty fantastic indeed. Building in parallel (without the tests) already gave me a huge speed boost here; 24 seconds (no tests, parallel) vs 7 minutes (tests, serial). |
My gut on the confusing error would be that say process A is trying to read the signature of a given JAR/ZIP and say process B is updating the same file ... you probably want to add some additional logging so it shows you which JAR/ZIP file is tripping you up? |
@Thihup Do you need any help here? If so let us know! |
@mnriem What I'm seeing is that when testing Piranha Micro, the Shrinkwrap Maven resolver changes something in the filesystem (folder ~/.m2) in the same instant as Maven is doing something else. I actually don't know how to solve it. |
@arjantijms Any insight here? @Thihup do these changes require any changes to the current command line and or can they be committed regardless and for now only improve |
@mnriem The changes can be already committed. I didn't merged it yet because it didn't improve the |
…nes in HttpServerTest
This make sure that both projects have already built before running the tests in parallel
… (8080) in Piranha Micro tests
I suggest we merge it and open a new issue to address the remaining work later. |
* Fixes issue #1948 - Use free ports instead of hardcoded ones in HttpServerTest * Fixes issue #1948 - Add micro/server dependency in tests This make sure that both projects have already built before running the tests in parallel * Fixes issue #1948 - Use free ports instead of the default (8080) in Piranha Micro tests
Building Piranha with mvn clean install -T8 results in errors. mvn clean install without -T8 works, but takes like 10 minutes in my system.
Can you fix the errors during the parallel build? Thanks!
The text was updated successfully, but these errors were encountered: