Skip to content

fix(tools): avoid false duration warnings in empty benchmark intervals - #25973

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
cookie42073-cmd:fix/benchmark-empty-interval-warning
Nov 23, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
cookie42073-cmd:fix/benchmark-empty-interval-warning

Conversation

@cookie42073-cmd

Copy link
Copy Markdown
Contributor

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

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants