Repository navigation
ci(playwright): post merge-queue flaky tests to #pw-health - #34283
Conversation
The queue only posted failures (to #ci-cleanup); a retry pass stayed a shard warning nobody watches. On every queue run, read the shards' existing "Retry pass in merge queue" annotations for the current attempt and post any to #pw-health with the queued PRs, alongside the daily main-run flakes. No artifacts: the queue keeps its no-reports design. Needs checks: read. Also skip the summary job's yarn cache restore on merge_group (#34237 added it without the queue guard; queue runs have no checkout or install to use it), which test_merge_groups_upload_no_reports catches on main. Fixes #33087 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
…he queue alert GitHub keeps only 10 warning annotations per step, so a shard with more than 10 retry passes would silently drop some before the #pw-health alert read them. Each shard now emits one "Retry pass in merge queue" annotation holding the whole list (workflow-command escaped), and the job summary still lists them. The alert reads each line as a test, states the total, and says "…and N more" past 15. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Workflow changes add merge-queue Slack alerts and adjust shard annotation handling. Merge-queue runs now post flaky tests to #pw-health with a consolidated annotation per shard that avoids GitHub's 10-annotation-per-step limit. Each shard's coverage step emits one ✅ 1 closed✅ Edge Case: Annotation limits silently drop queue flakes beyond 10 per shard
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
✅ Playwright Results — workflow succeededValidated commit ✅ 551 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 32m 32s ⏱️ Max setup 5m 2s · max shard execution 16m 12s · max shard-job elapsed before upload 19m 19s · reporting 4s 🌐 241.45 requests/attempt · 2.23 app boots/UI scenario · 22.94% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Fixes #33087
Describe your changes
Follow-up to #32833 (flake week). Merge-queue runs posted only failures (to
#ci-cleanup). A test that failed and then passed on its retry stayed a shard warning that nobody sees, so queue flakes never reached the flake-week fix list.Queue flaky alert →
#pw-healthRetry pass in merge queueannotation holding all its retry passes, one per line. GitHub keeps only 10 warning annotations per step, so one per test could silently drop some.#pw-healthwith the queued PRs and the total count, listing 15 and then "…and N more". It sits next to the daily main-run flakes.jq/gh, like the failure alert, because queue runs never check out code in the summary job.checks: read, which the annotations API needs.Example:
Also: skip "Restore yarn package cache" in the summary job on
merge_group. #34237 added it without the queue guard; queue runs have no checkout oryarn installto use it.test_merge_groups_upload_no_reportsfails onmainbecause of it, and passes with this change.Verification
ghstubbed:#pw-health, tagged with the PRtitle/message.%in its name) produce 1 annotation, decode back to all 20, and give a message with the count, 15 listed and "…and 5 more".pytest .github/scripts/tests: 252 passed. The 3 failures also fail on main.🤖 Generated with Claude Code