Closed
Bug 1016387
Opened 10 years ago
Closed 10 years ago
Uncaught async Promise errors should cause mochi tests to fail
Categories
(Toolkit :: Async Tooling, defect)
Toolkit
Async Tooling
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: Yoric, Assigned: Yoric)
References
(Depends on 3 open bugs, Blocks 1 open bug)
Details
Attachments
(11 files, 6 obsolete files)
1.44 KB,
patch
|
Details | Diff | Splinter Review | |
4.21 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
5.37 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
1.04 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
38.06 KB,
patch
|
paul
:
review+
|
Details | Diff | Splinter Review |
910 bytes,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
7.15 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
1.14 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
1.36 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
855 bytes,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
2.13 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee: nobody → dteller
Assignee | ||
Comment 2•10 years ago
|
||
Same patch with less line noise in the message.
Attachment #8431052 -
Attachment is obsolete: true
Assignee | ||
Comment 3•10 years ago
|
||
Unfortunately, the blockers for this bug have actually regressed in the past few months. I'll change strategy and whitelist offenders.
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8499538 -
Flags: review?(ted)
Assignee | ||
Comment 5•10 years ago
|
||
Whitelisting the offenders from mochitest-bc1. Gijs, you have been picked as reviewer :)
Attachment #8499542 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 6•10 years ago
|
||
Dao, this one-liner is for you.
Attachment #8499550 -
Flags: review?(dao)
Comment 7•10 years ago
|
||
Comment on attachment 8499542 [details] [diff] [review]
3. Whitelisting offenders from bc1
Review of attachment 8499542 [details] [diff] [review]:
-----------------------------------------------------------------
Please fix the trailing whitespace.
Attachment #8499542 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment 8•10 years ago
|
||
Comment on attachment 8499550 [details] [diff] [review]
4. Whitelisting offenders from bc3
I don't care much since it's a test, but the empty comment lines are weird.
Attachment #8499550 -
Flags: review?(dao) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8499538 [details] [diff] [review]
2. Whitelist mechanism
Review of attachment 8499538 [details] [diff] [review]:
-----------------------------------------------------------------
::: testing/mochitest/browser-test.js
@@ +907,5 @@
> self.SimpleTest.ignoreAllUncaughtExceptions(aIgnoring);
> };
>
> + this.thisTestLeaksUncaughtRejectionsAndShouldBeFixed = function() {
> + aTester._treatUncaughtRejectionsAsFailures = false;
I feel like these ought to wind up in the manifest, but that's probably not as straightforward.
Attachment #8499538 -
Flags: review?(ted) → review+
Assignee | ||
Comment 10•10 years ago
|
||
As discussed over IRC, here is a more explicit v2.
Attachment #8499538 -
Attachment is obsolete: true
Attachment #8500050 -
Flags: review?(ted)
Assignee | ||
Comment 11•10 years ago
|
||
Applied feedback.
Attachment #8499542 -
Attachment is obsolete: true
Attachment #8500052 -
Flags: review+
Assignee | ||
Comment 12•10 years ago
|
||
Applied feedback.
Attachment #8499550 -
Attachment is obsolete: true
Attachment #8500053 -
Flags: review+
Assignee | ||
Comment 13•10 years ago
|
||
Attachment #8500054 -
Flags: review?(dtownsend+bugmail)
Comment 14•10 years ago
|
||
Comment on attachment 8500053 [details] [diff] [review]
4. Whitelisting offenders from bc3, v2
>+///////////////////
>+//
>+// Whitelisting this test.
>+// As part of bug 1077403, the leaking uncaught rejection should be fixed.
>+//
>+thisTestLeaksUncaughtRejectionsAndShouldBeFixed("");
That's even worse. Should be like this:
// Whitelisting this test.
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("");
Though since the verbose function name says it all, "Whitelisting this test" could also be spared...
Assignee | ||
Comment 15•10 years ago
|
||
And here comes the main course: offenders from devtools. Paul, I'd still be grateful if all of these errors could be fixed instead of being whitelisted.
Attachment #8500055 -
Flags: review?(paul)
Assignee | ||
Comment 16•10 years ago
|
||
As you wish. I just wanted to make sure that whoever maintains the test cannot miss that single line, because in my experience, most of the uncaught errors represent actual bugs.
Attachment #8500053 -
Attachment is obsolete: true
Attachment #8500056 -
Flags: review+
Assignee | ||
Comment 17•10 years ago
|
||
Apparently, the whitelist is sufficient: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=6b7784218b69
Updated•10 years ago
|
Attachment #8500055 -
Flags: review?(paul) → review+
Updated•10 years ago
|
Attachment #8500054 -
Flags: review?(dtownsend+bugmail) → review+
Updated•10 years ago
|
Attachment #8500050 -
Flags: review?(ted) → review+
Comment 19•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/746989e4c8d1
https://hg.mozilla.org/integration/fx-team/rev/7fd7d28cd78f
https://hg.mozilla.org/integration/fx-team/rev/039f1a265da2
https://hg.mozilla.org/integration/fx-team/rev/71abd0791f96
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 20•10 years ago
|
||
sorry had to backout this change for test failures like
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=866707&repo=fx-team
and
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=866722&repo=fx-team
Updated•10 years ago
|
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 21•10 years ago
|
||
Tomcat, according to comment 19, you only landed 4 patches out of 7. This is consistent with the error message in the logs: part 2 is missing.
Comment 22•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/301cf058df9c
https://hg.mozilla.org/integration/fx-team/rev/a80dac10afbe
https://hg.mozilla.org/integration/fx-team/rev/10929cc5152d
https://hg.mozilla.org/integration/fx-team/rev/62c89722e983
https://hg.mozilla.org/integration/fx-team/rev/b2857344efc8
https://hg.mozilla.org/integration/fx-team/rev/50f07054fd43
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 23•10 years ago
|
||
Ah, apparently, one more test needs to be whitelisted.
Attachment #8503084 -
Flags: review+
Assignee | ||
Comment 24•10 years ago
|
||
Hopefully, this should take care of all the devtools oranges that have appeared since my last Try.
Attachment #8503084 -
Attachment is obsolete: true
Attachment #8503090 -
Flags: review+
Assignee | ||
Comment 25•10 years ago
|
||
And another new one, probably intermittent.
Attachment #8503092 -
Flags: review+
Comment 26•10 years ago
|
||
Assignee | ||
Comment 27•10 years ago
|
||
Attachment #8503118 -
Flags: review+
Assignee | ||
Comment 28•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8503119 -
Attachment is patch: true
Attachment #8503119 -
Flags: review+
Comment 29•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8503119 -
Attachment description: 19. Whitelisting offenders from bc1, part 3 → 10. Whitelisting offenders from bc1, part 3
Comment 31•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/301cf058df9c
https://hg.mozilla.org/mozilla-central/rev/a80dac10afbe
https://hg.mozilla.org/mozilla-central/rev/10929cc5152d
https://hg.mozilla.org/mozilla-central/rev/62c89722e983
https://hg.mozilla.org/mozilla-central/rev/b2857344efc8
https://hg.mozilla.org/mozilla-central/rev/50f07054fd43
https://hg.mozilla.org/mozilla-central/rev/9663dfdca203
https://hg.mozilla.org/mozilla-central/rev/4b851bb56ee5
https://hg.mozilla.org/mozilla-central/rev/cec9e29a0ce9
https://hg.mozilla.org/mozilla-central/rev/50e51c7922ec
https://hg.mozilla.org/mozilla-central/rev/58b3284c18fe
https://hg.mozilla.org/mozilla-central/rev/2c4057903a5b
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla35
Updated•10 years ago
|
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•