oficina / equipo Public

ci: run the browser tests and the release copy check on hosted CI

The //go:build browser tests were compiled by staticcheck and never run
on CI, and copy-release-check ran only at make release.

- Chromium in the CI box: Debian 13's chromium-headless-shell
  156.0.8078.79-1~deb13u1 and the libraries it needs that a Debian image
  lacks, pinned per architecture by snapshot.debian.org URL and SHA-256
  in scripts/ci-chromium.json (scripts/ci-chromium-pin.py writes it).
  ci-box.py unpacks them into one tree mounted at /opt/chromium-<version>
  and sets RASTRILLO_CHROME to its launcher. Chrome for Testing has no
  Linux arm64 build.
- Six browser lanes (BROWSER_LANES in scripts/ci-test.py), shards of
  20-check@29: -tags browser,testbuild, only the tests that tag adds,
  found with go list so a new one always runs. Retried once like every
  lane; the quarantine runs a quarantined browser test with the tag.
  make test runs them after the rest. ci-compile compiles them.
- 05-copy runs make copy-release-check, now part of make ci.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 9412df2e45d006361986451307093ebccaffb916 parent 03f8a91
10 files changed, +1,613 −25
  • .amadan/ci.d/05-copy +5 −0
  • .amadan/ci.d/{20-check@23 => 20-check@29} +5 −3
  • Makefile +4 −2
  • docs/superpowers/plans/HOSTED-CI-PROGRESS.md +17 −3
  • internal/equipotest/foundation_test.go +1 −1
  • internal/testci/box_test.go +36 −0
  • scripts/ci-box.py +154 −2
  • scripts/ci-chromium-pin.py +146 −0
  • scripts/ci-chromium.json +1,090 −0
  • scripts/ci-test.py +155 −14

CI failed — run details

