feat: evals runner with vercel workflows, sandbox - #186
Draft
mattrossman wants to merge 12 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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.
Incomplete proof of concept using Vercel Workflows to orchestrate Sandboxes for running evals outside of GitHub Actions. Workflows can be dispatched via a new Nitro app in
apps/runner, the deployment of which has Deployment Protection so you can use a bypass secret to authenticate.I started with a single workflow
runEvalWorkflowcomposed of 3 steps:createEvalSandboxrunEvalInSandboxdeleteEvalSandboxIdea being that sandbox creation and deletion could fail, so this will retry + continue on step failures as needed, and gracefully rollback sandbox creation on intermediate errors.
A second workflow
runEvalsWorkflow(plural) uses the same steps, but adds loops / retry logic to run a batch of multiple eval runs.I added logic so that agents write their stream of output to the workflow logs (i.e. tool calls, assistant message parts), as well as the normal framework logs (eval run status) to 2 stream "namespaces" for each run.
Not yet included:
Note the majority of this diff is
pnpm-lock.yamlRelated: #114
Ref AI-912