Skip to content

test(reports): keep fixture summaries off the real job page - #1050

Merged
Chemaclass merged 1 commit into
mainfrom
fix/step-summary-test-pollution
Aug 10, 2026
Merged

test(reports): keep fixture summaries off the real job page#1050
Chemaclass merged 1 commit into
mainfrom
fix/step-summary-test-pollution

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

🤔 Background

Related #1015

The #1043 step-summary auto-append is gated on the same claim marker as the stdout annotations. The gha-annotations acceptance tests clear that marker on purpose to test annotation output — which also un-claims the step summary, so under CI those six nested runs append their fixtures' failure summaries to the actual job page (141 junk lines per suite run, reproduced locally with the runner env simulated).

💡 Changes

  • Pin GITHUB_STEP_SUMMARY='' in every acceptance invocation that clears _BASHUNIT_GHA_ANNOTATIONS_CLAIMED, so a run that pretends to be top-level cannot inherit the real job summary
  • Extend the file's header comment: claiming top-level also claims the step summary

The gha-annotations acceptance runs clear the top-level claim marker to
test annotation output, which also un-claims the step summary: under CI
they inherited the runner's real GITHUB_STEP_SUMMARY and appended their
fixtures' results to the actual job page. Pin it empty wherever the
marker is cleared.
@Chemaclass Chemaclass added the bug Something isn't working label Aug 10, 2026
@Chemaclass Chemaclass self-assigned this Aug 10, 2026
@Chemaclass
Chemaclass merged commit 62a1542 into main Aug 10, 2026
37 checks passed
@Chemaclass
Chemaclass deleted the fix/step-summary-test-pollution branch August 10, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant