Skip to content

RUM-4372 Setup the CI and gradle tests for the new dd-sdk-android-trace-otel module#2035

Merged
mariusc83 merged 1 commit into
feature/otel-supportfrom
mconstantin/rum-4372/setup-ci-for-otel-module-release
May 21, 2024
Merged

RUM-4372 Setup the CI and gradle tests for the new dd-sdk-android-trace-otel module#2035
mariusc83 merged 1 commit into
feature/otel-supportfrom
mconstantin/rum-4372/setup-ci-for-otel-module-release

Conversation

@mariusc83

Copy link
Copy Markdown
Member

What does this PR do?

Adding the gitlab step for publishing the dd-sdk-android-trace-otel module
Removing the dd-sdk-android-trace unit tests exception, this was a leftover from a previous PR which I forgot to remove.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

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)

@mariusc83 mariusc83 self-assigned this May 16, 2024
@mariusc83
mariusc83 requested review from a team as code owners May 16, 2024 09:21
@mariusc83 mariusc83 changed the title RUM-4372 Setup the CI and gradle tests for the new dd-sdk-android-tra… RUM-4372 Setup the CI and gradle tests for the new dd-sdk-android-trace-otel module May 16, 2024
@codecov-commenter

codecov-commenter commented May 16, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.62%. Comparing base (b49d5b0) to head (cd6e3f3).
Report is 1 commits behind head on feature/otel-support.

Additional details and impacted files
@@                   Coverage Diff                    @@
##           feature/otel-support    #2035      +/-   ##
========================================================
- Coverage                 63.62%   63.62%   -0.00%     
========================================================
  Files                       751      751              
  Lines                     28359    28358       -1     
  Branches                   4682     4681       -1     
========================================================
- Hits                      18041    18040       -1     
- Misses                     9119     9121       +2     
+ Partials                   1199     1197       -2     

see 28 files with indirect coverage changes

Comment thread build.gradle.kts
Comment on lines -75 to -76
registerSubModuleAggregationTask("unitTestRelease", "testReleaseUnitTest", exceptions = setOf("dd-sdk-android-trace"))
registerSubModuleAggregationTask("unitTestDebug", "testDebugUnitTest", exceptions = setOf("dd-sdk-android-trace"))

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.

there is no test task on the CI for Otel module?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

there is actually if you check that registerSubModuleAggregationTask it is doing this automatically for all the modules but let me double check in gitlab

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.

then another question :) what changed so that it allows us to run tests without these exceptions?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

:), yes good question there, I think I added this exception when I ported the Java code as an intermediary change and I forgot to remove it :(. I checked the data I changed those lines and it make sense.

@mariusc83
mariusc83 force-pushed the mconstantin/rum-4125/disable-core-desugraing-for-trace-module branch from 1e98819 to b49d5b0 Compare May 17, 2024 07:19
jonathanmos
jonathanmos previously approved these changes May 20, 2024
val tracingFeature = sdkCore.getFeature(Feature.TRACING_FEATURE_NAME)
?.unwrap<Feature>()
val internalCoreWriterProvider = tracingFeature as? InternalCoreWriterProvider
if (tracingFeature == null || internalCoreWriterProvider == null) {

@jonathanmos jonathanmos May 20, 2024

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.

minor: checking whether tracingFeature is null may be redundant. tracingFeature can't be null without internalCoreWriterProvider also being

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

not quite, you can have tracingFeature which is of type Feature but not implementing the InternalCoreWrirerProvider

Base automatically changed from mconstantin/rum-4125/disable-core-desugraing-for-trace-module to feature/otel-support May 21, 2024 07:20
@mariusc83
mariusc83 dismissed jonathanmos’s stale review May 21, 2024 07:20

The base branch was changed.

@mariusc83
mariusc83 force-pushed the mconstantin/rum-4372/setup-ci-for-otel-module-release branch from 4007772 to 64fb3fc Compare May 21, 2024 07:29
@mariusc83
mariusc83 requested review from 0xnm and jonathanmos May 21, 2024 07:30
@mariusc83
mariusc83 force-pushed the mconstantin/rum-4372/setup-ci-for-otel-module-release branch from 64fb3fc to cd6e3f3 Compare May 21, 2024 07:31
@mariusc83
mariusc83 merged commit 3b58e41 into feature/otel-support May 21, 2024
@mariusc83
mariusc83 deleted the mconstantin/rum-4372/setup-ci-for-otel-module-release branch May 21, 2024 08:16
@xgouchet xgouchet added this to the 2.11.x milestone Jul 31, 2024
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.

5 participants