Skip to content

ci(bench): keep diagnostic runs out of the published results - #159

Merged
MathiasVDA merged 1 commit into
mainfrom
claude/project-thread-es9gu3-156
Dec 3, 2026
Merged

MathiasVDA merged 1 commit into
mainfrom
claude/project-thread-es9gu3-156

Conversation

@MathiasVDA

Copy link
Copy Markdown
Contributor

Requested by Mathias · project thread

Closes #156

What

A diagnostic benchmark run can no longer change the published results or the dashboard.

  • New workflow input diagnostic (boolean). A run with suite=all whose profile has a line of its own # diagnostic counts as one too. landuse-340 and landuse-340-confirm now have that line.
  • For such a run, the collect job moves the run's files to bench/v2/diagnostics/<run id>/, keeping their paths under results/. The manifest and log go under runs/, plus a README.md. It then restores main's files and skips runs.py index, the suite reports, dashboard.py and site/summary.py. It fails if bench/v2/results/ still differs from main.
  • bench/v2/diagnostic.py does the marker check and the move. bench/v2/test_diagnostic.py copies 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 outside results/ and bad run ids are refused.
  • Docs: bench/v2/cloud/README.md, new section "Diagnostic runs".

Checks

  • python3 -m unittest discover -s bench/v2 -p 'test_*.py' (65 tests OK).
  • Dry run of the collect step's shell in a scratch clone. A marked profile with a changed published result plus a new manifest and log gave only bench/v2/diagnostics/123/… staged and an empty git status under bench/v2/results.
  • bench.yml parses as YAML. The workflow runs only by hand, so the new path is first exercised by the next diagnostic run (for example landuse-340-confirm).

Generated by Claude Code

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
@MathiasVDA MathiasVDA self-assigned this Dec 3, 2026
@MathiasVDA MathiasVDA added the review:approved Reviewer approved label Dec 3, 2026 — with Claude

Copy link
Copy Markdown
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. test_diagnostic.py passes here (5 tests, with the real results copied), the move refuses paths outside bench/v2/results/ and bad run ids, and the collect job fails rather than push a diagnostic run that changes the results.

Small, not blocking: the folder of run 47017370893 (from #155) is flat, while new runs keep their paths under results/. Worth a line in its README or a move when someone next touches it.


Generated by Claude Code

@MathiasVDA
MathiasVDA merged commit 7a192c3 into main Dec 3, 2026
8 checks passed
@MathiasVDA
MathiasVDA deleted the claude/project-thread-es9gu3-156 branch December 3, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:approved Reviewer approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(bench): diagnostic runs must not write over published results

1 participant