Skip to content

fix(ci): prevent agent filenames from failing eval refreshes - #302

Merged
mattrossman merged 12 commits into
mainfrom
mattrossman/ai-1220-one-agent-written-filename-discards-an-entire-eval-refresh
Sep 16, 2026
Merged

mattrossman merged 12 commits into
mainfrom
mattrossman/ai-1220-one-agent-written-filename-discards-an-entire-eval-refresh

Conversation

@mattrossman

@mattrossman mattrossman commented Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator

Raw eval results now stay tarred through artifact upload, so agent-written filenames never reach upload-artifact. A " in one workspace filename previously took down a refresh where all 690 runs had passed (run).

Downloads use a .partial filename until complete, so interrupted transfers cannot leave truncated archives for publish-results to extract.

Verified a " workspace filename and a truncated .partial don't break the workflow (run, snapshot f2fe4a7).

Closes AI-1220

@vercel

vercel Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
evals Ignored Ignored Preview Sep 16, 2026 7:24pm UTC

Request Review

@mattrossman mattrossman changed the title fix(ci): keep raw eval results tarred through the artifact upload fix(ci): prevent agent filenames from failing eval refreshes Sep 16, 2026
@mattrossman
mattrossman marked this pull request as ready for review September 16, 2026 19:39
@mattrossman
mattrossman requested a review from a team as a code owner September 16, 2026 19:39
@mattrossman
mattrossman merged commit 48a88ba into main Sep 16, 2026
7 checks passed
mattrossman added a commit that referenced this pull request Sep 21, 2026
Records [Vercel Sandbox's metered
usage](https://vercel.com/docs/sandbox/pricing) on eval results so we
can estimate total sandbox cost per experiment. See fields mirrored from
[`sandbox.stop()` return
type](https://vercel.com/docs/sandbox/sdk-reference#sandbox.stop).

```jsonc
/* eval-results.json */
{
    // ...
    "agentRunDurationMs": 12345,
    "sandboxUsage": {
      "activeCpuDurationMs": 490837,
      "duration": 308496,
      "memory": 8192,
      "networkTransfer": {
        "ingress": 2728707529,
        "egress": 4804954
      }
    },
    // ...
}
```

I renamed our `durationMs` -> `agentRunDurationMs` to disambiguate from
the new sandbox duration fields.

## Notes

In the previous PR #302 I kept all
the files from the Sandbox tarred together to keep the agent-authored
ones contained in case of corrupt filenames. This PR moves `result.json`
out from that so we can inject the Sandbox usage stats w/o needing to
untar / retar the results file.

The runner tests also cover archived agent-authored filenames and
incomplete `.partial` results.

## How to review

I sanity checked one benchmark eval via the [refresh
workflow](https://github.com/supabase/evals/actions/runs/35152800137).
Take a look at the [sandbox usage
snapshot](https://github.com/supabase/evals/blob/d9bc1c7447c01b7f015a391a86d0688a43ea8d3d/apps/web/src/data/eval-results.json#L31147-L31155)
to vet the new fields.

Closes AI-1222

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants