Closed Bug 1630066 Opened 5 years ago Closed 1 year ago

test_ext_sendmessage_reply2.html is busted on Android (DocumentChannel)

Categories

(GeckoView Graveyard :: Sandboxing, defect, P2)

All
Android

Tracking

(firefox116 wontfix, firefox117 wontfix, firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox116 --- wontfix
firefox117 --- wontfix
firefox118 --- fixed

People

(Reporter: droeh, Assigned: rpl)

References

(Depends on 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81] [fission:android:m2] [geckoview:2022h2?] [addons-jira])

Attachments

(1 file, 1 obsolete file)

This was temporarily disabled to land bug 1619798 -- setting browser.tabs.documentchannel to true causes this test to fail.

Whiteboard: [geckoview:m78]
Priority: P2 → P1
Assignee: nobody → droeh
Status: NEW → ASSIGNED

Put up a patch to reenable this test since extension process is not going to be enabled on GV for a while; renaming to indicate the actual issue.

Blocks: 1535365
Keywords: leave-open
Summary: Reenable test_ext_sendmessage_reply2.html Mochitest on GeckoView → test_ext_sendmessage_reply2.html is busted on Android with extension process enabled.
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d91e35044576 Reenable test_ext_sendmessage_reply2.html on GeckoView. r=agi

Backed out for failures on test_ext_sendmessage_reply2.html

backout: https://hg.mozilla.org/integration/autoland/rev/999a0b61d38d29eea6d5b18bb0037ae9ee2cd7b4

push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=d91e35044576e411cf8c8b3d0da524673bd89291&searchStr=android%2C7.0%2Cx86-64%2Copt%2C&selectedTaskRun=aP3drKoMShmR11d2G3SByQ-0

failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=300280512&repo=autoland&lineNumber=8862

[task 2020-04-30T20:24:06.755Z] 20:24:06 INFO - 6217 INFO TEST-PASS | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html | sendmessage2@mochitest.mozilla.org: Correct content script response token - Expected: 0.08757635482381254-done, Actual: 0.08757635482381254-done
[task 2020-04-30T20:24:06.755Z] 20:24:06 INFO - 6218 INFO TEST-PASS | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html | sendmessage2@mochitest.mozilla.org: Got content script message
[task 2020-04-30T20:24:06.755Z] 20:24:06 INFO - 6219 INFO add_task | Leaving test test_contentscript
[task 2020-04-30T20:24:06.755Z] 20:24:06 INFO - Buffered messages finished
[task 2020-04-30T20:24:06.755Z] 20:24:06 WARNING - 6220 INFO TEST-UNEXPECTED-FAIL | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html | message queue is empty - got "["content-script-done"]", expected "[]"
[task 2020-04-30T20:24:06.755Z] 20:24:06 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:383:14
[task 2020-04-30T20:24:06.755Z] 20:24:06 INFO - ExtensionTestUtils.loadExtension/<@SimpleTest/ExtensionTestUtils.js:32:18
[task 2020-04-30T20:24:06.755Z] 20:24:06 INFO - executeCleanupFunction@SimpleTest/SimpleTest.js:1480:13
[task 2020-04-30T20:24:06.756Z] 20:24:06 INFO - 6221 INFO TEST-OK | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html | took 422ms
[task 2020-04-30T20:24:06.756Z] 20:24:06 INFO - 6222 ERROR /tests/toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html logged result after SimpleTest.finish(): message queue is empty

Flags: needinfo?(droeh)
Whiteboard: [geckoview:m78] → [geckoview:m78][geckoview:m79]
Severity: -- → S3
Depends on: 1644039
Assignee: droeh → nobody
Status: ASSIGNED → NEW
Whiteboard: [geckoview:m78][geckoview:m79] → [geckoview:m78][geckoview:m79][geckoview:m80]
Assignee: nobody → droeh
Status: NEW → ASSIGNED
Flags: needinfo?(agi)
Summary: test_ext_sendmessage_reply2.html is busted on Android with extension process enabled. → test_ext_sendmessage_reply2.html is busted on Android
Whiteboard: [geckoview:m78][geckoview:m79][geckoview:m80] → [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81]
Assignee: droeh → agi
Flags: needinfo?(agi)

