Closed Bug 957112 Opened 11 years ago Closed 11 years ago

The inclusion of a comment inside of search.xml has caused the engine popup to move inside the DOM tree

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect, P1)

defect

Tracking

(firefox26 unaffected, firefox27 unaffected, firefox28 unaffected, firefox29 fixed)

RESOLVED FIXED
Tracking Status
firefox26 --- unaffected
firefox27 --- unaffected
firefox28 --- unaffected
firefox29 --- fixed

People

(Reporter: mario.garbi, Assigned: whimboo)

References

()

Details

(Keywords: regression, Whiteboard: [mozmill-test-failure])

Attachments

(1 file)

No description provided.
OS: Linux → Mac OS X
Hardware: x86 → x86_64
Whiteboard: [mozmill-test-failure]
Happened today on OSX and Linux with Nightly 29 across multiple testSearch/ tests.
OS: Mac OS X → All
Hardware: x86_64 → All
I can reproduce this locally: http://mozmill-crowd.blargon7.com/#/functional/report/501afab09869849e0d54cead6305d7cb I am investigating this issue and will come back with more info
This failure is breaking all of our search tests across platforms for Firefox 29.0. What was the outcome so far? Why have those tests not been skipped if no solution can be provided in time?
Flags: needinfo?(mario.garbi)
Priority: -- → P1
This regressed from yesterdays build in Nightly: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=14ac61461f2a&tochange=e7a366c1036c Stack from a failing test: "stack": [ "_byAnonAttrib@resource://mozmill/driver/elementslib.js:378", "_anonByAttrib@resource://mozmill/driver/elementslib.js:426", "Lookup/reduceLookup@resource://mozmill/driver/elementslib.js:516", "Lookup@resource://mozmill/driver/elementslib.js:536", "Lookup@resource://mozmill/driver/mozelement.js:79", "searchBar_getElement@resource://mozmill/stdlib/securable-module.js -> file:///mozilla/code/mozmill-tests/nightly/firefox/lib/search.js:672", "searchBar.prototype.enginesDropDownOpen@resource://mozmill/stdlib/securable-module.js -> file:///mozilla/code/mozmill-tests/nightly/firefox/lib/search.js:460", "searchBar.prototype.enginesDropDownOpen@resource://mozmill/stdlib/securable-module.js -> file:///mozilla/code/mozmill-tests/nightly/firefox/lib/search.js:468", "searchBar_openEngineManager@resource://mozmill/stdlib/securable-module.js -> file:///mozilla/code/mozmill-tests/nightly/firefox/lib/search.js:804", "testRemoveEngine@resource://mozmill/modules/frame.js -> file:///mozilla/code/mozmill-tests/nightly/firefox/tests/functional/testSearch/testRemoveSearchEngine.js:28", "Runner.prototype.execFunction@resource://mozmill/modules/frame.js:752", "Runner.prototype.runTestModule@resource://mozmill/modules/frame.js:706", "Runner.prototype.runTestFile@resource://mozmill/modules/frame.js:690", "runTestFile@resource://mozmill/modules/frame.js:775", "Bridge.prototype._execFunction@resource://jsbridge/modules/Bridge.jsm:140", "Bridge.prototype.execFunction@resource://jsbridge/modules/Bridge.jsm:147", "@resource://jsbridge/modules/Server.jsm:32", The problem is that we also iterate in _byAnonAttrib() over Comments now: https://github.com/mozilla/mozmill/blob/master/mozmill/mozmill/extension/resource/driver/elementslib.js#L378 ******** parent [object XULElement] ******** parent [object Comment]
The regression range here is: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a101c9691b15&tochange=93fe56269382 So by checking the changesets bug 601409 seems to be the regressor. Looks like we should be able to fix it easily. And lets hope we can get rid of the lookup code soon for the search library.
Assignee: nobody → hskupin
Blocks: 601409
Status: NEW → ASSIGNED
Keywords: regression
Summary: Test failure "Argument 1 of Document.getAnonymousElementByAttribute does not implement interface Element" in "testSearch/" tests → The inclusion of a comment inside of search.xml has caused the engine popup to move inside the DOM tree
Attached patch Patch v1Splinter Review
No one else from my team is online at the moment to review. So I hope Gavin its fine when I also ask you. I know you are not familiar with our Mozmill tests but that is an easy one and it has been caused by a change made by yourself.
Attachment #8356632 - Flags: review?(gavin.sharp)
Attachment #8356632 - Flags: review?(dave.hunt)
Comment on attachment 8356632 [details] [diff] [review] Patch v1 Review of attachment 8356632 [details] [diff] [review]: ----------------------------------------------------------------- I haven't tested but I can see that this would work, however I'd prefer a solution that excluded the comment rather than a fragile locator by index.
Attachment #8356632 - Flags: review?(gavin.sharp)
Attachment #8356632 - Flags: review?(dave.hunt)
Attachment #8356632 - Flags: review+
I would love so too, but there is no way right now. As said earlier on this bug we should move to use the nodeCollector instead. And this work should happen ASAP. So I might have to take a stab on bug 879962 in the near future. Landed on default: http://hg.mozilla.org/qa/mozmill-tests/rev/64cfed39855a
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I should have skipped the tests but I was close to finding a fix when I had to leave and I figured I would work on it early this morning. It was a miscalculation on my part and I'm sorry if it caused any problems.
Flags: needinfo?(mario.garbi)
We have seen this again on 09.01: http://mozmill-crowd.blargon7.com/#/functional/report/850f11101678d9fbefeb95e0bd54ee01 http://mozmill-crowd.blargon7.com/#/functional/report/501afab09869849e0d54cead6305d7cb I have uploaded a patch to replace lookups with nodeCollector which should also fix this in bug 879946.
Status: RESOLVED → REOPENED
Depends on: 879946
Resolution: FIXED → ---
Hm, that's very strange. Does it happen all the time or intermittently?
Status: REOPENED → ASSIGNED
All of them are only happening on Ubuntu 12.04 but not 13.04 or 13.10. Could someone do a quick check if that is reproducible on that platform?
I can reproduce every time on a 12.04 machine, with latest nightly. Tried only by running a test from the testSearch folder, not in testrun. On 13.04 it passes, at least in the 5 times I ran.
Would you mind to check what is wrong with the lookup string? What happens if you use 0 again for the index?
Hm, my bad. Now that you mentioned the index, I was using [0] cause my repo was up to date but on aurora branch. It's not failing on 12.04.
All those reports as listed above are from mozmill-crowd and not from mozmill-daily. So the results are not from our CI runs but from people most likely running a non-update version of mozmill-tests like Andreea did. So as long as we do not see failures in Jenkins this bug is fixed.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: