Skip to content

Avoid logging test assumptions failures to stderr#3263

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/avoid-logging-failed-test-assumptions
Mar 16, 2026
Merged

Avoid logging test assumptions failures to stderr#3263
0xnm merged 1 commit into
developfrom
nogorodnikov/avoid-logging-failed-test-assumptions

Conversation

@0xnm

@0xnm 0xnm commented Mar 16, 2026

Copy link
Copy Markdown
Member

What does this PR do?

A quality of life improvement: if test assumption fails, it logs to the stderr and it can bring some confusion by thinking that test failed (it was skipped instead).

In this PR we tweak test logging to log to stderr only if test failed instead.

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 March 16, 2026 11:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 489e14b0f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread buildSrc/src/main/kotlin/com/datadog/gradle/config/JUnitConfig.kt Outdated
@0xnm
0xnm force-pushed the nogorodnikov/avoid-logging-failed-test-assumptions branch from 489e14b to ad79314 Compare March 16, 2026 11:35
satween
satween previously approved these changes Mar 16, 2026
@datadog-datadog-prod-us1-2

This comment has been minimized.

@codecov-commenter

codecov-commenter commented Mar 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.36%. Comparing base (d31130d) to head (1d72724).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3263      +/-   ##
===========================================
- Coverage    71.45%   71.36%   -0.09%     
===========================================
  Files          940      940              
  Lines        34774    34774              
  Branches      5894     5894              
===========================================
- Hits         24846    24816      -30     
- Misses        8295     8308      +13     
- Partials      1633     1650      +17     

see 39 files with indirect coverage changes

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

hamorillo
hamorillo previously approved these changes Mar 16, 2026

@hamorillo hamorillo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀 Nice improvement!

Comment thread buildSrc/src/main/kotlin/com/datadog/gradle/config/JUnitConfig.kt Outdated
Comment thread buildSrc/src/main/kotlin/com/datadog/gradle/config/JUnitConfig.kt
@0xnm
0xnm dismissed stale reviews from hamorillo and satween via 1d72724 March 16, 2026 15:01
@0xnm
0xnm force-pushed the nogorodnikov/avoid-logging-failed-test-assumptions branch from ad79314 to 1d72724 Compare March 16, 2026 15:01
@0xnm
0xnm requested a review from hamorillo March 16, 2026 15:02
@0xnm
0xnm merged commit 44b1451 into develop Mar 16, 2026
26 checks passed
@0xnm
0xnm deleted the nogorodnikov/avoid-logging-failed-test-assumptions branch March 16, 2026 15:50
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