Skip to content

Test the visual metrics calculations in CI#2532

Merged
soulgalore merged 1 commit into
mainfrom
visualmetrics-tests
Jul 20, 2026
Merged

Test the visual metrics calculations in CI#2532
soulgalore merged 1 commit into
mainfrom
visualmetrics-tests

Conversation

@soulgalore

Copy link
Copy Markdown
Member

The Speed Index, visual progress and visual change math in visualmetrics-portable.py had no test coverage at all: the existing test file imported the mozilla-central Python packaging of the old script, which does not exist in this repo, so it could never run. Any change to the metric calculations would silently shift metrics for every user.

The test data frames already in the repo now feed the shipped portable script directly, with the computed values pinned: First and Last Visual Change, Speed Index, the full visual progress curve, and the contentful/perceptual variants (skipped when OpenCV or pyssim is missing). A test for the upcoming frame-diff feature skips with a reason until that branch lands, so the two merge in either order. A new dedicated GitHub Action runs the suite; it finishes in under a second.

Co-authored-by: Claude Fable 5 noreply@anthropic.com
Change-Id: I625e90cf2b0edea9786ddf1d46bf7a69b240bc13

The Speed Index, visual progress and visual change math in
visualmetrics-portable.py had no test coverage at all: the existing
test file imported the mozilla-central Python packaging of the old
script, which does not exist in this repo, so it could never run.
Any change to the metric calculations would silently shift metrics
for every user.

The test data frames already in the repo now feed the shipped
portable script directly, with the computed values pinned: First and
Last Visual Change, Speed Index, the full visual progress curve, and
the contentful/perceptual variants (skipped when OpenCV or pyssim is
missing). A test for the upcoming frame-diff feature skips with a
reason until that branch lands, so the two merge in either order. A
new dedicated GitHub Action runs the suite; it finishes in under a
second.

Co-authored-by: Claude Fable 5 noreply@anthropic.com
Change-Id: I625e90cf2b0edea9786ddf1d46bf7a69b240bc13
@soulgalore
soulgalore merged commit f4fbdc1 into main Jul 20, 2026
17 checks passed
@soulgalore
soulgalore deleted the visualmetrics-tests branch July 20, 2026 05:35
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.

1 participant