diff --git a/.amadan/ci.d/05-copy b/.amadan/ci.d/05-copy
new file mode 100755
index 00000000..4176a80c
--- /dev/null
+++ b/.amadan/ci.d/05-copy
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Copy that is still marked COPY REVIEW REQUIRED in internal/equipo/copy.go
+# fails here, in seconds, and not at the staging build: make release runs
+# the same check (copy-release-check) before it builds anything.
+exec "$(dirname "$0")/../../scripts/ci-box.py" run make copy-release-check
diff --git a/.amadan/ci.d/20-check@23 b/.amadan/ci.d/20-check@29
similarity index 66%
rename from .amadan/ci.d/20-check@23
rename to .amadan/ci.d/20-check@29
index d74e82b6..a02c26ed 100755
--- a/.amadan/ci.d/20-check@23
+++ b/.amadan/ci.d/20-check@29
@@ -1,7 +1,9 @@
#!/bin/sh
-# Everything but perf, as 23 shards side by side; AMADAN_SHARD picks one
-# (scripts/ci-test.py: LANES, then EXTRA_SHARDS). Seventeen test lanes of
-# about a minute each. Then the quarantine: known flaky tests
+# Everything but perf, as 29 shards side by side; AMADAN_SHARD picks one
+# (scripts/ci-test.py: LANES, BROWSER_LANES, then EXTRA_SHARDS). Seventeen
+# test lanes of about a minute each. Then six browser lanes: the
+# -tags browser tests, each driving the pinned headless Chromium
+# (scripts/ci-chromium.json). Then the quarantine: known flaky tests
# (scripts/ci-quarantine.txt), kept out of the lanes. Then runner-host: the exact bubblewrap build,
# the pinned programs, real namespaces and the cgroup move, uncached. Then
# the static checks: build, vet, format, budgets, references and the
diff --git a/Makefile b/Makefile
index 43617000..f12af546 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,9 @@ budget:
# LANE=headless-work runs one; scripts/ci-test.py lanes lists them), with
# test-quarantine, runner-host and the static checks as further shards.
# Known flaky tests are quarantined (scripts/ci-quarantine.txt): skipped
-# here and run by test-quarantine.
+# here and run by test-quarantine. The browser tests (-tags browser) run
+# after the rest, as their own lanes on CI; they need a Chromium
+# (RASTRILLO_CHROME, or one on PATH).
#
# A failed test is retried once, in the lane where it failed. A pass on
# the retry keeps the lane green and prints a FLAKE line (the test, the
@@ -233,7 +235,7 @@ runner-host: runner-adapter-test runner-namespace-test
# fails the build the moment models.go and migrations/ disagree,
# instead of at boot on whatever machine notices next. If the app
# declares manifest resources, also add: rastrillo generate --check
-ci: runner-dead-references build vet fmt-check staticcheck govulncheck gitleaks budget test test-quarantine runner-host migration-check perf
+ci: copy-release-check runner-dead-references build vet fmt-check staticcheck govulncheck gitleaks budget test test-quarantine runner-host migration-check perf
.PHONY: copy-release-check direct-release-check release-runner runner-prerequisites
copy-release-check:
diff --git a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md
index b2638013..4610bbfa 100644
--- a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md
@@ -57,6 +57,19 @@ between two delegated cgroups. So:
check that they are the right sources.
- **A missing pinned program fails on CI** instead of skipping
(`testci.Absent`, `EQUIPO_TEST_TOOLS_REQUIRED=1` set by the box).
+- **Chromium for the browser tests.** The `//go:build browser` tests
+ run on CI in their own lanes (`BROWSER_LANES` in `scripts/ci-test.py`,
+ `-tags browser,testbuild`, only the tests that tag adds, found with go
+ list so a new one always runs; `scripts/ci-test.py lanes` prints them).
+ The browser is Debian 13's `chromium-headless-shell`, pinned with
+ every library it needs that a Debian image lacks: about 75 packages,
+ 155 MB, in `scripts/ci-chromium.json`, each by snapshot.debian.org URL
+ and SHA-256. Chrome for Testing has no Linux arm64 build; Debian builds
+ both. `ci-box.py prepare` unpacks them into one tree, mounted at
+ `/opt/chromium-<version>`, and the box sets `RASTRILLO_CHROME` to its
+ launcher, which `harness.ChromePath` reads first. Raise it with
+ `scripts/ci-chromium-pin.py VERSION SNAPSHOT SECURITY_SNAPSHOT`. The
+ quarantine runs a quarantined browser test with the browser tag.
## Caches across fresh machines
@@ -81,9 +94,10 @@ between two delegated cgroups. So:
| step | what |
|---|---|
-| `00-prepare` | fetch and verify the pinned programs, pull the image, deepen the clone, set file times |
-| `10-compile` | compile every package and its tests once, link no test; build rastrillo and the static check tools |
-| `20-check@23` | 17 test lanes, the quarantine, `runner-host` (bubblewrap build, pinned codex, namespaces, cgroup move, uncached), and the static checks in four groups; a failed test is retried once |
+| `00-prepare` | fetch and verify the pinned programs and Chromium, pull the image, deepen the clone, set file times |
+| `05-copy` | `make copy-release-check`: copy still marked COPY REVIEW REQUIRED fails here, not at the staging build |
+| `10-compile` | compile every package and its tests once (the browser packages with `-tags browser` too), link no test; build rastrillo and the static check tools |
+| `20-check@29` | 17 test lanes, 6 browser lanes, the quarantine, `runner-host` (bubblewrap build, pinned codex, namespaces, cgroup move, uncached), and the static checks in four groups; a failed test is retried once |
| `50-perf` | alone, it measures time |
| `90-cache` | report and trim the caches |
diff --git a/internal/equipotest/foundation_test.go b/internal/equipotest/foundation_test.go
index 04975a1b..4b09c5fd 100644
--- a/internal/equipotest/foundation_test.go
+++ b/internal/equipotest/foundation_test.go
@@ -175,7 +175,7 @@ func TestFoundationMigratesTwice(t *testing.T) {
// on a runner host, so the fake make sees what each step asks for.
func TestCIGateSteps(t *testing.T) {
root := filepath.Join("..", "..")
- want := []string{"build", "vet", "fmt-check", "staticcheck", "govulncheck", "gitleaks", "budget", "test", "test-quarantine", "runner-host", "runner-dead-references", "migration-check", "perf"}
+ want := []string{"copy-release-check", "build", "vet", "fmt-check", "staticcheck", "govulncheck", "gitleaks", "budget", "test", "test-quarantine", "runner-host", "runner-dead-references", "migration-check", "perf"}
sort.Strings(want)
// The step scripts run outside this process; their bytes are inputs.
testci.Files(t, filepath.Join(root, ".amadan"), filepath.Join(root, "scripts", "ci-test.py"), filepath.Join(root, "scripts", "ci-box.py"))
diff --git a/internal/testci/box_test.go b/internal/testci/box_test.go
index fd8de184..0aa7958e 100644
--- a/internal/testci/box_test.go
+++ b/internal/testci/box_test.go
@@ -61,3 +61,39 @@ func TestBoxPinsMatchTheCode(t *testing.T) {
}
}
}
+
+// The box's Chromium is a tree of Debian packages (scripts/ci-chromium.json,
+// written by scripts/ci-chromium-pin.py): every one fetched by an https URL
+// and checked by SHA-256, on both architectures, and the headless shell
+// among them at the pinned version.
+func TestBoxChromiumPinned(t *testing.T) {
+ raw, err := os.ReadFile("../../scripts/ci-chromium.json")
+ if err != nil {
+ t.Fatal(err)
+ }
+ var pinned map[string]json.RawMessage
+ if err = json.Unmarshal(raw, &pinned); err != nil {
+ t.Fatal(err)
+ }
+ var version string
+ if err = json.Unmarshal(pinned["version"], &version); err != nil || version == "" {
+ t.Fatalf("no version: %v", err)
+ }
+ digest := regexp.MustCompile(`^[a-f0-9]{64}$`)
+ for _, arch := range []string{"amd64", "arm64"} {
+ var packages []struct{ Package, Version, URL, SHA256 string }
+ if err = json.Unmarshal(pinned[arch], &packages); err != nil || len(packages) == 0 {
+ t.Fatalf("%s: no packages (%v)", arch, err)
+ }
+ shell := false
+ for _, p := range packages {
+ if !strings.HasPrefix(p.URL, "https://") || !digest.MatchString(p.SHA256) {
+ t.Errorf("%s %s: want an https URL and a SHA-256, got %q %q", arch, p.Package, p.URL, p.SHA256)
+ }
+ shell = shell || (p.Package == "chromium-headless-shell" && p.Version == version)
+ }
+ if !shell {
+ t.Errorf("%s: no chromium-headless-shell %s among the pinned packages", arch, version)
+ }
+ }
+}
diff --git a/scripts/ci-box.py b/scripts/ci-box.py
index c17e2ac4..0fe488a8 100755
--- a/scripts/ci-box.py
+++ b/scripts/ci-box.py
@@ -18,9 +18,14 @@ pinned programs mounted where a runner host has them:
/usr/local/bin/codex codex 0.165.0
~/.local/share/equipo/try/bin codex, its code mode host, claude
/usr/bin/socat Claude's own sandbox needs it
+ /opt/chromium-<version>/chrome the browser tests' Chromium
Every pinned program is fetched by URL and checked against the SHA-256 in
-scripts/ci-box.json, for this machine's architecture. The job's checkout
+scripts/ci-box.json, for this machine's architecture. Chromium is Debian's
+headless shell and the libraries it needs, some seventy packages pinned in
+scripts/ci-chromium.json (scripts/ci-chromium-pin.py writes it), unpacked
+into one tree; RASTRILLO_CHROME names its launcher, which is where the
+browser tests (harness.ChromePath) look first. The job's checkout
and Go caches are mounted at fixed paths, so Go's build and test caches
hold from one fresh machine to the next. Inside, the command runs as an
ordinary user (scripts/ci-box-enter.sh), never as root.
@@ -34,6 +39,7 @@ import json
import lzma
import os
import platform
+import re
import shutil
import subprocess
import sys
@@ -45,6 +51,7 @@ from concurrent.futures import ThreadPoolExecutor
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PINS = os.path.join(ROOT, "scripts", "ci-box.json")
+CHROMIUM_PINS = os.path.join(ROOT, "scripts", "ci-chromium.json")
COLD = os.path.join(ROOT, ".amadan", "cold")
# Where things sit inside the box. Fixed, whatever the job's own paths
@@ -226,6 +233,145 @@ def fetch_tools():
return tools_dir()
+# Chromium: a tree of Debian packages, not one program.
+
+def chromium_pins():
+ with open(CHROMIUM_PINS) as f:
+ return json.load(f)
+
+
+def chromium_name():
+ """The tree's directory name, here and in the box: it carries the
+ version, so RASTRILLO_CHROME, which go test keys cached results on,
+ changes when the pin does."""
+ return "chromium-" + re.sub(r"[^A-Za-z0-9.+-]", "_", chromium_pins()["version"])
+
+
+def chromium_dir():
+ return os.path.join(tools_dir(), chromium_name())
+
+
+def chromium_box():
+ return "/opt/" + chromium_name()
+
+
+def unpack_deb(path, root):
+ """Unpack a .deb's files under root. Nothing may land outside it: an
+ absolute link is made relative to root, and a name that climbs out
+ is refused."""
+ def inside(name):
+ name = os.path.normpath(name[2:] if name.startswith("./") else name)
+ if name == ".." or name.startswith("../") or os.path.isabs(name):
+ raise RuntimeError("%s: %s is outside the package" % (path, name))
+ return name
+
+ with tarfile.open(fileobj=io.BytesIO(deb_data(path))) as tar:
+ for member in tar:
+ name = inside(member.name)
+ if name == ".":
+ continue
+ dest = os.path.join(root, name)
+ if member.isdir():
+ os.makedirs(dest, exist_ok=True)
+ continue
+ os.makedirs(os.path.dirname(dest), exist_ok=True)
+ if os.path.lexists(dest):
+ os.unlink(dest)
+ if member.issym():
+ target = member.linkname
+ if os.path.isabs(target):
+ target = os.path.relpath(os.path.join(root, target.lstrip("/")), os.path.dirname(dest))
+ os.symlink(target, dest)
+ elif member.islnk():
+ shutil.copy2(os.path.join(root, inside(member.linkname)), dest)
+ elif member.isfile():
+ with tar.extractfile(member) as source, open(dest, "wb") as out:
+ shutil.copyfileobj(source, out)
+ os.chmod(dest, member.mode & 0o755)
+
+
+def library_dirs(root):
+ """Every directory of the tree that holds a shared library, the
+ browser's own aside: the launcher's LD_LIBRARY_PATH."""
+ found = []
+ for directory, _, names in os.walk(root):
+ if directory.startswith(os.path.join(root, "usr", "lib", "chromium")):
+ continue
+ if any(".so" in n for n in names):
+ found.append(os.path.relpath(directory, root))
+ return sorted(found)
+
+
+FONTS_CONF = """<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
+<fontconfig>
+ <dir prefix="relative">root/usr/share/fonts</dir>
+ <cachedir prefix="xdg">fontconfig</cachedir>
+</fontconfig>
+"""
+
+LAUNCHER = """#!/bin/sh
+# Chromium %(version)s, Debian's headless shell, from scripts/ci-chromium.json
+# (scripts/ci-box.py unpacked it). Its libraries are in this tree, not on
+# the system, and so is its font configuration.
+here=$(dirname "$(readlink -f "$0")")
+LD_LIBRARY_PATH=%(libs)s${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+FONTCONFIG_FILE=$here/fonts.conf
+export LD_LIBRARY_PATH FONTCONFIG_FILE
+exec "$here/root/%(program)s" "$@"
+"""
+
+
+def fetch_chromium():
+ pinned = chromium_pins()
+ machine = arch()
+ if machine not in pinned:
+ sys.exit("ci-box: scripts/ci-chromium.json has no pin for " + machine)
+ packages = pinned[machine]
+ stamp = json.dumps(packages, sort_keys=True)
+ final = chromium_dir()
+ marker = os.path.join(final, "pinned.json")
+ if os.path.isfile(marker):
+ with open(marker) as f:
+ if f.read() == stamp:
+ return "chromium %s: present" % pinned["version"]
+ started = time.time()
+ os.makedirs(tools_dir(), exist_ok=True)
+ with tempfile.TemporaryDirectory(dir=tools_dir()) as scratch:
+ def get(index_package):
+ index, package = index_package
+ path = os.path.join(scratch, "%03d.deb" % index)
+ got = download(package["url"], path)
+ if got != package["sha256"]:
+ raise RuntimeError("chromium: %s has SHA-256 %s, pinned %s" % (package["url"], got, package["sha256"]))
+ return path
+ with ThreadPoolExecutor(max_workers=8) as pool:
+ debs = list(pool.map(get, enumerate(packages)))
+ tree = os.path.join(scratch, "tree")
+ root = os.path.join(tree, "root")
+ os.makedirs(root)
+ for deb in debs:
+ unpack_deb(deb, root)
+ os.unlink(deb)
+ program = os.path.join(root, pinned["program"])
+ if not os.path.isfile(program):
+ raise RuntimeError("chromium: the packages hold no " + pinned["program"])
+ libs = ":".join('"$here/root/%s"' % d for d in library_dirs(root))
+ with open(os.path.join(tree, "fonts.conf"), "w") as f:
+ f.write(FONTS_CONF)
+ launcher = os.path.join(tree, "chrome")
+ with open(launcher, "w") as f:
+ f.write(LAUNCHER % {"version": pinned["version"], "libs": libs, "program": pinned["program"]})
+ os.chmod(launcher, 0o755)
+ with open(os.path.join(tree, "pinned.json"), "w") as f:
+ f.write(stamp)
+ if os.path.isdir(final):
+ shutil.rmtree(final)
+ os.replace(tree, final)
+ return "chromium %s: %d packages fetched, verified and unpacked in %.1fs" % (
+ pinned["version"], len(packages), time.time() - started)
+
+
# The container engine and the image.
def engine():
@@ -328,6 +474,8 @@ def run(command):
machine = arch()
tools = pins()["tools"]
missing = [name for name, tool in tools.items() if not os.path.isfile(tool_path(name, tool))]
+ if not os.path.isfile(os.path.join(chromium_dir(), "chrome")):
+ missing.append("chromium")
if missing:
sys.exit("ci-box: %s not fetched; run scripts/ci-box.py prepare first" % ", ".join(sorted(missing)))
gocache, gomodcache = go_env("GOCACHE"), go_env("GOMODCACHE")
@@ -345,6 +493,7 @@ def run(command):
inside = entry[machine].get("box") or entry.get("box")
if inside:
args += ["-v", tool_path(name, entry) + ":" + inside + ":ro"]
+ args += ["-v", chromium_dir() + ":" + chromium_box() + ":ro"]
if tool == "docker":
args.append("--init") # reaps the orphans the containment tests leave on purpose
# A CI runner checks a branch out as a git worktree: .git is a file
@@ -359,6 +508,7 @@ def run(command):
env = {
"GOCACHE": GOCACHE, "GOMODCACHE": GOMODCACHE,
"EQUIPO_TEST_TOOLS_REQUIRED": "1",
+ "RASTRILLO_CHROME": chromium_box() + "/chrome",
"EQUIPO_BOX_UID": str(os.getuid()), "EQUIPO_BOX_GID": str(os.getgid()),
}
if tool == "podman" and os.getuid() != 0:
@@ -466,9 +616,11 @@ def prepare():
return # a runner host: nothing to fetch
started = time.time()
facts()
- with ThreadPoolExecutor(max_workers=2) as pool:
+ with ThreadPoolExecutor(max_workers=3) as pool:
image = pool.submit(pull_image)
+ chromium = pool.submit(fetch_chromium)
fetch_tools()
+ say(chromium.result())
image.result()
if os.environ.get("AMADAN_CI") == "1":
deepen()
diff --git a/scripts/ci-chromium-pin.py b/scripts/ci-chromium-pin.py
new file mode 100755
index 00000000..a00510ba
--- /dev/null
+++ b/scripts/ci-chromium-pin.py
@@ -0,0 +1,146 @@
+#!/usr/bin/env python3
+"""Pin the Chromium the CI box runs browser tests with: write
+scripts/ci-chromium.json.
+
+ scripts/ci-chromium-pin.py VERSION DEBIAN_SNAPSHOT SECURITY_SNAPSHOT
+
+for example
+
+ scripts/ci-chromium-pin.py 156.0.8078.79-1~deb13u1 20261107T024144Z 20261103T013555Z
+
+The browser is Debian 13's chromium-headless-shell, the system the box
+image runs, because Debian builds it for arm64 (hosted CI) and amd64
+alike; Chrome for Testing has no Linux arm64 build. It is a program and
+some sixty libraries, not one file, so this reads the Packages indexes of
+trixie and trixie-security at two snapshot.debian.org timestamps and
+pins every package the headless shell needs that a Debian image does not
+already have: what Priority: required pulls in is in every Debian image,
+the box's too, and is left out. Each package is pinned by the SHA-256 the
+signed index gives it, at a snapshot URL that never changes;
+scripts/ci-box.py fetches and checks them and unpacks them into one tree.
+
+Raise the pin with each Chromium security release: the newest version is
+at https://snapshot.debian.org/mr/binary/chromium-headless-shell/, and
+its first_seen there (binfiles?fileinfo=1) is the security timestamp.
+"""
+import json
+import lzma
+import os
+import re
+import sys
+import urllib.request
+
+ARCHES = ("amd64", "arm64")
+TOP = ("chromium-headless-shell", "chromium-common")
+# chromium-common's own dependencies are the full browser's (x11-utils for
+# xmessage, xdg-utils for opening links); the headless shell runs neither.
+SKIP = {"x11-utils", "xdg-utils"}
+OUT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "ci-chromium.json")
+SNAPSHOT = "https://snapshot.debian.org/archive/%s/%s/"
+
+
+def fetch(url):
+ request = urllib.request.Request(url, headers={"User-Agent": "equipo-ci-chromium-pin"})
+ with urllib.request.urlopen(request, timeout=300) as response:
+ return response.read()
+
+
+def stanzas(text):
+ for block in text.split("\n\n"):
+ fields, last = {}, None
+ for line in block.splitlines():
+ if line[:1] in (" ", "\t") and last:
+ fields[last] += "\n" + line
+ elif ":" in line:
+ last, value = line.split(":", 1)
+ fields[last] = value.strip()
+ if "Package" in fields:
+ yield fields
+
+
+def index(archive, stamp, suite, arch):
+ url = SNAPSHOT % (archive, stamp) + "dists/%s/main/binary-%s/Packages.xz" % (suite, arch)
+ packages = {}
+ for p in stanzas(lzma.decompress(fetch(url)).decode()):
+ p["_base"] = SNAPSHOT % (archive, stamp)
+ packages[p["Package"]] = p
+ return packages
+
+
+def relations(p):
+ """The alternatives of each Depends and Pre-Depends group, names only."""
+ groups = []
+ for field in ("Pre-Depends", "Depends"):
+ for group in filter(None, (g.strip() for g in p.get(field, "").split(","))):
+ groups.append([re.split(r"[\s(\[:]", alt.strip(), maxsplit=1)[0] for alt in group.split("|")])
+ return groups
+
+
+def resolver(packages):
+ provides = {}
+ for name, p in packages.items():
+ for virtual in filter(None, (v.strip() for v in p.get("Provides", "").split(","))):
+ provides.setdefault(re.split(r"[\s(]", virtual, maxsplit=1)[0], name)
+
+ def pick(alternatives):
+ for alt in alternatives:
+ if alt in packages:
+ return alt
+ for alt in alternatives:
+ if alt in provides:
+ return provides[alt]
+ raise SystemExit("no package for any of %s" % " | ".join(alternatives))
+
+ def closure(start, skip=frozenset(), prune=frozenset()):
+ seen, todo = set(), list(start)
+ while todo:
+ name = todo.pop()
+ if name in seen or name in prune:
+ continue
+ seen.add(name)
+ if name in skip:
+ continue
+ for group in relations(packages[name]):
+ todo.append(pick(group))
+ return seen
+ return closure
+
+
+def pins(version, debian, security, arch):
+ packages = index("debian", debian, "trixie", arch)
+ for name, p in index("debian-security", security, "trixie-security", arch).items():
+ packages[name] = p # a security update supersedes the release's build
+ for name in TOP:
+ if packages[name]["Version"] != version:
+ sys.exit("%s %s: the snapshots have %s, not %s" % (name, arch, packages[name]["Version"], version))
+ closure = resolver(packages)
+ required = [n for n, p in packages.items() if p.get("Priority") == "required" or p.get("Essential") == "yes"]
+ base = closure(required)
+ wanted = sorted(closure(TOP, skip=SKIP, prune=base) - SKIP)
+ return [{"package": n, "version": packages[n]["Version"],
+ "url": packages[n]["_base"] + packages[n]["Filename"],
+ "sha256": packages[n]["SHA256"], "size": int(packages[n]["Size"])} for n in wanted]
+
+
+def main(argv):
+ if len(argv) != 3:
+ print(__doc__, file=sys.stderr)
+ return 2
+ version, debian, security = argv
+ pinned = {
+ "version": version,
+ "snapshots": {"debian": debian, "debian-security": security},
+ "program": "usr/lib/chromium/chromium-headless-shell",
+ }
+ for arch in ARCHES:
+ pinned[arch] = pins(version, debian, security, arch)
+ print("%s: %d packages, %.0f MB" % (arch, len(pinned[arch]), sum(p["size"] for p in pinned[arch]) / 1e6))
+ with open(OUT, "w") as f:
+ json.dump(pinned, f, indent=2)
+ f.write("\n")
+ print("wrote " + OUT)
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main(sys.argv[1:]))
diff --git a/scripts/ci-chromium.json b/scripts/ci-chromium.json
new file mode 100644
index 00000000..3a9267a8
--- /dev/null
+++ b/scripts/ci-chromium.json
@@ -0,0 +1,1090 @@
+{
+ "version": "156.0.8078.79-1~deb13u1",
+ "snapshots": {
+ "debian": "20261107T024144Z",
+ "debian-security": "20261103T013555Z"
+ },
+ "program": "usr/lib/chromium/chromium-headless-shell",
+ "amd64": [
+ {
+ "package": "at-spi2-common",
+ "version": "2.56.2-1+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/at-spi2-core/at-spi2-common_2.56.2-1+deb13u2_all.deb",
+ "sha256": "a2a7b53c9925ec33a471d56dd60f5effe35cece109ec4296cc8d98a1250213b4",
+ "size": 170748
+ },
+ {
+ "package": "chromium-common",
+ "version": "156.0.8078.79-1~deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/c/chromium/chromium-common_156.0.8078.79-1~deb13u1_amd64.deb",
+ "sha256": "29d9a33123bcc5aba47746eb89a72d973bf7a737e3820425c7496904f7235fbd",
+ "size": 31731400
+ },
+ {
+ "package": "chromium-headless-shell",
+ "version": "156.0.8078.79-1~deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/c/chromium/chromium-headless-shell_156.0.8078.79-1~deb13u1_amd64.deb",
+ "sha256": "3effad373d85df1bb998bb88a5768aa3b8cf715a2e0e7a4723d384240169aa80",
+ "size": 69320980
+ },
+ {
+ "package": "fontconfig-config",
+ "version": "2.15.0-2.3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fontconfig/fontconfig-config_2.15.0-2.3_amd64.deb",
+ "sha256": "0475c00d02660c07a15085051818625331bb502e053242106aaaa1f2ddb41225",
+ "size": 318308
+ },
+ {
+ "package": "fonts-dejavu-core",
+ "version": "2.37-8",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fonts-dejavu/fonts-dejavu-core_2.37-8_all.deb",
+ "sha256": "86635b3d25b3655fc11cb3ecc3af59f0bf19643b02b94f2de48bd10253cdba12",
+ "size": 840460
+ },
+ {
+ "package": "fonts-dejavu-mono",
+ "version": "2.37-8",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fonts-dejavu/fonts-dejavu-mono_2.37-8_all.deb",
+ "sha256": "3003e98a5debfdeadc7040a7f715fe9fe6fb67f68deacf6049b54e30f07fc014",
+ "size": 488808
+ },
+ {
+ "package": "libasound2-data",
+ "version": "1.2.14-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/alsa-lib/libasound2-data_1.2.14-1+deb13u1_all.deb",
+ "sha256": "04688afdff3769c0f685541daed7b2f6f0cb946799ddf1d5847ddf11fe245559",
+ "size": 21188
+ },
+ {
+ "package": "libasound2t64",
+ "version": "1.2.14-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/alsa-lib/libasound2t64_1.2.14-1+deb13u1_amd64.deb",
+ "sha256": "5495496142d57e5ad6d581ac5456ec3c87f872c109a2bfb815d154b673eebc67",
+ "size": 380896
+ },
+ {
+ "package": "libasyncns0",
+ "version": "0.8-6+b5",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/liba/libasyncns/libasyncns0_0.8-6+b5_amd64.deb",
+ "sha256": "e7958777b0e3586349c57ac759a95b68f80d28e5bd1c4225705198b39b436115",
+ "size": 12028
+ },
+ {
+ "package": "libatk1.0-0t64",
+ "version": "2.56.2-1+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/at-spi2-core/libatk1.0-0t64_2.56.2-1+deb13u2_amd64.deb",
+ "sha256": "24786bc90e3ff80c4d1d8bdb5ec18bb5f06df9081a5233eb080f3202fcf6a1c3",
+ "size": 51996
+ },
+ {
+ "package": "libatomic1",
+ "version": "14.2.0-19",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/g/gcc-14/libatomic1_14.2.0-19_amd64.deb",
+ "sha256": "212b399aae2f7299203d261a57e49372e09565a9a5ea971905f94a3960366c05",
+ "size": 9308
+ },
+ {
+ "package": "libatspi2.0-0t64",
+ "version": "2.56.2-1+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/at-spi2-core/libatspi2.0-0t64_2.56.2-1+deb13u2_amd64.deb",
+ "sha256": "65e9c9ecbd820fba2d04104cddd0bad33d256cbdfe0d1cb5365f10e363df2315",
+ "size": 81056
+ },
+ {
+ "package": "libbrotli1",
+ "version": "1.1.0-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/b/brotli/libbrotli1_1.1.0-2+deb13u1_amd64.deb",
+ "sha256": "db46824c60fee46aff3cc0be3e5f736bc606cae669b1fb17516a41e8073251a9",
+ "size": 303640
+ },
+ {
+ "package": "libdav1d7",
+ "version": "1.5.1-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/d/dav1d/libdav1d7_1.5.1-1_amd64.deb",
+ "sha256": "8c64de4465a8ae1ca23e1dada1dfc73d7b431540fd5ae18f21430928576d5b05",
+ "size": 558612
+ },
+ {
+ "package": "libdbus-1-3",
+ "version": "1.16.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/d/dbus/libdbus-1-3_1.16.2-2_amd64.deb",
+ "sha256": "bbcb711daff7e104b5f80f9b05475b6142674bfe65518a36a56e96a91068a3f5",
+ "size": 177904
+ },
+ {
+ "package": "libdouble-conversion3",
+ "version": "3.3.1-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/d/double-conversion/libdouble-conversion3_3.3.1-1_amd64.deb",
+ "sha256": "bd43b8c185a78d108548b30da6a695aabb6644ce0dd266892da2d10cfe471067",
+ "size": 41816
+ },
+ {
+ "package": "libdrm-amdgpu1",
+ "version": "2.4.124-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libd/libdrm/libdrm-amdgpu1_2.4.124-2_amd64.deb",
+ "sha256": "c1d97a5e32e2bc68e833b8abeae026b6306198e87ee4396a7ffecd4779caefbf",
+ "size": 22632
+ },
+ {
+ "package": "libdrm-common",
+ "version": "2.4.124-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libd/libdrm/libdrm-common_2.4.124-2_all.deb",
+ "sha256": "9a8a6c65c165e9964f106fb4ac710959b5d33e0790227e3ab6b27c4742d1254a",
+ "size": 8288
+ },
+ {
+ "package": "libdrm-intel1",
+ "version": "2.4.124-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libd/libdrm/libdrm-intel1_2.4.124-2_amd64.deb",
+ "sha256": "188ab1fd74c838b3c8055d62107351e16a4bb7a25d39c30bbb9aac30ddd37238",
+ "size": 64104
+ },
+ {
+ "package": "libdrm2",
+ "version": "2.4.124-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libd/libdrm/libdrm2_2.4.124-2_amd64.deb",
+ "sha256": "fe2276901c7cd7b8079de63072d37fe1cbeb4eb001a3bc1f1d662ad89aa0890e",
+ "size": 39032
+ },
+ {
+ "package": "libedit2",
+ "version": "3.1-20250104-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libe/libedit/libedit2_3.1-20250104-1_amd64.deb",
+ "sha256": "b002ea172b9c1e34a67bc497c523c67bb74c3f0a4e98113cb083990a1f1d3bfe",
+ "size": 93832
+ },
+ {
+ "package": "libelf1t64",
+ "version": "0.192-4",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/e/elfutils/libelf1t64_0.192-4_amd64.deb",
+ "sha256": "94497b7e17b6f574a0605b380d454e20d3f01a9c63b70c2a2263f679d30053e1",
+ "size": 189408
+ },
+ {
+ "package": "libexpat1",
+ "version": "2.9.0-1~deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/e/expat/libexpat1_2.9.0-1~deb13u1_amd64.deb",
+ "sha256": "feff874772cae904ae4d24e917b35664952bec4b4ae9100a4edda5a7fa746832",
+ "size": 125744
+ },
+ {
+ "package": "libffi8",
+ "version": "3.4.8-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libf/libffi/libffi8_3.4.8-2_amd64.deb",
+ "sha256": "0ebdc340de33333639c3c63874cd4b15ac2e83dfa1ef3053b7eefaf4919f4f68",
+ "size": 24144
+ },
+ {
+ "package": "libflac14",
+ "version": "1.5.0+ds-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/flac/libflac14_1.5.0+ds-2_amd64.deb",
+ "sha256": "658b9f77d35638caf75dfaea4f6d5cde196104d5662f0776e23d7cc450bd4cb5",
+ "size": 209588
+ },
+ {
+ "package": "libfontconfig1",
+ "version": "2.15.0-2.3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fontconfig/libfontconfig1_2.15.0-2.3_amd64.deb",
+ "sha256": "7ae91ec59857cc8e375eb2bdd371a4a69daea38f7787d06d474a847867d852b1",
+ "size": 391576
+ },
+ {
+ "package": "libfreetype6",
+ "version": "2.13.3+dfsg-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/f/freetype/libfreetype6_2.13.3+dfsg-1+deb13u1_amd64.deb",
+ "sha256": "e4947f3291528f03d574f2b01d5c5fc45c58c47480f32888a5cdf0f231ab584e",
+ "size": 452308
+ },
+ {
+ "package": "libgbm1",
+ "version": "25.0.7-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/m/mesa/libgbm1_25.0.7-2+deb13u1_amd64.deb",
+ "sha256": "31fb6d76b9ceaf13848fa617df53f85f62626b4fe7464a93811c720af6d5f2dd",
+ "size": 44592
+ },
+ {
+ "package": "libglib2.0-0t64",
+ "version": "2.84.4-3~deb13u5",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/g/glib2.0/libglib2.0-0t64_2.84.4-3~deb13u5_amd64.deb",
+ "sha256": "e2baf92c57d1db1753e5781a61450d9a01e7833c7bd2dfe87776a6811c11ecc2",
+ "size": 1521120
+ },
+ {
+ "package": "libgraphite2-3",
+ "version": "1.3.14-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/g/graphite2/libgraphite2-3_1.3.14-2+deb13u1_amd64.deb",
+ "sha256": "1769ba3ed3c1fc75b7fbe02678e32aa24391205813eceef4e1e3500015d12ee3",
+ "size": 75172
+ },
+ {
+ "package": "libharfbuzz-subset0",
+ "version": "10.2.0-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/h/harfbuzz/libharfbuzz-subset0_10.2.0-1+deb13u1_amd64.deb",
+ "sha256": "2d0de8588408af221927b372c3c8d439d638a0a8abb549660ed5813ab529e6bc",
+ "size": 559548
+ },
+ {
+ "package": "libharfbuzz0b",
+ "version": "10.2.0-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/h/harfbuzz/libharfbuzz0b_10.2.0-1+deb13u1_amd64.deb",
+ "sha256": "932165b933e5eb633293afe984a983ebe89cb27c923ce7208626f1da6c0c7941",
+ "size": 478952
+ },
+ {
+ "package": "libjpeg62-turbo",
+ "version": "1:2.1.5-4",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_2.1.5-4_amd64.deb",
+ "sha256": "5504299ad0e3c0a9ca9f962a68a650a040db52f9f416a109e74df48d55601d3f",
+ "size": 168152
+ },
+ {
+ "package": "liblcms2-2",
+ "version": "2.16-2+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/l/lcms2/liblcms2-2_2.16-2+deb13u2_amd64.deb",
+ "sha256": "32e53c2002ccea8c60c02779bea0ba49ac132fef702988a30d64af79b6617806",
+ "size": 160264
+ },
+ {
+ "package": "libllvm19",
+ "version": "1:19.1.7-3+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/llvm-toolchain-19/libllvm19_19.1.7-3+b1_amd64.deb",
+ "sha256": "db0d614d61345ca710fb73e75105f1ec6e38898fa7b3aa99fa7eb7d8b0a11d57",
+ "size": 25978316
+ },
+ {
+ "package": "libminizip1t64",
+ "version": "1:1.3.dfsg+really1.3.1-1+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/z/zlib/libminizip1t64_1.3.dfsg+really1.3.1-1+b1_amd64.deb",
+ "sha256": "9682faa260b02c865790f02089a755cb19b4b9100d91d3adb11da090709ad5d2",
+ "size": 53324
+ },
+ {
+ "package": "libmp3lame0",
+ "version": "3.100-6+b3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/lame/libmp3lame0_3.100-6+b3_amd64.deb",
+ "sha256": "3867319c9fbbc8cc25f2d1dc1d75d13548c84c37fa709c1ac9ca02ac051b63ab",
+ "size": 362660
+ },
+ {
+ "package": "libmpg123-0t64",
+ "version": "1.32.10-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/m/mpg123/libmpg123-0t64_1.32.10-1+deb13u1_amd64.deb",
+ "sha256": "31fa6ef638f1fdbe198faee0b6fe50d9dd468077f8247cc3dbf6b2250abb6101",
+ "size": 149184
+ },
+ {
+ "package": "libnspr4",
+ "version": "2:4.36-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/n/nspr/libnspr4_4.36-1_amd64.deb",
+ "sha256": "87fc2039ee89cff2b8010fa9535706b1def40031acfc52bf12197dcb3cb7b064",
+ "size": 109800
+ },
+ {
+ "package": "libnss3",
+ "version": "2:3.110-1+deb13u5",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/n/nss/libnss3_3.110-1+deb13u5_amd64.deb",
+ "sha256": "7059839165c39e734ff59c712fde83ef5ea01328872819dfbabd1c08e75f3116",
+ "size": 1392784
+ },
+ {
+ "package": "libogg0",
+ "version": "1.3.5-3+b2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libo/libogg/libogg0_1.3.5-3+b2_amd64.deb",
+ "sha256": "911aec914f5bda0788164ff8068b682537378bf8d407b1d6c1b377522f96b83b",
+ "size": 23812
+ },
+ {
+ "package": "libopenh264-8",
+ "version": "2.6.0+dfsg-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/o/openh264/libopenh264-8_2.6.0+dfsg-2_amd64.deb",
+ "sha256": "d1ced361cc6053f8b1eaf1cb3095085a1645491819131919d900ad1e1922643b",
+ "size": 395464
+ },
+ {
+ "package": "libopenjp2-7",
+ "version": "2.5.3-2.1~deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/o/openjpeg2/libopenjp2-7_2.5.3-2.1~deb13u2_amd64.deb",
+ "sha256": "7ddf6360e8845853ba3c9cfaefc2ad6b92b2627eb8564a257f5f2a4c857f8748",
+ "size": 204616
+ },
+ {
+ "package": "libopus0",
+ "version": "1.5.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/o/opus/libopus0_1.5.2-2_amd64.deb",
+ "sha256": "794056db33d71b2ac4bd8b5a4eb23b627bcb8a49d123c33b6e841a996253a067",
+ "size": 2851932
+ },
+ {
+ "package": "libpciaccess0",
+ "version": "0.17-3+b3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libp/libpciaccess/libpciaccess0_0.17-3+b3_amd64.deb",
+ "sha256": "d9a0091071635a84e837051e4813005ac445071731becea28fba4d9806df5252",
+ "size": 51920
+ },
+ {
+ "package": "libpng16-16t64",
+ "version": "1.6.48-1+deb13u6",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/libp/libpng1.6/libpng16-16t64_1.6.48-1+deb13u6_amd64.deb",
+ "sha256": "0f8034d1c2547760430c81e8d87e5d6acd533a3493c80cf76dbecd0343b6773c",
+ "size": 283368
+ },
+ {
+ "package": "libpulse0",
+ "version": "17.0+dfsg1-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/p/pulseaudio/libpulse0_17.0+dfsg1-2+b1_amd64.deb",
+ "sha256": "786aca79119cb249562708fd24dcdf817604cfe75bbfcb8cda3464042e17f40e",
+ "size": 275632
+ },
+ {
+ "package": "libsensors-config",
+ "version": "1:3.6.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/lm-sensors/libsensors-config_3.6.2-2_all.deb",
+ "sha256": "3056da80c7d963af795dab480ab6f6f4b154ad4ac39f522dc52d17c834fea253",
+ "size": 16236
+ },
+ {
+ "package": "libsensors5",
+ "version": "1:3.6.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/lm-sensors/libsensors5_3.6.2-2_amd64.deb",
+ "sha256": "f0a994a6d7cfa695dea5343d0d1ba7eed796c0ad920c7282998b95f60049c4f6",
+ "size": 37492
+ },
+ {
+ "package": "libsndfile1",
+ "version": "1.2.2-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libs/libsndfile/libsndfile1_1.2.2-2+deb13u1_amd64.deb",
+ "sha256": "d92263a045554e6f39c6b1c2ee4cca44a3248d9b9339301ff195969bf84b75eb",
+ "size": 199172
+ },
+ {
+ "package": "libvorbis0a",
+ "version": "1.3.7-3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libv/libvorbis/libvorbis0a_1.3.7-3_amd64.deb",
+ "sha256": "0465f7f602f7b00965e58e7273b5876060ab7946f0452a9f95d979046932cc42",
+ "size": 89960
+ },
+ {
+ "package": "libvorbisenc2",
+ "version": "1.3.7-3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libv/libvorbis/libvorbisenc2_1.3.7-3_amd64.deb",
+ "sha256": "5fbbf06a5b196235aa2753cd12bbe7f843328571d368f15b1c337578e29f73a2",
+ "size": 75432
+ },
+ {
+ "package": "libwayland-server0",
+ "version": "1.23.1-3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/w/wayland/libwayland-server0_1.23.1-3_amd64.deb",
+ "sha256": "2967212bd582e0dffca443fdc44f4c660e7368d41f7ee3a7f6314e0c3abfe9ea",
+ "size": 34432
+ },
+ {
+ "package": "libx11-6",
+ "version": "2:1.8.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libx11/libx11-6_1.8.12-1_amd64.deb",
+ "sha256": "b5a3fd3bf8c8fd0364bfb9bea00dcba7fc301229bd02dded084632d31f5b0fb3",
+ "size": 815292
+ },
+ {
+ "package": "libx11-data",
+ "version": "2:1.8.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libx11/libx11-data_1.8.12-1_all.deb",
+ "sha256": "c54f87069888f80ba4da586da6147d74c7598ccdd8b90906dbc4271fa414c738",
+ "size": 343072
+ },
+ {
+ "package": "libx11-xcb1",
+ "version": "2:1.8.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libx11/libx11-xcb1_1.8.12-1_amd64.deb",
+ "sha256": "e05f94d21a932fba5b09b9b13d99df776b155d3bc792c0e294451df9ffe1ba25",
+ "size": 247128
+ },
+ {
+ "package": "libxau6",
+ "version": "1:1.0.11-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxau/libxau6_1.0.11-1_amd64.deb",
+ "sha256": "689a9f0e0ba3e2c65431f864871e303ee904de69dd28abfc462663fae030227f",
+ "size": 20392
+ },
+ {
+ "package": "libxcb-dri3-0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-dri3-0_1.17.0-2+b1_amd64.deb",
+ "sha256": "f446d42fb5fcebbb3e347368ba83616769fdb271d85b2f49048e337f3163d267",
+ "size": 106892
+ },
+ {
+ "package": "libxcb-present0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-present0_1.17.0-2+b1_amd64.deb",
+ "sha256": "db95ea4630c55bd7f3281cb60ccf75b1627ef2f4399e1939f8f6161e584a92fb",
+ "size": 105612
+ },
+ {
+ "package": "libxcb-randr0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-randr0_1.17.0-2+b1_amd64.deb",
+ "sha256": "f5d9fe5fdf797918f81f0abf6cfd4270bd54659540cddb4da709ab7154523214",
+ "size": 116736
+ },
+ {
+ "package": "libxcb-sync1",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-sync1_1.17.0-2+b1_amd64.deb",
+ "sha256": "0ce4770ed1505be9ddc6473045e4662d062aff2f3077ee684265f01cfb543559",
+ "size": 108688
+ },
+ {
+ "package": "libxcb-xfixes0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-xfixes0_1.17.0-2+b1_amd64.deb",
+ "sha256": "f9c1aafc18bf9e4662e34bbaf3bb00f1f4e8c2fc1dd786fdfb6cb9cb6c64fae7",
+ "size": 109288
+ },
+ {
+ "package": "libxcb1",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb1_1.17.0-2+b1_amd64.deb",
+ "sha256": "5c222a72d11b866447da31693254f738430726e3e065a384e82687b2fd2f978b",
+ "size": 144340
+ },
+ {
+ "package": "libxcomposite1",
+ "version": "1:0.4.6-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcomposite/libxcomposite1_0.4.6-1_amd64.deb",
+ "sha256": "20e3c1d9b2135f0c8c4246a9fd26a51a57d5850c3b36ecc173c45d6be7328af3",
+ "size": 16348
+ },
+ {
+ "package": "libxdamage1",
+ "version": "1:1.1.6-1+b2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxdamage/libxdamage1_1.1.6-1+b2_amd64.deb",
+ "sha256": "e51e43f23f3befbc1f9408271f4df6773d37caece9ce7e1f38abade382f7fbf7",
+ "size": 15460
+ },
+ {
+ "package": "libxdmcp6",
+ "version": "1:1.1.5-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxdmcp/libxdmcp6_1.1.5-1_amd64.deb",
+ "sha256": "0740dc760916b2008b45417a42a8fd7dd5de370fb57d31373f15034cda8acf0b",
+ "size": 27756
+ },
+ {
+ "package": "libxext6",
+ "version": "2:1.3.4-1+b3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxext/libxext6_1.3.4-1+b3_amd64.deb",
+ "sha256": "fc618ec40465e5ce48622606299cb47833efc3fb235ba15543b81f850722f443",
+ "size": 50448
+ },
+ {
+ "package": "libxfixes3",
+ "version": "1:6.0.0-2+b4",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxfixes/libxfixes3_6.0.0-2+b4_amd64.deb",
+ "sha256": "3fdd95d86d8e9d63e11f52070935c8f9f912c36aa3b17338d969f7685f3ed4fb",
+ "size": 20228
+ },
+ {
+ "package": "libxi6",
+ "version": "2:1.8.2-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxi/libxi6_1.8.2-1_amd64.deb",
+ "sha256": "093d0903f35bb7a9f6815180ee040e6951fecf9b66c128cd72f064710210606e",
+ "size": 78896
+ },
+ {
+ "package": "libxkbcommon0",
+ "version": "1.7.0-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxkbcommon/libxkbcommon0_1.7.0-2_amd64.deb",
+ "sha256": "f75ee544f55acc6a271debfab3ea4ae0458afc89d81cfe1a71137e07d4895b86",
+ "size": 112700
+ },
+ {
+ "package": "libxml2",
+ "version": "2.12.7+dfsg+really2.9.14-2.1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/libx/libxml2/libxml2_2.12.7+dfsg+really2.9.14-2.1+deb13u1_amd64.deb",
+ "sha256": "b4743a0fd8e86379ec2bdfb6b97b99fb1c92a925e538920052316814470e99f8",
+ "size": 698060
+ },
+ {
+ "package": "libxnvctrl0",
+ "version": "535.171.04-1+b2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxnvctrl/libxnvctrl0_535.171.04-1+b2_amd64.deb",
+ "sha256": "0f53cff5c3d0395635bcabd626ac85f6a74d2dac21963c4955396f24bfc73db8",
+ "size": 14172
+ },
+ {
+ "package": "libxrandr2",
+ "version": "2:1.5.4-1+b3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxrandr/libxrandr2_1.5.4-1+b3_amd64.deb",
+ "sha256": "11e3490de93a8bbee3daba719cb8e1325a26fb3c125525c34bdcb7deb05eb9b2",
+ "size": 36312
+ },
+ {
+ "package": "libxrender1",
+ "version": "1:0.9.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxrender/libxrender1_0.9.12-1_amd64.deb",
+ "sha256": "9d042dfd5e613be1e02e6ddd0c5c4adef19c5eb08f6db838c2eba672c496dca4",
+ "size": 27896
+ },
+ {
+ "package": "libxshmfence1",
+ "version": "1.3.3-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxshmfence/libxshmfence1_1.3.3-1_amd64.deb",
+ "sha256": "7b339e9e5b2349723d35af4df89bcc7aa456bbdf8ba1754358f9b44c3fe1f964",
+ "size": 10884
+ },
+ {
+ "package": "libz3-4",
+ "version": "4.13.3-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/z/z3/libz3-4_4.13.3-1_amd64.deb",
+ "sha256": "71383373523ef62d47eccf660cf6535c3febcbb3f88e54cb7a43124014b57359",
+ "size": 8560036
+ },
+ {
+ "package": "mesa-libgallium",
+ "version": "25.0.7-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/m/mesa/mesa-libgallium_25.0.7-2+deb13u1_amd64.deb",
+ "sha256": "3e610f29321cdcc61337c86e6b4031ff60f0c9915fe19e6a862ac06480620ff4",
+ "size": 9630224
+ },
+ {
+ "package": "xkb-data",
+ "version": "2.42-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/x/xkeyboard-config/xkb-data_2.42-1_all.deb",
+ "sha256": "196ff18533382f64e057ea49df2bb486bd4275a4cc0917361edb560b8756dada",
+ "size": 789736
+ }
+ ],
+ "arm64": [
+ {
+ "package": "at-spi2-common",
+ "version": "2.56.2-1+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/at-spi2-core/at-spi2-common_2.56.2-1+deb13u2_all.deb",
+ "sha256": "a2a7b53c9925ec33a471d56dd60f5effe35cece109ec4296cc8d98a1250213b4",
+ "size": 170748
+ },
+ {
+ "package": "chromium-common",
+ "version": "156.0.8078.79-1~deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/c/chromium/chromium-common_156.0.8078.79-1~deb13u1_arm64.deb",
+ "sha256": "80b0fe734394208d7a9d5daf160dfaea8bc8645214239e941f45bc2903d29f02",
+ "size": 36694960
+ },
+ {
+ "package": "chromium-headless-shell",
+ "version": "156.0.8078.79-1~deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/c/chromium/chromium-headless-shell_156.0.8078.79-1~deb13u1_arm64.deb",
+ "sha256": "ccecd0a51e2f5fdb32d5eef3a3af9cb85372e19671468ea9ee09ce0aea5bf76c",
+ "size": 60758676
+ },
+ {
+ "package": "fontconfig-config",
+ "version": "2.15.0-2.3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fontconfig/fontconfig-config_2.15.0-2.3_arm64.deb",
+ "sha256": "10f643f467b51cf25fc18d1945bc61246dd8d8d1fe6bc712a2b1712c74ebc4d6",
+ "size": 318304
+ },
+ {
+ "package": "fonts-dejavu-core",
+ "version": "2.37-8",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fonts-dejavu/fonts-dejavu-core_2.37-8_all.deb",
+ "sha256": "86635b3d25b3655fc11cb3ecc3af59f0bf19643b02b94f2de48bd10253cdba12",
+ "size": 840460
+ },
+ {
+ "package": "fonts-dejavu-mono",
+ "version": "2.37-8",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fonts-dejavu/fonts-dejavu-mono_2.37-8_all.deb",
+ "sha256": "3003e98a5debfdeadc7040a7f715fe9fe6fb67f68deacf6049b54e30f07fc014",
+ "size": 488808
+ },
+ {
+ "package": "libasound2-data",
+ "version": "1.2.14-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/alsa-lib/libasound2-data_1.2.14-1+deb13u1_all.deb",
+ "sha256": "04688afdff3769c0f685541daed7b2f6f0cb946799ddf1d5847ddf11fe245559",
+ "size": 21188
+ },
+ {
+ "package": "libasound2t64",
+ "version": "1.2.14-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/alsa-lib/libasound2t64_1.2.14-1+deb13u1_arm64.deb",
+ "sha256": "9c808d819ccddc37c793dd3186c2ecd858b2feb2474cebb883f70386e7890d39",
+ "size": 341632
+ },
+ {
+ "package": "libasyncns0",
+ "version": "0.8-6+b5",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/liba/libasyncns/libasyncns0_0.8-6+b5_arm64.deb",
+ "sha256": "818bbcaa7ada536a1bdd5b1c26b77608606403f5c15557691e83d0b4433b89ef",
+ "size": 11672
+ },
+ {
+ "package": "libatk1.0-0t64",
+ "version": "2.56.2-1+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/at-spi2-core/libatk1.0-0t64_2.56.2-1+deb13u2_arm64.deb",
+ "sha256": "c35cd1a2bd7f6750e56a0755571b091a13fdb606354312088626ba639719c953",
+ "size": 50368
+ },
+ {
+ "package": "libatomic1",
+ "version": "14.2.0-19",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/g/gcc-14/libatomic1_14.2.0-19_arm64.deb",
+ "sha256": "7ccff90234484bf21ae5ecb79d25b6a84b2f4038f65dd139085b2e3a937cd8dc",
+ "size": 10128
+ },
+ {
+ "package": "libatspi2.0-0t64",
+ "version": "2.56.2-1+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/a/at-spi2-core/libatspi2.0-0t64_2.56.2-1+deb13u2_arm64.deb",
+ "sha256": "0b5266747ef215e161152772081ce3b2990d72d02447185faa1af661e11e2d39",
+ "size": 76680
+ },
+ {
+ "package": "libbrotli1",
+ "version": "1.1.0-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/b/brotli/libbrotli1_1.1.0-2+deb13u1_arm64.deb",
+ "sha256": "a8caceeddd3a407888234ef488e0a773299e05fac703c8695166a0a9bc86587f",
+ "size": 293896
+ },
+ {
+ "package": "libdav1d7",
+ "version": "1.5.1-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/d/dav1d/libdav1d7_1.5.1-1_arm64.deb",
+ "sha256": "bcb430fa4c5f05bc3fa4dd9f18b7b0498ec9701c23e83bf57a29996216c3a245",
+ "size": 252128
+ },
+ {
+ "package": "libdbus-1-3",
+ "version": "1.16.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/d/dbus/libdbus-1-3_1.16.2-2_arm64.deb",
+ "sha256": "ca6bb5f2047ad58d274cb7d14216035a07d8e5aae6f6a0122c4f6293c9c39515",
+ "size": 169068
+ },
+ {
+ "package": "libdouble-conversion3",
+ "version": "3.3.1-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/d/double-conversion/libdouble-conversion3_3.3.1-1_arm64.deb",
+ "sha256": "ea827a47ddffeaa8e95dc8d0c3b8aa9c79b33b2be77109450c2b06a2b89644d8",
+ "size": 37316
+ },
+ {
+ "package": "libdrm-amdgpu1",
+ "version": "2.4.124-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libd/libdrm/libdrm-amdgpu1_2.4.124-2_arm64.deb",
+ "sha256": "e36c72774cc215818b48ee2174c7ad1d9a2bf89a09cdee7a7a128d288d8eef43",
+ "size": 21828
+ },
+ {
+ "package": "libdrm-common",
+ "version": "2.4.124-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libd/libdrm/libdrm-common_2.4.124-2_all.deb",
+ "sha256": "9a8a6c65c165e9964f106fb4ac710959b5d33e0790227e3ab6b27c4742d1254a",
+ "size": 8288
+ },
+ {
+ "package": "libdrm2",
+ "version": "2.4.124-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libd/libdrm/libdrm2_2.4.124-2_arm64.deb",
+ "sha256": "b535506630bb6a9a616bc07caf3b29915f980d8c3437852fb96ea64fb1a8a3f8",
+ "size": 38304
+ },
+ {
+ "package": "libedit2",
+ "version": "3.1-20250104-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libe/libedit/libedit2_3.1-20250104-1_arm64.deb",
+ "sha256": "496c31df89fac9cb7e98102fcc21daf887376dcd9914f6322c86dd5bd4360ff1",
+ "size": 89296
+ },
+ {
+ "package": "libelf1t64",
+ "version": "0.192-4",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/e/elfutils/libelf1t64_0.192-4_arm64.deb",
+ "sha256": "815b4265c7d6c89c5bbad456bdeed7af893da6912c9d16cf4c581001927c0e37",
+ "size": 189080
+ },
+ {
+ "package": "libexpat1",
+ "version": "2.9.0-1~deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/e/expat/libexpat1_2.9.0-1~deb13u1_arm64.deb",
+ "sha256": "d9e1c50fcdad079fe16d77f1578adcc763be1bf7f2da7fa8adca7010b0c84c83",
+ "size": 113920
+ },
+ {
+ "package": "libffi8",
+ "version": "3.4.8-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libf/libffi/libffi8_3.4.8-2_arm64.deb",
+ "sha256": "d84a783b818f2386627604e64b793eb4ac5bb9ea1ba321a194a1c9c82fe09a01",
+ "size": 21260
+ },
+ {
+ "package": "libflac14",
+ "version": "1.5.0+ds-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/flac/libflac14_1.5.0+ds-2_arm64.deb",
+ "sha256": "11800827306e56fcbd1a65ea67d9d13126fc02bf87fdfecd35e0f48a145b3c59",
+ "size": 179768
+ },
+ {
+ "package": "libfontconfig1",
+ "version": "2.15.0-2.3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/f/fontconfig/libfontconfig1_2.15.0-2.3_arm64.deb",
+ "sha256": "872781cf62926b68c34a4302a3caae334ff8d4d83a2b2477f8fb454460aadc99",
+ "size": 387092
+ },
+ {
+ "package": "libfreetype6",
+ "version": "2.13.3+dfsg-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/f/freetype/libfreetype6_2.13.3+dfsg-1+deb13u1_arm64.deb",
+ "sha256": "0c426e83f1af816b9a4df9056fd2238463d1cd07969ee640965da9fb6ecaf107",
+ "size": 422284
+ },
+ {
+ "package": "libgbm1",
+ "version": "25.0.7-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/m/mesa/libgbm1_25.0.7-2+deb13u1_arm64.deb",
+ "sha256": "2beb8d20ca715a01b7b2352c1167c0d7097c9d8a486704a9a966f95d4077cdfc",
+ "size": 44144
+ },
+ {
+ "package": "libglib2.0-0t64",
+ "version": "2.84.4-3~deb13u5",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/g/glib2.0/libglib2.0-0t64_2.84.4-3~deb13u5_arm64.deb",
+ "sha256": "d446f0ea85fb9dc411219ce861e59e5eabe1981c796918771a7d2aa97cc72481",
+ "size": 1428508
+ },
+ {
+ "package": "libgraphite2-3",
+ "version": "1.3.14-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/g/graphite2/libgraphite2-3_1.3.14-2+deb13u1_arm64.deb",
+ "sha256": "b0c3414b113de62be1dc28fa2c899ac0856256e2f094d92c36c3275a5053311a",
+ "size": 70348
+ },
+ {
+ "package": "libharfbuzz-subset0",
+ "version": "10.2.0-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/h/harfbuzz/libharfbuzz-subset0_10.2.0-1+deb13u1_arm64.deb",
+ "sha256": "94762ffe1961b0d3d042398fef3f56545f99c5e070b17a557782664056b05a00",
+ "size": 508584
+ },
+ {
+ "package": "libharfbuzz0b",
+ "version": "10.2.0-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/h/harfbuzz/libharfbuzz0b_10.2.0-1+deb13u1_arm64.deb",
+ "sha256": "3ff928f981b54b491ee12e4cf68558cc5d61c652bdab276cd4c4c3fbbcee16ca",
+ "size": 441932
+ },
+ {
+ "package": "libjpeg62-turbo",
+ "version": "1:2.1.5-4",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_2.1.5-4_arm64.deb",
+ "sha256": "e4989073bb0bac8a6ec043c7adb80e1dfe601d8552233da48bb24ab45d1a1d4a",
+ "size": 172784
+ },
+ {
+ "package": "liblcms2-2",
+ "version": "2.16-2+deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/l/lcms2/liblcms2-2_2.16-2+deb13u2_arm64.deb",
+ "sha256": "6636997fc488327a8d0951a038df6e5178a52b3f5e5cc2386d42655621f5672d",
+ "size": 151540
+ },
+ {
+ "package": "libllvm19",
+ "version": "1:19.1.7-3+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/llvm-toolchain-19/libllvm19_19.1.7-3+b1_arm64.deb",
+ "sha256": "8a48e1a49f7fcc3be74e697767d72902f4b03041401d1529bcfad1849df39148",
+ "size": 23285344
+ },
+ {
+ "package": "libminizip1t64",
+ "version": "1:1.3.dfsg+really1.3.1-1+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/z/zlib/libminizip1t64_1.3.dfsg+really1.3.1-1+b1_arm64.deb",
+ "sha256": "46f361d1deb90caa1760f230c9c119fa4ce255636b12e6d817a0f65d6de87aad",
+ "size": 52592
+ },
+ {
+ "package": "libmp3lame0",
+ "version": "3.100-6+b3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/lame/libmp3lame0_3.100-6+b3_arm64.deb",
+ "sha256": "ed3563722129ffa4def03b7af0b589fa20eef972bdcc4599202ddb1ac654c58e",
+ "size": 354760
+ },
+ {
+ "package": "libmpg123-0t64",
+ "version": "1.32.10-1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/m/mpg123/libmpg123-0t64_1.32.10-1+deb13u1_arm64.deb",
+ "sha256": "d284df39ff3b64f1cdf274352613c52534c55eed82c3a2ff0fc7ba154acd7bf0",
+ "size": 143208
+ },
+ {
+ "package": "libnspr4",
+ "version": "2:4.36-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/n/nspr/libnspr4_4.36-1_arm64.deb",
+ "sha256": "b8cd0221e4c35a77ec6e3b89959ca96deb75919a3c55b6735ca0288a1b61bdbb",
+ "size": 102088
+ },
+ {
+ "package": "libnss3",
+ "version": "2:3.110-1+deb13u5",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/n/nss/libnss3_3.110-1+deb13u5_arm64.deb",
+ "sha256": "71ec50f97b4e5df10609e521559cfccf96f29d73681284e9a48edd4400d5a0a5",
+ "size": 1290684
+ },
+ {
+ "package": "libogg0",
+ "version": "1.3.5-3+b2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libo/libogg/libogg0_1.3.5-3+b2_arm64.deb",
+ "sha256": "d59a83ab352bf0c16ce9513fdf264f87214813ca8c628c652801ef476ece8286",
+ "size": 23580
+ },
+ {
+ "package": "libopenh264-8",
+ "version": "2.6.0+dfsg-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/o/openh264/libopenh264-8_2.6.0+dfsg-2_arm64.deb",
+ "sha256": "dd40ffeeb006af3a610e015881340c704b8bb38627434a150b7d9e39e657dfbe",
+ "size": 335852
+ },
+ {
+ "package": "libopenjp2-7",
+ "version": "2.5.3-2.1~deb13u2",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/o/openjpeg2/libopenjp2-7_2.5.3-2.1~deb13u2_arm64.deb",
+ "sha256": "e27f4d03d4b5836473be3210b16567aa9435a337f8c4537868773a123f9c9e57",
+ "size": 189464
+ },
+ {
+ "package": "libopus0",
+ "version": "1.5.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/o/opus/libopus0_1.5.2-2_arm64.deb",
+ "sha256": "1d980e8a4717074805a98dbe07671cb3bee068c25709315f3de836980c629836",
+ "size": 2812952
+ },
+ {
+ "package": "libpng16-16t64",
+ "version": "1.6.48-1+deb13u6",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/libp/libpng1.6/libpng16-16t64_1.6.48-1+deb13u6_arm64.deb",
+ "sha256": "57177299a638e30032a7191cc32a1b25fe4de7565164d770685d6d7f56771317",
+ "size": 275220
+ },
+ {
+ "package": "libpulse0",
+ "version": "17.0+dfsg1-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/p/pulseaudio/libpulse0_17.0+dfsg1-2+b1_arm64.deb",
+ "sha256": "2de5610e3affe69cfb11110f890375261b47c9e0fc1a81eef7ecc4d6d2dc9a6d",
+ "size": 236376
+ },
+ {
+ "package": "libsensors-config",
+ "version": "1:3.6.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/lm-sensors/libsensors-config_3.6.2-2_all.deb",
+ "sha256": "3056da80c7d963af795dab480ab6f6f4b154ad4ac39f522dc52d17c834fea253",
+ "size": 16236
+ },
+ {
+ "package": "libsensors5",
+ "version": "1:3.6.2-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/l/lm-sensors/libsensors5_3.6.2-2_arm64.deb",
+ "sha256": "7469f1ccce8afdba33d3b11847d0ecdf2221805a0694dee21ee4d622e8f72145",
+ "size": 36444
+ },
+ {
+ "package": "libsndfile1",
+ "version": "1.2.2-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libs/libsndfile/libsndfile1_1.2.2-2+deb13u1_arm64.deb",
+ "sha256": "6c94f17e1f02778f98b96bb9ae19ff30085662e96685898a018c26bfd4bfc3f2",
+ "size": 185528
+ },
+ {
+ "package": "libvorbis0a",
+ "version": "1.3.7-3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libv/libvorbis/libvorbis0a_1.3.7-3_arm64.deb",
+ "sha256": "6e8e64ebe692dd2d019af7f914f2e3b81bf13d4b1ce2516fb4248a0310ef7cf6",
+ "size": 83772
+ },
+ {
+ "package": "libvorbisenc2",
+ "version": "1.3.7-3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libv/libvorbis/libvorbisenc2_1.3.7-3_arm64.deb",
+ "sha256": "4a477b3ae19ba50a288f036c8176d61cd9f3836ba65472f88b95e3f6b3bf2dd3",
+ "size": 75532
+ },
+ {
+ "package": "libwayland-server0",
+ "version": "1.23.1-3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/w/wayland/libwayland-server0_1.23.1-3_arm64.deb",
+ "sha256": "062702d57cf07b42ab7f0fa1aac8bc3f605eb47f2f0b9ecb1614674140d79f1b",
+ "size": 33656
+ },
+ {
+ "package": "libx11-6",
+ "version": "2:1.8.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libx11/libx11-6_1.8.12-1_arm64.deb",
+ "sha256": "646f2d3f2165c8eebceb7f4aaca31e97a818bb11a045964833a9f764b738bac2",
+ "size": 794952
+ },
+ {
+ "package": "libx11-data",
+ "version": "2:1.8.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libx11/libx11-data_1.8.12-1_all.deb",
+ "sha256": "c54f87069888f80ba4da586da6147d74c7598ccdd8b90906dbc4271fa414c738",
+ "size": 343072
+ },
+ {
+ "package": "libx11-xcb1",
+ "version": "2:1.8.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libx11/libx11-xcb1_1.8.12-1_arm64.deb",
+ "sha256": "1eafaa4295e129d6a81e742ab8da43194daa6b916199923c8cef8ad358985894",
+ "size": 247336
+ },
+ {
+ "package": "libxau6",
+ "version": "1:1.0.11-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxau/libxau6_1.0.11-1_arm64.deb",
+ "sha256": "ac1061728670f4626adaa1288953a0e6fb801c9cae72ee1c3231e63e2609d23a",
+ "size": 20576
+ },
+ {
+ "package": "libxcb-dri3-0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-dri3-0_1.17.0-2+b1_arm64.deb",
+ "sha256": "247bf758dd78d6c285fdd47942ddacf4a3189fd50de4f0891c9bd9aea12da3a1",
+ "size": 107068
+ },
+ {
+ "package": "libxcb-present0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-present0_1.17.0-2+b1_arm64.deb",
+ "sha256": "73521d715554a2230901d1d480465d6358b3083a5ce8801639595ffde6f31441",
+ "size": 105784
+ },
+ {
+ "package": "libxcb-randr0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-randr0_1.17.0-2+b1_arm64.deb",
+ "sha256": "dbeb78d1d032959fe65548758ab12bfc6bb5919ec2984c3d871496b52aef929a",
+ "size": 116736
+ },
+ {
+ "package": "libxcb-sync1",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-sync1_1.17.0-2+b1_arm64.deb",
+ "sha256": "eb428ac77daac9e5eea8a4e9ba48d1d78cc8ca400e415c8e4628cc729c6f4749",
+ "size": 108792
+ },
+ {
+ "package": "libxcb-xfixes0",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb-xfixes0_1.17.0-2+b1_arm64.deb",
+ "sha256": "19cdb8502827bc010993e69eaba09c670024976f7edd35b2b504bd646b141b0a",
+ "size": 109644
+ },
+ {
+ "package": "libxcb1",
+ "version": "1.17.0-2+b1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcb/libxcb1_1.17.0-2+b1_arm64.deb",
+ "sha256": "d0178198e80ed4cacdececabe2c112ec88c7a9258cc11a55b8e267ab14a90d82",
+ "size": 143168
+ },
+ {
+ "package": "libxcomposite1",
+ "version": "1:0.4.6-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxcomposite/libxcomposite1_0.4.6-1_arm64.deb",
+ "sha256": "0fa60d7733d6354c94cea0b0b8e772a2e317db7040dee4ac84df5d844918a79c",
+ "size": 16440
+ },
+ {
+ "package": "libxdamage1",
+ "version": "1:1.1.6-1+b2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxdamage/libxdamage1_1.1.6-1+b2_arm64.deb",
+ "sha256": "7803f925e0940b720594f47bab4bc55bea1bdf6f2a3216442c78e53a77f4e19a",
+ "size": 15640
+ },
+ {
+ "package": "libxdmcp6",
+ "version": "1:1.1.5-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxdmcp/libxdmcp6_1.1.5-1_arm64.deb",
+ "sha256": "e10bbb0802181992ecf091e9425171850eee16068729c109214ba4924f81fb52",
+ "size": 27752
+ },
+ {
+ "package": "libxext6",
+ "version": "2:1.3.4-1+b3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxext/libxext6_1.3.4-1+b3_arm64.deb",
+ "sha256": "27cf208c6d2924b22ed3b9ceff304b992e1f07ef7b0ef00239585595581dac99",
+ "size": 49244
+ },
+ {
+ "package": "libxfixes3",
+ "version": "1:6.0.0-2+b4",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxfixes/libxfixes3_6.0.0-2+b4_arm64.deb",
+ "sha256": "d29134cbb9230a50ba1d097743d4d4fcf7826c6b48a2d8a303a0e3fc20b837e6",
+ "size": 20456
+ },
+ {
+ "package": "libxi6",
+ "version": "2:1.8.2-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxi/libxi6_1.8.2-1_arm64.deb",
+ "sha256": "b7148d371c908fa81bf45153fdcb3e7d178fe11e15f9907e29ce6e9ed9aaad24",
+ "size": 77768
+ },
+ {
+ "package": "libxkbcommon0",
+ "version": "1.7.0-2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxkbcommon/libxkbcommon0_1.7.0-2_arm64.deb",
+ "sha256": "866888d3cfeb32388dd88a2615c4f78ebf8dd7b272821a83494cba260d8fa7d1",
+ "size": 106024
+ },
+ {
+ "package": "libxml2",
+ "version": "2.12.7+dfsg+really2.9.14-2.1+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian-security/20261103T013555Z/pool/updates/main/libx/libxml2/libxml2_2.12.7+dfsg+really2.9.14-2.1+deb13u1_arm64.deb",
+ "sha256": "32baac0386190ff9d0a3994dcb6c18048dff90b69fb0c10861add5efc6c7c8f5",
+ "size": 631164
+ },
+ {
+ "package": "libxnvctrl0",
+ "version": "535.171.04-1+b2",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxnvctrl/libxnvctrl0_535.171.04-1+b2_arm64.deb",
+ "sha256": "87a7c8e67630667d4b6067f956ab62211f26dee2005560cb6090df22b15b25c7",
+ "size": 14012
+ },
+ {
+ "package": "libxrandr2",
+ "version": "2:1.5.4-1+b3",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxrandr/libxrandr2_1.5.4-1+b3_arm64.deb",
+ "sha256": "607a23d6d2cb920e000b24870531a86821cf4e141a4eb0bf38212b47b892d597",
+ "size": 35932
+ },
+ {
+ "package": "libxrender1",
+ "version": "1:0.9.12-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxrender/libxrender1_0.9.12-1_arm64.deb",
+ "sha256": "28396c96e460288d5851913121b053609f7ff34f996d78d7a38c1d2b6ab9f006",
+ "size": 27024
+ },
+ {
+ "package": "libxshmfence1",
+ "version": "1.3.3-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/libx/libxshmfence/libxshmfence1_1.3.3-1_arm64.deb",
+ "sha256": "34b494c83cebcf138d1f87c2cbdd5ee8efe9da2befbd69c2a025b0e214c64d2d",
+ "size": 11104
+ },
+ {
+ "package": "libz3-4",
+ "version": "4.13.3-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/z/z3/libz3-4_4.13.3-1_arm64.deb",
+ "sha256": "29a7b924a5a38c9ac4e2a64aa11586a9c54f26b579b18e4f75adf8f7c1106e45",
+ "size": 7506868
+ },
+ {
+ "package": "mesa-libgallium",
+ "version": "25.0.7-2+deb13u1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/m/mesa/mesa-libgallium_25.0.7-2+deb13u1_arm64.deb",
+ "sha256": "a27576030704ff305adaef8bd143954b281680861d5bfe21aabd7d376a939149",
+ "size": 8032536
+ },
+ {
+ "package": "xkb-data",
+ "version": "2.42-1",
+ "url": "https://snapshot.debian.org/archive/debian/20261107T024144Z/pool/main/x/xkeyboard-config/xkb-data_2.42-1_all.deb",
+ "sha256": "196ff18533382f64e057ea49df2bb486bd4275a4cc0917361edb560b8756dada",
+ "size": 789736
+ }
+ ]
+}
diff --git a/scripts/ci-test.py b/scripts/ci-test.py
index cc8ed033..a8d73475 100755
--- a/scripts/ci-test.py
+++ b/scripts/ci-test.py
@@ -8,9 +8,13 @@
scripts/ci-test.py compile compile every package once (make ci-compile)
scripts/ci-test.py retried LANE ARGS... go test ARGS, with the one retry
scripts/ci-test.py lanes print each lane and its packages
+ scripts/ci-test.py browser print each package's browser tests
The slow packages each have a lane of their own and "rest" holds every
-other package. CI runs the lanes side by side as the shards of one step,
+other package. The browser tests (files built only with -tags browser)
+have lanes of their own, BROWSER_LANES, which build with BROWSER_TAGS
+and run only those tests; the browser is RASTRILLO_CHROME, the Chromium
+scripts/ci-box.py pins. CI runs the lanes side by side as the shards of one step,
.amadan/ci.d/20-check@N: amadan runs separate steps one after another, and
a step's @N shards are how it runs work in parallel. A lane's packages
pass or fail in that shard's own log. The quarantine, the runner host
@@ -48,6 +52,7 @@ from concurrent.futures import ThreadPoolExecutor
MODULE = "amadan.net/oficina/equipo"
TAGS = "testbuild"
+BROWSER_TAGS = "browser,testbuild"
TIMEOUT = "15m"
# Lane order is the shard index: shard 0 runs the first lane. After the
@@ -82,6 +87,25 @@ LANES = [
("rest", None, None), # every package no other lane names
]
+# The browser tests: what -tags browser adds to a package's tests, found
+# by comparing go list with and without the tag, so a new browser test
+# always runs. Lanes as above, after them in shard order: a lane that
+# names tests runs those of its one package; one that names none runs
+# the package's other browser tests; packages None is every package with
+# browser tests that no other browser lane names. Each test drives one
+# headless Chromium against its own instance, one test at a time (none
+# calls t.Parallel), so a lane is one browser; the lanes run side by side.
+# The browser tests wait on the page with short deadlines, so none of
+# these is LATE.
+BROWSER_LANES = [
+ ("browser-headless-chat", [HEADLESS], ["TestBrowserChat", "TestBrowserChatSendStaysOnPage", "TestBrowserMoveIn", "TestBrowserComposer", "TestBrowserComposerReconcile", "TestBrowserComposerFocus", "TestBrowserComposerDock", "TestBrowserDraftStreamsFormatted", "TestBrowserDraftIsTheMessage", "TestBrowserThinkingAndCards", "TestBrowserRefreshRace"]),
+ ("browser-headless-work", [HEADLESS], ["TestBrowserTaskCard", "TestBrowserReceiptFollowsReview", "TestBrowserRailFollowsWork", "TestBrowserTaskThread", "TestBrowserAskAfterMerge", "TestBrowserReceiptsDesktop", "TestBrowserReceiptsTouch", "TestBrowserNotebook", "TestBrowserEmptyExplore", "TestNotebookScreenshots", "TestBrowserNotebookLook"]),
+ ("browser-headless-rest", [HEADLESS], None), # the connections pages and any new one
+ ("browser-thintest-settings", ["./internal/thintest"], ["^TestBrowserSettings", "TestBrowserInnerGallery", "TestBrowserInnerScreens", "TestBrowserHousekeeping", "TestBrowserMachines", "TestBrowserTeamPanel"]),
+ ("browser-thintest-rest", ["./internal/thintest"], None),
+ ("browser-rest", None, None), # equipotest, plan3test and any new package
+]
+
# Shards after the lanes: work that is not a lane of packages but runs
# beside them, each a list of make targets run in order. The static
# checks are here too: hosted CI runs steps one after another and only
@@ -109,6 +133,8 @@ TEST_TOOL_DIRS = {"try-bin": "~/.local/share/equipo/try/bin"}
QUARANTINE = "scripts/ci-quarantine.txt"
+TEST_FUNC = re.compile(r"^func (Test[A-Za-z0-9_]*)\(\w+ \*testing\.T\)", re.M)
+
# More failures than this in one lane is a broken change, not a flake:
# nothing is retried and the lane is red.
RETRY_LIMIT = 10
@@ -191,6 +217,69 @@ def lane_flags(name):
return []
+_browser = None
+
+
+def browser_tests():
+ """{package: [test, ...]}: the top-level tests that -tags browser adds,
+ from the test files go list names only with BROWSER_TAGS."""
+ global _browser
+ if _browser is not None:
+ return _browser
+ fmt = "{{.ImportPath}}|{{.Dir}}|{{join .TestGoFiles \" \"}} {{join .XTestGoFiles \" \"}}"
+
+ def files(tags):
+ out = subprocess.check_output(["go", "list", "-tags", tags, "-f", fmt, "./..."], text=True)
+ found = {}
+ for line in out.splitlines():
+ path, directory, names = line.split("|", 2)
+ found["." + path[len(MODULE):]] = (directory, set(names.split()))
+ return found
+ plain, browser = files(TAGS), files(BROWSER_TAGS)
+ _browser = {}
+ for package, (directory, names) in sorted(browser.items()):
+ tests = []
+ for name in sorted(names - plain.get(package, ("", set()))[1]):
+ with open(os.path.join(directory, name)) as f:
+ tests += TEST_FUNC.findall(f.read())
+ if tests:
+ _browser[package] = sorted(set(tests))
+ return _browser
+
+
+def is_browser_lane(name):
+ return any(lane == name for lane, _, _ in BROWSER_LANES)
+
+
+def browser_runs(name):
+ """The (package, go test flags) a browser lane runs, one go test each."""
+ for lane, packages, tests in BROWSER_LANES:
+ if lane != name:
+ continue
+ found = browser_tests()
+ if packages is None:
+ named = {p for _, ps, _ in BROWSER_LANES if ps for p in ps}
+ packages = [p for p in found if p not in named]
+ if tests:
+ if len(packages) != 1:
+ sys.exit(f"ci-test: browser lane {name} names tests, so it must name one package")
+ return [(packages[0], ["-run", test_pattern(tests)])]
+ runs = []
+ for package in packages:
+ taken = [t for other, ps, ts in BROWSER_LANES if other != name and ts and ps and ps[0] == package for t in ts]
+ flags = ["-run", test_pattern(["^(" + "|".join(found.get(package, [])) + ")$"])]
+ if taken:
+ flags += ["-skip", test_pattern(taken)]
+ if found.get(package):
+ runs.append((package, flags))
+ return runs
+ sys.exit(f"ci-test: unknown browser lane {name!r}")
+
+
+def all_lanes():
+ return [lane for lane, _, _ in LANES + BROWSER_LANES]
+
+
def fingerprint():
lines = []
for tool in TEST_TOOLS:
@@ -248,7 +337,7 @@ def rastrillo():
"RASTRILLO", "go run amadan.net/rastrillo/rastrillo/cmd/rastrillo"))
-def budget_test(packages, env, lane, flags=()):
+def budget_test(packages, env, lane, flags=(), tags=TAGS):
"""One rastrillo budget test over packages, a failed test retried once;
returns its exit status."""
status = 0
@@ -259,7 +348,7 @@ def budget_test(packages, env, lane, flags=()):
continue
for p in group if extra else []:
print(f"uncached: {p}: {UNCACHED[p]}", flush=True)
- base = ["-tags", TAGS, "-timeout", TIMEOUT] + extra + list(flags)
+ base = ["-tags", tags, "-timeout", TIMEOUT] + extra + list(flags)
status = run_retrying(rastrillo() + ["budget", "test"] + base + group, env, lane, base) or status
return status
@@ -308,18 +397,56 @@ def run_reporting_misses(cmd, env):
def run_lane(name):
+ if is_browser_lane(name):
+ return run_browser_lane(name)
packages = lane_packages(name)
print(f"test lane {name}: {' '.join(packages)}", flush=True)
return budget_test(packages, budget_env(environment(False)), name, lane_flags(name))
+def browser_version(env):
+ """Print which browser the tests will find; a launcher that does not
+ start (a library missing from the pinned tree) fails here, by name,
+ and not in every test. Returns whether it started."""
+ chrome = env.get("RASTRILLO_CHROME")
+ if not chrome:
+ print("browser: RASTRILLO_CHROME unset; harness.ChromePath looks for a chromium on PATH", flush=True)
+ return True
+ try:
+ out = subprocess.run([chrome, "--version"], env=env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
+ text=True, timeout=60, errors="replace")
+ except (OSError, subprocess.TimeoutExpired) as e:
+ print(f"browser: {chrome} did not start: {e}", flush=True)
+ return False
+ print(f"browser: {chrome}: {out.stdout.strip()}", flush=True)
+ return out.returncode == 0
+
+
+def run_browser_lane(name, env=None):
+ env = env or budget_env(environment(False))
+ if not browser_version(env):
+ return 1
+ status = 0
+ runs = browser_runs(name)
+ if not runs:
+ print(f"browser lane {name}: no browser tests", flush=True)
+ for package, flags in runs:
+ print(f"browser lane {name}: {package}", flush=True)
+ status = budget_test([package], env, name, flags, BROWSER_TAGS) or status
+ return status
+
+
def run_all():
env = budget_env(environment(False))
if not UNCACHED:
# One go test over ./... lets rastrillo also flag a stale time record.
base = ["-tags", TAGS, "-timeout", TIMEOUT]
- return run_retrying(rastrillo() + ["budget", "test"] + base + ["./..."], env, "all", base)
- return budget_test(all_packages(), env, "all")
+ status = run_retrying(rastrillo() + ["budget", "test"] + base + ["./..."], env, "all", base)
+ else:
+ status = budget_test(all_packages(), env, "all")
+ for name, _, _ in BROWSER_LANES:
+ status = run_browser_lane(name, env) or status
+ return status
def run_retried(lane, args):
@@ -336,7 +463,9 @@ def run_compile():
for cmd in (["go", "build", "-tags", TAGS, "./..."],
# -export compiles each package and, with -test, its tests:
# the lanes of one package would each compile them again.
- ["go", "list", "-export", "-test", "-tags", TAGS, "-f", "", "./..."]):
+ ["go", "list", "-export", "-test", "-tags", TAGS, "-f", "", "./..."],
+ # and the browser lanes' packages, with the browser tests in.
+ ["go", "list", "-export", "-test", "-tags", BROWSER_TAGS, "-f", ""] + sorted(browser_tests())):
print("+ " + " ".join(cmd), flush=True)
started = time.time()
status = subprocess.call(cmd, stdout=subprocess.DEVNULL)
@@ -398,19 +527,20 @@ def machine_load():
def run_shard():
index = int(os.environ.get("AMADAN_SHARD", "-1"))
count = int(os.environ.get("AMADAN_SHARD_COUNT", "0"))
- shards = len(LANES) + len(EXTRA_SHARDS)
+ lanes = all_lanes()
+ shards = len(lanes) + len(EXTRA_SHARDS)
if count != shards or not 0 <= index < count:
- sys.exit(f"ci-test: shard {index} of {count}, but there are {len(LANES)} lanes and "
+ sys.exit(f"ci-test: shard {index} of {count}, but there are {len(lanes)} lanes and "
f"{len(EXTRA_SHARDS)} extra shards; name the step 20-check@{shards}")
- name = LANES[index][0] if index < len(LANES) else EXTRA_SHARDS[index - len(LANES)][0]
+ name = lanes[index] if index < len(lanes) else EXTRA_SHARDS[index - len(lanes)][0]
jobs = BUILD_JOBS_MANY if name == "rest" else BUILD_JOBS
os.environ["GOFLAGS"] = " ".join(filter(None, [os.environ.get("GOFLAGS", ""), f"-p={jobs}"]))
stagger(name)
- if index < len(LANES):
+ if index < len(lanes):
status = run_lane(name)
machine_load()
return status
- targets = EXTRA_SHARDS[index - len(LANES)]
+ targets = EXTRA_SHARDS[index - len(lanes)]
print(f"shard {index}: make {' '.join(targets)}", flush=True)
env = dict(os.environ)
if targets == ["runner-host"]:
@@ -562,10 +692,10 @@ def retry_failures(out, env, lane, base):
# The quarantine.
-def run_group(package, tests, env):
+def run_group(package, tests, env, tags=TAGS):
"""Run one top-level test's quarantined entries; retry failures once."""
report = []
- base = ["-tags", TAGS, "-timeout", TIMEOUT]
+ base = ["-tags", tags, "-timeout", TIMEOUT]
cmd, out, passed, failed, _ = go_test(package, tests, env, base, fresh=False)
report.append(f"+ {cmd}")
missing = set(tests) - passed - failed
@@ -602,8 +732,12 @@ def run_quarantine():
sys.exit(f"{QUARANTINE}: list a test or some of its subtests, not both: {tests}")
print(f"quarantine: {sum(len(v) for v in groups.values())} tests from {QUARANTINE}; "
"a failure is retried once, and a pass on the retry is reported as a flake", flush=True)
+ browser = browser_tests()
+
+ def tags(package, top):
+ return BROWSER_TAGS if top in browser.get(package, []) else TAGS
with ThreadPoolExecutor(max_workers=max(1, len(groups))) as pool:
- futures = [pool.submit(run_group, p, tests, env) for (p, _), tests in sorted(groups.items())]
+ futures = [pool.submit(run_group, p, tests, env, tags(p, top)) for (p, top), tests in sorted(groups.items())]
results = [f.result() for f in futures]
flakes, broken = [], []
for report, flaky, bad in results:
@@ -633,6 +767,13 @@ def main(argv):
if argv == ["lanes"]:
for name, _, _ in LANES:
print(name + ": " + " ".join(lane_packages(name) + lane_flags(name)))
+ for name, _, _ in BROWSER_LANES:
+ for package, flags in browser_runs(name):
+ print(name + ": -tags " + BROWSER_TAGS + " " + " ".join([package] + [shlex.quote(f) for f in flags]))
+ return 0
+ if argv == ["browser"]:
+ for package, tests in browser_tests().items():
+ print(package + ": " + " ".join(tests))
return 0
print(__doc__, file=sys.stderr)
return 2