Error stack for logging in TimedPromise only contains it's own frame
Categories
(Remote Protocol :: Marionette, enhancement, P1)
Tracking
(firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file, 1 obsolete file)
Given that we raise/log the error of a TimedPromise in a callback using errors.stack()
the resulted trace only contains the TimedPromise frame but nothing from above. As such it is pretty useless for debugging purposes.
With the above fixed we would clutter the log a lot for calls to Sleep()
. As such I would suggest to add some kind of option to fully prevent logging.
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
This is especially needed for "Sleep()", which by default runs
into a timeout condition, but logging it as warning would massively
clutter the log files.
Depends on D20637
Assignee | ||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4e00119c579c
https://hg.mozilla.org/mozilla-central/rev/0c48c658c7cf
Comment 6•7 years ago
|
||
Backed out 2 changesets (Bug 1529516) per dev's request for causing issues with wdspec a=backout
Assignee | ||
Comment 8•7 years ago
•
|
||
Somehow the Sleep()
command as heavily used in Action tests is causing a hang. Not sure how this can happen, beside that calling timer.initWithCallback()
would raise an error which we don't handle. I will have to investigate it.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 9•6 years ago
|
||
Maybe we can just go forward with https://phabricator.services.mozilla.com/D20637 and leave out the changes to Sleep, which are unrelated to this bug anyway. Applying the patch locally and fixing the merge conflicts I get correct output:
1577975040525 Marionette WARN TimedPromise timed out after 5000 ms: stacktrace:
TimedPromise/<@chrome://marionette/content/sync.js:244:13
TimedPromise@chrome://marionette/content/sync.js:229:10
GeckoDriver.prototype.maximizeWindow@chrome://marionette/content/driver.js:3194:11
Async*despatch@chrome://marionette/content/server.js:305:40
execute@chrome://marionette/content/server.js:275:16
onPacket/<@chrome://marionette/content/server.js:248:20
onPacket@chrome://marionette/content/server.js:249:9
_onJSONObjectReady/<@chrome://marionette/content/transport.js:501:20
I will obsolete the second attachment and do a new try push.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
I filed bug 1606637 for the proposed changes to Sleep.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•