Skip to content

Fix compare crash when plugins add extra metrics - #4914

Merged
soulgalore merged 1 commit into
mainfrom
compare-extras-group
Oct 25, 2026
Merged

soulgalore merged 1 commit into
mainfrom
compare-extras-group

Conversation

@soulgalore

Copy link
Copy Markdown
Member

Custom metrics that a plugin or script added to the browsertime extras made the compare run fail with "currentMetric.getValues is not a function". The extras ended up as their own top-level groups instead of one extras group, so compare tried to read metrics from the wrong level. The Graphite export already expected an extras group.

Objects in the extras (the axe result is stored there) are skipped, because only numbers can be compared.

Fixes #4292

Assisted-by: Claude Opus 5.5 noreply@anthropic.com

Custom metrics that a plugin or script added to the browsertime extras made the compare run fail with "currentMetric.getValues is not a function". The extras ended up as their own top-level groups instead of one extras group, so compare tried to read metrics from the wrong level. The Graphite export already expected an extras group.

Objects in the extras (the axe result is stored there) are skipped, because only numbers can be compared.

Fixes #4292

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
@soulgalore
soulgalore merged commit 4d1fb03 into main Oct 25, 2026
20 checks passed
@soulgalore
soulgalore deleted the compare-extras-group branch October 25, 2026 20:49
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.

adding to extra's field in plugin makes comparison mode fail

1 participant