Repository navigation
fix(sandbox): start each local eval run on a fresh database - #466
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Rodriguespn
reviewed
Nov 11, 2026
Rodriguespn
reviewed
Nov 11, 2026
Rodriguespn
reviewed
Nov 11, 2026
Local `pnpm eval` runs reused the previous run's database. The sandbox image's Docker CLI was Debian's 20.10, and with a client older than 23.0 `supabase stop --no-backup` on CLI versions before 2.122.0 removes the containers but fails to prune the database volume (CLI-2637, supabase/cli#7177). The harness ignored the failure, and the next `supabase start` booted from the old volume. - Install Docker's official 27.5.1 CLI in the sandbox image, so the stop works for every pinned CLI version. The image tag now includes a hash of the Dockerfile, so cached images get rebuilt. - Log when `supabase stop --no-backup` fails instead of ignoring it. - Before starting, stop the workspace's project, removing a stack left by a run that died before teardown. - Tear down the stack when setup fails, instead of only stopping the sandbox. Co-Authored-By: Claude Opus 5.5 <[email protected]>
raulb
force-pushed
the
claude/zealous-neumann-055c5f
branch
from
November 11, 2026 14:47
f022b22 to
02a4702
Compare
mattrossman
approved these changes
Nov 11, 2026
mattrossman
left a comment
Collaborator
There was a problem hiding this comment.
Looks good! Ran the same local eval twice and confirmed the second started fresh, and teardown removed the database volume.
Non-blocking, but might be worth a comment-trimming pass (e.g. this comment could just explain why the Dockerfile hash is included).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
barryroodt
added a commit
that referenced
this pull request
Nov 24, 2026
## Problem PRs here inherit the org template from `supabase/.github`, and nobody fills it in. Recent evals PRs (#463, #466, #506, #514, #535) all go Problem, then Changes or Fix, then Verification with the exact `pnpm eval` command and a pass count. There's also nowhere that tells authors how to show CI results, which changed when #535 moved results to Braintrust only. ## Changes Adds `.github/PULL_REQUEST_TEMPLATE.md` with the shape those PRs already use: - **Problem** and **Changes** replace the org template's four prompts. - **How to Review** is optional, for multi-file PRs. The eval reading path sits in a comment and links to the reviewer checklist in `CONTRIBUTING.md` so it doesn't get copied. - **Verification** asks for the exact commands and before/after pass counts. The eval checklist matches `CONTRIBUTING.md` after #535: `run-evals-changed` or Refresh eval results, then link the Braintrust run. - A closing comment prompts for the Linear issue. Small PRs can still replace the whole thing with a couple of sentences. ## Verification One new file, `.github/PULL_REQUEST_TEMPLATE.md`. Both `CONTRIBUTING.md` anchors it links to (`#reviewing-an-eval`, `#submitting-evals-for-review`) exist on `main`. Closes AI-1130
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes AI-1386
Local
pnpm evalruns reused the previous run's database, so every run after the first started with earlier agents' migrations and grants. CI isn't affected: it runs each eval in a fresh Vercel sandbox.Why
The sandbox image's Docker CLI was Debian's 20.10. With a client older than 23.0,
supabase stop --no-backupon CLI versions before 2.122.0 removes the containers but fails to delete the database volume (CLI-2637, fixed upstream in supabase/cli#7177). The harness ignored the failure, and the nextsupabase startbooted from the old volume.Fix
supabase stop --no-backupfails instead of ignoring it.This covers sequential runs only; running local evals concurrently is out of scope.
Testing
New Docker test (
SANDBOX_DOCKER_TESTS=1 pnpm --filter @supabase-evals/sandbox test:docker): run 1 applies a migration and creates a table, and run 2 must start with neither. Run 2 is then killed before teardown, and run 3 must start clean. With the old Dockerfile the test fails, because run 1's database volume survives teardown. All 8 Docker tests and the unit tests pass.🤖 Generated with Claude Code