build(chrome): pin chrome-headless-shell 158.0.8127.88 wherever the repo installs it (#8748)

Chrome Stable moved to 158.0.8127.88. The managed shell, the render,
test, Cloud Run, Lambda and example images and the CI setup action move
with it, each with the archive or folder digest of the new build.

Signed: Rames Jusso

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
James Russo
2026-11-24 19:29:45 +00:00
committed by GitHub
co-authored by Claude Fable 5.2
parent efb540744c
commit bf26dcbaab
10 changed files with 26 additions and 26 deletions
@@ -38,7 +38,7 @@ runs:
shell: bash
run: |
dir="$RUNNER_TEMP/headless-shell"
bunx @puppeteer/browsers@3.2.2 install chrome-headless-shell@158.0.8127.36 --path "$dir"
bunx @puppeteer/browsers@3.2.2 install chrome-headless-shell@158.0.8127.88 --path "$dir"
echo "path=$(find "$dir" -type f -name chrome-headless-shell | head -n 1)" >> "$GITHUB_OUTPUT"
- shell: bash
run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
+1 -1
View File
@@ -80,7 +80,7 @@ ENV CONTAINER=true
# baselines in packages/producer/tests/*/output/output.mp4 stay reproducible.
# Each Chrome stable bump shifts pixel output enough to fail PSNR. Bump this
# version together with regenerating baselines via `docker:test:update`.
RUN npx --yes @puppeteer/browsers install chrome-headless-shell@158.0.8127.36 \
RUN npx --yes @puppeteer/browsers install chrome-headless-shell@158.0.8127.88 \
--path /root/.cache/puppeteer \
&& find /root/.cache/puppeteer/chrome-headless-shell -name "chrome-headless-shell" -type f \
&& echo "chrome-headless-shell installed"
+1 -1
View File
@@ -109,7 +109,7 @@ RUN case "$TARGETARCH" in \
# ── Chrome ───────────────────────────────────────────────────────────────────
# Use `@puppeteer/browsers` to fetch the chrome-headless-shell version
# packages/gcp-cloud-run/Dockerfile pins.
ENV CHROME_HEADLESS_SHELL_VERSION=158.0.8127.36
ENV CHROME_HEADLESS_SHELL_VERSION=158.0.8127.88
ENV CHROME_DIR=/opt/chrome
RUN mkdir -p "$CHROME_DIR" && \
+2 -2
View File
@@ -43,8 +43,8 @@ COPY --from=check /check.txt /hf-media-check.txt
# x86 function's: stage-arm64-image.ts unpacks @sparticuz/chromium's fonts and fonts.conf into /var/task/fonts.
# Bump the version and the archive's sha256 together, with the rest of the repo's pins.
FROM ${BASE} AS video
ARG CHROME_HEADLESS_SHELL_VERSION=158.0.8127.36
ARG CHROME_HEADLESS_SHELL_SHA256=176ee5c55486c22de43128871189061365ea28e881fc96016fd18e7cb59437c8
ARG CHROME_HEADLESS_SHELL_VERSION=158.0.8127.88
ARG CHROME_HEADLESS_SHELL_SHA256=9f89b7ef6574e4bbf6ddda9f17f1fab5626e93d6f7d852653232d0d3554df975
COPY fetch.sh /fetch.sh
RUN . /fetch.sh && retry microdnf install -y --nodocs --setopt=install_weak_deps=0 --releasever=2023.12.20260914 \
alsa-lib at-spi2-atk at-spi2-core atk dbus-libs expat fontconfig libX11 libXcomposite libXdamage \
+1 -1
View File
@@ -1,7 +1,7 @@
// Prints PINNED_SHELL_DIGESTS for packages/engine/src/services/chromeHostCeiling.ts: each pinned build's headless
// shell, downloaded from Chrome for Testing with the installer the CLI uses, digested as the CLI checks it.
//
// bun run --cwd packages/cli pin:chrome 158.0.8127.36 150.0.7871.124
// bun run --cwd packages/cli pin:chrome 158.0.8127.88 150.0.7871.124
import { mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
+7 -7
View File
@@ -2029,7 +2029,7 @@ describe("browser resolution on macOS 12 (Darwin < 22)", () => {
it.each([
{ host: MAC_12, expected: OLD_BUILD },
{ host: MAC_13, expected: "158.0.8127.36" },
{ host: MAC_13, expected: "158.0.8127.88" },
])("downloads $expected on $host.release", async ({ host, expected }) => {
installFsMocks({ existing: new Set(), osHost: host });
const install = vi.fn(async () => ({ executablePath: MAC_HF_BINARY }));
@@ -2055,7 +2055,7 @@ describe("browser resolution on macOS 12 (Darwin < 22)", () => {
{
browser: "chrome-headless-shell",
executablePath: MAC_HF_BINARY,
buildId: "158.0.8127.36",
buildId: "158.0.8127.88",
},
],
});
@@ -2091,10 +2091,10 @@ describe("browser resolution on macOS 12 (Darwin < 22)", () => {
installFsMocks({
existing: new Set([
PUPPETEER_CACHE,
macPuppeteerBinary("mac-158.0.8127.36"),
macPuppeteerBinary("mac-158.0.8127.88"),
macPuppeteerBinary("mac-150.0.7871.124"),
]),
dirs: { [PUPPETEER_CACHE]: ["mac-158.0.8127.36", "mac-150.0.7871.124"] },
dirs: { [PUPPETEER_CACHE]: ["mac-158.0.8127.88", "mac-150.0.7871.124"] },
osHost: MAC_12,
});
installPuppeteerBrowsersMock({ browserPlatform: "mac" });
@@ -2110,17 +2110,17 @@ describe("browser resolution on macOS 12 (Darwin < 22)", () => {
installFsMocks({
existing: new Set([
PUPPETEER_CACHE,
macPuppeteerBinary("mac-158.0.8127.36"),
macPuppeteerBinary("mac-158.0.8127.88"),
macPuppeteerBinary("mac-150.0.7871.124"),
]),
dirs: { [PUPPETEER_CACHE]: ["mac-158.0.8127.36", "mac-150.0.7871.124"] },
dirs: { [PUPPETEER_CACHE]: ["mac-158.0.8127.88", "mac-150.0.7871.124"] },
osHost: MAC_13,
});
installPuppeteerBrowsersMock({ browserPlatform: "mac" });
const { findBrowser } = await import("./manager.js");
await expect(findBrowser()).resolves.toEqual({
executablePath: macPuppeteerBinary("mac-158.0.8127.36"),
executablePath: macPuppeteerBinary("mac-158.0.8127.88"),
source: "cache",
});
});
+1 -1
View File
@@ -56,7 +56,7 @@ ENV CONTAINER=true
# The wrapper script below wires whichever binary landed into
# PRODUCER_HEADLESS_SHELL_PATH, or fails the build loudly if neither did.
RUN if [ "$TARGETARCH" = "amd64" ]; then \
npx --yes @puppeteer/browsers install chrome-headless-shell@158.0.8127.36 \
npx --yes @puppeteer/browsers install chrome-headless-shell@158.0.8127.88 \
--path /root/.cache/puppeteer; \
else \
npx --yes playwright-core@${PLAYWRIGHT_VERSION} install chromium-headless-shell; \
@@ -1266,7 +1266,7 @@ const RESOLVE_HEADLESS_SHELL_SUBPROCESS_SCRIPT = `
for (const name of list(join(root, version))) {
const folder = join(root, version, name);
if (!["chrome-headless-shell", "chrome-headless-shell.exe"].some((shell) => isShell(join(folder, shell)))) continue;
try { PINNED_SHELL_DIGESTS["158.0.8127.36"].push(headlessShellDigest(folder)); } catch {}
try { PINNED_SHELL_DIGESTS["158.0.8127.88"].push(headlessShellDigest(folder)); } catch {}
}
});
trust.then(() => import(process.env.HF_TEST_MODULE_URL)).then(({ resolveHeadlessShellPath }) => {
@@ -1593,7 +1593,7 @@ describe("resolveHeadlessShellPath", () => {
".cache",
...cache,
"chrome-headless-shell",
"linux-158.0.8127.36",
"linux-158.0.8127.88",
);
mkdirSync(join(folder, "chrome-headless-shell-linux64"), { recursive: true });
writeFileSync(
@@ -1665,7 +1665,7 @@ describe("resolveHeadlessShellPath", () => {
);
mkdirSync(shell("153.0.7990.1"), { recursive: true });
for (const [version, content] of [
["158.0.8127.36", ""],
["158.0.8127.88", ""],
["150.0.7871.124", "shell"],
]) {
mkdirSync(join(shell(version), ".."), { recursive: true });
@@ -32,7 +32,7 @@ export function exceedsChromeCeiling(versionName: string, ceiling: number | unde
// Chrome Stable, so the managed shell keeps receiving stable security fixes. macOS 12 gets 150, the last headless
// shell that launches there; it exposes canvas.drawElementImage under CanvasDrawElement.
const CHROME_VERSION = "158.0.8127.36";
const CHROME_VERSION = "158.0.8127.88";
const MACOS_12_CHROME_VERSION = "150.0.7871.124";
export function managedChromeVersion(
@@ -47,12 +47,12 @@ export function managedChromeVersion(
/** Each pinned build's headless shell folder (Chrome for Testing), by `headlessShellDigest`, one per platform.
* Regenerate with `bun run --cwd packages/cli pin:chrome <builds>` whenever a version above moves. */
export const PINNED_SHELL_DIGESTS: Readonly<Record<string, readonly string[]>> = {
"158.0.8127.36": [
"564ba9876826b3a3ce71f862a37c85ee7938191975afad9f427918db6b073e13",
"32499804ce68213b7a3d5f622c8c94004522b02ed35bab7913495e6c8986c904",
"2ba780aa9f4afc4f79f4d6c1b32eb0fb9c0217faaa88ac56b5c82facfb31742d",
"ca7a3db192eb40cf690d8c338e5e15b62ebaaee4b02e0996521e22f6081c6db3",
"dee5819f7bd47d82915bc0598a80288b7f09b9b3f819eef4008fdc208dc6f345",
"158.0.8127.88": [
"a6856a54ddbe6a63924abe15002689863373bf006bc97c0d2de597aeffe90bf8",
"86b3c803ce030155862b9ffae24a47104cd210d7baecb8e97b5e015755877d68",
"484837f7ba541cbfbd8bd33e42b6783fa5d7ebe6563c847330380993bf6a1d5a",
"85bbe3b8089609184c194edb0507abeb8632f1eefbec0d1c6ecd00f5c66c3225",
"e101a1949999a0e6c915d5cbb095cb0cee6e51095f5b3b2f51186c3c06073fbe",
],
"150.0.7871.124": [
"8c1c8a8f68f53b66b2ca340bcf0d6b3f50f9961b3042b759cefdecc7d2eacd4b",
+2 -2
View File
@@ -82,8 +82,8 @@ RUN case "$TARGETARCH" in \
# HeadlessExperimental.beginFrame before the image can build. Chrome for Testing
# publishes no linux arm64 headless shell and no checksums, so the sha256 below
# was taken from the archive itself; bump the version and hash together.
ARG CHROME_HEADLESS_SHELL_VERSION=158.0.8127.36
ARG CHROME_HEADLESS_SHELL_SHA256_AMD64=2d3a23017323c54fd457a678e4351f895c4076d8050e39d5aa6247f93448b73a
ARG CHROME_HEADLESS_SHELL_VERSION=158.0.8127.88
ARG CHROME_HEADLESS_SHELL_SHA256_AMD64=63401333cc587645bfaeea7f0c90958b327d249251e23954a47f30112ca23d5b
RUN case "$TARGETARCH" in \
amd64) CHS_SHA256="$CHROME_HEADLESS_SHELL_SHA256_AMD64" ;; \
*) echo "no pinned chrome-headless-shell for TARGETARCH '$TARGETARCH'" >&2; exit 1 ;; \