Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 13 additions & 5 deletions .github/workflows/eval-refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,24 @@ jobs:
env:
EVAL_PAIRS: ${{ needs.prepare.outputs.pairs }}
EVAL_REVISION: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
# Optional warm-boot snapshot to reuse across runs (built out-of-band).
# Unset -> cold boots, so this can never regress the default path.
EVAL_SNAPSHOT_ID: ${{ vars.EVAL_SNAPSHOT_ID }}
shell: bash
run: |
set -euo pipefail

pnpm --filter @supabase-evals/framework eval:vercel -- \
--pairs-json "$EVAL_PAIRS" \
--revision "$EVAL_REVISION" \
--runs "${{ needs.prepare.outputs.runs }}" \
--timeout-sec "${{ needs.prepare.outputs.timeout_sec }}" \
args=(
--pairs-json "$EVAL_PAIRS"
--revision "$EVAL_REVISION"
--runs "${{ needs.prepare.outputs.runs }}"
--timeout-sec "${{ needs.prepare.outputs.timeout_sec }}"
--concurrency "${{ needs.prepare.outputs.sandbox_concurrency }}"
)
if [ -n "${EVAL_SNAPSHOT_ID:-}" ]; then
args+=(--snapshot-id "$EVAL_SNAPSHOT_ID")
fi
pnpm --filter @supabase-evals/framework eval:vercel -- "${args[@]}"

- name: Upload raw results
if: always()
Expand Down
8 changes: 2 additions & 6 deletions apps/framework/scripts/run-vercel-evals.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { APIError } from '@vercel/sandbox';
import { describe, expect, it } from 'vitest';
import {
isRetryableSandboxCreateError,
parsePairs,
runBounded,
tagValue,
} from './run-vercel-evals.js';
import { parsePairs, runBounded } from './run-vercel-evals.js';
import { isRetryableSandboxCreateError, tagValue } from './vercel-sandbox.js';

describe('Vercel eval controller', () => {
it('bounds concurrent work and lets independent failures settle', async () => {
Expand Down
Loading