Repository navigation
Clean up validation - #942
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
framework-performance | 0f7180d | Commit Preview URL Branch Preview URL |
Nov 25 2026, 04:34 AM |
dreyfus92
left a comment
There was a problem hiding this comment.
nice cleanup alex, lgtm!
one question tho, save-ci-stats now accepts missing benchmark files, so if one doesn't come back it just disappears from latest.json and validate won't flag it. was that on purpose? a quick "every configured measurement has a file" check would keep it
also noticed that an invalid file now shows up as a zod error on the merged result, so we lose which file it came from
So for point 2 I made a slight tweak so you will get the file name now on merge. For point 1 I am going to have a simple check but I want to mess with the packages/results/src/frameworks-config.ts to do it. There is two measurment arrays in here. I want just one that then checks the keys exists :) |
The final PR, which builds on #938
As each benchmark runs in the CI, it saves its output to a temporary JSON file, and these are merged at the end. Now that everything is using the same schema, we can simplify the validation.
Now the process is:
Got to nuke so much unnecessary repeated validation by using the same schema, and this also opens up more sharing between benchmarks for expanding our suite of benchmarks.
Also one other little tweaks I changed it to each benchmark saves into its own tempoery JSON file rather than one big one to stop multiple runs overwritting each other locally when running them.