[wpt-sync] Sync PR 63897 - Built-In AI APIs: Add AbortManager and align DecisionModel
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63897 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63897
Details from upstream follow.
Mike Wasserman <msw@chromium.org> wrote:
Built-In AI APIs: Add AbortManager and align DecisionModel
Add AbortManager to manage the session destruction AbortController,
create() AbortSignal listener, and composite per-operation
AbortSignals.
Adopt across DecisionModel, AIWritingAssistanceBase, Proofreader,
Translator, and LanguageDetector.Align DecisionModel abort and destroy behavior with sibling APIs, and
add unit and WPT coverage.
(supersedes https://crrev.com/c/8545313)Bug: 424659255, 468104678, 565849508
Change-Id: I02147aafd4de6490f1276db1d83141f6ba29012dReviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8590306
Auto-Submit: Mike Wasserman \<msw@chromium.org>
Reviewed-by: Jaewon Lee \<jaeone@google.com>
Commit-Queue: Jaewon Lee \<jaeone@google.com>
Cr-Commit-Position: refs/heads/main@{#1722079}
| Assignee | ||
Comment 1•1 month ago
|
||
PR 63897 applied with additional changes from upstream: 23b0b89b1a472cac446e3c6e75fc7d6254913ef0
| Assignee | ||
Comment 2•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=109489
| Assignee | ||
Comment 3•1 month ago
|
||
CI Results
Ran 8 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 13 subtests
Status Summary
Firefox
OK : 1[GitHub] 2[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 13[GitHub] 14[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS : 3
FAIL : 2
PRECONDITION_FAILED: 8
Safari
OK : 1
FAIL : 13
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /ai/decision-model/decision-model-create-user-activation.tentative.https.window.html [wpt.fyi]
- Create requires sticky user activation when availability is "downloadable":
FAIL
- Create requires sticky user activation when availability is "downloadable":
- /ai/decision-model/decision-model.tentative.https.window.html [wpt.fyi]
- DecisionModel.availability() returns a valid Availability enum value:
FAIL(Chrome:PASS, Safari:FAIL) - DecisionModel.create() and decisionModel.decide() return a record keyed by question id with probabilities keyed by option label:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - DecisionModel dynamically reflects custom choice and score question schemas:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - decisionModel.decide() returns one decision per create-time question:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - DecisionModel rejects malformed question schemas with TypeError and invalid BCP-47 language tags with RangeError:
FAIL(Chrome:PASS, Safari:FAIL) - decisionModel.decide() rejects empty or whitespace-only input with TypeError:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - DecisionModel.create() rejects when monitor callback throws an error:
FAIL(Chrome:PASS, Safari:FAIL) - DecisionModel.create() notifies its monitor on downloadprogress:
FAIL(Chrome:FAIL, Safari:FAIL) - Progress events are not emitted after DecisionModel.create() is aborted:
FAIL(Chrome:FAIL, Safari:FAIL) - Aborting DecisionModel.create():
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - Aborting decisionModel.decide():
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - Aborting the signal passed to DecisionModel.create() destroys the session and rejects decide():
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - DecisionModel.destroy() rejects pending and later decide() calls with AbortError:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL)
- DecisionModel.availability() returns a valid Availability enum value:
Comment 5•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/45ce4938e915
https://hg.mozilla.org/mozilla-central/rev/0c4ec8847fd6
Description
•