Closed
Bug 1108948
Opened 10 years ago
Closed 9 years ago
Test failure 'Addon is no longer marked for uninstall' in /testAddons/testEnableDisableUndoUninstall.js
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect, P1)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(firefox35 fixed, firefox36 fixed, firefox37 fixed)
RESOLVED
FIXED
People
(Reporter: cosmin-malutan, Assigned: cosmin-malutan)
References
()
Details
(Whiteboard: [mozmill-test-failure][mozmill-test-skipped][sprint])
Attachments
(2 files, 1 obsolete file)
966 bytes,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
1.65 KB,
patch
|
AndreeaMatei
:
review+
whimboo
:
review+
|
Details | Diff | Splinter Review |
Module: MODULE Test: testUndoUninstall Failure: 'Addon is no longer marked for uninstall' Branches: mozilla-beta Platforms: All Failed for more than 100 times. http://mozmill-release.blargon7.com/#/functional/failure?app=Firefox&branch=All&platform=All&from=2014-12-02&to=2014-12-09&test=%2FtestAddons%2FtestEnableDisableUndoUninstall.js&func=testUndoUninstall
Assignee | ||
Comment 1•10 years ago
|
||
I couldn't reproduce this failure. I ran the test alone for 20 times and a complete testrun on OSX 10.7 with latest Beta.
Assignee | ||
Comment 2•10 years ago
|
||
I'd say we should skip this, and try to reproduce it on a staging node. Teo can you do this?
Flags: needinfo?(teodor.druta)
Comment 3•10 years ago
|
||
This is the skip patch for mozilla-beta.
Flags: needinfo?(teodor.druta)
Attachment #8533592 -
Flags: review?(andreea.matei)
Assignee | ||
Updated•10 years ago
|
Attachment #8533592 -
Flags: review?(mihaela.velimiroviciu)
Updated•10 years ago
|
Attachment #8533592 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8533592 -
Flags: review?(andreea.matei)
Attachment #8533592 -
Flags: review+
Comment 4•10 years ago
|
||
Skipped on beta: https://hg.mozilla.org/qa/mozmill-tests/rev/2417e4b357a4 Lets get this figured out! It smells like some kind of regression we see in beta.
status-firefox35:
--- → disabled
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][mozmill-test-skipped]
Comment 5•10 years ago
|
||
Daniela, giving that this is kinda blocking finishing bug 1093598, could you maybe check this out quickly?
Updated•10 years ago
|
Comment 6•9 years ago
|
||
I tried to reproduce it using Windows 8 production machine (Beta branch) and Ubuntu 14.04 production machine(beta branch). It didn`t fail at all. Here are the results: Windows: http://mozmill-crowd.blargon7.com/#/functional/reports?app=All&branch=35&platform=Win&from=2014-12-23&to=2014-12-29 Linux: http://mozmill-crowd.blargon7.com/#/functional/reports?app=All&branch=35&platform=Linux&from=2014-12-23&to=2014-12-29 And also I`ve tried to do ondemand on the staging machine, but the test is skipped in the manifest and I`ve stopped the ondemand.
Updated•9 years ago
|
Assignee: nobody → cosmin.malutan
Status: NEW → ASSIGNED
Whiteboard: [mozmill-test-failure][mozmill-test-skipped] → [mozmill-test-failure][mozmill-test-skipped][sprint]
Assignee | ||
Comment 7•9 years ago
|
||
I reproduced this on a staging node, it reproduced about twice in every 10 runs. As we can see in any failing report the addon is actually removed in the upcoming test, that's why test testAddonNotUninstalled fails too. So it was preaty clear that we failed to click on the undo link. If we click on an element that is not displayed, even if it exists it takes no action, so I added an waitFor->isDisplayed and it didn't failed anymore. I ran more than 50 testrun with the fix applied and it didn't failed anymore. Failure example: http://mozmill-crowd.blargon7.com/#/functional/report/04e54d608fc589a28217304fe64f7e78
Attachment #8545101 -
Flags: review?(andreea.matei)
Comment 8•9 years ago
|
||
Comment on attachment 8545101 [details] [diff] [review] patch v1.0 Review of attachment 8545101 [details] [diff] [review]: ----------------------------------------------------------------- ::: lib/addons.js @@ +446,4 @@ > > + // Wait for button to be displayed > + assert.waitFor(() => { > + button = this.getAddonButton(spec); Doesn't the button exist all the time? I don't see why we have to retrieve it over and over again. @@ +450,5 @@ > + > + return utils.isDisplayed(this._controller, button); > + }); > + > + button.click(); Maybe we should add another check right after which checks that the addon is marked to be removed. I think we can also enhance the other methods with that. I would suggest doing that in a follow-up bug.
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #8) > > + // Wait for button to be displayed > > + assert.waitFor(() => { > > + button = this.getAddonButton(spec); > > Doesn't the button exist all the time? I don't see why we have to retrieve > it over and over again. We don't, I just thought it would be safer, but you're right we are better off without catching it. > @@ +450,5 @@ > > + > > + return utils.isDisplayed(this._controller, button); > > + }); > > + > > + button.click(); > > Maybe we should add another check right after which checks that the addon is > marked to be removed. I think we can also enhance the other methods with > that. I would suggest doing that in a follow-up bug. We do that check in test itself, that was the failure. By the way, the fix is for nightly, if it goes in it has to be backported to beta, and the skip-patch reverted. Report: http://mozmill-crowd.blargon7.com/#/functional/report/04e54d608fc589a28217304fe66bfbce
Attachment #8545101 -
Attachment is obsolete: true
Attachment #8545101 -
Flags: review?(andreea.matei)
Attachment #8545135 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8545135 -
Flags: review?(andreea.matei)
Comment 10•9 years ago
|
||
(In reply to Cosmin Malutan from comment #9) > > Maybe we should add another check right after which checks that the addon is > > marked to be removed. I think we can also enhance the other methods with > > that. I would suggest doing that in a follow-up bug. > We do that check in test itself, that was the failure. And that's the problem. If a test is calling this method without doing the check itself, we will not notice the problem. When we have helper methods, those should assist as much as possible. Lets get a new bug filed so we can do this check inside the lib and not in each of the tests.
Assignee | ||
Comment 11•9 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #10) > (In reply to Cosmin Malutan from comment #9) > > > Maybe we should add another check right after which checks that the addon is > > > marked to be removed. I think we can also enhance the other methods with > > > that. I would suggest doing that in a follow-up bug. > > We do that check in test itself, that was the failure. > > And that's the problem. If a test is calling this method without doing the > check itself, we will not notice the problem. When we have helper methods, > those should assist as much as possible. Lets get a new bug filed so we can > do this check inside the lib and not in each of the tests. Done, bug 1118672. Henrik if you're fresh here could you leave an feedback or an review?
Comment 12•9 years ago
|
||
Comment on attachment 8545135 [details] [diff] [review] patch v1.1 Review of attachment 8545135 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Henrik, are you ok with the fix?
Attachment #8545135 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8545135 -
Flags: review?(andreea.matei)
Attachment #8545135 -
Flags: review+
Updated•9 years ago
|
Attachment #8545135 -
Flags: review?(hskupin)
Updated•9 years ago
|
Attachment #8545135 -
Flags: review?(hskupin) → review+
Comment 13•9 years ago
|
||
http://hg.mozilla.org/qa/mozmill-tests/rev/c5216709f406 (default)
status-firefox36:
--- → affected
status-firefox37:
--- → fixed
Assignee | ||
Comment 14•9 years ago
|
||
The patch applies cleanly on Aurora and Beta and fixes the issue, Andreea, could we back-port it?
Flags: needinfo?(andreea.matei)
Comment 15•9 years ago
|
||
Aurora will be done with the merge today. I'll have beta landed tomorrow.
Comment 16•9 years ago
|
||
http://hg.mozilla.org/qa/mozmill-tests/rev/4ce16abf4f01 (beta) Thanks Cosmin!
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(andreea.matei)
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•