Closed
Bug 701903
Opened 13 years ago
Closed 13 years ago
Failure in testSearchSelection.js::testSearchSelectionViaContextMenu
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: u279076, Assigned: remus.pop)
References
()
Details
(Whiteboard: [mozmill-test-failure])
Attachments
(6 files, 4 obsolete files)
(deleted),
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
MODULE: tests/functional/testSearch/testSearchSelection.js
TEST: testGetMoreEngines
FAIL: TimeoutError("controller.waitForEval: Timeout exceeded for 'subject.selectedTabIndex == subject.expectedIndex'")@mozmill-tests/tests/functional/testSearch/testSearchSelection.js:83
BRANCH: mozilla-aurora, default
Updated•13 years ago
|
Assignee: nobody → vlad.mozbugs
Status: NEW → ASSIGNED
Comment 1•13 years ago
|
||
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/20968059
Comment 2•13 years ago
|
||
Changed waitForEval to waitFor
Attachment #574287 -
Flags: review?(anthony.s.hughes)
Comment on attachment 574287 [details] [diff] [review]
patch fix v1.0 - initial proposed fix
>+const LOCAL_TEST_FOLDER = collector.addHttpResource('../../../data/');
>+const LOCAL_TEST_PAGE = LOCAL_TEST_FOLDER + 'layout/mozilla_mission.html';
>
> const TIMEOUT = 5000;
>
>-const LOCAL_TEST_FOLDER = collector.addHttpResource('../../../data/');
>-const LOCAL_TEST_PAGE = LOCAL_TEST_FOLDER + 'layout/mozilla_mission.html';
>-
>-var setupModule = function() {
>+function setupModule() {
These changes are unnecessary. Please only make changes which directly fix the failure. Making these changes now breaks test consistency and will impede broad-sweep refactoring efforts.
The same goes for any following code which you "refactored" for style.
>+ controller.waitFor(function () {
>+ return (tabs.selectedIndex === tabIndex);
>+ }, "Selected tab: '" + tabIndex + "'");
Can you refactor the message to read:
"Selected tab X, expected tab Y"
>+ controller.waitFor(function () {
>+ return (tabs.selectedIndex === tabIndex + 1);
>+ }, "Selected tab: '" + (tabIndex + 1) + "'");
Same here.
Attachment #574287 -
Flags: review?(anthony.s.hughes) → review-
Comment 4•13 years ago
|
||
This test is currently failing on latest Aurora and latest Nightly because those builds
do not open a tab in background anymore. I am uploading a mozmill work patch to demonstrate this.
If you want to test manually, do it with following STR:
1. Open Firefox Aurora or Nightly
2. Navigate to google.com and search "Firefox"
3. Go to suggestions and mouse select the word "Firefox" from anywhere on the page
4. Right click and use the context menu to search (Search "ebay" for "word")
A new tab is opened in foreground, even if the pref 'browser.tabs.loadInBackground'
is set to true.
The question is - Do we want this? If this is an expected behavior we'll change the test,
if not, we have ourselves a Firefox bug. What do you think ?
Comment 5•13 years ago
|
||
Please apply the patch locally to test on, and watch the console for dumping
messages.
Compare the results with a firefox release or beta build and a firefox aurora or nightly build.
Assignee | ||
Comment 6•13 years ago
|
||
Vlad, the behaviour you got now is the expected one as of bug 695482.
Also see bug 696747 for reference to get the wanted behaviour when that lands.
Comment 7•13 years ago
|
||
(In reply to Remus Pop (:RemusPop) from comment #6)
> Vlad, the behaviour you got now is the expected one as of bug 695482.
>
> Also see bug 696747 for reference to get the wanted behaviour when that
> lands.
Even if bug 695482 is landed reading the comments shows that people have second opinions on this still.
Bug 696747 has an r- patch so still needs work.
We can definitely fix this failing test but my question is now:
- Do we provide a separate fix for aurora and nightly and just fix beta and release at merges time? (can be tricky)
- How do we proceed?
My personal idea is to disable the test on aurora and nightly and keep them for beta and release which are more important to have this test, and then after 12 weeks make the change on all branches.
Comment 8•13 years ago
|
||
Update the test so it aligns with the new behavior and watch the other bug so we can update the test later. Same applies to the Litmus test which needs an update.
Comment 9•13 years ago
|
||
release and beta branch do not need a fix yet.
Attachment #574287 -
Attachment is obsolete: true
Attachment #574582 -
Attachment is obsolete: true
Attachment #575450 -
Flags: review?(anthony.s.hughes)
Comment 10•13 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #8)
> Update the test so it aligns with the new behavior and watch the other bug
> so we can update the test later. Same applies to the Litmus test which needs
> an update.
Updated litmus test for aurora branch
https://litmus.mozilla.org/show_test.cgi?id=15707
We don't have the default (nightly) branch there so no update in litmus for that.
Hope I didn't do anything stupid.
Attachment #575450 -
Flags: review?(anthony.s.hughes) → review+
Reporter | ||
Comment 11•13 years ago
|
||
Comment on attachment 575450 [details] [diff] [review]
patch v1:default/aurora [backed-out]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/b475c4b5a1a0 (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/097dd432a52d (mozilla-aurora)
Attachment #575450 -
Attachment description: patch v1.0 - fix for aurora and nightly branch only → patch v1.0 - aurora/nightly [checked-in]
Reporter | ||
Comment 12•13 years ago
|
||
Please mark VERIFIED and update the spreadsheet after checking tomorrow's results.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 13•13 years ago
|
||
Status: RESOLVED → VERIFIED
Comment 14•13 years ago
|
||
As given on the dependent bug the new feature has been backed out. That means that we should also backout this patch from default and aurora.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 15•13 years ago
|
||
Comment on attachment 575450 [details] [diff] [review]
patch v1:default/aurora [backed-out]
Backed out:
http://hg.mozilla.org/qa/mozmill-tests/rev/2e459e48fd4d (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/7176167b1648 (mozilla-aurora)
We will need to revisit this once bug 695482 is resolved.
Attachment #575450 -
Attachment description: patch v1.0 - aurora/nightly [checked-in] → patch v1:default/aurora [backed-out]
Reporter | ||
Comment 16•13 years ago
|
||
Vlad, please submit a patch immediately which marks this test disabled.
Status: REOPENED → ASSIGNED
Reporter | ||
Comment 17•13 years ago
|
||
Block should be the other way around...this bug depends on the other bug.
Comment 18•13 years ago
|
||
skip patch as requested - we'll need to address a fix once the dependency is fixed
Attachment #580027 -
Flags: review?(anthony.s.hughes)
Attachment #580027 -
Flags: review?(anthony.s.hughes) → review+
Reporter | ||
Comment 19•13 years ago
|
||
Comment on attachment 580027 [details] [diff] [review]
disable test (default/aurora) [checked-in]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/f084f96f5f89 (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/7a3bcd18d167 (mozilla-aurora)
Attachment #580027 -
Attachment description: skip patch 1.0 → disable test (default/aurora) [checked-in]
Summary: Failure in testSearchSelection.js: Timeout exceed for 'subject.selectedTabIndex == subject.expectedIndex' → Failure in testSearchSelection.js::testSearchSelectionViaContextMenu
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][mozmill-test-skipped]
Comment 20•13 years ago
|
||
The dependency is shown as fixed, will investigate if the fix allows me to provide a fix patch for this test.
Comment 21•13 years ago
|
||
(In reply to Maniac Vlad Florin (:vladmaniac) from comment #20)
> The dependency is shown as fixed, will investigate if the fix allows me to
> provide a fix patch for this test.
The dependency patch fixes our failure for nightly, still the other branches are still affected and the test should remain disabled for aurora, beta and firefox release branch.
I suggest reopening this test once bug 592275 is fixed. Adding dependency
Depends on: 592275
Comment 22•13 years ago
|
||
Lets enable the test again on default.
Comment 23•13 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #22)
> Lets enable the test again on default.
Feel free to go on and enable it on default branch
Comment 24•13 years ago
|
||
(In reply to Maniac Vlad Florin (:vladmaniac) from comment #23)
> (In reply to Henrik Skupin (:whimboo) from comment #22)
> > Lets enable the test again on default.
>
> Feel free to go on and enable it on default branch
Forget I said that - needs a little more investigation. I'll follow up shortly
Comment 25•13 years ago
|
||
It's time to get this test back in.
This patch fixes our failures for the default branch
Attachment #605684 -
Flags: review?(anthony.s.hughes)
Comment 26•13 years ago
|
||
Enable the test as it is on mozilla-aurora branch
The new pref which was causing our failure is not landed for mozilla-aurora.
Attachment #605688 -
Flags: review?(anthony.s.hughes)
Comment 27•13 years ago
|
||
Comment on attachment 605688 [details] [diff] [review]
[mozilla-aurora][mozilla-beta][mozilla-release] enable test v1.0
The patch is eligible and tested also on mozilla-beta and mozilla-release branch.
We can enable also on those branch.
Dependencies were fixed so we can re-use this test
Attachment #605688 -
Attachment description: [mozilla-aurora] enable test v1.0 → [mozilla-aurora][mozilla-beta][mozilla-release] enable test v1.0
Comment 28•13 years ago
|
||
Fixed commit message to inform about the changes in all branches, not just in aurora
Attachment #605688 -
Attachment is obsolete: true
Attachment #605688 -
Flags: review?(anthony.s.hughes)
Attachment #605691 -
Flags: review?(anthony.s.hughes)
Comment 29•13 years ago
|
||
The fix patch passes locally on the functional testrun for nightly
http://mozmill-crowd.blargon7.com/#/functional/report/e438d6e3916b2b636037d77445c613bd
Attachment #605684 -
Flags: review?(anthony.s.hughes) → review+
Reporter | ||
Comment 30•13 years ago
|
||
Comment on attachment 605684 [details] [diff] [review]
[default] fix v1.0 [landed:default]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/9f645bb2a217 (default)
Attachment #605684 -
Attachment description: [default] fix patch v1.0 → [default] fix v1.0 [landed:default]
Attachment #605691 -
Attachment description: [mozilla-aurora][mozilla-beta][mozilla-release] enable the test v1.1 → [aurora,beta,release] enable v1.1
Attachment #605691 -
Flags: review?(anthony.s.hughes) → review+
Reporter | ||
Comment 31•13 years ago
|
||
Comment on attachment 605691 [details] [diff] [review]
[aurora,beta,release] enable v1.1 [landed]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/4c8f7ea76716 (mozilla-aurora)
http://hg.mozilla.org/qa/mozmill-tests/rev/5d530e52dac9 (mozilla-beta)
http://hg.mozilla.org/qa/mozmill-tests/rev/8b81cf754fb1 (mozilla-release)
Attachment #605691 -
Attachment description: [aurora,beta,release] enable v1.1 → [aurora,beta,release] enable v1.1 [landed]
Reporter | ||
Comment 32•13 years ago
|
||
Please verify that the test passes on all branches and reopen if not.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-test-failure][mozmill-test-skipped] → [mozmill-test-failure]
Assignee | ||
Comment 33•13 years ago
|
||
This is appearing in aurora too:
http://mozmill-ci.blargon7.com/#/functional/failure?branch=13.0&platform=All&from=2012-03-20&to=2012-03-27&test=%2FtestSearch%2FtestSearchSelection.js&func=testSearchSelection.js%3A%3AtestSearchSelectionViaContextMenu
So just flipping a pref will do the trick both for aurora and nightly.
Comment 34•13 years ago
|
||
Before we flip a pref I would suggest that we use the default behavior of Firefox to test it.
Assignee | ||
Comment 35•13 years ago
|
||
Changed the pref and also moved it to a constant
Assignee: vlad.mozbugs → remus.pop
Status: REOPENED → ASSIGNED
Attachment #609664 -
Flags: review?(vlad.mozbugs)
Attachment #609664 -
Flags: feedback?(hskupin)
Comment 36•13 years ago
|
||
Comment on attachment 609664 [details] [diff] [review]
fix v2 (aurora)
>+const PREF_LOAD_IN_BACKGROUND = "browser.search.context.loadInBackground";
> const TIMEOUT = 5000;
Looks good but please separate both from each other. Those constants are from different areas.
Attachment #609664 -
Flags: feedback?(hskupin) → feedback+
Comment 37•13 years ago
|
||
Comment on attachment 609664 [details] [diff] [review]
fix v2 (aurora)
++
Attachment #609664 -
Flags: review?(vlad.mozbugs)
Attachment #609664 -
Flags: review?(anthony.s.hughes)
Attachment #609664 -
Flags: review+
Comment 38•13 years ago
|
||
Comment on attachment 609664 [details] [diff] [review]
fix v2 (aurora)
As I have mentioned in my feedback please get the patch updated. It removes one unnecessary round of reviews.
Attachment #609664 -
Flags: review?(anthony.s.hughes) → review-
Assignee | ||
Comment 39•13 years ago
|
||
Added a empty line for delimiting the new constant.
Attachment #609664 -
Attachment is obsolete: true
Attachment #610068 -
Flags: review?(hskupin)
Comment 40•13 years ago
|
||
Comment on attachment 610068 [details] [diff] [review]
patch v3 (aurora) [landed]
So on which branches do I have to land this patch? Default and Aurora? the patch description is misleading here.
Attachment #610068 -
Flags: review?(hskupin) → review+
Updated•13 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 41•13 years ago
|
||
This fixes the teardownModule which was not clearing the right preference. I also added a pref constant as in the aurora fix.
Assignee | ||
Updated•13 years ago
|
Attachment #610130 -
Flags: review?(hskupin)
Updated•13 years ago
|
Attachment #610130 -
Flags: review?(hskupin) → review+
Comment 42•13 years ago
|
||
Landed both patches:
http://hg.mozilla.org/qa/mozmill-tests/rev/5d3977fcdef5 (master)
http://hg.mozilla.org/qa/mozmill-tests/rev/3de6f2b2129a (aurora)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago → 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Attachment #610068 -
Attachment description: patch v3 (aurora) → patch v3 (aurora) [landed]
Attachment #610130 -
Attachment description: patch v2 (default) → patch v2 (default) [landed]
Reporter | ||
Comment 43•13 years ago
|
||
Thanks Henrik.
Remus, please verify this is fixed with tomorrow's testruns.
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
•