Skip to content

RUM-5831: Speed up generated files/licenses checks#2188

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-5831/speed-up-generated-files-check
Aug 14, 2024
Merged

RUM-5831: Speed up generated files/licenses checks#2188
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-5831/speed-up-generated-files-check

Conversation

@0xnm

@0xnm 0xnm commented Aug 13, 2024

Copy link
Copy Markdown
Member

What does this PR do?

generated-files-check job takes 30+ minutes on the CI (link). It is essentially a gradle task checkGeneratedFiles in our case which runs licenses check, API surface check and transitive dependencies check. The main bottleneck is the task to check licenses.

With https://github.com/DataDog/gradle-dependency-license-plugin/pull/19 merged and released the job now takes only 8 minutes, so it is 4 times faster.

It is essentially possible to improve the change in the PR mentioned above by sharing the cache between the projects, but the current gain is already good enough for our needs (Detekt run with custom rules in the same stage takes 7+ minutes).

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm
0xnm force-pushed the nogorodnikov/rum-5831/speed-up-generated-files-check branch from 16fdabf to 0ea6d7c Compare August 13, 2024 09:28
Base automatically changed from nogorodnikov/speed-up-idgenerationstrategy-test to develop August 13, 2024 09:55
@codecov-commenter

codecov-commenter commented Aug 13, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.92%. Comparing base (cf7bb08) to head (881eb39).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2188      +/-   ##
===========================================
- Coverage    70.02%   69.92%   -0.10%     
===========================================
  Files          726      726              
  Lines        27005    26991      -14     
  Branches      4527     4526       -1     
===========================================
- Hits         18908    18871      -37     
- Misses        6827     6842      +15     
- Partials      1270     1278       +8     

see 36 files with indirect coverage changes

@0xnm
0xnm force-pushed the nogorodnikov/rum-5831/speed-up-generated-files-check branch from 89822c4 to 877ce88 Compare August 14, 2024 10:42
@0xnm
0xnm force-pushed the nogorodnikov/rum-5831/speed-up-generated-files-check branch from 877ce88 to 881eb39 Compare August 14, 2024 10:47
@0xnm
0xnm marked this pull request as ready for review August 14, 2024 10:58
@0xnm
0xnm requested review from a team as code owners August 14, 2024 10:58
Comment thread build.gradle.kts
@0xnm
0xnm merged commit 76511f5 into develop Aug 14, 2024
@0xnm
0xnm deleted the nogorodnikov/rum-5831/speed-up-generated-files-check branch August 14, 2024 12:26
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

Successfully merging this pull request may close these issues.

3 participants