Skip to content

ci: Chromium installs without apt, so a slow mirror no longer times out browser jobs - #900

Merged
allisonmahmood merged 1 commit into
mainfrom
ci/chromium-install
Oct 23, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
ci/chromium-install

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

What changed

Browser jobs (clerk-live, tier2-smoke, cli-smoke, browser, rollback-rehearsal) sometimes ran out of time while installing Chromium. Over the four days below, seven jobs were cut off in that step, five of them clerk-live at its 10-minute limit. The browser itself was already cached and restored in seconds. The time went to playwright install-deps, which on every job downloaded 26 MB of xvfb, extra fonts and library upgrades from the Ubuntu mirror, at about 40 KB/s on bad days.

The runner image ships Google Chrome and Chromium, so every library Playwright's Chromium loads is already installed. The install-deps log says so: each Chromium library is "already the newest version" or only due an upgrade. The packages it actually added were xvfb and fonts, which the headless suites don't use. The action now restores Chromium, or downloads it on a cache miss, and runs no apt at all. If the image ever drops a library, Playwright names it when it launches. Time limits are unchanged.

Look at

The Chromium step, before: 1,205 completed steps over 234 CI runs, 2026-10-19 to 2026-10-23, cache hit in nearly all of them.

job median p90 max cut off in this step
browser 18 s 324 s 717 s –
clerk-live 18 s 93 s 568 s 5 at ~580 s (10-minute limit)
cli-smoke (both) 19 s 176 s 815 s –
rollback-rehearsal 21 s 477 s 830 s –
tier2-smoke 18 s 174 s 724 s 2 (one at the 15-minute limit)
all 19 s 169 s 830 s (p99 661 s)

A timed-out clerk-live job (run 39862978003): the cache restored in 4 s, then apt spent 9½ minutes on 17 packages:

22:11:10 Cache restored from key: playwright-chromium-ubuntu24-X64-1.63.0
22:11:10 Run pnpm exec playwright install-deps chromium
22:11:19 8 upgraded, 9 newly installed, 0 to remove and 91 not upgraded.
22:11:19 Need to get 25.9 MB of archives.
22:13:06 Get:7 … fonts-freefont-ttf all 20211204+svn4273-2 [5641 kB]
22:16:29 Ign:7 … fonts-freefont-ttf all 20211204+svn4273-2
22:17:36 Get:10 … fonts-wqy-zenhei all 0.9.45-8 [7472 kB]
22:20:22 Get:11 … libnss3 amd64 2:3.98-1ubuntu0.3 [1445 kB]
22:20:52 ##[error]The operation was canceled.

After: run 39945854174 on this PR, two attempts, 10 of 10 Chromium steps on a cache hit. No apt runs.

job attempt 1 attempt 2
browser 7 s 20 s
clerk-live 12 s 9 s
cli-smoke 3 s 7 s
cli-smoke (26) 10 s 6 s
tier2-smoke 9 s 4 s

The step now takes 3 to 20 s (median 8 s) and makes no request to the Ubuntu mirror, so a slow mirror can no longer stall it. clerk-live, attempt 1:

11:25:03 Run ./.github/actions/playwright
11:25:15 Cache restored from key: playwright-chromium-ubuntu24-X64-1.63.0
11:25:15 Run pnpm test:clerk

How it was verified

  • Every job passed on both attempts of the CI run on this PR. The browser suites (tier 1 and 2 pages, including the full-Chromium BFCache test and the CJK text check), live Clerk, the packed CLI on Node 22 and 26, the packed Preact runtime and the packed tier 2 journey all ran without the apt packages.
  • Not exercised here: the rollback rehearsal skips on this PR because no migration changed, and the cache-miss path (playwright install chromium with no deps) didn't run because the cache hit. The rehearsal launches the same headless Chromium through the same action. A miss downloads the same ~/.cache/ms-playwright contents that a hit restores, which is what these runs used.
  • No acceptance run. The before and after timings above are the evidence, and the change touches only CI.

Release impact

  • Breaking — requires action from anyone already running this

  • Not breaking — no action required. CI only; nothing that ships changes.

  • What does a revert leave behind? Nothing. The cache key is unchanged, and the cached browser is the same files either way.

  • Does the release before it still work with that? Yes. Production never runs this action.

Built by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code; reviewed by GPT-6.1-Sol (xhigh).

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Oct 23, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review: GPT-6.1-Sol (xhigh), one round

Round 1, at 58c1b46: no findings, nothing blocking. Sol checked:

  • The cache-miss path is correct. playwright install chromium fetches full Chromium, the headless shell and FFmpeg. The BFCache test's channel: "chromium" launch needs full Chromium, so --only-shell would break it.
  • No suite needs xvfb. Both Playwright configs and the packed and rollback harnesses run headless, including the full-Chromium launch.
  • No assertion needs the dropped fonts. The CJK check is toBeVisible(), which tests the element's visibility, not glyph rendering, and the embedded-font test brings its own font.
  • In the cited timed-out job, no Chromium runtime library was among the newly installed packages. The pinned runner image ships Chrome and Chromium 155.
  • All five callers were renamed. README and docs/DEVELOPMENT.md keep --with-deps as local setup, which is still correct.

