Repository navigation
CI: take visual's screenshots alongside app's tests; cache Playwright's apt packages - #159
Merged
Merged
Conversation
VisualCIdocspring/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. |
ndbroadbent
force-pushed
the
ci/parallel-visual-apt-cache
branch
from
December 4, 2026 01:05
4f3df7a to
ee6e886
Compare
…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
force-pushed
the
ci/parallel-visual-apt-cache
branch
from
December 4, 2026 01:46
ee6e886 to
0736c88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two CI speed fixes from the first baseline of VisualCI's CI (the 69 successful runs from 3–4 Dec 2026).
Baseline
The critical path was
app(p50 4.1 min) →visual(p50 7.2 min).visualneededapponly for its email snapshots, which it uploads at the very end.Changes
visual-captureruns in parallel withapp. It's the oldvisualjob withoutneeds: [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) needsappandvisual-capture, downloads both artifacts and sends the whole build, so a rerun ofvisualalone still sends a complete build. It runs withif: !cancelled()and fails when either job failed, so the required check is never skipped..github/actions/playwright, used byvisual-captureandjourneys). GitHub's Azure apt mirror sometimes serves at ~50 kB/s: 9 of 144playwright install --with-depssteps 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 (
visualstays). New job:visual-capture(not required).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.