You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HR runtime tests: a failed revert leaves the source file edited #3244
area/buildCategorizes an issue or PR as relevant to build infrastructurekind/maintainer-experienceCategorizes issue or PR as related to improving the experience of maintainers
When a hot-reload runtime test fails partway through, its source edit can stay applied. HotReloadHelper.UpdateSourceFile returns an IAsyncDisposable that reverts the edit, and the revert itself goes through the DevServer. If the DevServer or app is in a bad state, the revert silently doesn't land.
Observed after running Given_TabBar_HotReload on an Android emulator: src/Uno.Extensions.Navigation.UI.Tests/Pages/HotReloadTabBarXamlPage.xaml still had a duplicated TabBarItem.
Impact
Later tests start from modified source, so one failure causes others (Expected value to be 2, but found 3 in a later TabBar run).
Locally, the working tree is left dirty, and the change is easy to commit by accident.
CI checks out clean sources each run, so this only cascades within a run.
Work
Make reverts verifiable: after disposing, check that the file content matches the original and fail loudly if not. Possibly restore the file directly from disk as a fallback (engine HotReloadHelper or a repo-side wrapper).
Consider restoring all HotReload* source files at class cleanup.
area/buildCategorizes an issue or PR as relevant to build infrastructurekind/maintainer-experienceCategorizes issue or PR as related to improving the experience of maintainers
Activity