Skip to content

test: Disable flaky WebView2 test on Skia UIKit - #23957

Merged
Xiaoy312 merged 1 commit into
masterfrom
dev/xygu/20260804/disable-flaky-webview2-localfolder-skia-uikit
Aug 4, 2026
Merged

Xiaoy312 merged 1 commit into
masterfrom
dev/xygu/20260804/disable-flaky-webview2-localfolder-skia-uikit

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: #9080 (tracking epic — intentionally not auto-closed by this PR)

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Given_WebView2.When_LocalFolder_File is flaky on UIKit. The [PlatformCondition] exclusion on that test only covered RuntimeTestPlatforms.NativeUIKit, so the test still ran — and intermittently failed — on Skia UIKit.

This extends the exclusion to NativeUIKit | SkiaUIKit, matching the precedent already set for the same flakiness in the same file: When_Navigate_Unsupported_Scheme (line 596) is excluded on both the Skia iOS leg and native UIKit under #9080.

-[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeUIKit)] // Flaky on UIKit - #9080
+[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeUIKit | RuntimeTestPlatforms.SkiaUIKit)] // Flaky on UIKit - #9080

Attribute-only change — no product code touched, and no behavior change on any platform other than skipping this one test on Skia UIKit. Validated by inspection (RuntimeTestPlatforms.SkiaUIKit is defined at src/Uno.UI.RuntimeTests/Helpers/RuntimeTestPlatforms.cs:32); no local compile or runtime run, since the affected leg is Skia-iOS CI.

Possible follow-up (out of scope here): a few other tests carry the same Exclude, NativeUIKit + #9080 comment without SkiaUIKit — Given_CalendarView.cs:317,331 and Given_ImageBrush.cs:39 — and may need the same treatment if they turn out to be flaky on the Skia leg too.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — N/A, this change only adjusts an existing runtime test's platform condition
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — N/A, no user-facing change
  • 🖼️ Validated PR Screenshots Compare Test Run results. — N/A, no rendering change
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

When_LocalFolder_File is flaky on UIKit; the existing exclusion only
covered native UIKit. Extend it to Skia UIKit, matching the sibling
WebView2 tests in the same file.

See #9080

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings August 4, 2026 14:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces CI flakiness in the Uno UI runtime test suite by ensuring a known-flaky WebView2 runtime test is excluded on both Native UIKit and Skia UIKit, aligning it with the platform exclusions already used by sibling WebView2 tests.

Changes:

  • Updated Given_WebView2.When_LocalFolder_File to exclude RuntimeTestPlatforms.SkiaUIKit in addition to RuntimeTestPlatforms.NativeUIKit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@Xiaoy312
Xiaoy312 enabled auto-merge August 4, 2026 18:03
@Xiaoy312
Xiaoy312 merged commit b97b455 into master Aug 4, 2026
52 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20260804/disable-flaky-webview2-localfolder-skia-uikit branch August 4, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants