Skip to content

Split 2d-invalid-size-context-lost.html into test variants#59313

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7770727
Apr 19, 2026
Merged

Split 2d-invalid-size-context-lost.html into test variants#59313
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-cl-7770727

Conversation

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

@chromium-wpt-export-bot chromium-wpt-export-bot commented Apr 17, 2026

With this change, each canvas types (HTMLCanvasElement, OffscreenCanvas,
offscreen + placeholder, etc.) run into different test instances. This
makes each of these instances run faster (potentially avoiding
timeouts). This will also be useful in a follow-up CL
(https://crrev.com/c/7770807), where tests will be added to validate GPU
process loss. Tests are normally running one after the other, so an
individual test can kill and restore the GPU process without impacting
the others. But this is not true for worker tests because workers run in
a parallel thread. Killing the GPU process in the main thread would
break the test running in the worker. The solution to this is to run the
workers in a different variant, which will either run with a different
test runner, or before/after other variants.

Change-Id: I95ec34c070d0908e687b5d7c8d207c2e012f585e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7770727
Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1617255}

With this change, each canvas types (HTMLCanvasElement, OffscreenCanvas,
offscreen + placeholder, etc.) run into different test instances. This
makes each of these instances run faster (potentially avoiding
timeouts). This will also be useful in a follow-up CL
(https://crrev.com/c/7770807), where tests will be added to validate GPU
process loss. Tests are normally running one after the other, so an
individual test can kill and restore the GPU process without impacting
the others. But this is not true for worker tests because workers run in
a parallel thread. Killing the GPU process in the main thread would
break the test running in the worker. The solution to this is to run the
workers in a different variant, which will either run with a different
test runner, or before/after other variants.

Change-Id: I95ec34c070d0908e687b5d7c8d207c2e012f585e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7770727
Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1617255}
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 efde053 into master Apr 19, 2026
28 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7770727 branch April 19, 2026 23:31
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.

3 participants