Closed Bug 403106 Opened 17 years ago Closed 17 years ago

pageloader needs to timeout on failure to load.

Categories

(Release Engineering :: General, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: anodelman, Assigned: anodelman)

References

Details

Attachments

(1 file, 1 obsolete file)

If a page fails to load (through throwing an error, or just endlessly blocking) the pageloader will block indefinitely.  There needs to be a means of stopping the test and providing a reasonable error message if a page exceeds a given timeout.
Added support for -tptimeout and -tpnoisy.  -tptimeout allows you to set a timeout for each page loaded, if the timeout is exceeded the test is stopped.  -tpnoisy drops the name of the last loaded page to the console - this can be handy for tracking which page has caused a failure in a test.
Assignee: nobody → anodelman
Status: NEW → ASSIGNED
Attachment #288770 - Flags: review?(vladimir)
Comment on attachment 288770 [details] [diff] [review]
add -tptimeout and -tpnoisy options to pageloader

Just some minor stuff:

- Just have noisy always be on, no need for a separate flag.  If something is timing out, I can't imagine why we wouldn't want to know what :)

- change |var t| to be something more descriptive, like |var pageTimeoutTimer| or something; single-letter global variables are bad :)

Other than that, the patch looks fine
Attachment #288770 - Flags: review?(vladimir) → review-
Changed to have a better name for the global variable.

I want to keep -tpnoisy separate from -tptimeout.  You will always be notified if a page timeouts, what tpnoisy does is dump the name of every page after is successfully loads.  I'd prefer to be able to nor be noisy all the time.
Attachment #288770 - Attachment is obsolete: true
Attachment #288932 - Flags: review?(rcampbell)
Attachment #288932 - Flags: review?(rcampbell) → review?(vladimir)
Comment on attachment 288932 [details] [diff] [review]
add -tptimeout and -tpnoisy options to pageloader #2

Oh, ok; that makes sense for noisy, then.  Looks fine.
Attachment #288932 - Flags: review?(vladimir) → review+
Checking in pageloader.js;
/cvsroot/mozilla/layout/tools/pageloader/pageloader.js,v  <--  pageloader.js
new revision: 1.8; previous revision: 1.7
done
Checking in tp-cmdline.js;
/cvsroot/mozilla/layout/tools/pageloader/tp-cmdline.js,v  <--  tp-cmdline.js
new revision: 1.3; previous revision: 1.2
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Mass move of Core:Testing bugs to mozilla.org:Release Engineering:Talos. Filter on RelEngTalosMassMove to ignore.
Component: Testing → Release Engineering: Talos
Product: Core → mozilla.org
QA Contact: testing → release
Version: unspecified → other
Component: Release Engineering: Talos → Release Engineering
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: