Repository navigation
test(imaging): Hold the superseded stream's decode in its test - #25993
Merged
ramezgerges merged 1 commit intoNov 5, 2026
Merged
ramezgerges merged 1 commit into
ramezgerges merged 1 commit into
Conversation
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Xiaoy312
approved these changes
Nov 3, 2026
ramezgerges
enabled auto-merge
November 3, 2026 19:27
Contributor
|
The build 243377 found UI Test snapshots differences: Details
|
2 of 5 tasks
ramezgerges
force-pushed
the
dev/rara/image-release-superseded-flake
branch
from
November 4, 2026 18:20
cd3de5d to
096dd1f
Compare
When_Stream_Load_Superseded_After_Decode_Then_Abandoned_Surface_Released failed on CPU-starved Linux agents: the off-thread decode of the first stream finished before SetSourceAsync awaited it, so the stream opened inline and raised ImageOpened before the second one could supersede it. The decode is now held until SetSourceAsync returns, so its result is always applied by the dispatched continuation the test is about. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Contributor
|
The build 243771 found UI Test snapshots differences: Details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: part of #9080 (flaky tests roundup)
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Given_Image_Release.When_Stream_Load_Superseded_After_Decode_Then_Abandoned_Surface_Releasedfailed intermittently on the Linux desktop lanes, both Skia and WebGPU (22 failures in the last 150 CI builds, none on Windows or macOS):The test sets a first stream, holds the UI thread until its off-thread decode completes, then sets a second stream that must supersede the first before its result is applied. On a CPU-starved agent, the first decode (a 100×100 image) can finish before
BitmapImage.TryOpenSourceAsyncreachesawait Task.Run(...). The await then completes inline, so the first stream is published, and raisesImageOpened, inside the firstSetSourceAsynccall, before the second one exists. ThatImageOpenedis correct: the stream did open. The test simply never reached the state it covers.The test's
TrackingDecodercan now hold decodes running off the calling thread (HoldOtherThreadDecodes), and the test holds the first stream's decode untilSetSourceAsyncreturns. Its result is then always applied by the dispatched continuation, which is the scenario under test. No product change.Validation
Runtime, under Xvfb on WSL Ubuntu with the desktop SamplesApp, running the test 40 times in a row:
taskset -c 0)BitmapImage.Publishdisabled, it fails 40/40.Given_Image_Releaseclass passes (59/59) on Windows and on Linux with 1 CPU and with all CPUs.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code