Repository navigation
test: Guard When_MsAppData against an indefinite hang - #24033
Conversation
|
Claude finished @MartinZikmund's task in 1m 10s —— View job Review complete
SummaryThe fix is correct and tightly scoped. Replacing 1 suggestion (non-blocking): On the broken Skia legs,
|
There was a problem hiding this comment.
Pull request overview
This PR updates the Given_BitmapSource.When_MsAppData runtime test to prevent CI shards from hanging indefinitely when ImageOpened never fires on some Skia legs, by adding a 30-second bound to the awaited TaskCompletionSource.
Changes:
- Bound the
ImageOpenedwait usingWaitAsync(TimeSpan.FromSeconds(30))to prevent an infinite hang. - Added inline comments documenting the CI hang impact and rationale for the timeout.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Claude finished @MartinZikmund's task in 1m 32s —— View job Review complete
SummaryThe update is correct and complete. Both prior suggestions are applied:
The two-layer defence is well-structured: No inline findings — nothing blocking merge.
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24033/wasm-skia-net9/index.html |
|
The build 226824 found UI Test snapshots differences: Details
|
Given_BitmapSource.When_MsAppData awaited its ImageOpened TaskCompletionSource with no timeout. On Skia legs where the image never opens the test blocks until the 60-minute job cap, so no results XML is written and PublishTestResults fails for the whole suite. Bound the wait to 30 seconds so the underlying issue (#23967) surfaces as one deterministic test failure instead of a lost agent hour. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J33LeqZULiZ9Pr7BmFdRnL
Addresses PR review feedback: - Hook ImageFailed into the same TaskCompletionSource so a reported load failure surfaces the platform error immediately instead of waiting out the 30-second timeout, matching When_MsAppData_StreamDisposed_FileNotLocked. - Add [Timeout] so a stall in GetFileFromApplicationUriAsync or CopyAsync is bounded too; WaitAsync only covers the final await. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J33LeqZULiZ9Pr7BmFdRnL
44142e1 to
1a7376c
Compare
|
Claude finished @MartinZikmund's task in 1m 23s —— View job Review complete
SummaryThe final state of the diff is correct and complete. The two-layer defence is well-structured:
No inline findings. The class-level
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24033/wasm-skia-net9/index.html |
|
The build 226924 found UI Test snapshots differences: Details
|
GitHub Issue: closes #23967
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Given_BitmapSource.When_MsAppDataawaited itsImageOpenedTaskCompletionSourcewith a bareawait tcs.Task— no timeout, no cancellation token. On Skia legs where the image never opens, the test does not fail; it blocks forever.The cost of that is much larger than one test:
PublishTestResultsfails and every result from the ~650 tests that already ran is lost,This bounds the wait to 30 seconds, so the underlying bug surfaces as a single deterministic test failure with the rest of the suite intact.
Observed on build 226708 (
Uno.UI - CI), where the stage was killed on attempts 1 and 3, both ending on exactly the same line. In that same build theTests - Desktop Skia Linux Framebufferstage passed, because the existing[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.SkiaFrameBuffer)]skips the test there — the X11 leg has no such exclusion and is still exposed.Scope
This is a containment fix, not a root-cause fix. It does not make
ms-appdataimage loading work on the affected leg —#23967stays open for that. TheSkiaFrameBufferexclusion is left untouched. Expect the X11 Linux leg to now reportWhen_MsAppDataas a failing test rather than hanging.PR Checklist ✅
Screenshots Compare Test Runresults.