Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

ci: sync freshness gate takes a runs input for the 5x5 re-baseline sample

garrytanef8a42c5a12f
diff --git a/.github/workflows/sync-freshness-gate.yml b/.github/workflows/sync-freshness-gate.yml
index 63ccafe567..3e6db8ed22 100644
--- a/.github/workflows/sync-freshness-gate.yml
+++ b/.github/workflows/sync-freshness-gate.yml
@@ -13,19 +13,24 @@ on:
schedule:
- cron: '29 9 * * *'
workflow_dispatch:
+ inputs:
+ runs:
+ description: 'Gate runs on this runner (5 dispatches x 5 runs is the re-baseline sample; each run is uploaded)'
+ default: '1'
permissions:
contents: read
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
+ # A sampling dispatch (runs > 1) is its own group, so five can run at once on fresh runners.
+ group: ${{ github.workflow }}-${{ github.ref }}${{ inputs.runs && inputs.runs != '1' && format('-{0}', github.run_id) || '' }}
cancel-in-progress: false
jobs:
gate:
name: Sync freshness gate (10k, watch, p50 of 10 vs baseline +25%)
runs-on: ubicloud-standard-4-ubuntu-2404
- timeout-minutes: 60
+ timeout-minutes: ${{ inputs.runs && inputs.runs != '1' && 240 || 60 }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -35,13 +40,21 @@ jobs:
timeout-minutes: 8
run: bun scripts/ci-bun-install.ts --frozen-lockfile --ignore-scripts
- name: Run the gate (builds 10k-page brains, then 11 reps per cell)
- timeout-minutes: 45
+ timeout-minutes: ${{ inputs.runs && inputs.runs != '1' && 200 || 45 }}
+ env:
+ RUNS: ${{ inputs.runs || '1' }}
run: |
set -o pipefail
git config --global user.name "Bench Example"
git config --global user.email [email protected]
- bun scripts/bench/sync-freshness-gate.ts --work-dir .context/bench/sync-freshness-gate --out .context/bench/sync-freshness-gate/run.json \
- | tee -a "$GITHUB_STEP_SUMMARY"
+ failed=0
+ for i in $(seq 1 "$RUNS"); do
+ out=.context/bench/sync-freshness-gate/run.json
+ [ "$RUNS" = 1 ] || out=.context/bench/sync-freshness-gate/run-$i.json
+ bun scripts/bench/sync-freshness-gate.ts --work-dir .context/bench/sync-freshness-gate --out "$out" \
+ | tee -a "$GITHUB_STEP_SUMMARY" || failed=1
+ done
+ exit $failed
- name: Level-reuse oracle (every reused level read compared with a whole read; untimed)
if: always()
timeout-minutes: 30
@@ -60,6 +73,7 @@ jobs:
name: sync-freshness-gate
path: |
.context/bench/sync-freshness-gate/run.json
+ .context/bench/sync-freshness-gate/run-*.json
.context/bench/sync-freshness-gate/results
include-hidden-files: true
if-no-files-found: warn