Looks like this is due to Bug 1644039.

Assignee: agi → nobody
Status: ASSIGNED → NEW
Priority: P1 → P2

Tracking this bug for Android Fission milestone M2 (pass tests with Fission enabled).

Whiteboard: [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81] → [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81] [fission:android:m2]

The leave-open keyword is there and there is no activity for 6 months.
:fluffyemily, maybe it's time to close this bug?

Flags: needinfo?(etoop)
Has Regression Range: --- → yes
Whiteboard: [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81] [fission:android:m2] → [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81] [fission:android:m2] [geckoview:2022h2?]

Redirect needinfos that are pending on inactive users to the triage owner.
:amoya, since the bug has high priority and recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(etoop)
Flags: needinfo?(droeh)
Flags: needinfo?(amoya)
Flags: needinfo?(amoya)
Keywords: leave-open
Summary: test_ext_sendmessage_reply2.html is busted on Android → test_ext_sendmessage_reply2.html is busted on Android (DocumentChannel)

kmag, this test_ext_sendmessage_reply2.html test is disabled on Android. Someone tried to re-enable the test two years ago, but it was backed out (comment #4).

Agi said in comment #5 this bug might be related to bug 1644039, intermittent test failures caused by window.close().

Flags: needinfo?(kmaglione+bmo)

Moving Android Fission bugs to the new GeckoView::Sandboxing component.

Component: General → Sandboxing
Whiteboard: [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81] [fission:android:m2] [geckoview:2022h2?] → [geckoview:m78][geckoview:m79][geckoview:m80] [geckoview:m81] [fission:android:m2] [geckoview:2022h2?] [addons-jira]

I wasn't hitting a failure by running this test locally on GeckoView, let's see if a failure is hit in a push to try:

The test file test_ext_sendmessage_reply2.html didn't trigger a failure in the try push from comment 12, and I confirmed that the test did run and pass in that try push (logs extracted from the live_backing.log file linked to the job test-android-em-7.0-x86_64-qr/opt-geckoview-mochitest-plain-nofis-1):

...
[task 2023-07-28T13:01:51.837Z] 13:01:51     INFO -  Running manifest: toolkit/components/extensions/test/mochitest/mochitest-remote.ini:toolkit/components/extensions/test/mochitest/mochitest-common.ini
...
[task 2023-07-28T13:04:28.092Z] 13:04:28     INFO -  TEST-START | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html
[task 2023-07-28T13:04:28.092Z] 13:04:28     INFO -  TEST-OK | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html | took 1896ms
...
[task 2023-07-28T13:06:43.111Z] 13:06:43     INFO -  Running manifest: toolkit/components/extensions/test/mochitest/mochitest.ini:toolkit/components/extensions/test/mochitest/mochitest-common.ini
...
[task 2023-07-28T13:09:29.470Z] 13:09:29     INFO -  TEST-START | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html
[task 2023-07-28T13:09:29.470Z] 13:09:29     INFO -  TEST-OK | toolkit/components/extensions/test/mochitest/test_ext_sendmessage_reply2.html | took 1894ms
...

The first run is originated from mochitest-remote.ini and so it is running the test with the extensions in the child extension process, the second one is originated from mochitest.ini and so it is running the test with the extensions in the parent process.

I'm going to attach the patch to this bug and run one last try push with a temporary change applied to the test file, to force it to be executed in verify mode by the TV job.

Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Attachment #9144789 - Attachment is obsolete: true

New push to try with the patch attached in comment 14 + a temporary one to force test_ext_sendmessage_reply2.html to be executed as part of the TV job:

Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/54feb0d337d8 Re-enable test_ext_sendmessage_reply2.html on Android. r=willdurand
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Flags: needinfo?(kmaglione+bmo)
Product: GeckoView → GeckoView Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: