Repository navigation
ci(evals): Add live behavioral eval samples workflow - #2376
Closed
sentry-junior[bot] wants to merge 1 commit into
Closed
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
Add a manual workflow that runs chosen behavioral eval files N times with VITEST_EVALS_REPLAY_MODE=off against one ref, and writes the pass count of each case to the job summary. Two runs, one for main and one for a branch, give an A/B comparison of a prompt change without recording replay. Refs #2371 Co-Authored-By: David Cramer <david@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sentry Evalsjunior-behavioral
Base commit junior-guardian
Base commit junior-integration
Base commit junior-router
Base commit |
Member
|
this overcomplicates our life right now |
This was referenced Oct 30, 2026
This branch was successfully deployed
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.
Add a manual
Evals sampleworkflow. It runs the behavioral eval files that you select N times, live, against one ref, and shows the pass count of each case. Run it one time formainand one time for a branch to compare a prompt change, for example #2371.Why
A pull request eval run does not measure a prompt change well:
evals-behavioral.ymlruns only onpull_request, so there is no run formainto compare with.What
.github/workflows/evals-behavioral-sample.yml(workflow_dispatch):ref(defaultmain),files(space-separated, relative topackages/junior-evals), optionalfilter(-t),samples(default 5, max 10).planchecks the inputs and resolvesrefto one commit, so all samples run the same code.sampleis a matrix of N parallel jobs. Each runs the files withVITEST_EVALS_REPLAY_MODE=off(every request is live, nothing is recorded) in the network jail, with the same services,cloudflared, secrets, and snapshot cache asevals-behavioral.yml. Each job publishes itsvitest-evalssummary and uploads its JSON report.summarywrites a table withpassed/runsfor each case.scripts/sample-summary.mjscounts the passed runs per case. It reusesscenariosFromReportfromreport.mjs(now exported), so case names and status rules are the same as the evals.sentry.dev upload.scripts/*.test.mjs, so the new test runs intest / eval reporting.packages/junior-evals/README.md: new "Live Samples" section.policies/evals.mddoes not cover how to measure prompt changes, so it is not changed.Example A/B:
Design notes
repeatsis a per-test option with no CLI flag. A repeated test gets one result, fails if any repeat fails, and keeps only the metadata of the last repeat. It cannot give a pass count, so this uses a job matrix.workflow_dispatchbranch inevals-behavioral.yml. A branch there needs conditions in most steps of the PR gate. The services block and thecloudflaredstep are copied. A composite action forcloudflaredwould have to exist on every ref that you sample, so old branches could not run.report.mjsrefuses duplicate case names, and N samples of one case would be duplicates. The PR upload path does not change.env, not inline${{ }}in scripts.filesmust matchevals/<path>.eval.ts.Open questions
main, so the Sentry Evals check reports "Waiting for a run of base commit". This PR does not add a push-to-main trigger.Checks
actionlint1.7.7 with shellcheck 0.10.0 on the new workflow andci.yml: clean (customblacksmith-*runner label ignored).node --test packages/junior-evals/scripts/*.test.mjs: 6 pass.--config,.., empty files,-twith spaces).workflow_dispatchcan only run after the workflow is on the default branch.via David Cramer.
--
View Junior Session [Sentry]