Skip to content

fix(test): unflake screencast backpressure test on slow macOS runner#41951

Merged
Skn0tt merged 1 commit into
mainfrom
fix-flakes/macos-15-large-30001349050
Jul 23, 2026
Merged

fix(test): unflake screencast backpressure test on slow macOS runner#41951
Skn0tt merged 1 commit into
mainfrom
fix-flakes/macos-15-large-30001349050

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

'applies backpressure while async onFrame callback is pending' timed out on
the second expect.poll (frame delivery resuming after releaseCallback) at
its default 10s budget. It reproduces only on the slower chromium-macos-15-large
runner; the same test passes on macos-15-xlarge, macos-14-xlarge, and every
Linux/Windows bot, so this is a time-budget problem under load, not a logic bug.
The test already has test.slow() (90s), but the inner polls were capped at 10s.
Give the two load-sensitive polls a 30s timeout.

DB evidence (chromium-macos-15-large, rolling window): 24/31 runs failed (77.4%),
all Timeout 10000ms exceeded while waiting on the predicate at screencast.spec.ts:99.
Test was added 2026-07-21 in #41898; failures start the same day and continue through
today. Fails on no other bot (macos-15-xlarge 0/31, macos-14-xlarge 0/31, all Linux 0/70).

Run history (chromium-macos-15-large, oldest first):
🟥🟥🟥🟥🟧🟧🟥🟥🟥🟥🟥🟥🟧🟥🟩🟧🟥🟩🟥🟥🟥🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥

Verified on macos-15-large (this OS): before, ctest screencast.spec.ts:57 --repeat-each=8
failed 2/8 at line 99; after, --repeat-each=15 passed 15/15. npm run flint clean.

CI run: https://github.com/microsoft/playwright/actions/runs/30001349050

Suggested-reviewer: Skn0tt

'applies backpressure while async onFrame callback is pending' timed out on
the second `expect.poll` (frame delivery resuming after `releaseCallback`) at
its default 10s budget. It reproduces only on the slower `chromium-macos-15-large`
runner; the same test passes on macos-15-xlarge, macos-14-xlarge, and every
Linux/Windows bot, so this is a time-budget problem under load, not a logic bug.
The test already has `test.slow()` (90s), but the inner polls were capped at 10s.
Give the two load-sensitive polls a 30s timeout.

DB evidence (chromium-macos-15-large, rolling window): 24/31 runs failed (77.4%),
all `Timeout 10000ms exceeded while waiting on the predicate` at screencast.spec.ts:99.
Test was added 2026-07-21 in #41898; failures start the same day and continue through
today. Fails on no other bot (macos-15-xlarge 0/31, macos-14-xlarge 0/31, all Linux 0/70).

Run history (chromium-macos-15-large, oldest first):
[🟥](https://github.com/microsoft/playwright/actions/runs/29835236639/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29838699822/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29844141129/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29845175984/attempts/1)[🟧](https://github.com/microsoft/playwright/actions/runs/29845392058/attempts/1)[🟧](https://github.com/microsoft/playwright/actions/runs/29855614229/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29855625844/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29856729151/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29859883032/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29865460136/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29866867131/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29867308985/attempts/1)[🟧](https://github.com/microsoft/playwright/actions/runs/29873996100/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29874748609/attempts/1)[🟩](https://github.com/microsoft/playwright/actions/runs/29874783963/attempts/1)[🟧](https://github.com/microsoft/playwright/actions/runs/29877078341/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29879172510/attempts/1)[🟩](https://github.com/microsoft/playwright/actions/runs/29904950059/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29915407358/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29918102409/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29924682554/attempts/1)[🟧](https://github.com/microsoft/playwright/actions/runs/29931173316/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29932910968/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29933325202/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29938598979/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29940740538/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29945241493/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29957712363/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29960743816/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/29986800439/attempts/1)[🟥](https://github.com/microsoft/playwright/actions/runs/30000526442/attempts/1)

Verified on macos-15-large (this OS): before, `ctest screencast.spec.ts:57 --repeat-each=8`
failed 2/8 at line 99; after, `--repeat-each=15` passed 15/15. `npm run flint` clean.

CI run: https://github.com/microsoft/playwright/actions/runs/30001349050

Suggested-reviewer: Skn0tt

@Skn0tt Skn0tt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good job, robot!

@Skn0tt
Skn0tt merged commit 4b0cc99 into main Jul 23, 2026
47 of 48 checks passed
@Skn0tt
Skn0tt deleted the fix-flakes/macos-15-large-30001349050 branch July 23, 2026 11:17
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

3 flaky ⚠️ [chromium-library] › library/video.spec.ts:294 › screencast › should capture navigation `@frozen-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:664 › screencast › should capture full viewport `@chromium-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-emulate-media.spec.ts:144 › should keep reduced motion and color emulation after reload `@firefox-ubuntu-22.04-node20`

50206 passed, 1190 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [firefox] › mcp/cli-core.spec.ts:43 › click button @mcp-windows-latest-firefox

7785 passed, 1262 skipped


Merge workflow run.

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.

2 participants