ci(system tests): use ubuntu-latest's paired Chrome + chromedriver

Merged
JA
2mo ago
+11-1

Problem

ci/test_system fails on every PR with a SessionNotCreatedError saying this version of ChromeDriver only supports Chrome version 152, even though it passed before. test_unit, lint, and both scanners stay green across PR #190, #208, and #213 — the failure is isolated to the system-test job.

Root cause

ubuntu-latest already ships Chrome and a matching chromedriver on PATH, both at the image's version (e.g. 152.0.7977.82). The install packages step then runs sudo apt-get install ... google-chrome-stable, which upgrades the browser to whatever Google's repo serves (154 at the time of writing) while the image's /usr/bin/chromedriver stays at 152. Selenium Manager finds that 152 driver on PATH and uses it against the new browser, so every test:system run dies at session creation.

This skew is structural and recurring: the browser tracks Google's release cadence, the driver tracks the runner image, and the two drift apart on every Google Chrome release, independent of any repo change.

Fix

Stop installing google-chrome-stable in the test_system job (.github/workflows/ci.yml). Run the suite against the Chrome + chromedriver the ubuntu-latest image already ships paired. The other required packages (curl libvips postgresql-client libpq-dev) are unchanged. No app code changes.

Verification

  • test_system is the only red job; test_unit, lint, lint_js, scan_ruby, scan_js are all green across the affected PRs.
  • The single changed line removed google-chrome-stable from the test_system install step only; the test_unit job's install step is untouched.
  • The image's Chrome + driver are a matched pair by construction, so the version-skew path that caused the SessionNotCreatedError is removed.
  • Remote branch blob verified byte-identical to the intended file (sha 7526c201).

Notes

Branch fix/ci-system-chrome-drift-215 (commit 0a9f630e) is the source of truth; a stale API-generated branch fix/test-system-chrome-drift exists at commit 675ef3d8 and has been found to contain mangled secret-looking env values in the test blocks — please delete it to avoid confusion.

Fixes #215

Summary by CodeRabbit

  • Chores
    • Updated the automated test environment to use the Chrome browser and matching driver provided by the build platform. No changes to app features or behavior.