Skip to content

Keep the report when a script fails during a measurement - #4925

Merged
soulgalore merged 1 commit into
mainfrom
script-measurement-without-url
Oct 27, 2026
Merged

soulgalore merged 1 commit into
mainfrom
script-measurement-without-url

Conversation

@soulgalore

Copy link
Copy Markdown
Member

When a script failed after measure.start() but before the page had a URL, for example when a click did not find its element, the whole result from Browsertime was dropped with "TypeError: Invalid URL". The report had no pages, even for steps that were measured fine, and the real error was hidden behind the Invalid URL error.

That measurement has no page data, so it is now skipped. Its errors are still reported, on the page that was measured before it.

Fixes #4078

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

When a script failed after measure.start() but before the page had a URL, for example when a click did not find its element, the whole result from Browsertime was dropped with "TypeError: Invalid URL". The report had no pages, even for steps that were measured fine, and the real error was hidden behind the Invalid URL error.

That measurement has no page data, so it is now skipped. Its errors are still reported, on the page that was measured before it.

Fixes #4078

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
@soulgalore
soulgalore merged commit 6eea44a into main Oct 27, 2026
20 checks passed
@soulgalore
soulgalore deleted the script-measurement-without-url branch October 27, 2026 18:25
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.

Couldn't generate Html Report

1 participant