Closed Bug 1923193 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 48503 - compute pressure: Increase timeouts and drop uses of t.step_wait()

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox133 fixed)

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 48503 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/48503
Details from upstream follow.

Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> wrote:

compute pressure: Increase timeouts and drop uses of t.step_wait()

  • When we need to wait to verify that an update was not sent, update
    the timeout from 1 second to 3 seconds (and mark tests with
    timeout=long). 1 second is sometimes too little for busy bots such as
    the mac-rel and win-rel ones, which can lead to flakiness or, in this
    case, updates not being delivered for the wrong reason (i.e. the
    browser process just has not had time to process the
    update_virtual_pressure_source() call).

  • Introduce a new SyncPressureObserver wrapper class that stores
    multiple pressure updates and allows users to synchronously wait for
    the next one using Promises. This is useful for tests that need to
    send and wait for multiple updates: instead of polling using
    t.step_wait(), these tests can just use this class to wait for a
    Promise to resolve when an update is delivered.

Bug: 347031400
Change-Id: I7880577757d71678e612d912716f4f12020a5fef

Reviewed-on: https://chromium-review.googlesource.com/5912856
WPT-Export-Revision: 3f52e76c8766ae55c719af5c1105701721ebd117

PR 48503 applied with additional changes from upstream: 3b5b938807426d70481ad1effdfedb4d3fddc7d7

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 9 tests and 1 subtests

Status Summary

Firefox

OK : 5
PASS : 1
FAIL : 9
TIMEOUT: 4
ERROR : 4
NOTRUN : 1

Chrome

OK : 9
PASS : 15

Safari

OK : 5
PASS : 1
FAIL : 9
TIMEOUT: 4
ERROR : 4
NOTRUN : 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bed30abd3cc7 [wpt PR 48503] - compute pressure: Increase timeouts and drop uses of t.step_wait(), a=testonly https://hg.mozilla.org/integration/autoland/rev/951144375fdf [wpt PR 48503] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.