8000 Bug 1541041 Page timeouts are ignored during cold page-load test suit… · mozilla/gecko-dev@70d0747 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 70d0747

Browse files
committed
Bug 1541041 Page timeouts are ignored during cold page-load test suites r=rwood,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D26309 --HG-- extra : moz-landing-system : lando
1 parent 57aa3d1 commit 70d0747

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

testing/raptor/raptor/raptor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ def wait_for_test_finish(self, test, timeout):
334334
# convert timeout to seconds and account for page cycles
335335
timeout = int(timeout / 1000) * int(test.get('page_cycles', 1))
336336
# account for the pause the raptor webext runner takes after browser startup
337-
timeout += (int(self.post_startup_delay / 1000) + 3)
337+
# and the time an exception is propagated through the framework
338+
timeout += (int(self.post_startup_delay / 1000) + 10)
338339

339340
# if geckoProfile enabled, give browser more time for profiling
340341
if self.config['gecko_profile'] is True:
@@ -865,6 +866,10 @@ def run_test_cold(self, test, timeout=None):
865866
self.log.info("* debug-mode enabled - please shutdown the browser manually...")
866867
self.runner.wait(timeout=None)
867868

869+
# break test execution if a exception is present
870+
if len(self.results_handler.page_timeout_list) > 0:
871+
break
872+
868873
def run_test_warm(self, test, timeout=None):
869874
self.log.info("test %s is running in warm mode; browser will NOT be restarted between "
870875
"page cycles" % test['name'])

0 commit comments

Comments
 (0)
0