[wpt-sync] Sync PR 63837 - Built-In AI APIs: Consolidate synthetic create monitor progress updates
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 63837 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63837
Details from upstream follow.
Mike Wasserman <msw@chromium.org> wrote:
Built-In AI APIs: Consolidate synthetic create monitor progress updates
Consolidate the duplicate 0 and 100% download progress completion
dispatch into AIContextObserver::CompleteDownloadProgress.
Wire CompleteDownloadProgress into CreateSemanticEmbedderClient and
CreateDecisionModelClient for consistent progress dispatch when models
are already available.
Align WPT create monitor test coverage across all Built-In AI APIs.Bug: 468104678, 565849508
Change-Id: Iebc4f3a1f4e6c2b767249b040baeaa1a4525943e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8511697
Auto-Submit: Mike Wasserman \<msw@chromium.org>
Commit-Queue: Mike Wasserman \<msw@chromium.org>
Reviewed-by: Nathan Memmott \<memmott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1721451}
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=106876
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 8 tests and 1 subtests
Status Summary
Firefox
OK : 8
FAIL : 56
Chrome
OK : 7
PASS : 6
FAIL : 21
PRECONDITION_FAILED: 13
TIMEOUT : 2
NOTRUN : 15
Safari
OK : 8
FAIL : 56
Links
Details
New Tests That Don't Pass
- /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() 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) - decisionModel.decide() rejects with AbortError when passed an aborted AbortSignal:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - decisionModel.decide() rejects with InvalidStateError after destroy():
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL)
- DecisionModel.availability() returns a valid Availability enum value:
- /ai/language-model/language-model-create.tentative.https.window.html [wpt.fyi]
- Ensure sessions can be created:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - LanguageModel.create() returns a valid object with default options:
FAIL(Chrome:FAIL, Safari:FAIL) - LanguageModel.create() notifies its monitor on downloadprogress:
FAIL(Chrome:FAIL, Safari:FAIL) - Progress events are not emitted after aborted.:
FAIL(Chrome:FAIL, Safari:FAIL) - If monitor throws an error, LanguageModel.create() rejects with that error:
FAIL(Chrome:PASS, Safari:FAIL) - Create with initialPrompts:
FAIL(Chrome:FAIL, Safari:FAIL) - Create with empty initialPrompts:
FAIL(Chrome:FAIL, Safari:FAIL) - Create with initialPrompts without system role:
FAIL(Chrome:FAIL, Safari:FAIL) - Create with system role not ordered first should fail:
FAIL(Chrome:FAIL, Safari:FAIL) - Create multiple system role entries should fail:
FAIL(Chrome:FAIL, Safari:FAIL) - LanguageModel.create() rejects when given invalid language tags:
FAIL(Chrome:PASS, Safari:FAIL) - LanguageModel.create() canonicalizes language tags:
FAIL(Chrome:FAIL, Safari:FAIL)
- Ensure sessions can be created:
- /ai/language_detection/detector.https.window.html [wpt.fyi]
- Create requires sticky user activation when availability is "downloadable":
FAIL(Chrome:TIMEOUT, Safari:FAIL) - LanguageDetector.detect() returns valid results:
FAIL(Chrome:NOTRUN, Safari:FAIL) - If monitor throws an error, LanguageDetector.create() rejects with that error:
FAIL(Chrome:NOTRUN, Safari:FAIL) - LanguageDetector.create() notifies its monitor on downloadprogress:
FAIL(Chrome:NOTRUN, Safari:FAIL) - LanguageDetector.create() call with an aborted signal.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Aborting createLanguageDetector().:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Calling LanguageDetector.destroy() aborts calls to detect and measureInputUsage.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - LanguageDetector.create()'s abort signal destroys its LanguageDetector after creation.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - LanguageDetector.detect() call with an aborted signal.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Aborting LanguageDetector.detect().:
FAIL(Chrome:NOTRUN, Safari:FAIL) - LanguageDetector.measureInputUsage() and inputQuota basic usage.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - LanguageDetector.measureInputUsage() call with an aborted signal.:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Aborting LanguageDetector.measureInputUsage().:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Creating LanguageDetector with empty expectedInputLanguages array:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Creating LanguageDetector without expectedInputLanguages:
FAIL(Chrome:NOTRUN, Safari:FAIL) - Progress events are not emitted after aborted.:
FAIL(Chrome:NOTRUN, Safari:FAIL)
- Create requires sticky user activation when availability is "downloadable":
- /ai/proofreader/proofreader-create-available.tentative.https.window.html [wpt.fyi]
- Proofreader.create() returns a valid object with default options:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - Proofreader.create() notifies its monitor on downloadprogress:
FAIL(Chrome:FAIL, Safari:FAIL) - Proofreader.create() does not emit progress events after abort:
FAIL(Chrome:FAIL, Safari:FAIL) - Proofreader.create() sets correctionExplanationLanguage when specified:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - Proofreader.create() sets expectedInputLanguages when specified:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - Proofreader.create() sets includeCorrectionTypes when specified:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - Proofreader.create() sets includeCorrectionExplanations when specified:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL) - Proofreader.create() with empty options sets optional attributes to null:
FAIL(Chrome:PRECONDITION_FAILED, Safari:FAIL)
- Proofreader.create() returns a valid object with default options:
- /ai/proofreader/proofreader-create.tentative.https.window.html [wpt.fyi]
- If monitor throws an error, Proofreader.create() rejects with that error:
FAIL(Chrome:PASS, Safari:FAIL)
- If monitor throws an error, Proofreader.create() rejects with that error:
- /ai/semantic_embedder/semantic-embedder-create.tentative.https.window.html [wpt.fyi]
- SemanticEmbedder.create() returns a valid object with default options:
FAIL(Chrome:FAIL, Safari:FAIL) - SemanticEmbedder.embed() returns SemanticEmbedderResult for single string:
FAIL(Chrome:FAIL, Safari:FAIL) - SemanticEmbedder.embed() returns SemanticEmbedderResult for batch strings:
FAIL(Chrome:FAIL, Safari:FAIL) - SemanticEmbedder.embed() accepts taskType option:
FAIL(Chrome:FAIL, Safari:FAIL) - SemanticEmbedder.embed() handles empty array without crashing:
FAIL(Chrome:FAIL, Safari:FAIL) - SemanticEmbedder.create() can be aborted:
FAIL(Chrome:FAIL, Safari:FAIL) - If monitor throws an error, SemanticEmbedder.create() rejects with that error:
FAIL(Chrome:FAIL, Safari:FAIL)
- SemanticEmbedder.create() returns a valid object with default options:
- /ai/semantic_embedder/semantic-embedder-downloadprogress.tentative.https.window.html [wpt.fyi]
- SemanticEmbedder.create() notifies its monitor on downloadprogress:
FAIL(Chrome:FAIL, Safari:FAIL)
- SemanticEmbedder.create() notifies its monitor on downloadprogress:
- /ai/translator/translator.https.window.html [wpt.fyi]
- If monitor throws an error, Translator.create() rejects with that error:
FAIL(Chrome:PASS, Safari:FAIL)
- If monitor throws an error, Translator.create() rejects with that error:
Comment 4•26 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/be1ce1093388
https://hg.mozilla.org/mozilla-central/rev/54708303d57f
Description
•