Incremental builds take a very long time when the change causes a lot of modules to be built

Hello,
We're using TC8 and I recently enabled the incremental builds on one of our jobs.
For most changes this works great, but on changes where the root pom is changed the build time is way too long.
If I run a simple (non-incremental) build of the entire project, it takes ~20 minutes. But a change in the root pom (which also causes the entire project to be built), causes the build to take about 1 hour.
Help please...

Thanks,
Guy

6 comments
Comment actions Permalink

Please attach build logs for full build (which is 20 minutes) and incremental build for changes in root pom.xml (which is 1 hour)

0
Comment actions Permalink

Hello again,
It's a problem to attach the entire build logs, I fear I might expose something of my company's internal information.
However we did manage to discover this - it seems what's taking long is the computation of which modules should be built.
Attached are two screenshots - one from a short build and another from a long one, and here are some statistics:


Short Build Long Build
Directly affected modules 1 2
All affected modules 1 437
Required dependency modules 30 0
Calculation time ~3 seconds ~33 minutes


Also worth mentioning - what cause this mass of dependencies in the long build is a change in the root pom.

Hope this helps, and if not let me know what's missing



Attachment(s):
short build.png
long build.png
0
Comment actions Permalink

I checked about 20 build results that took very long - all of them had a change in the root pom.

0
Comment actions Permalink

I apologize for the delay in answering.

I have added the report to our issue tracker system: https://youtrack.jetbrains.com/issue/TW-42356
Please, watch/vote for it. 

0
Comment actions Permalink

Thanks for the answer.
I have several questions:

  1. Will this be fixed for TC 10? (It says so on the issue)
  2. Can you provide more information on this? Like - how many modules does it take to make it blow up like this or anything else you can say about this..


Thanks,
Guy

0

Please sign in to leave a comment.