Skip to content

[Benchmark] Fix app crash when running baseline for SR scenario#3474

Merged
ambushwork merged 1 commit into
developfrom
yl/benchmark/fix-session-replay-baseline
May 26, 2026
Merged

[Benchmark] Fix app crash when running baseline for SR scenario#3474
ambushwork merged 1 commit into
developfrom
yl/benchmark/fix-session-replay-baseline

Conversation

@ambushwork

@ambushwork ambushwork commented May 26, 2026

Copy link
Copy Markdown
Member

What does this PR do?

The previous PR caused the crash on synthetics when running with Session Replay (Compose) scenario and baseline run:

 AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.datadog.sample.benchmark/com.datadog.benchmark.sample.activities.LaunchActivity}: 
bk.q: lateinit property appContext has not been initialized

This is because Session Replay (Compose) scenario has RUM enabled in baseline, but the SDK was not initialized.

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)

@datadog-prod-us1-4

This comment has been minimized.

@ambushwork
ambushwork force-pushed the yl/benchmark/fix-session-replay-baseline branch from f985a90 to 491333a Compare May 26, 2026 16:27
@ambushwork
ambushwork marked this pull request as ready for review May 26, 2026 16:28
@ambushwork
ambushwork requested review from a team as code owners May 26, 2026 16:28
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.17%. Comparing base (00897b2) to head (491333a).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3474      +/-   ##
===========================================
- Coverage    72.20%   72.17%   -0.02%     
===========================================
  Files          964      964              
  Lines        35554    35554              
  Branches      5922     5922              
===========================================
- Hits         25669    25661       -8     
- Misses        8269     8276       +7     
- Partials      1616     1617       +1     

see 42 files with indirect coverage changes

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

@ambushwork
ambushwork merged commit a8fb3c6 into develop May 26, 2026
28 checks passed
@ambushwork
ambushwork deleted the yl/benchmark/fix-session-replay-baseline branch May 26, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants