Skip to content

Speed up some tests in FeatureScopeTest by reducing unconditional wait time#2643

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/speed-up-featurescopecore-instrumented-tests
May 13, 2025
Merged

Speed up some tests in FeatureScopeTest by reducing unconditional wait time#2643
0xnm merged 1 commit into
developfrom
nogorodnikov/speed-up-featurescopecore-instrumented-tests

Conversation

@0xnm

@0xnm 0xnm commented May 12, 2025

Copy link
Copy Markdown
Member

What does this PR do?

Some instrumented tests in the FeatureScopeTest are using unconditional Thread.sleep with a wait time of 30 seconds.

This PR brings some improvement in the execution time by introducing more precise waiting (but not eliminating it completely): now we will wait for the all write operations to complete before jumping to the assertion section and the only unconditional wait to use is the wait for the next upload cycle.

This is just a quick improvement, there is a TODO item to make it even better in the future.

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 May 12, 2025 11:51
@datadog-datadog-prod-us1

Copy link
Copy Markdown

Datadog Summary

✅ Code Quality    ✅ Code Security    ✅ Dependencies


Was this helpful? Give us feedback!

@codecov-commenter

codecov-commenter commented May 12, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.03%. Comparing base (4df0cde) to head (c9ab2b9).
⚠️ Report is 604 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2643      +/-   ##
===========================================
- Coverage    70.06%   70.03%   -0.03%     
===========================================
  Files          820      820              
  Lines        30591    30591              
  Branches      5136     5136              
===========================================
- Hits         21432    21423       -9     
  Misses        7730     7730              
- Partials      1429     1438       +9     

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.

@0xnm
0xnm merged commit 8be1d29 into develop May 13, 2025
@0xnm
0xnm deleted the nogorodnikov/speed-up-featurescopecore-instrumented-tests branch May 13, 2025 14:14
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