tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5f9c20b03bfae6e3f9cc20f38ab3d35b8b9ca683
parent d3b2fe18b4226dd943828e74e046d2b9aa1d643d
Author: Florian Quèze <florian@queze.net>
Date:   Thu,  9 Oct 2025 15:24:06 +0000

Bug 1993483 - show a marker in resource usage profiles for time spent replaying full logs of failed xpcshell tests, r=jmaher.

Differential Revision: https://phabricator.services.mozilla.com/D268138

Diffstat:
Mtesting/xpcshell/runxpcshelltests.py | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/testing/xpcshell/runxpcshelltests.py b/testing/xpcshell/runxpcshelltests.py @@ -744,7 +744,9 @@ class XPCShellTestThread(Thread): """ if not self.output_lines: return - self.log.info(f">>>>>>> Begin of full log for {self.test_object['id']}") + log_message = f"full log for {self.test_object['id']}" + self.log.info(f">>>>>>> Begin of {log_message}") + self.log.group_start("replaying " + log_message) for timestamp, line in self.output_lines: if isinstance(line, dict): # Always ensure the 'test' field is present for resource usage profiles @@ -768,7 +770,8 @@ class XPCShellTestThread(Thread): # For text lines, we need to provide the timestamp that was # recorded when appending the message to self.output_lines self.log_line(line, time=timestamp) - self.log.info(f"<<<<<<< End of full log for {self.test_object['id']}") + self.log.info(f"<<<<<<< End of {log_message}") + self.log.group_end("replaying " + log_message) self.output_lines = [] def report_message(self, message):