Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ci: run the launcher guards once, not once per shard
launcher-wipe-guard measures 40s per shard (I had assumed ~2s and said so in the
previous commit's comment, which this corrects). On four shards that is 160s of
duplicated wall clock per run -- more than the sharding itself saved.

Both stub guards move to their own job, beside the shards rather than repeated
inside them. Nothing about coverage changes: the guards still run on every
commit, still fail CI on failure, and this workflow has no aggregate gate, so
each job stands as its own check.

Runs in parallel with the shards, so it costs no wall clock. Roughly 160s of
duplicated work removed per run.
  • Loading branch information
hackobi committed Nov 18, 2026
commit 75d6f3f92f067f1728a67c62b0e9cebf84e58434
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ jobs:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version-file: .bun-version
- run: bun install --frozen-lockfile --ignore-scripts
# The stub guards are partitioned into their own job below rather than
# repeated here: launcher-wipe-guard measures ~40s, so running it in all
# four shards cost ~160s of duplicated wall clock per run.
# Test files are partitioned; the split is by measured duration when
# scripts/consensus-weights.tsv covers the suite.
- run: bash scripts/test-consensus.sh --shard ${{ matrix.shard }}/${{ strategy.job-total }}

# The two shell guards are not test files and are not sharded. They measured
# 40s and 1s, cheap enough to run once beside the shards instead of once per
# shard. Kept in the same aggregate so a guard failure still fails CI.
launcher-guards:
name: Launcher Guards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
Expand All @@ -49,9 +68,6 @@ jobs:
- run: bash scripts/launcher-wipe-guard.test.sh
# The PG_PORT the launcher hands the node, with and without -e
- run: bash scripts/launcher-external-db.test.sh
# Test files are partitioned; the two shell guards above are not, and are
# cheap enough that repeating them per shard is the honest trade.
- run: bash scripts/test-consensus.sh --shard ${{ matrix.shard }}/${{ strategy.job-total }}

rehearsal-drill:
# Unit tests for the quorum-loss drills' pass criteria and inputs, the
Expand Down
Loading