Closed
Bug 998253
Opened 8 years ago
Closed 8 years ago
Test failure "The tab with index '1' has been selected" in "/testSearch/testSearchSelection.js"
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect, P2)
Tracking
(firefox32 fixed, firefox33 fixed, firefox34 fixed, firefox-esr24 unaffected, firefox-esr31 unaffected)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox32 | --- | fixed |
firefox33 | --- | fixed |
firefox34 | --- | fixed |
firefox-esr24 | --- | unaffected |
firefox-esr31 | --- | unaffected |
People
(Reporter: cosmin-malutan, Assigned: danisielm)
References
()
Details
(Keywords: intermittent-failure, Whiteboard: [mozmill-test-failure][sprint])
Attachments
(2 files, 3 obsolete files)
885 bytes,
patch
|
andrei
:
review+
andrei
:
checkin+
|
Details | Diff | Splinter Review |
1.96 KB,
patch
|
andrei
:
review+
andrei
:
checkin+
|
Details | Diff | Splinter Review |
This failed today again, with Beta pl on Windows 7 x86. >http://mozmill-release.blargon7.com/#/functional/failure?app=All&branch=All&platform=All&from=2014-03-08&to=&test=%2FtestTabbedBrowsing%2FtestOpenInBackground.js&func=testOpenInBackgroundTab >http://mozmill-daily.blargon7.com/#/functional/failure?app=All&branch=All&platform=All&from=2014-03-08&to=&test=%2FtestTabbedBrowsing%2FtestOpenInBackground.js&func=testOpenInBackgroundTab It failed 4 times since the fix from bug 880135 was landed. I tried to reproduce the failure with the testcase from bug 880135, but with that fix it passes, so I think the underlying issue is different here, and I filed this bug for tracking. I couldn't reproduce this.
Reporter | ||
Comment 1•8 years ago
|
||
I ran the testcase for 2000 times and it didn't fail.
Comment 2•8 years ago
|
||
Failed again. We have a total of 6 instances in 2 months. 4 on release runs: http://mozmill-release.blargon7.com/#/functional/failure?app=All&branch=All&platform=All&from=2014-03-18&test=%2FtestTabbedBrowsing%2FtestOpenInBackground.js&func=testOpenInBackgroundTab and 2 on daily runs: http://mozmill-daily.blargon7.com/#/functional/failure?app=All&branch=All&platform=All&from=2014-03-18&test=%2FtestTabbedBrowsing%2FtestOpenInBackground.js&func=testOpenInBackgroundTab All are on Windows. 4 on Win7 and 2 on Win8
Priority: -- → P4
Assignee | ||
Comment 3•8 years ago
|
||
We see the same failure in another test: functional/testSearch/testSearchSelection.js This failed on Nightly (33.0a1 en-US) on mm-osx-108-1. http://mozmill-daily.blargon7.com/#/functional/report/6959f9a82369610967633890833ab388 This is the first failure until now: http://mozmill-release.blargon7.com/#/functional/failure?app=All&branch=All&platform=All&from=2014-05-01&to=&test=%2FtestSearch%2FtestSearchSelection.js&func=testSearchSelectionViaContextMenu
Assignee | ||
Comment 4•8 years ago
|
||
Also failures on daily with Aurora: http://mozmill-daily.blargon7.com/#/functional/failure?app=All&branch=All&platform=All&from=2014-05-01&to=&test=%2FtestSearch%2FtestSearchSelection.js&func=testSearchSelectionViaContextMenu Looks like 40 failures this month. Given that those failure are in another test , should we increase the proirity on this or file a new bug?
Comment 5•8 years ago
|
||
Since this is library-related we should figure out all of them here (they might very well have the same cause).
Priority: P4 → P2
Comment 6•8 years ago
|
||
Hmm actually the initial reports were on Windows while the recent failures are all on OSX. They might indeed have different causes. However the initial failure hasn't been seen in 2 months now, we might as well hijack this bug for the new failures.
Assignee | ||
Comment 7•8 years ago
|
||
Failed 7 times today OSX nodes, different locales.
Summary: Test failure "The tab with index '1' has been selected" → Test failure "The tab with index '1' has been selected" in "/testSearch/testSearchSelection.js"
Assignee | ||
Comment 8•8 years ago
|
||
In the last 10 days we have between 3 and 8 failures a day because of this. We may want to skip this (at least on Mac) before we have time to investigate.
Assignee | ||
Updated•8 years ago
|
Comment 9•8 years ago
|
||
We definitely want to fix this, failed 21 times over the weekend, I'll try to reproduce this one as well.
Comment 10•8 years ago
|
||
This didn't reproduced locally on my OS X. I will look more on a remote machine next week.
Comment 11•8 years ago
|
||
We're now averaging 5 failures per day. If we don't find a fix fast, we might skip this test for now.
Assignee | ||
Comment 12•8 years ago
|
||
This started to fail since 29 May 2014 & only on Mac OSX. Here is a pushlog from the day before & when the failure started: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=e017c15325ae&tochange=1e712b724d17 It failed almost every day since then.
Assignee | ||
Comment 13•8 years ago
|
||
Continues to fail a lot, let's unskip it. Run the test and: 200 runs locally on a 10.8 - no failure 100 runs on mm-osx-109-4 - 60% failure rate. I will try to find what causes this.
Assignee: nobody → daniel.gherasim
Status: NEW → ASSIGNED
Attachment #8456130 -
Flags: review?(andrei.eftimie)
Attachment #8456130 -
Flags: review?(andreea.matei)
Comment 14•8 years ago
|
||
Comment on attachment 8456130 [details] [diff] [review] skip.patch Review of attachment 8456130 [details] [diff] [review]: ----------------------------------------------------------------- Seems to only affect OSX, I haven't seen failures on other platforms. Please update the patch to only disable the test on the affected platform.
Attachment #8456130 -
Flags: review?(andrei.eftimie)
Attachment #8456130 -
Flags: review?(andreea.matei)
Attachment #8456130 -
Flags: review-
Assignee | ||
Comment 15•8 years ago
|
||
Attachment #8456130 -
Attachment is obsolete: true
Attachment #8456146 -
Flags: review?(andrei.eftimie)
Attachment #8456146 -
Flags: review?(andreea.matei)
Assignee | ||
Comment 16•8 years ago
|
||
Attachment #8456146 -
Attachment is obsolete: true
Attachment #8456146 -
Flags: review?(andrei.eftimie)
Attachment #8456146 -
Flags: review?(andreea.matei)
Attachment #8456148 -
Flags: review?(andrei.eftimie)
Assignee | ||
Comment 17•8 years ago
|
||
If we don't use the open in background option the test runs fine. e.g. changing true to false here: https://hg.mozilla.org/qa/mozmill-tests/file/b8637d05a1d3/firefox/tests/functional/testSearch/testSearchSelection.js#l59 I'll continue the investigation.
Assignee | ||
Updated•8 years ago
|
Priority: P2 → P1
Comment 18•8 years ago
|
||
Comment on attachment 8456148 [details] [diff] [review] skip.patch Review of attachment 8456148 [details] [diff] [review]: ----------------------------------------------------------------- Disabled on OSX: https://hg.mozilla.org/qa/mozmill-tests/rev/34028f725fea (default)
Attachment #8456148 -
Flags: review?(andrei.eftimie)
Attachment #8456148 -
Flags: review+
Attachment #8456148 -
Flags: checkin+
Assignee | ||
Comment 19•8 years ago
|
||
This needs to pe landed on aurora as well.
Comment 20•8 years ago
|
||
Is there no way to add a description for skip-if? As of right now no-one will know why this test is skipped! Even a comment would have worked. :(
Assignee | ||
Comment 21•8 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [away 07/19 - 08/01] from comment #20) > Is there no way to add a description for skip-if? As of right now no-one > will know why this test is skipped! Even a comment would have worked. :( We can add a comment but won't be shown in the console I guess, like: [test1.js] # Bug XXXXXXX - Failure ... skip-if = os = 'mac' -- An update here: This is the line that fails: https://hg.mozilla.org/qa/mozmill-tests/file/b8637d05a1d3/firefox/tests/functional/testSearch/testSearchSelection.js#l107 With a 'sleep(100);' above this line the test always pass, so might be that we don't properly wait for the tab to be opened so we can click on it.
Comment 22•8 years ago
|
||
This is how we can show it in the console: skip-if = os == 'mac' = Bug 123 - description Example: TEST-SKIPPED | test1.js | skip-if: os == 'linux' = Bug 1018161 - Disable test because of failures TEST-SKIPPED | test2.js | skip-if: os == 'linux' = Bug 1018161 - Disable test because of failures RESULTS | Passed: 0 RESULTS | Failed: 0 RESULTS | Skipped: 2
Assignee | ||
Comment 23•8 years ago
|
||
Thanks Andreea for that tip, -- Back on the failure now: Looks like a race condition that's happening only on the CI machines, not surely why only on those. But this is what it happens: 1. Open a tab in background 2. Wait for it to be opened 3. Click on the tab to focus the page - Here the test fails, we are not waiting properly for the tab animation to finish. - I guess the busy attribute we are waiting for here is not all we want - To check this I printed the coordinates where we click & here are some of the printed lines: ------ aOffsetX : 23.383331298828125, aOffsetY : 15.5 * Not the correct offsetX but the test PASSES because we click on a part of the tab that's animated aOffsetX: 22.650001525878906, aOffsetY : 15.5 * Test failed, we clicked on the 'New Tab' button so another unexpected tab is opened aOffsetX: 0.0500030517578125, aOffsetY : 15.5 * Abviously failed aOffsetX: 105, aOffsetY : 15.5 * Test passed! * This arre the correct offsets we should get all the time!
Assignee | ||
Comment 24•8 years ago
|
||
Great, waiting for the same transitions as in the newTab() method fixes this. With bug 1036825 we can use openTab with a callback & this failures are gone.
Depends on: 1036825
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][Blocked by 1036825]
Assignee | ||
Comment 25•8 years ago
|
||
Once with the merge the test is now skipped on aurora & default. We need to skip this on beta, as it's also affected.
status-firefox34:
--- → disabled
Comment 26•8 years ago
|
||
Transplanted skip on Beta: https://hg.mozilla.org/qa/mozmill-tests/rev/5854ccfa7e1f (mozilla-beta)
Assignee | ||
Comment 27•8 years ago
|
||
Due to bug 1036825 we can now give a callback to openTab method. This can be landed *only on default* until we make backports on the dependency bug. I run 20 tests without this patch & it failed 7 times on mm-osx-109-4. With the patch no failure in 100 runs. The test still remain skipped due to bug 1041420, but this one we can fix.
Attachment #8461389 -
Flags: review?(andrei.eftimie)
Comment 28•8 years ago
|
||
Comment on attachment 8461389 [details] [diff] [review] fix-998253.patch Review of attachment 8461389 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, but let's wait for bug 1041420 to be fixed (should be today or tomorrow) and as you said we'll need bug 1036825 landed across branches.
Attachment #8461389 -
Flags: review?(andrei.eftimie) → review+
Assignee | ||
Comment 29•8 years ago
|
||
No longer blocked, this can be landed on default as bug 141420 was already fixed on that branch.
Whiteboard: [mozmill-test-failure][Blocked by 1036825] → [mozmill-test-failure]
Assignee | ||
Comment 30•8 years ago
|
||
Sorry, I mean bug 1041420.
Assignee | ||
Comment 31•8 years ago
|
||
All dependency are now fixed. This applies cleanly on default & aurora.
Attachment #8461389 -
Attachment is obsolete: true
Assignee | ||
Comment 32•8 years ago
|
||
Actually applies on beta too.
Assignee | ||
Updated•8 years ago
|
Attachment #8463966 -
Flags: review?(andrei.eftimie)
Comment 33•8 years ago
|
||
Comment on attachment 8463966 [details] [diff] [review] fix-998253_with-unskip.patch Review of attachment 8463966 [details] [diff] [review]: ----------------------------------------------------------------- Nice and easy fix. Ran some testruns against Aurora and Beta and everything works fine. https://hg.mozilla.org/qa/mozmill-tests/rev/01111ecbe85d (default) https://hg.mozilla.org/qa/mozmill-tests/rev/3b038ec35171 (mozilla-aurora) https://hg.mozilla.org/qa/mozmill-tests/rev/db79fb0489b2 (mozilla-beta) (I did change the commit message to include what we changed, not the failure message)
Attachment #8463966 -
Flags: review?(andrei.eftimie)
Attachment #8463966 -
Flags: review+
Attachment #8463966 -
Flags: checkin+
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
status-firefox-esr24:
--- → unaffected
status-firefox-esr31:
--- → unaffected
Comment 34•8 years ago
|
||
Seems our fix wasn't complete: We still have some failures on 32 OSX: http://mozmill-release.blargon7.com/#/functional/failure?app=Firefox&branch=All&platform=All&from=2014-07-30&test=%2FtestSearch%2FtestSearchSelection.js&func=testSearchSelectionViaContextMenu We haven't seen any failures on newer branches, and while all above mentioned failures are on localised versions, I tried reproducing the failure on some of them without success. This is an intermittent failure with a relative low occurrence rate, only affecting OSX.
Status: RESOLVED → REOPENED
Priority: P1 → P2
Resolution: FIXED → ---
Assignee | ||
Comment 35•8 years ago
|
||
This didn't fail in a long time (more than 1 month). It's not reproducible at all and given that we now run more locales on beta and we got no failure at all, I would consider this as WFM.
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → WORKSFORME
Updated•8 years ago
|
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][sprint]
Comment 36•8 years ago
|
||
I would still call this fixed as it had a fix landed and we only had some intermittent fails that might not be related and didn't happened again.
Resolution: WORKSFORME → FIXED
Updated•3 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
•