Skip to content

fix: only show test summaries on failure to reduce noise#2435

Merged
maxandersen merged 2 commits intomainfrom
fix-test-summary-noise
Mar 29, 2026
Merged

fix: only show test summaries on failure to reduce noise#2435
maxandersen merged 2 commits intomainfrom
fix-test-summary-noise

Conversation

@maxandersen
Copy link
Copy Markdown
Collaborator

Summary

  • Changed JUnit report and Allure links steps from if: always() to if: failure() in CI workflow
  • Affects both unit-test-jvm and integration-test-jvm jobs
  • Eliminates empty test summary noise when tests pass

Problem

GitHub Actions workflow was generating test report summaries for every job, even when tests passed with no failures. This created noise like:

Tests	Passed ❌️	Skipped	Failed
JUnit Test Report	0 ran	0 passed	0 skipped	0 failed
View Allure Report direct link (available after first view) for macos-latest build

Solution

Modified the conditional execution of test summary steps to only run on failure:

  • JUnit report annotation step: if: always()if: failure()
  • Artifact.ci links step: if: always()if: failure()

Impact

  • ✅ Cleaner job summaries when tests pass
  • ✅ Debugging info still appears when tests fail
  • ✅ Consistent with recent change to Gradle's add-job-summary: 'on-failure'
  • ✅ No data loss - all artifacts still uploaded and accessible

Test plan

  • Verify no empty summaries appear on passing test runs
  • Verify JUnit reports and Allure links appear when tests fail
  • Check that comprehensive test-results-summary job still provides central reference

🤖 Generated with Claude Code

maxandersen and others added 2 commits March 27, 2026 09:52
Changed JUnit report and Allure links steps from 'if: always()' to
'if: failure()' in both unit-test-jvm and integration-test-jvm jobs.
This prevents empty "0 ran, 0 passed, 0 skipped, 0 failed" summaries
from appearing when tests pass, while preserving debugging info when
tests fail. Aligns with recent change to gradle add-job-summary.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@maxandersen maxandersen merged commit fc13cad into main Mar 29, 2026
4 checks passed
@maxandersen maxandersen deleted the fix-test-summary-noise branch March 29, 2026 13:10
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.

1 participant