Skip to content

test(design-diff): replay collection-aware engine in smaller frozen b… #3

test(design-diff): replay collection-aware engine in smaller frozen b…

test(design-diff): replay collection-aware engine in smaller frozen b… #3

name: Design diff frozen benchmark
on:
push:
branches: [codex/design-diff-benchmark-v3]
permissions:
contents: read
concurrency:
group: design-diff-benchmark-v3
cancel-in-progress: true
env:
ENGINE_SHA: e279fddb00dfc22ca181838352c436d7f480c286
jobs:
replay:
runs-on: ${{ (vars.CI_PROVIDER == '' || vars.CI_PROVIDER == 'blacksmith') && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
timeout-minutes: 50
strategy:
fail-fast: false
max-parallel: 12
matrix:
shard: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]
steps:
- name: Checkout immutable engine
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
ref: ${{ env.ENGINE_SHA }}
path: engine
fetch-depth: 0
persist-credentials: false
- name: Checkout benchmark driver
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
ref: ${{ github.sha }}
path: driver
persist-credentials: false
- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.1
- name: Install trusted dependencies
working-directory: engine
run: bun install --frozen-lockfile --ignore-scripts
- name: Freeze shard and fetch source as data
env:
SHARD: ${{ matrix.shard }}
GH_TOKEN: ${{ github.token }}
run: bun --no-env-file driver/scripts/design-diff/cloud-benchmark.ts
- name: Replay frozen comparisons
working-directory: engine
run: |
bun --no-env-file scripts/design-diff/benchmark.ts \
--engine "$PWD" --sha "$ENGINE_SHA" --workers 1 \
--manifest "$RUNNER_TEMP/comparisons.json" --output "$RUNNER_TEMP/results"
- name: Retain available results
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: design-benchmark-${{ env.ENGINE_SHA }}-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.shard }}
path: ${{ runner.temp }}/results/
retention-days: 7
if-no-files-found: error