Open Bug 1841896 Opened 1 year ago Updated 19 hours ago

[meta] Port APZ Fission tests in browser_test_group_fission.js to regular mochitests running in M-fis or M-fis-xorig mode

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

ASSIGNED

People

(Reporter: botond, Assigned: ajakobi)

References

(Depends on 2 open bugs, Blocks 1 open bug, Regressed 2 open bugs)

Details

(Keywords: leave-open, meta, Whiteboard: [fission:android][fxdroid])

Attachments

(12 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

APZ has a suite of browser-chrome mochitests for testing issues specific to Fission in browser_test_group_fission.js. There are currently 19 subtests in this suite.

These tests use the FissionTestHelper actor (parent, child), and pre-date the ability of regular mochitests to exercise Fission codepaths.

It should be possible to re-formulate many of these tests as plain mochitests running in M-fis or M-fis-xorig test jobs. This bug tracks this porting work.

Keywords: meta
Summary: Port APZ Fission tests in browser_test_group_fission.js to regular mochitests running in M-fis or M-fis-xorig mode → [meta] Port APZ Fission tests in browser_test_group_fission.js to regular mochitests running in M-fis or M-fis-xorig mode

Tracking as a potential issue for Android Fission.

Blocks: gv-fission
Whiteboard: [fission:android]

(In reply to Chris Peterson [:cpeterson] from comment #1)

Tracking as a potential issue for Android Fission.

Indeed, this is quite relevant to Android Fission. I didn't realize this at the time I filed the bug, but the browser-mochitest suite does not run on Android, while mochitest-plain does.

So, the mentioned porting work will not only simplify APZ's Fission-related tests, it will also bring that test coverage to Android.

Whiteboard: [fission:android] → [fission:android][fxdroid]

Hi Botond, can this work get prioritized? We are hoping to fix all failing Fission tests this summer, it would be great to improve the test coverage as well. We are hoping to prepare for running experiments in early Q3

Flags: needinfo?(botond)

(In reply to [:owlish] 🦉 PST from comment #3)

Hi Botond, can this work get prioritized?

Yes, this is on our roadmap. I believe Alex plans to work on this next after bug 1855990, so we should be looking to start this in the Q2 timeframe. Given the number of tests involved, completion of the port will likely be in Q3.

Flags: needinfo?(botond)

Currently working on this, so far ported

Assignee: nobody → ajakobi
Status: NEW → ASSIGNED
Attachment #9410021 - Attachment description: WIP: Bug 1841896 - Port APZ Fission tests to regular mochitests r?botond,hiro → Bug 1841896 - Port APZ Fission tests to regular mochitests r?botond,hiro
Attachment #9412444 - Attachment is obsolete: true
Attachment #9410021 - Attachment description: Bug 1841896 - Port APZ Fission tests to regular mochitests r?botond,hiro → Bug 1841896 - Port helper_fission_transforms to regular mochitests r?botond,hiro
Keywords: leave-open
Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cb0bfa2e818c Port helper_fission_transforms to regular mochitests r=hiro
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c604c837c187 Port helper_fission_tap to regular mochitests r=hiro https://hg.mozilla.org/integration/autoland/rev/9817add495d7 Port helper_fission_tap_on_zoomed to regular mochitests r=hiro https://hg.mozilla.org/integration/autoland/rev/38b3ecfc4223 Port helper_fission_touch to regular mochitests r=hiro https://hg.mozilla.org/integration/autoland/rev/b049c13d095c Port helper_fission_scroll_handoff to regular mochitests r=hiro

Backed out for causing mochitest-plain failures on test_group_fission.html.

[task 2024-08-13T14:23:01.480Z] 14:23:01     INFO -  TEST-START | gfx/layers/apz/test/mochitest/test_group_fission.html
[task 2024-08-13T14:23:01.480Z] 14:23:01     INFO -  Buffered messages logged at 14:22:54
[task 2024-08-13T14:23:01.480Z] 14:23:01     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Starting subtest helper_fission_scroll_handoff.html
[task 2024-08-13T14:23:01.480Z] 14:23:01     INFO -  Buffered messages finished
[task 2024-08-13T14:23:01.480Z] 14:23:01  WARNING -  TEST-UNEXPECTED-FAIL | gfx/layers/apz/test/mochitest/test_group_fission.html | Error: Native wheel events not supported on platform android
[task 2024-08-13T14:23:01.480Z] 14:23:01     INFO -      SimpleTest.ok@SimpleTest/SimpleTest.js:426:16
[task 2024-08-13T14:23:01.481Z] 14:23:01     INFO -      advanceSubtestExecutionWithFailure@gfx/layers/apz/test/mochitest/apz_test_utils.js:400:18
[task 2024-08-13T14:23:01.481Z] 14:23:01     INFO -  must wait for focus
[task 2024-08-13T14:23:01.481Z] 14:23:01     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Starting subtest helper_fission_tap.html
[task 2024-08-13T14:23:01.481Z] 14:23:01     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Successfully installed event listener in OOP iframe
[task 2024-08-13T14:23:11.542Z] 14:23:11  WARNING -  TEST-UNEXPECTED-FAIL | gfx/layers/apz/test/mochitest/test_group_fission.html | x-coord -43 landed near expected value 141.42135623730948
[task 2024-08-13T14:23:11.542Z] 14:23:11     INFO -      SimpleTest.ok@SimpleTest/SimpleTest.js:426:16
[task 2024-08-13T14:23:11.542Z] 14:23:11     INFO -      test@gfx/layers/apz/test/mochitest/helper_fission_tap.html:69:9
[task 2024-08-13T14:23:11.542Z] 14:23:11     INFO -      async*@gfx/layers/apz/test/mochitest/helper_fission_tap.html:76:8
[task 2024-08-13T14:23:11.542Z] 14:23:11     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | y-coord 140 landed near expected value 141.42135623730948
[task 2024-08-13T14:23:11.542Z] 14:23:11     INFO -  must wait for focus
[task 2024-08-13T14:23:11.543Z] 14:23:11     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Starting subtest helper_fission_tap_on_zoomed.html
[task 2024-08-13T14:23:11.543Z] 14:23:11     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Successfully installed event listener in OOP iframe
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | x-coord 99 landed near expected value 100
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | y-coord 99 landed near expected value 100
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  must wait for focus
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Starting subtest helper_fission_touch.html
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Successfully installed event listeners in OOP iframe
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  must wait for focus
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Starting subtest helper_fission_transforms.html
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | Successfully installed event listener in OOP iframe
[task 2024-08-13T14:23:21.612Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | x-coord 140 landed near expected value 141.42135623730948
[task 2024-08-13T14:23:21.613Z] 14:23:21     INFO -  TEST-PASS | gfx/layers/apz/test/mochitest/test_group_fission.html | y-coord 140 landed near expected value 141.42135623730948
[task 2024-08-13T14:23:21.613Z] 14:23:21     INFO -  TEST-OK | gfx/layers/apz/test/mochitest/test_group_fission.html | took 25444ms
[task 2024-08-13T14:23:21.613Z] 14:23:21     INFO -  TEST-START | gfx/layers/apz/test/mochitest/test_group_fullscreen.html
Flags: needinfo?(ajakobi)
Flags: needinfo?(hikezoe.birchill)

So the failure on helper_fission_tap.html happened only on Android? I guess adding <meta name="viewport" content="width=device-width,initial-scale=1"> solves the failure. (Though I am still wondering why the test fails without the meta tag)

Flags: needinfo?(hikezoe.birchill)

Working on it, thanks Iulian and Hiro.

Flags: needinfo?(ajakobi)
Blocks: 1914368
No longer blocks: 1914368
Depends on: 1914368
Depends on: 1915378
Pushed by ajakobi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f7da3ff61f6d Port helper_fission_tap to regular mochitests r=hiro https://hg.mozilla.org/integration/autoland/rev/4ac527fb4725 Port helper_fission_tap_on_zoomed to regular mochitests r=hiro https://hg.mozilla.org/integration/autoland/rev/b87b3d42da4f Port helper_fission_touch to regular mochitests r=hiro https://hg.mozilla.org/integration/autoland/rev/70166d915c65 Port helper_fission_scroll_handoff to regular mochitests r=hiro https://hg.mozilla.org/integration/autoland/rev/2d288f404a50 Port helper_fission_inactivescroller_under_oopif to regular mochitests r=hiro

helper_fission_empty.html does have it [1], it's necessary to make
helper_fission_animation_styling_in_transformed_oopif.html work as a new
mochitest-plain test. (If there was the default 8px margins on <body>, the
animating element in the test is still out of view)

[1] https://searchfox.org/mozilla-central/rev/14a66905574728bc9eb60e927d17d98721167dcf/gfx/layers/apz/test/mochitest/helper_fission_empty.html#5-9
[2] https://searchfox.org/mozilla-central/rev/14a66905574728bc9eb60e927d17d98721167dcf/gfx/layers/apz/test/mochitest/helper_fission_animation_styling_in_transformed_oopif.html

Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/843a1a906318 Set zero margin and padding on <html> and <body> in helper_fission_plain.html. r=ajakobi https://hg.mozilla.org/integration/autoland/rev/13ab55f7bdc6 Port helper_fission_animation_styling_in_oopif.htm to a plain mochitest. r=ajakobi https://hg.mozilla.org/integration/autoland/rev/1cb4179b4336 Port helper_fission_animation_styling_in_transformed_oopif.html to a plain mochitest. r=ajakobi
Regressions: 1918553

Hi Alex, is there much work left on this? Thanks!

Flags: needinfo?(ajakobi)

Yes. (Alex is on PTO)

Flags: needinfo?(ajakobi)

To give a bit more detail on the current status:

  • There are 18 tests in total
  • 6 have been ported and enabled on both desktop and Android
  • 2 have been ported but only enabled on desktop so far because they fail on Android (bug 1914368 and bug 1915378 track enabling these on Android)
  • 10 tests remain to be ported

(In reply to Botond Ballo [:botond] from comment #28)

  • 6 have been ported and enabled on both desktop and Android
  • 2 have been ported but only enabled on desktop so far because they fail on Android (bug 1914368 and bug 1915378 track enabling these on Android)

(Though I did notice that 2 of the ported tests are not listed in the test group, and therefore not running, at all. I filed bug 1922710 about this.)

Depends on: 1922710
Pushed by ajakobi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cb67959de9e5 Port helper_fission_setResolution to regular mochitests r=hiro
Regressions: 1916784

I originally wrote D227908 as a part of bug 1923513, but after some thoughts, now I think the change should be post here in this bug for being tracked in future.

Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/480c30b779ea Port helper_fission_irregular_areas.html to a plain mochitest. r=ajakobi
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: