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

Sporadically slow Lombok generateTestEffectiveLombokConfig step #761

Open
lars06 opened this issue Apr 5, 2023 · 3 comments
Open

Sporadically slow Lombok generateTestEffectiveLombokConfig step #761

lars06 opened this issue Apr 5, 2023 · 3 comments

Comments

@lars06
Copy link

lars06 commented Apr 5, 2023

I'm having an issue where the Lombok plugin often causes dramatically longer build times on CI (Azure DevOps).
It is not 100% reproducible as it only occurs on some runs, but I ran the Gradle build scan 4 times with build cache off and here are the results:

Execution time of generateTestEffectiveLombokConfig:

  • 27.76 s
  • 20.16 s
  • 0.21 s
  • 0.30 s

This is a pretty big difference and causes quite slow builds when adding 30 seconds. The rest of the steps in my build scan stay relatively stable, so it appears to be related to Lombok. The generateIntegrationTestEffectiveLombokConfig and generateEffectiveLombokConfig steps vary between 0.1 - 3 s, so less drastic than the other step but still worth noting.

Any idea why the execution time would vary so much when the build cache is off and no code changes have been made? Let me know if I can provide any further information to help! :) Thanks!


Gradle version: 8.0.2
io.freefair.lombok version: 8.0.1

@ppawel
Copy link

ppawel commented Jun 10, 2023

I can confirm the same, generateTestEffectiveLombokConfig and generateEffectiveLombokConfig sometimes take over 1 minute (!) in my project.

larsgrefer added a commit that referenced this issue Aug 8, 2023
@larsgrefer
Copy link
Member

I've added some logging which will print the actual execution time and the parameters used. I hope this helps to further investigate the problem.

@kristofdepypere
Copy link

kristofdepypere commented Jan 31, 2024

Any news ? I'm having the same issue. A build scan showed 5minute execution time for generateTestEffectiveLombokConfig which is in the TOP 5 of the slowest tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants