Repository navigation
fix(tools): avoid false duration warnings in empty benchmark intervals - #25973
oneandonlydean merged 1 commit into
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The empty interval guard directly prevents the duration comparison from warning when there are no frames; the added regression test checks that behavior.
What I ran
Reviewed head 6a908391ae66ba18e9af70fd36aaa60c698a2f19. I read the prepared description, commit list, manifest, diff, review README, and all changed lines plus surrounding code in both changed files. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed lines | passed | Both changed files read |
| Tests | not run | Author reports 55 tests and conventions check passed |
Negative control
Not run.
Findings
Blocking
None.
Non-blocking
None.
Sources
The change guards the per-interval duration comparison on a nonzero frame count (tools/benchmark_compare.py:237). The regression test verifies the empty-interval warning remains and the serialization warning does not appear (tools/tests/test_benchmark_compare.py:167).
Not verified
Tests and conventions check were not run independently. No files were excluded; both changed files listed as reviewed in the manifest were read at their changed lines.
To get this to a good state
Nothing is required.
What
Skip frame-duration comparison when the selected interval contains zero frames. An empty interval should retain its existing empty-interval warning without also reporting a duration mismatch.
Tested
Linux with Python unittest. Ran all 55 benchmark comparison tests, including an empty interval with distinct duration metadata. The project conventions check passed.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)