NXCALS-3020 Timber optimize module tasks and build time
@acc-logging-team - please have a look for approval.
Comparison of the last 2 builds without the optimization. with the last 2 that contain it:
As you can see the time of the first CI step is not affected (build step)! This is due to the expected ~4min build time of timber UI production task
Though, the effects of the build time, are visible on the next steps, cause they have been optimized to use npm caching, plus restrained on running only tasks relevant to the CI step that they belong.
Finally, '--parallel' flag was added to the CI steps to enable the gradle parallel task execution mode.
To summarize, let's provide a before/after comparison per each CI step, for reference:
CI Step | Time Before (avg) | Time after (avg) | Difference |
---|---|---|---|
Build | 7 min | 7 min | 0 min |
Test | 9 min | 3 min | 7 min |
Coverage | 5 min | 15 sec | 4 min & 45 sec |
Sonar | 6 min | 2 min | 4 min |
Gate | 1s | 1s | 0 min |
The total CI execution time is now reduced by ~16 minutes!
Closes NXCALS-3020