Skip to content

fix: keep GitHub annotations parseable with dot reporter#41292

Open
mturac wants to merge 1 commit into
microsoft:mainfrom
mturac:fix/github-reporter-dot-annotations
Open

fix: keep GitHub annotations parseable with dot reporter#41292
mturac wants to merge 1 commit into
microsoft:mainfrom
mturac:fix/github-reporter-dot-annotations

Conversation

@mturac

@mturac mturac commented Jun 14, 2026

Copy link
Copy Markdown

Fixes #41272.

Summary

This keeps GitHub failure annotations parseable when the GitHub reporter is combined with reporters that leave output on the current line, such as the dot reporter.

The fix emits a line break before per-test GitHub failure annotations, so the ::error workflow command starts at the beginning of a line. It also adds a regression for reporter: "dot,github" to ensure the annotation is not written inline after the dot reporter output.

Validation

  • npm run ttest -- reporter-github.spec.ts
  • npx eslint packages/playwright/src/reporters/github.ts tests/playwright-test/reporter-github.spec.ts
  • npm run tsc -- --pretty false
  • npm run build
  • git diff --check

@mturac

mturac commented Jun 14, 2026

Copy link
Copy Markdown
Author

@mturac please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

@mturac mturac marked this pull request as ready for review June 14, 2026 20:34
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.

[Bug]: GitHub Reporter with the Dot reporter causing the GitHub annotations to print inline

1 participant