Closed Bug 2073867 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62820 - Fix Built-In AI WebDX feature names and add WPT WEB_FEATURES.yml files

Categories

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

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Etienne Noël <etiennenoel@chromium.org> wrote:

Fix Built-In AI WebDX feature names and add WPT WEB_FEATURES.yml files

  1. The WebDXFeature enum name and histogram label map to W3C
    web-features IDs by splitting CamelCase on capital letters with hyphens.
    Because buckets 420 and 425 were named kLanguageModel /
    label="LanguageModel" and kLanguageDetector / label="LanguageDetector",
    the pipeline exported them as "language-model" and "language-detector"
    instead of the actual web-features IDs "languagemodel" and
    "languagedetector". Rename them to kLanguagemodel and kLanguagedetector
    and update enums.xml accordingly.

Note: While an alternative would be keeping kLanguageModel /
kLanguageDetector in Chromium and renaming the upstream YAML files in
web-platform-dx/web-features to use dashes (language-model.yml and
language-detector.yml with redirects), doing so requires too many
external steps (upstream W3C repo PR review, a new web-features npm
release, and downstream dependency bumps in webstatus.dev and wpt.fyi).
Aligning Chromium's enum names directly with the published web-features
identifiers fixes the dashboards immediately in a single step.

  1. Add missing WEB_FEATURES.yml files for all Built-In AI APIs present
    in web-platform-dx/web-features:
  • third_party/blink/web_tests/external/wpt/ai/language-model/WEB_FEATURES.yml ([languagemodel])
  • third_party/blink/web_tests/external/wpt/ai/language_detection/WEB_FEATURES.yml ([languagedetector])
  • third_party/blink/web_tests/external/wpt/ai/translator/WEB_FEATURES.yml ([translator])

Bug: 563353292
TAG=agy
CONV=22933575-5b82-4d34-8f1c-7aac2d71a7ff
Change-Id: I9bb991048f45681e48ed8426f2e0536139736100
Reviewed-on: https://chromium-review.googlesource.com/8431371
WPT-Export-Revision: 33088454758230296868b7a97c6aa9569de48c59

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/69610becb070 https://hg.mozilla.org/integration/autoland/rev/9acb1325cfb0 [wpt PR 62820] - Fix Built-In AI WebDX feature names and add WPT WEB_FEATURES.yml files, a=testonly

Test result changes from PR not available.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.