#!/bin/sh
# Everything but perf, as 29 shards side by side; AMADAN_SHARD picks one
# (scripts/ci-test.py: LANES, BROWSER_LANES, then EXTRA_SHARDS). Eighteen
# test lanes of 80 s at most on a cold run. Then five 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, spacing, budgets, references, the lanes
# (every test in exactly one) and the migration check; staticcheck;
# govulncheck; gitleaks.
#
# A failed test is retried once where it failed. A pass on the retry stays
# green and prints "FLAKE <package>:<test> <lane> <commit> <seconds>s
# <load>"; red means it failed twice. scripts/ci-flakes.py reads the FLAKE
# lines back and names the tests that keep flaking.
exec "$(dirname "$0")/../../scripts/ci-box.py" run make ci-shard
