Closed
Bug 1104961
Opened 10 years ago
Closed 9 years ago
Intermittent share_activity_test.js | Messages as share target Share via Messages Activity close button Should return to Thread panel if in Participants panel
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Firefox OS Graveyard
Gaia::SMS
Tracking
(b2g-v2.2 fixed, b2g-master fixed)
RESOLVED
FIXED
People
(Reporter: RyanVM, Assigned: azasypkin)
Details
(Keywords: intermittent-failure, Whiteboard: [sms-sprint-2.2S5])
Attachments
(1 file)
09:58:54 INFO - TEST-START | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should close activity if in Composer panel 09:59:37 INFO - TEST-PASS | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should close activity if in Composer panel 09:59:37 INFO - TEST-END | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should close activity if in Composer panel took 24193 ms 09:59:37 INFO - TEST-START | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should close activity if in Thread panel 10:00:02 INFO - TEST-PASS | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should close activity if in Thread panel 10:00:02 INFO - TEST-END | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should close activity if in Thread panel took 5601 ms 10:00:02 INFO - TEST-START | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should return to Thread panel if in Report panel 10:00:31 INFO - TEST-PASS | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should return to Thread panel if in Report panel 10:00:31 INFO - TEST-END | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should return to Thread panel if in Report panel took 9514 ms 10:00:31 INFO - TEST-START | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should return to Thread panel if in Participants panel 10:01:12 INFO - TEST-UNEXPECTED-FAIL | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should return to Thread panel if in Participants panel 10:01:12 INFO - Error: Polling socket recv() timeout! 10:01:12 INFO - at TcpSync._readResponse (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/drivers/tcp-sync.js:140:30) 10:01:12 INFO - at TcpSync.send (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/drivers/tcp-sync.js:153:24) 10:01:12 INFO - at Object.send (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:457:36) 10:01:12 INFO - at Object.Client._sendCommand (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/client.js:503:19) 10:01:12 INFO - at Object.Element._sendCommand (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/element.js:49:21) 10:01:12 INFO - at Object.sendKeys (/builds/slave/test/gaia/node_modules/marionette-client/lib/marionette/element.js:162:19) 10:01:12 INFO - at Object.addRecipient (/builds/slave/test/gaia/apps/sms/test/marionette/lib/messages.js:222:41) 10:01:12 INFO - at Context.<anonymous> (/builds/slave/test/gaia/apps/sms/test/marionette/share_activity_test.js:107:21) 10:01:12 INFO - at callFn (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:223:21) 10:01:12 INFO - at Test.Runnable.run (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:216:7) 10:01:12 INFO - at Runner.runTest (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:373:10) 10:01:12 INFO - at /builds/slave/test/gaia/node_modules/mocha/lib/runner.js:451:12 10:01:12 INFO - at next (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:298:14) 10:01:12 INFO - at /builds/slave/test/gaia/node_modules/mocha/lib/runner.js:308:7 10:01:12 INFO - at next (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:246:23) 10:01:12 INFO - at /builds/slave/test/gaia/node_modules/mocha/lib/runner.js:270:7 10:01:12 INFO - at done (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:185:5) 10:01:12 INFO - at callFn (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:228:7) 10:01:12 INFO - at Hook.Runnable.run (/builds/slave/test/gaia/node_modules/mocha/lib/runnable.js:216:7) 10:01:12 INFO - at next (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:258:10) 10:01:12 INFO - at Object._onImmediate (/builds/slave/test/gaia/node_modules/mocha/lib/runner.js:275:5) 10:01:12 INFO - at processImmediate [as _immediateCallback] (timers.js:330:15) 10:01:12 INFO - TEST-END | apps/sms/test/marionette/share_activity_test.js | Messages as share target Share via Messages Activity close button Should return to Thread panel if in Participants panel took 22495 ms
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 2•10 years ago
|
||
Let's see how frequent this is.
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 11•9 years ago
|
||
Seems like there are bunch of patch failed for now, maybe it's because we're waiting for element within an activity but the activity already exited.
Assignee | ||
Comment 12•9 years ago
|
||
(In reply to Steve Chung [:steveck] from comment #11) > Seems like there are bunch of patch failed for now, maybe it's because we're > waiting for element within an activity but the activity already exited. Yeah, looking into it. I see different failures in logs, but one of them ("unload was called") is definitely because of the fact that we have reference to marionette element that belongs to activity window that was closed.
Assignee | ||
Comment 13•9 years ago
|
||
Okay, let's if it helps. Treeherder: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=58f5e9165e49
Assignee | ||
Comment 14•9 years ago
|
||
Updated PR with the fix for one more intermittent "The element reference is stale" failure in tests that use recipient input. Recipients.js re-renders its entire content once recipient is added or removed and it can do it several times for single "add/remove" operation (!!!). So it looks like that recipient node is removed and re-created again somewhere between the moment we get element reference with "waitForElement/findElement" and then call "el.displayed()".
Comment 15•9 years ago
|
||
https://github.com/timdream/gaia/commit/b14e6352d8279ea05f3c90b97abd566aa5cfe846 Test disabled, please re-enable after this bug is fixed.
Assignee | ||
Comment 16•9 years ago
|
||
Comment on attachment 8555329 [details] [review] GitHub pull request URL Hey Steve, I don't see intermittent failures in the test with this patch. See [1] (Gij-5). How do you feel about it? [1] https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=e9c0902b8de8
Attachment #8555329 -
Flags: review?(schung)
Comment 17•9 years ago
|
||
Adding this kind of timeout in tests should be discouraged. If we can't make the proper recipients.js fix, it would be better to create some kind of hook where we could do a client.helper.waitFor() on. E.g., you could have some data attribute which defines what the currently rendered recipients are, and then wait on that. E.g., <section data-query="some search term">
Assignee | ||
Comment 18•9 years ago
|
||
(In reply to Kevin Grandon :kgrandon [INACTIVE - heads down on Gij Issue] from comment #17) > Adding this kind of timeout in tests should be discouraged. If we can't make > the proper recipients.js fix, it would be better to create some kind of hook > where we could do a client.helper.waitFor() on. E.g., you could have some > data attribute which defines what the currently rendered recipients are, and > then wait on that. E.g., <section data-query="some search term"> Yeah, I know. It's definitely bad and we always try to avoid that in our tests. AFAIK we don't have any hook for this, but still trying to find better solution in the meantime.
Assignee | ||
Comment 19•9 years ago
|
||
The less-intrusive fix for recipients.js that I have in mind is just try to throttle recipients.render call somehow
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 23•9 years ago
|
||
I'm ok with the mutation observe to wait for recipient stable, but please keep the compose test in the blacklist and fix in bug 1121766 instead.
Updated•9 years ago
|
Assignee: nobody → azasypkin
Comment 24•9 years ago
|
||
Comment on attachment 8555329 [details] [review] GitHub pull request URL Looks fine currently, and we can refine the recipients with better integration test in the future, thanks!
Attachment #8555329 -
Flags: review?(schung) → review+
Assignee | ||
Comment 25•9 years ago
|
||
Thanks for review! Okay, let's how it goes. Will take a closer look at recipients.js to fix the root cause, but it's safer to have this test enabled in the meantime. Master: https://github.com/mozilla-b2g/gaia/commit/c67885f291c4a0389df8bb7b213b19a1693e9dc5
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•9 years ago
|
Whiteboard: [sms-sprint-2.2S5]
Comment 26•9 years ago
|
||
https://github.com/mozilla-b2g/gaia/pull/27962 for uplift to v2.2 a=npotb
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 28•9 years ago
|
||
v2.2: https://github.com/mozilla-b2g/gaia/commit/4661ea7e79511b25abcbb95e886187d6bd11c08d
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
You need to log in
before you can comment on or make changes to this bug.
Description
•