Repository navigation
ci(bench): keep diagnostic runs out of the published results - #159
Merged
Merged
Conversation
A run with the input diagnostic, or of a profile with a line '# diagnostic', puts its files under bench/v2/diagnostics/<run id>/ and skips the index, the suite reports, the dashboard and summary.json. The collect job fails if such a run would change bench/v2/results. Closes #156
Contributor
Author
|
Approved at 8f2195f. This is the follow-up I asked for on #155: a diagnostic run no longer writes over the published results. Small, not blocking: the folder of run 47017370893 (from #155) is flat, while new runs keep their paths under Generated by Claude Code |
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.
Requested by Mathias · project thread
Closes #156
What
A diagnostic benchmark run can no longer change the published results or the dashboard.
diagnostic(boolean). A run withsuite=allwhose profile has a line of its own# diagnosticcounts as one too.landuse-340andlanduse-340-confirmnow have that line.bench/v2/diagnostics/<run id>/, keeping their paths underresults/. The manifest and log go underruns/, plus a README.md. It then restores main's files and skipsruns.py index, the suite reports,dashboard.pyandsite/summary.py. It fails ifbench/v2/results/still differs from main.bench/v2/diagnostic.pydoes the marker check and the move.bench/v2/test_diagnostic.pycopies the real results, lays a diagnostic run over them (the newest manifest, a result written over a published one), and checks two things. Without the move the dashboard CSVs change. With it they are byte-identical. Paths outsideresults/and bad run ids are refused.bench/v2/cloud/README.md, new section "Diagnostic runs".Checks
python3 -m unittest discover -s bench/v2 -p 'test_*.py'(65 tests OK).bench/v2/diagnostics/123/…staged and an emptygit statusunderbench/v2/results.bench.ymlparses as YAML. The workflow runs only by hand, so the new path is first exercised by the next diagnostic run (for examplelanduse-340-confirm).Generated by Claude Code