Skip to content

CI: take visual's screenshots alongside app's tests; cache Playwright's apt packages - #159

Merged
ndbroadbent merged 2 commits into
mainfrom
ci/parallel-visual-apt-cache
Dec 4, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
ci/parallel-visual-apt-cache

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Two CI speed fixes from the first baseline of VisualCI's CI (the 69 successful runs from 3–4 Dec 2026).

Baseline

p50 p90 max
PR run, wall time 11.4 min 15.1 min 29.1 min
main run, wall time 11.8 min 15.8 min 19.5 min

The critical path was app (p50 4.1 min) → visual (p50 7.2 min). visual needed app only for its email snapshots, which it uploads at the very end.

Changes

  1. visual-capture runs in parallel with app. It's the old visual job without needs: [app]: it builds, seeds, captures, and saves the screenshots, Vitest snapshots and the stripped CLI as one artifact (~16 MB). visual (still the required check, same name) needs app and visual-capture, downloads both artifacts and sends the whole build, so a rerun of visual alone still sends a complete build. It runs with if: !cancelled() and fails when either job failed, so the required check is never skipped.
  2. Playwright's apt packages come from a .deb cache (.github/actions/playwright, used by visual-capture and journeys). GitHub's Azure apt mirror sometimes serves at ~50 kB/s: 9 of 144 playwright install --with-deps steps took 8–17 minutes (the 29-min PR run was one of them). apt installs the same packages from the cached .debs (so the fonts behind the screenshots don't change) and downloads only what's missing. Only main saves the cache, and it's pruned to the installed versions.

Expected: PR wall time p50 ≈ 7.5–8 min (max(app, visual-capture) + ~1 min for visual), and no more mirror outliers. The real numbers go here once this branch's CI has run.

Required check names don't change (visual stays). New job: visual-capture (not required).


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #304 · 361 unchanged · no changes

This PR vs base: nothing since #274, across 3 builds

docspring/visualci · journeys · build #302 · 28 unchanged · no changes

This PR vs base: 1 changed since #273, across 3 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

…ight's apt packages

visual waited for app (4 min) only for its email snapshots. visual-capture now builds and takes the
screenshots in parallel with app; a short visual job (the same required check) sends the whole build
once both are done. Playwright's system packages come from a .deb cache: GitHub's apt mirror made 6%
of installs take 8-17 minutes.
@ndbroadbent
ndbroadbent force-pushed the ci/parallel-visual-apt-cache branch from ee6e886 to 0736c88 Compare December 4, 2026 01:46
@ndbroadbent
ndbroadbent merged commit b4b3bf5 into main Dec 4, 2026
15 checks passed
@ndbroadbent
ndbroadbent deleted the ci/parallel-visual-apt-cache branch December 4, 2026 02:18
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