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
Slowdown with specific exclude pattern for agent #1344
Comments
Thanks for this detailed report! I'll try to debug what makes the test that slow. |
Did a quick check in GitPod 🙀: assertj/assertj@ad51a03 -> 02:10 min |
A quick profiling showed that most of the time is spent in applying the filter regex for the filter: If I replace
with
the build time is down to 02:40 min. Also looks like due to the mocking of |
Thanks for the feedback, @marchof! These are definitely improvements we can apply. |
After applying your suggestions, the build time is back to ~2min, @marchof feel free to close that issue and thanks again for the investigation. |
@joel-costigliola Thanks for the feedback! I'll keep this open because I want to investigate the root cause. |
I'm not sure if this is a bug or a regression but the feedback might be useful.
AssertJ Core is using jacoco but it was not activated by default, a build on my machine usually takes ~2min (executing ~18000 tests).
After we enabled jacoco by default (in this commit) the build took ~13min, I noticed that the tests that were slow were related to
Path
(but notFile
AFAIK).Steps to reproduce
Clone https://github.com/assertj/assertj-core, build with
mvn clean verify
To build without jacoco enabled, checkout this commit: assertj/assertj@ad51a03
To build with jacoco enabled, checkout this commit: assertj/assertj@41179e5
Note that each test related to
Path
take a seconds to execute and it feels like the execution gets slower and slower (but that's a visual observation watching my console logs hangs for each Path testsSample logs extract showing that most of the tests are super fast but the Path one takes ~24s:
Expected behaviour
Reasonable build time, obviously would take more time than a build without jacoco but not a 6x increase.
Actual behaviour
~13min build time which basically prevents me running it locally which is why we have disabled it by default now
a subsequent run was 8min.
here's a run build time:
I have added the logs for a full run in run-full-log.txt and greped the Paths tests in path-tests.txt which shows the test execution time, hope that helps.
The text was updated successfully, but these errors were encountered: