Skip to content

Override process importance for Session Replay integration tests#2304

Merged
ambushwork merged 1 commit into
feature/sr-integration-testfrom
yl/it/fix-flaky
Oct 7, 2024
Merged

Override process importance for Session Replay integration tests#2304
ambushwork merged 1 commit into
feature/sr-integration-testfrom
yl/it/fix-flaky

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

In integration test, the process is always treated as foreground service instead of foreground.
So when initialising the feature, DatadogRumMonitor consider the app is not in foreground,
which causes different test result in Rum feature.

In this case we need to force the importance of the process to have the same result of user environment.

Motivation

Fix flaky test

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 previously approved these changes Oct 3, 2024
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.23%. Comparing base (21025fd) to head (dbd8a5d).

Additional details and impacted files
@@                       Coverage Diff                       @@
##           feature/sr-integration-test    #2304      +/-   ##
===============================================================
- Coverage                        70.44%   70.23%   -0.20%     
===============================================================
  Files                              730      730              
  Lines                            27268    27252      -16     
  Branches                          4584     4583       -1     
===============================================================
- Hits                             19207    19140      -67     
- Misses                            6815     6841      +26     
- Partials                          1246     1271      +25     

see 26 files with indirect coverage changes

@ambushwork
ambushwork requested a review from mariusc83 October 4, 2024 13:45
@ambushwork
ambushwork marked this pull request as ready for review October 7, 2024 08:35
@ambushwork
ambushwork requested review from a team as code owners October 7, 2024 08:35
@ambushwork
ambushwork merged commit 5501536 into feature/sr-integration-test Oct 7, 2024
@ambushwork
ambushwork deleted the yl/it/fix-flaky branch October 7, 2024 09:33
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.

4 participants