Repository navigation
fix: return error message when performance_stop_trace is called with no active trace - #3066
Closed
costajohnt wants to merge 1 commit into
Closed
costajohnt wants to merge 1 commit into
costajohnt wants to merge 1 commit into
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Collaborator
|
Closing due to missing CLA. |
Contributor
Author
|
I've signed the CLA now and the cla/google check is passing. Could you reopen this when you get a chance? Thanks! |
OrKoN
self-requested a review
October 14, 2026 15:10
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3001
performance_stop_tracereturned an empty response when no trace was running, also when afilePathwas given, so the agent couldn't tell whether anything was stopped or saved. This makes it return a message instead, the same wayscreencast_stopdoes since #2209:Error: no performance trace is running. Use performance_start_trace to start one.(worded like the existing "already running" message fromperformance_start_trace)filePath: an extra lineNo trace file was written to <path>.The early return from #295 stays, so
page.tracing.stop()is still not called when nothing is recording. The normal stop path is unchanged.Tests: updated the "trace is not running" case in
tests/tools/performance.test.tsto expect the message (it failed before the change) and added a case for thefilePathline.node scripts/test.js tests/tools/performance.test.ts16/16, fullnpm run test:no-build1340 passed / 3 skipped,npm run check-formatandnpm run typecheckclean.