Skip to content

test: Document HotReload When_HotReload_Succeeds CI-flake diagnosis (#23529) - #23531

Closed
nickrandolph wants to merge 2 commits into
masterfrom
test/hotreload-flaky-diagnosis
Closed

nickrandolph wants to merge 2 commits into
masterfrom
test/hotreload-flaky-diagnosis

Conversation

@nickrandolph

Copy link
Copy Markdown
Contributor

GitHub Issue: #23529 (diagnostic breadcrumb — intentionally does not close it; the underlying flake remains for DevServer/HotReload follow-up. Umbrella: #9080)

PR Type:

📚 Documentation content changes (in-test diagnostic comment; no behaviour change)

What changed? 🚀

Adds a comment above Given_HotReloadResilience.When_HotReload_Succeeds_Then_ReloadCompleted_ReportsSuccess
recording the CI-flake diagnosis. No code/behaviour change — the test still runs everywhere with its
assertions untouched.

Why this is the right (interim) action

Symptom: Given_HotReloadWorkspace.When_HotReloadScenario fails ~12/15 recent master builds on
Windows Skia; the failing inner sub-test asserts "tb1 should exist".

Diagnosis (documented at the test + in #23529):

  • Passes 8/8 locally (Skia Desktop, after building the DevServer Host + HRApp) → it does not
    reproduce in a healthy/unloaded environment ⇒ a CI load/timing flake.
  • Not a timing race: polling for the element before asserting did not help (CI build 219526 —
    same tb1 failure), so adding waits is not the fix.
  • The asserted element (tb1, Hello→World) is not in HR_Frame_Pages_Page1's static XAML — it
    depends entirely on the hot-reload pipeline producing it; under CI load page.FindName("tb1") does
    not resolve the reloaded element.

Why only a breadcrumb here: the real fix lives in the DevServer/HotReload reload pipeline
(namescope/instance resolution of reloaded content under load), which cannot be reproduced or validated
from a normal dev environment and is outside the scope of a test change. Per the debugging-discipline
rules (reproduce-first, validate-at-runtime, no blind patching), this PR records the precise diagnosis
for the owning subsystem rather than guessing at an unvalidatable fix. #23529 stays open for that fix.

PR Checklist ✅

Add an in-test diagnostic breadcrumb for the flaky When_HotReload_Succeeds CI
failure: passes locally 8/8, ~12/15 Windows-Skia CI builds fail with 'tb1 should
exist'; not a timing race (polling did not help, build 219526); the element is
not in Page1 static XAML so it depends on the HR reload pipeline. Points to
#23529 (and umbrella #9080) for DevServer/HotReload follow-up. Comment-only; does
not change behaviour and does not fix the underlying flake.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 24, 2026 07:35
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Nick Randolph seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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 adds an in-test diagnostic comment documenting a CI-only flake affecting HotReload runtime tests (Skia/Windows), intended as a breadcrumb for follow-up work in the DevServer/HotReload pipeline.

Changes:

  • Added a CI-flake diagnosis comment above When_HotReload_Succeeds_Then_ReloadCompleted_ReportsSuccess.

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

…[TestMethod] (review)

Per Copilot: a // comment between the /// <summary> doc and the method breaks the
XML-doc association. Place the diagnostic comment after [TestMethod] instead.
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 219568 has failed on Uno.UI - CI.

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