mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5007
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4326
Author: @XiaoBinGan
Created: 10/27/2026
Status: 🔄 Open
Base:
main← Head:fix/bench-compare-standard-report📝 Commits (1)
3fef2e8Fix #4325: say what a standard benchmark report is, instead of KeyError: 'results'📊 Changes
2 files changed (+37 additions, -1 deletions)
View changed files
📝
tools/strata_bench.py(+11 -1)📝
tools/test_strata_bench.py(+26 -0)📄 Description
Problem and result
tools/strata_bench.py --compare OLD --compare-only NEW— the comparisondocs/COMMUNITY_BENCHMARKS.mdnames fortwo saved runs — dies on a folder written by the default
strata bench runsuite:Two report schemas share the file name
results.jsonin a run folder:--suite standard-v1(the default)writes
bench_standard.py's document withsummaries, and this tool reads its ownresultslist. After thechange the tool recognises the standard report and stops with one sentence instead of a traceback:
strata bench reporton the same folder was always fine — the run folders are not broken, only this reader.Related discussion
#4325 (filed with the same reproduction, and with what a real comparison would need). This PR
is the part that is an improvement whichever way that scope goes: it removes a traceback from a documented command
and points at the command that does work.
Approach
load_results()is the single place both comparison paths read a folder through, so the check lives there:main()(ap.errorfor--compare-onlywithout--compare).comparison.
(
--compare OLDwhile measuring a new run) goes through the sameload_results()and behaves as before.Validation
Passed: the end-to-end case in the image that has the bug, with the patched file mounted over the image's and two
real standard-v1 run folders (2026-10-21 shared card, 2026-10-24 exclusive card, both
strata bench runfrom0.2.2-cuda13):--compare /runs/shared --compare-only /runs/exclusiveKeyError: 'results'traceback{"schema": 1, "results": []}) throughload_results--compare /runs/shared(no--compare-only)Passed:
python -m unittest tools.test_strata_bench: 24 tests, OK, including the two new cases inStandardReportIsNotAServingReport. Withtools/strata_bench.pyreverted the same class fails withAssertionError: SystemExit not raised, so the test does pin the change.Failed: none.
Not run: an actual comparison of two standard runs, which is #4325's feature and deliberately not attempted here.
Also not run: the live path that compares a finished run with one being measured now (
--compare OLDwithout--compare-only) — it needs a serving engine, and it calls the sameload_results()I tested directly.Limits
per-case table from
summaries(the figuresstrata bench reportalready prints), and I can write it with tests.strata bench compare BASELINE CANDIDATE(the CLI command) still answersstrata: unsupported benchmark reportfor a standard report. That is the same root cause on another surface; I left it alone so this PR does not touch
the CLI's error contract without agreement.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.