Repository navigation
[Flaky] Fixed the Issue34975 flaky issue - #37805
Merged
Merged
Conversation
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
August 25, 2026 13:02 — with
GitHub Actions
Inactive
Contributor
|
π Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37805Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37805" |
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
August 25, 2026 13:02 — with
GitHub Actions
Inactive
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
August 25, 2026 13:03 — with
GitHub Actions
Inactive
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
August 25, 2026 13:05 — with
GitHub Actions
Inactive
Contributor
|
/azp run maui-pr-uitests |
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
August 25, 2026 13:07 — with
GitHub Actions
Inactive
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
August 25, 2026 13:07 — with
GitHub Actions
Inactive
sheiksyedm
marked this pull request as ready for review
August 26, 2026 07:50
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a flaky MAUI UI test (Issue34975) by waiting for the in-app garbage-collection/memory-check flow to complete before asserting the final βStill alive: 0β result, avoiding a race where the label can still read βChecking...β.
Changes:
- Updated the Issue34975 UI test to wait for
StatusLabelto contain βStill alive:β before asserting the final expected value. - Added an explicit assertion to fail early if the memory-check completion text never appears.
Comment on lines
+23
to
+25
| // GarbageCollectionHelper.WaitForGC runs for up to 5 seconds inside the app. | ||
| var memoryCheckCompleted = App.WaitForTextToBePresentInElement("StatusLabel", "Still alive:"); | ||
| Assert.That(memoryCheckCompleted, Is.True, "Memory check did not complete within the expected time."); |
This was referenced Aug 26, 2026
kubaflo
approved these changes
Aug 27, 2026
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Issue
The test read StatusLabel immediately after tapping Check Memory. The in-app
GarbageCollectionHelper.WaitForGCoperation can take up to five seconds, during which the label displays "Checking...". This race condition caused the test to fail before the memory check completed, even when no memory leak existed.Build link : https://dev.azure.com/dnceng-public/public/_build/results?buildId=1565488&view=ms.vss-test-web.build-test-results-tab&runId=43115338&resultId=100235&paneView=debug
Description of Change
Updated the UI test to wait until StatusLabel contains "Still alive:", indicating that the garbage-collection check has completed, before asserting the final result. The wait uses the helperβs default 15-second timeout, which is sufficient for the five-second operation. The test then verifies that the final text is "Still alive: 0".
Issues Fixed
Fixes #36418