Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

ci: Tier 1 backend matrix runs as two weighted shards (715s on one 4-vCPU runner was the E2E critical path)

garrytanc3fe596aee49
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 1ef53b5756..155e1201f7 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -401,8 +401,14 @@ jobs:
# listed test/e2e/ file: scripts/e2e-matrix.ts excludes them from Selected
# E2E (C3).
tier1-backend-matrix:
- name: Tier 1 backend matrix (direct + PgBouncer)
+ name: Tier 1 backend matrix (direct + PgBouncer) ${{ matrix.shard }}/2
runs-on: ubicloud-standard-4-ubuntu-2404
+ # Two weighted shards: the whole matrix took 715s on one 4-vCPU runner
+ # (the PR critical path); files run sequentially, so a split halves it.
+ strategy:
+ fail-fast: false
+ matrix:
+ shard: [1, 2]
timeout-minutes: 30
services:
postgres:
@@ -474,11 +480,12 @@ jobs:
GBRAIN_TEST_ALLOW_DATABASE_URL: '1'
GBRAIN_TEST_RECEIPT_DIR: ${{ runner.temp }}/receipts
GBRAIN_TEST_RECEIPT_LANE: backend-matrix
+ SHARD: ${{ matrix.shard }}/2
- name: Upload receipts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
- name: receipts-tier1-backend-matrix
+ name: receipts-tier1-backend-matrix-${{ matrix.shard }}
path: ${{ runner.temp }}/receipts
retention-days: 14
if-no-files-found: warn