Closed Bug 1909807 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 47286 - WebNN: Change the auto in MLPowerPreference to default

Categories

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

task

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Miao Bin <bin.miao@intel.com> wrote:

WebNN: Change the auto in MLPowerPreference to default

Update the IDL enum MLPowerPreference to change the auto value to
default in order to align the spec. [1]

[1] https://www.w3.org/TR/webnn/#dom-mlpowerpreference-default

Bug: 353552552
Change-Id: I24349022fcae47d54b53067f031a29fdd264c851
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel,mac14.arm64-blink-rel,mac14-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5716629
Reviewed-by: ningxin hu \<ningxin.hu@intel.com>
Commit-Queue: Bin Miao \<bin.miao@intel.com>
Reviewed-by: Austin Sullivan \<asully@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1332800}

CI Results

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

Total 2 tests and 9 subtests

Status Summary

Firefox

OK : 2
FAIL: 18

Chrome

OK : 2
PASS: 16
FAIL: 2

Safari

OK : 2
FAIL: 18

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /webnn/validation_tests/createContext.https.any.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-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with default MLContextOptions.: FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with device type: cpu.: FAIL (Chrome: PASS, Safari: FAIL)
    • Throw if deviceType is not a valid enum value of type MLDeviceType when creating the context.: FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with power preference: default.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Create context with power preference: high-performance.: FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with power preference: low-power.: FAIL (Chrome: PASS, Safari: FAIL)
    • Throw if powerPreference is not a valid enum value of type MLPowerPreference when creating the context.: FAIL (Chrome: PASS, Safari: FAIL)
    • [createContext] Test creating context with deviceType=cpu, powerPreference=high-performance.: FAIL (Chrome: PASS, Safari: FAIL)
  • /webnn/validation_tests/createContext.https.any.worker.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-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
    • assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator"): FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with default MLContextOptions.: FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with device type: cpu.: FAIL (Chrome: PASS, Safari: FAIL)
    • Throw if deviceType is not a valid enum value of type MLDeviceType when creating the context.: FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with power preference: default.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Create context with power preference: high-performance.: FAIL (Chrome: PASS, Safari: FAIL)
    • Create context with power preference: low-power.: FAIL (Chrome: PASS, Safari: FAIL)
    • Throw if powerPreference is not a valid enum value of type MLPowerPreference when creating the context.: FAIL (Chrome: PASS, Safari: FAIL)
    • [createContext] Test creating context with deviceType=cpu, powerPreference=high-performance.: FAIL (Chrome: PASS, Safari: FAIL)

Tests Disabled in Gecko Infrastructure

  • /webnn/validation_tests/createContext.https.any.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-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
  • /webnn/validation_tests/createContext.https.any.worker.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-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/73ba6272926d [wpt PR 47286] - WebNN: Change the auto in MLPowerPreference to default, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.