No timeout increase or extra dependency-install machinery needed.

…ut browser jobs

The Playwright action restored Chromium from the cache, then still ran
`playwright install-deps`, which fetched xvfb, extra fonts and library
upgrades from the Ubuntu mirror on every job. The runner image ships Google
Chrome and Chromium, so every library Chromium loads is already there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood merged commit 7eb5b49 into main Oct 23, 2026
14 checks passed
@allisonmahmood
allisonmahmood deleted the ci/chromium-install branch October 23, 2026 17:47
allisonmahmood added a commit that referenced this pull request Oct 23, 2026
## What changed

This PR adds release 17's What's new entry, written from `5dd94f3`. It
covers everything merged since release 16's `through` (`dd3f41f`), and
it sets the `patchy` release to `0.17.0` in
`packages/patchy/package.json` and `CURRENT_RELEASE`. With this release,
people's agents can use their company's patches through Patchy MCP
(#833).

| Change | PRs |
| --- | --- |
| New: Your AI agent can use your company's tools | #873, #878, #880,
#881, #882, #883, #884, #886, #887 |
| New: Admins choose whether agents can use the company's tools | #871 |
| Improved: Your machines shows your agents too (Revoke all machines is
now Disconnect everything) | #885, #879 |
| New: See what agents can do with a tool | #876 |
| New: The log says when an agent made a change | #888 |
| New: Your agent can make a tool ready for agents | #869, #870, #872,
#875, #896 |
| Behind the scenes: agents' calls have their own limits, and a server
only an agent uses rests a minute after its last call | #889, #892 |
| Behind the scenes: New and Improved changes are public, for
patchyhq.com | #893 |
| Behind the scenes: library updates | #899 |

Five merged PRs get no line:
- #874 is release 16's own entry.
- #894 is dev tooling: worker agent launchers and scenario data. Its one
CLI fix lets a `patchy` installed outside a tier 2 repo publish it. The
skills have agents use the repo's pinned `pnpm patchy` instead, so that
path is off the documented one.
- #900 is CI.
- #901 rewords an internal skill.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`.
- It names only Claude Code and Codex. Both have connected through real
consent against dev instances. Hosted clients (Claude.ai, ChatGPT) are
checked in production only (`docs/product.md` › Patchy MCP ›
Acceptance).
- Its labels are the pages' own: Agent access on Company, Your machines,
What agents can do, Disconnect everything, and "Jordan Lee via Claude".
- **Rollback safety, from the live commit `e4243ff` to `5dd94f3`.**
- No PR in the range is labelled `one-way`, and every PR answers both
Release impact questions with "Yes".
  - Migrations 0020–0025 are all additive:
    - three defaulted or nullable columns on `companies`;
- `agent_name` on the runtime log, with a widened `credential_kind`
check;
    - the agent connection tables, `agent_consents` and `change_keys`;
    - two columns on execution bindings.

The new tables reference `users` without a cascade, but no release
deletes users or companies. Release 16 reads the runtime log only for
credential kinds it knows, so rows from agents can't break it.
- `rollback-rehearsal` on #892 rehearsed the whole stack, since #892
adds the last migration and the rest of the stack sits below it:
`Exercised rollback paths passed: e4243ff → c8bede4 → e4243ff → c8bede4,
in 238s.` #896's run skipped, because it changes no migration or handler
descriptor.
- #883 turns on the load balancer's host header preservation, which the
Deploy workflow's app stack deploy applies. A rollback leaves it on.
That's harmless, because release 16's server never reads `Host`.
- A rollback takes `/mcp` and `/whats-new.json` away. Connected agents
get a 404 until this release returns, and then their connections work
again, unless one ended in between. Agent tools published in between
stay refused to pages, because #837 already shipped in release 16.

## How it was verified

- `pnpm check` on `2d528b1`: format, lint, typecheck and synth passed.
In the test step, 2,300 of 2,301 tests passed. The one failure was
`packages/sdk/src/install.test.ts` › "says how to reach patchy when the
prefix's bin is not on PATH", which timed out at 180 s while the shared
machine was loaded. Rerun alone, that file passes all 7 tests in 62 s.
The release's own tests pass too: `whatsNew.test.ts`, `schemas.test.ts`
and `WhatsNewPages.test.ts`.
- The live commit was pinned from `/healthz/deep`: `e4243ff`, release
16. The Deploy run updated last succeeded, and none is unfinished.
- Each PR in the range was read with `gh pr view`, including its Release
impact answers.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

This PR changes only the changelog text and the `patchy` version. As
with every release, a CLI installed before this deploy is told to
upgrade.

- **What does a revert leave behind?** Nothing. People whose seen marker
reached 17 would just see no new release.
- **Does the release before it still work with that?** Yes.

If this release misbehaves, roll back to
`e4243ff54d2acbbc88b60eeb0cf9b82a26dc9d5d` (release 16).

Prepared by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant