Skip to content

[WebAudio] Fix flaky WPT sinkId tests on headless shell bots#60252

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7883424
May 29, 2026
Merged

[WebAudio] Fix flaky WPT sinkId tests on headless shell bots#60252
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7883424

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 28, 2026

This CL refactors the AudioContext sinkId WPT tests to eliminate
timing races and fragile timeouts that cause CQ failures:

  1. Constructor tests are converted from legacy async_test to modern
    promise_test, completely removing fragile 100ms step timeouts.
  2. State change tests are restructured to register all event
    handlers before initiating resume() transitions, eliminating
    a timing race.
  3. setSinkId tests are isolated per test file, and the timing race
    in close rejections is fixed by utilizing a valid silent sink
    option instead of an invalid device ID.
  4. Detached iframe tests are updated to manually catch cross-realm
    exceptions, ensuring compatibility with WPT harness validations.

Bug: 514359173, 514384316, 514528222
Change-Id: I4c42b66e43207c9147ecd0c4353241f81281af21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7883424
Reviewed-by: Michael Wilson <mjwilson@chromium.org>
Commit-Queue: Mahesh Kannan <kmaheshb@google.com>
Cr-Commit-Position: refs/heads/main@{#1638538}

This CL refactors the AudioContext sinkId WPT tests to eliminate
timing races and fragile timeouts that cause CQ failures:

1. Constructor tests are converted from legacy async_test to modern
   promise_test, completely removing fragile 100ms step timeouts.
2. State change tests are restructured to register all event
   handlers before initiating resume() transitions, eliminating
   a timing race.
3. setSinkId tests are isolated per test file, and the timing race
   in close rejections is fixed by utilizing a valid silent sink
   option instead of an invalid device ID.
4. Detached iframe tests are updated to manually catch cross-realm
   exceptions, ensuring compatibility with WPT harness validations.

Bug: 514359173, 514384316, 514528222
Change-Id: I4c42b66e43207c9147ecd0c4353241f81281af21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7883424
Reviewed-by: Michael Wilson <mjwilson@chromium.org>
Commit-Queue: Mahesh Kannan <kmaheshb@google.com>
Cr-Commit-Position: refs/heads/main@{#1638538}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 73f61f5 into master May 29, 2026
26 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7883424 branch May 29, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants