Closed Bug 992223 Opened 10 years ago Closed 10 years ago

Work around Inspector and Style Inspector test failures before switching Task.jsm to use Promise.jsm

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: Paolo, Assigned: pbro)

References

Details

The Inspector and Style Inspector browser-chrome tests have several intermittent failures that are already very frequent, and are made much more frequent in Windows optimized builds when Task.jsm is changed by bug 887923 to use Promise.jsm.

There are currently 23 intermittent failures open, that I've collected as dependencies of bug 992211, that may or may not have a common underlying cause. I did some tests and a quick survey of the code, and did not find anything that could be obviously causing the failures. In any case, fixing them probably requires a relevant effort, even if done by the team that originally worked on the code.

Landing bug 887923 is very important:
 - It blocks extending the use of Task in devtools (bug 988048, bug 991797)
 - It blocks the eradication of old "sync" promises (bug 881047)
 - Any new Task-based code introduced from now on may unintentionally rely
   on the incorrect behavior of the current implementation, making it more
   difficult to switch to the correct implementation in the future
 - The "catch" method is unavailable on promises returned by Task.spawn.

Unless any brilliant solution is found to fix all the tests, my proposal
is to disable the above tests on Windows optimized builds (and maybe debug
builds if the increase in frequency is also relevant there).

This will allow us to complete the Promise/Task conversions in time for Firefox 31 ESR.
Flags: needinfo?(nfitzgerald)
Flags: needinfo?(fayearthur)
Flags: needinfo?(dcamp)
I don't know anything about these tests.
Flags: needinfo?(nfitzgerald)
Moving to Inspector component, and clearing the needinfo for Heather and DCamp and assigning to Patrick. Although I'm very tempted to just dup this to bug 988313, which I suspect will solve the problem.
Component: Developer Tools: Style Editor → Developer Tools: Inspector
Flags: needinfo?(fayearthur)
Flags: needinfo?(dcamp)
OS: Windows 7 → All
Hardware: x86 → All
(In reply to Joe Walker [:jwalker] from comment #2)
> Although I'm very tempted to just dup this to bug 988313, which I suspect will solve the problem.

Ah, bug 988313 is great work, and with good timing! We should still keep this bug open to see if bug 988313 solved the issues that prevent bug 887923 from landing. I just started a combined tryserver build:

https://tbpl.mozilla.org/?tree=Try&rev=2b2a87446d24
Depends on: 988313
Bug 988313 solved the concerns here!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → pbrosset
Target Milestone: --- → Firefox 31
QA Whiteboard: [qa-]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.