Skip to content

Update custom detekt CI Job#2118

Merged
xgouchet merged 2 commits into
developfrom
xgouchet/ci_memory
Sep 18, 2024
Merged

Update custom detekt CI Job#2118
xgouchet merged 2 commits into
developfrom
xgouchet/ci_memory

Conversation

@xgouchet

@xgouchet xgouchet commented Jul 3, 2024

Copy link
Copy Markdown
Contributor

What does this PR do?

This task splits the detekt custom job to limit the RAM usage in CI

@xgouchet
xgouchet force-pushed the xgouchet/ci_memory branch 4 times, most recently from 4f1fef0 to 8a03361 Compare July 3, 2024 09:00
@codecov-commenter

codecov-commenter commented Jul 3, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.85%. Comparing base (531effd) to head (fb36314).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2118      +/-   ##
===========================================
- Coverage    69.91%   69.85%   -0.06%     
===========================================
  Files          727      730       +3     
  Lines        27112    27141      +29     
  Branches      4572     4569       -3     
===========================================
+ Hits         18954    18958       +4     
- Misses        6872     6905      +33     
+ Partials      1286     1278       -8     

see 34 files with indirect coverage changes

@xgouchet
xgouchet force-pushed the xgouchet/ci_memory branch 16 times, most recently from 37884e5 to f8b7785 Compare July 4, 2024 09:00
@xgouchet
xgouchet force-pushed the xgouchet/ci_memory branch 2 times, most recently from f00b9a8 to a9e899c Compare July 16, 2024 09:10
@xgouchet
xgouchet force-pushed the xgouchet/ci_memory branch from a9e899c to bf6b5de Compare August 1, 2024 09:19
@xgouchet
xgouchet force-pushed the xgouchet/ci_memory branch from bf6b5de to c9276ac Compare August 26, 2024 11:41
@xgouchet
xgouchet force-pushed the xgouchet/ci_memory branch 2 times, most recently from d6ef34e to cb652c9 Compare September 11, 2024 08:28
@xgouchet
xgouchet marked this pull request as ready for review September 11, 2024 08:55
@xgouchet
xgouchet requested review from a team as code owners September 11, 2024 08:55
Comment thread .gitlab-ci.yml Outdated
Comment on lines +113 to +115
# DETEKT_CUSTOM_RULES_BUILD_TASK: "assembleLibrariesRelease :tools:detekt:jar"
# DETEKT_CUSTOM_RULES_JAR_PATH: "tools/detekt/build/libs/detekt.jar"
# DETEKT_CUSTOM_RULES_YML_PATH: "detekt_custom.yml"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it stay commented?

Comment thread .gitlab-ci.yml Outdated
Comment on lines +132 to +133
- unzip dd-sdk-android-core/build/outputs/aar/dd-sdk-android-core-release.aar -d dd-sdk-android-core/build/outputs/aar/
- unzip features/dd-sdk-android-session-replay/build/outputs/aar/dd-sdk-android-session-replay-release.aar -d features/dd-sdk-android-session-replay/build/outputs/aar/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we are unpacking only these two?

Comment thread .gitlab-ci.yml Outdated
Comment on lines +136 to +138
- java -jar detekt-cli-1.23.4-all.jar --config detekt_custom.yml --plugins "tools/detekt/build/libs/detekt.jar" -i "dd-sdk-android-core" -ex "**/*.kts" --jvm-target 11 -cp "$(cat dd-sdk-android-core/detekt_classpath)"
- java -jar detekt-cli-1.23.4-all.jar --config detekt_custom.yml --plugins "tools/detekt/build/libs/detekt.jar" -i "features/dd-sdk-android-logs" -ex "**/*.kts" --jvm-target 11 -cp "$(cat features/dd-sdk-android-logs/detekt_classpath):dd-sdk-android-core/build/outputs/aar/classes.jar"
- java -jar detekt-cli-1.23.4-all.jar --config detekt_custom.yml --plugins "tools/detekt/build/libs/detekt.jar" -i "features/dd-sdk-android-ndk" -ex "**/*.kts" --jvm-target 11 -cp "$(cat features/dd-sdk-android-ndk/detekt_classpath):dd-sdk-android-core/build/outputs/aar/classes.jar"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should put this invocation in the gradle task? this will allow us to avoid a lot of repetitive lines and where only the name of the module is changed.

@xgouchet
xgouchet force-pushed the xgouchet/ci_memory branch 5 times, most recently from 155e6b0 to ae68f82 Compare September 17, 2024 09:30
@xgouchet
xgouchet requested a review from 0xnm September 17, 2024 11:49
@xgouchet
xgouchet merged commit 60f1050 into develop Sep 18, 2024
@xgouchet
xgouchet deleted the xgouchet/ci_memory branch September 18, 2024 07:10
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