[wpt-sync] Sync PR 34723 - Fix flaky test memory leak
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox104 fixed)
| Tracking | Status | |
|---|---|---|
| firefox104 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34723 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34723
Details from upstream follow.
Aoyuan Zuo <zuoaoyuan@chromium.org> wrote:
Fix flaky test memory leak
event-timing-test-utils.js tap() has some unknown flaky memory leak issue related to test_driver.Actions(), while test_driver also has a built in function for click which doesn't cause any memory leak.
This commit replace tap with click to fix the memory leak and re-enable
the disabled test.
Test coverage for tap will be added later once Bug 1338420 is fixed.
Also added helper function addListenersAndClick() to reduce repetitive
patterns between tests.Bug: 1335002
Change-Id: Ic2670288e596ff5eac8f1e742e395717bdabde5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3747288
Reviewed-by: Lan Wei \<lanwei@chromium.org>
Commit-Queue: Aoyuan Zuo \<zuoaoyuan@chromium.org>
Reviewed-by: Michal Mocny \<mmocny@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1021762}
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 39 tests and 1 subtests
Status Summary
Firefox
OK : 35[Gecko-linux1804-64-qr-debug, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-64-2004-qr-debug] 36[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-opt] 38[GitHub]
PASS : 26
FAIL : 9[Gecko-linux1804-64-qr-debug, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-64-2004-qr-debug] 10[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-opt] 12[GitHub]
TIMEOUT: 2
ERROR : 1
Chrome
OK : 39
PASS : 39
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /layout-instability/input-timestamp.html [wpt.fyi]:
OK[GitHub],SKIP[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt] (Chrome:OK)- Layout shift right after user input is observable via PerformanceObserver.:
FAIL(Chrome:PASS)
- Layout shift right after user input is observable via PerformanceObserver.:
- /layout-instability/recent-input.html [wpt.fyi]:
OK[GitHub],SKIP[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt] (Chrome:OK)- Layout shift right after user input is observable via PerformanceObserver.:
FAIL(Chrome:PASS)
- Layout shift right after user input is observable via PerformanceObserver.:
- /event-timing/crossiframe.html [wpt.fyi]
- Event Timing: entries should only be observable by its own frame.:
FAIL(Chrome:PASS)
- Event Timing: entries should only be observable by its own frame.:
- /event-timing/disconnect-target.html [wpt.fyi]
- Event Timing: when target is disconnected, entry.target returns null.:
FAIL(Chrome:PASS)
- Event Timing: when target is disconnected, entry.target returns null.:
- /event-timing/event-retarget.html [wpt.fyi]
- Event Timing: target reports the last Event Target, i.e. nothing from shadow DOM.:
FAIL(Chrome:PASS)
- Event Timing: target reports the last Event Target, i.e. nothing from shadow DOM.:
- /event-timing/first-input-interactionid-click.html [wpt.fyi]
- The interactionId of the first input entry should match the same pointerdown entry of event timing when click.:
FAIL(Chrome:PASS)
- The interactionId of the first input entry should match the same pointerdown entry of event timing when click.:
- /event-timing/interactionid-click.html [wpt.fyi]
- Event Timing: compare event timing interactionId.:
FAIL(Chrome:PASS)
- Event Timing: compare event timing interactionId.:
- /event-timing/interactionid-press-key-as-input.html [wpt.fyi]
- Event Timing: compare event timing interactionId for key press as input.:
FAIL(Chrome:PASS)
- Event Timing: compare event timing interactionId for key press as input.:
- /event-timing/interactionid-press-key-no-effect.html [wpt.fyi]:
OK[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-opt,GitHub],TIMEOUT[Gecko-linux1804-64-qr-debug,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-64-2004-qr-debug] (Chrome:OK)- Event Timing: compare event timing interactionId for key press with no effect.:
FAIL[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-opt,GitHub],TIMEOUT[Gecko-linux1804-64-qr-debug,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-64-2004-qr-debug] (Chrome:PASS)
- Event Timing: compare event timing interactionId for key press with no effect.:
- /event-timing/interactionid-tap.html [wpt.fyi]:
ERROR(Chrome:OK) - /event-timing/only-observe-firstInput.html [wpt.fyi]
- Event Timing: check first-input for a PerformanceObserver observing only first-input.:
FAIL(Chrome:PASS)
- Event Timing: check first-input for a PerformanceObserver observing only first-input.:
- /event-timing/programmatic-click-not-observed.html [wpt.fyi]
- Event Timing: events from programmatic click are not observed:
FAIL(Chrome:PASS)
- Event Timing: events from programmatic click are not observed:
- /event-timing/retrieve-firstInput.html [wpt.fyi]
- Event Timing: check first-input after onload, observer, click, click.:
FAIL(Chrome:PASS)
- Event Timing: check first-input after onload, observer, click, click.:
Tests Disabled in Gecko Infrastructure
- /layout-instability/input-timestamp.html [wpt.fyi]:
OK[GitHub],SKIP[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt] (Chrome:OK) - /layout-instability/recent-input.html [wpt.fyi]:
OK[GitHub],SKIP[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt] (Chrome:OK)
Comment 4•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5638049c902d
https://hg.mozilla.org/mozilla-central/rev/f28d3fceb2e6
Description
•