Skip to content

Run unit tests from samples folder and for tools:benchmark module#2777

Merged
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/run-unit-tests-samples-and-benchmark
Jul 4, 2025
Merged

Run unit tests from samples folder and for tools:benchmark module#2777
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/run-unit-tests-samples-and-benchmark

Conversation

@aleksandr-gringauz

@aleksandr-gringauz aleksandr-gringauz commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

There are tests in tools:benchmark and sample:benchmark that are not running on CI. I noticed that when I ran ./gradlew testDebugUnitTest locally and it failed on DatadogHttpClientTest.

  1. Now we run those tests on CI.
  2. Fixed the ones that were failing.

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)

@codecov-commenter

codecov-commenter commented Jul 4, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.81%. Comparing base (6ce396b) to head (272000c).
⚠️ Report is 1914 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2777      +/-   ##
===========================================
- Coverage    69.84%   69.81%   -0.03%     
===========================================
  Files          824      824              
  Lines        30881    30881              
  Branches      5195     5195              
===========================================
- Hits         21566    21558       -8     
- Misses        7850     7855       +5     
- Partials      1465     1468       +3     

see 33 files with indirect coverage changes

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

@aleksandr-gringauz
aleksandr-gringauz force-pushed the aleksandr-gringauz/run-unit-tests-samples-and-benchmark branch from d826667 to 032fe59 Compare July 4, 2025 10:58
@aleksandr-gringauz
aleksandr-gringauz force-pushed the aleksandr-gringauz/run-unit-tests-samples-and-benchmark branch from 032fe59 to 272000c Compare July 4, 2025 11:02
firstValue.body,
fakeSpanJson,
contentType
contentTypePlainText

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this doesn't use contentTypeJson link

// Set a Longer
Thread.sleep(memoryUpdateIntervalMs)
fakeFile.writeText(generateStatusContent(vmRss))
Thread.sleep(memoryUpdateIntervalMs)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

testReader periodically reads data from a file link

we should sleep after we write to the file, not before, so that enough time passes for testReader to read the last value

@aleksandr-gringauz
aleksandr-gringauz marked this pull request as ready for review July 4, 2025 11:16
@aleksandr-gringauz
aleksandr-gringauz requested review from a team as code owners July 4, 2025 11:16
@aleksandr-gringauz
aleksandr-gringauz merged commit edd95ec into develop Jul 4, 2025
25 checks passed
@aleksandr-gringauz
aleksandr-gringauz deleted the aleksandr-gringauz/run-unit-tests-samples-and-benchmark branch July 4, 2025 11:58
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