bazel.yml already runs on every push to main and executes the PR Core, pure-Go, dolt-server, embedded, proxied, server-storage, integration and cmd/bd Dolt-server tiers on rbe-west in about five minutes. main.yml re-ran the same tiers as legacy go test jobs (62 jobs, about 380 runner-minutes a push), and its runs were all failing or cancelled. Remove the duplicated Linux jobs: the ubuntu -race -short leg with its Codecov upload, PR Core, the pure-Go compile check, domain+uow, the 6+8 integration shards, the 15 proxied shards, and the embedded build plus its storage, conformance and cmd shards. The macOS -race -short suite (rbe-west has no macOS workers) moves to Blacksmith macOS and restores the macOS saver's caches. The cache savers that fed the fork path from the removed jobs move to venue matrices: the macOS saver gains a GitHub-hosted leg, and the Linux saver gains a GitHub-hosted race leg (the embedded build used to seed it). Refs ga-96smfk.14 Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
43 lines
1.7 KiB
Bash
Executable file
43 lines
1.7 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Required fast PR Go test contract.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
|
|
# shellcheck source=../.buildflags
|
|
source "$REPO_ROOT/.buildflags"
|
|
# shellcheck source=lib/timing.sh
|
|
source "$REPO_ROOT/scripts/ci/lib/timing.sh"
|
|
# shellcheck source=lib/test-env.sh
|
|
source "$REPO_ROOT/scripts/ci/lib/test-env.sh"
|
|
|
|
cd "$REPO_ROOT"
|
|
|
|
beads_test_env_enter
|
|
|
|
GO_TEST_PKG_PARALLEL="${GO_TEST_PKG_PARALLEL:-4}"
|
|
GO_TEST_PARALLEL="${GO_TEST_PARALLEL:-4}"
|
|
|
|
# Without an explicit -timeout every package gets Go's 10m default, and ./cmd/bd
|
|
# has outgrown it: measured through this wrapper it takes 572s, which leaves 28s
|
|
# — under 5% — of margin. Runner variance eats that, and the package then dies on
|
|
# the alarm at 600.3s/600.7s (two consecutive runs on #6090; #6038 squeaked in
|
|
# just under). No single test is at fault, so the panic names whichever one was
|
|
# in flight and reads like a hang when it is really the whole package running out
|
|
# of clock. 30m is what every other -race lane here already gives this same code:
|
|
# main.yml's macOS test job, ci-measurements.yml, nightly.yml. Splitting or de-slowing cmd/bd is the real fix and belongs on main
|
|
# — this only stops the clock from being the thing that fails.
|
|
# BEADS_PR_CORE_GO_TEST_JSON=<file>: same run, `go test -json` output to <file>
|
|
# (nightly.yml feeds it to tools/bazel/equivalence.py --go-test-json).
|
|
go_test() {
|
|
if [[ -n "${BEADS_PR_CORE_GO_TEST_JSON:-}" ]]; then
|
|
go test -json "$@" >"$BEADS_PR_CORE_GO_TEST_JSON"
|
|
else
|
|
go test "$@"
|
|
fi
|
|
}
|
|
|
|
ci_time "pr-core go test" -- \
|
|
go_test -p "$GO_TEST_PKG_PARALLEL" -parallel "$GO_TEST_PARALLEL" -race -short -timeout=30m -skip '^TestEmbedded' ./...
|