Skip to content

fix(docker): locate Playwright chrome-linux64 binary (fixes CI #14) - #21

Merged
todie merged 4 commits into
mainfrom
fix/ci-chrome-binary
Nov 11, 2026
Merged

todie merged 4 commits into
mainfrom
fix/ci-chrome-binary

Conversation

@todie

@todie todie commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Part of #14.

Root cause

Reproduced in a throwaway ubuntu:24.04 container: pip install playwright gives 1.65.0, and playwright install chromium places the binary at /opt/ms-playwright/chromium-1254/chrome-linux64/chrome. The Dockerfile searched chromium-*/chrome-linux, so find matched nothing, ln -sf created dangling links, and /usr/bin/google-chrome never existed. The supervisor then died with failed to spawn chrome: No such file or directory. The || true on the install step and the unchecked find | head hid it at build time.

Fix

  • Find the binary with -path '*/chromium-*/chrome-linux*/chrome', and test -x before and after linking so a layout change fails the build.
  • playwright install chromium no longer swallows errors (scrapling install stays best-effort).
  • Install libatomic1: Playwright's bundled node fails to start without it on 24.04 minimal.

Verified

Layout and the libatomic failure were reproduced locally. The full image build could not run on the author host (rootless docker build DNS), so CI on this PR is the proof.

Also in this PR (each blocked CI on its own)

  • fix(deps): rusqlite 0.32 -> 0.41 for RUSTSEC-2026-0459 (the Deny job was red on main). cargo deny check advisories ok, reach-scraper tests pass.
  • fix(docker): apt uses mirrors.edge.kernel.org. On 2026-11-11 the default resolvers (GitHub runner and a WSL2 host) return SERVFAIL for *.ubuntu.com while 1.1.1.1 resolves them, so every apt-get in the build failed with exit 100 (CI Docker Build job, attempts 1 and 2). apt still verifies the Ubuntu keyring.

Closes the root causes of #14. Does not touch #15 or #16.

Also: stale test expectations (found once the image started working)

With Chrome fixed, 8 of the old 39 E2E failures were stale expectations, not bugs: example.com no longer has an <h1> (nor a static <a>), and the supervisor now runs 6 processes (t02 expected 4). Tests and the CI "Verify Scrapling" step now assert on <title> / the paragraph text, and t02 requires at least the four desktop processes. Verified locally: full e2e suite, 39 passed (cargo test -p reach-cli --test e2e_container -- --ignored --test-threads=1).

CI on head 0ba4aa6: 11/11 checks green, including Supervisor Health and E2E Tests.

Playwright >=1.5x installs chromium under chrome-linux64, so the find on
chrome-linux matched nothing and left dangling google-chrome symlinks; the
supervisor then failed to spawn chrome (#14). Also add libatomic1 (needed by
Playwright's bundled node) and stop swallowing playwright install errors.
libsqlite3-sys 0.30.1 bundles SQLite < 3.54.0 (uninitialised page-cache read
with mismatched WAL). rusqlite 0.41 pulls libsqlite3-sys 0.39.1 (SQLite 3.54.1).
archive.ubuntu.com and security.ubuntu.com return SERVFAIL from the default
resolvers on GitHub runners and a WSL2 host, failing every apt-get in the
image build. The kernel.org mirror carries the same signed archive.
example.com no longer has an <h1> (title/first <p> only, no static <a>), and
the supervisor now runs six processes. Assert on <title> and the paragraph
text, and require at least the four desktop processes.
@todie
todie marked this pull request as ready for review November 11, 2026 15:49
@todie
todie merged commit 0ba4aa6 into main Nov 11, 2026
11 checks passed
@todie
todie deleted the fix/ci-chrome-binary branch November 11, 2026 17:04
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