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#5008
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/4329
Author: @XiaoBinGan
Created: 10/27/2026
Status: 🔄 Open
Base:
main← Head:fix/strata-bench-compare-standard📝 Commits (1)
bd5ba17Fix #4325:strata bench comparesays what a standard report is📊 Changes
2 files changed (+30 additions, -0 deletions)
View changed files
📝
strata_cli/cli.py(+9 -0)📝
tests/terminal/test_bench_standard.py(+21 -0)📄 Description
Problem and result
strata bench compare BASELINE CANDIDATEreads a folder throughbench.load(), which wants the serving-suiteschema (
results). A folder from the defaultstrata bench run(suitestandard-v1) keeps its numbersunder
summaries, so the command answered— without saying what the folder was, or that
strata bench reportreads it happily. That is the sameasymmetry #4325 reports on the tool side:
_bench()instrata_cli/cli.pybranches on the standard loaderfor
reportbut went straight to the old reader forcompare.After the change it says which case it is:
both with exit status 5, which is what
ProfileErroralready uses for benchmark-report problems in thiscommand.
Related discussion
#4325 (the reproduction and the comparison feature it asks for). This PR is the part that
cannot be wrong: it removes a dead end from a documented command. The comparison itself is deliberately not
implemented — its shape needs your agreement, and I would write it next to the existing output formats.
Approach
load_if_standard()was already there and is whatreportuses for the same job; it returnsNonefor anyother kind of report and raises only when a standard report is invalid.
(the serving comparison's own guards — same workload, same machine — would have to be re-thought for standard
reports, which is #4325's scope question).
Validation
Passed: the two new cases in
CompareRefusesAStandardReport(tests/terminal/test_bench_standard.py), whichdrive the real CLI entry point (
main(["bench", "compare", ...])) withload_if_standardpatched:The two extra passes are the new cases; the 51 failures pre-exist on this Windows checkout (the file drives real
HTTP servers and timing-sensitive suites) and are identical in the two runs. The two new tests fail by name in
the reverted run.
Failed: none of the new cases.
Not run: the same command in the 0.2.7 image against real run folders: the image carries the old
cli.py, andmounting a patched copy over it would test my file rather than the shipped one, which is what the tests above
already do. The reproduction of the old answer on real folders is in #4325.
Limits
natural shape is the per-case table
strata bench reportalready prints, side by side with deltas.--outargument errors next to it use 2),that is a one-character change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.