Skip to content

Bound the Playwright apt step and make it non-fatal - #1241

Merged
SimonHeybrock merged 1 commit into
mainfrom
ci-bound-playwright-deps
Aug 19, 2026
Merged

Bound the Playwright apt step and make it non-fatal#1241
SimonHeybrock merged 1 commit into
mainfrom
ci-bound-playwright-deps

Conversation

@SimonHeybrock

@SimonHeybrock SimonHeybrock commented Aug 19, 2026

Copy link
Copy Markdown
Member

A stalled Ubuntu apt mirror hung playwright install-deps chromium for 29 minutes this morning, and the browser job was cancelled by its 30-minute timeout before it ever reached the tests. #1240 and #1238 both went red for a reason unrelated to their contents; main would have failed the same way, since the step runs before any repo code is touched.

That step is worth far less than the budget it can consume. On ubuntu-24.04 it installs fonts and nothing else -- 9 packages, all fonts-*/xfonts-*, per the last green run -- because the runner image already carries chromium's shared libraries. So it is bounded to three minutes here, and the job proceeds on failure with a warning annotation rather than burning the full timeout. The browser tests assert laid-out frame geometry against a 50px collapse threshold, not glyph rendering, so absent CJK fonts cannot change their outcome.

This does not make a genuinely missing dependency silent: chromium failing to launch still fails the browser tests, just with the real error instead of a cancellation.

Test plan

The failure mode is external and cannot be reproduced on demand. Verified instead:

  • ci.yml parses, and the step resolves to the intended shell snippet
  • The snippet continues (exit 0) under bash -e when the command fails, and gives up after the timeout rather than hanging
  • Browser job on this PR is green and its install-deps step still installs the fonts normally

A stalled Ubuntu apt mirror hung `playwright install-deps chromium` for 29
minutes on 2026-08-19, and the browser job was cancelled by its 30-minute
timeout before it ever reached the tests. Two PRs went red for a reason
unrelated to their contents.

The step is worth far less than the budget it can consume: on ubuntu-24.04 it
installs fonts only (9 packages, all fonts-*/xfonts-*), because the runner
image already carries chromium's shared libraries. Bound it to three minutes
and let the job proceed on failure with a warning annotation; the browser
tests assert laid-out frame geometry, not glyph rendering, so missing CJK
fonts cannot change their outcome.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@SimonHeybrock SimonHeybrock left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM

@SimonHeybrock
SimonHeybrock merged commit 785e902 into main Aug 19, 2026
16 checks passed
@SimonHeybrock
SimonHeybrock deleted the ci-bound-playwright-deps branch August 19, 2026 12:19
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