Skip to content

E2E: playwright install hangs downloading Chromium on a cache miss #157

Closed

Description

@kvz

The E2E Test step hangs in npx playwright install --with-deps chromium when the Playwright browser cache misses. On #156 it printed Downloading Chrome for Testing 147.0.7727.15 (playwright chromium v1217) at 21:56 UTC and produced no further output until the run was cancelled 32 minutes later: https://github.com/transloadit/jquery-sdk/actions/runs/43107333553

Reproduced locally with Playwright 1.59.1 (the version in yarn.lock), in a clean browsers path:

  • Node 26.13.1: npx playwright@1.59.1 install chromium stalls after about 18 MB and is still stuck after 10 minutes.
  • Node 26.12.1 (the version main pins): the same stall at about 18 MB.
  • curl -L of the same URL (cdn.playwright.dev/builds/cft/147.0.7727.15/linux64/chrome-linux64.zip, redirected to storage.googleapis.com) downloads the full 178 MB in about 5 seconds.

So the stall is in Playwright's downloader and independent of the Node patch version. main has not run CI since 2026-10-21, so the GitHub Actions cache entry for ~/.cache/ms-playwright has most likely been evicted, and the next run on main should hit the same hang.

Possible fixes: upgrade Playwright, add a timeout-minutes to the job so a stall fails fast instead of holding a runner for up to 6 hours, and/or install the browser in a way that does not depend on this downloader.

🤖 Claimed by kvz on framework1/jquery-sdk since 2026-11-16 · resume: codex resume 01a1e45c-d7a6-7ae0-9f6d-1389d08f5e93

Activity

  1. self-assigned this
    on Nov 11, 2026
  2. kvz commented on Nov 16, 2026

    @kvz
    MemberAuthor

    Reproduced and prepared a minimal fix locally: update Playwright 1.59.1 to 1.65.1 and cap the existing installer at five minutes, followed by an explicit error and a failed step before E2E can run. The diff touches only package.json, yarn.lock and the existing workflow: +20/-40 lines total, with five added lines outside the lockfile. All updated package releases are more than two days old.

    The pinned installer downloaded all 178,629,879 bytes, then hung during extraction at about 18 MiB. Debug logging ends at extracting archive; two baseline probes were stopped after 120 seconds. On the same Node 26.12.1, 1.65.1 completed Chromium, FFmpeg and headless-shell installation in 14 seconds in each of two private empty caches.

    Local validation passed: immutable dependency install, lint, 33 unit tests, all build stages from a clean output directory, discovery of both E2E tests, and an offline Chromium render/click smoke test. One council review round was clean. A local HTTP server that sends a partial archive then stalls caused the workflow shell to fail after 300.011 seconds with the intended error; E2E was neither invoked nor reported as skipped. That probe used the real installer, omitting only OS dependency installation locally on Arch.

    The implementation is committed locally as 764b4c4 on pw-download, with latest main included. No push, PR or CI run has been triggered. The remaining validation is the real E2E suite in CI on a cache miss; its fixtures create assemblies on https://api2.transloadit.com/, so authorization for that test traffic needs clarification before proceeding. The claim is released while waiting. Expect workflow conflicts with #156 and possible lockfile conflicts with the open dependency PRs.

  3. kvz commented on Nov 16, 2026

    @kvz
    MemberAuthor

    Ready for review in #158. CI run 43877778767 passed on the submitted head.

    This was a confirmed cold browser cache: neither the exact cache key nor the fallback matched. Chromium, FFmpeg and the headless shell were installed, then both real E2E tests passed (2 passed, 12.9 seconds). The complete E2E step took 33 seconds, including dependency installation and browser downloads. Lint, build, unit tests and coverage upload also passed.

    The PR is assigned to kvz, review is requested from tim-kos, and the card is In Progress. It includes the single clean council round, the local before/after empty-cache reproduction, and the five-minute partial-response failure probe. No package version bump or publish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions