Skip to content

RUM-10413: Mark CoreFeature properties used to create DatadogContext as volatile#2738

Merged
0xnm merged 1 commit into
nogorodnikov/rum-8170/feature-context-syncfrom
nogorodnikov/rum-10413/mark-corefeature-properties-participating-in-datadogcontext-as-volatile
Jun 19, 2025
Merged

RUM-10413: Mark CoreFeature properties used to create DatadogContext as volatile#2738
0xnm merged 1 commit into
nogorodnikov/rum-8170/feature-context-syncfrom
nogorodnikov/rum-10413/mark-corefeature-properties-participating-in-datadogcontext-as-volatile

Conversation

@0xnm

@0xnm 0xnm commented Jun 18, 2025

Copy link
Copy Markdown
Member

What does this PR do?

We need to mark some properties of CoreFeature as volatile: they are set from one thread and will be read from another thread - context processing thread.

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 requested review from a team as code owners June 18, 2025 14:02
@codecov-commenter

codecov-commenter commented Jun 18, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.79%. Comparing base (1b90579) to head (4505d3b).
⚠️ Report is 49 commits behind head on nogorodnikov/rum-8170/feature-context-sync.

Additional details and impacted files
@@                              Coverage Diff                               @@
##           nogorodnikov/rum-8170/feature-context-sync    #2738      +/-   ##
==============================================================================
- Coverage                                       69.83%   69.79%   -0.04%     
==============================================================================
  Files                                             824      824              
  Lines                                           30936    30931       -5     
  Branches                                         5188     5188              
==============================================================================
- Hits                                            21604    21588      -16     
- Misses                                           7855     7868      +13     
+ Partials                                         1477     1475       -2     
Files with missing lines Coverage Δ
...n/com/datadog/android/core/internal/CoreFeature.kt 87.68% <100.00%> (-0.07%) ⬇️
.../core/internal/system/DefaultAppVersionProvider.kt 100.00% <100.00%> (ø)

... and 38 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@0xnm
0xnm merged commit e531526 into nogorodnikov/rum-8170/feature-context-sync Jun 19, 2025
24 checks passed
@0xnm
0xnm deleted the nogorodnikov/rum-10413/mark-corefeature-properties-participating-in-datadogcontext-as-volatile branch June 19, 2025 08:56
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