Repository navigation
[ci-fix-net11] Needs review: synchronize RefreshView footer taps (refs #37560) - #37578
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
There was a problem hiding this comment.
Threat detection produced a warning for this pull request output.
These changes need to be scrutinized before merge and only merged after a careful manual review.
- Detection reason:
threat_detected - Review workflow run logs: https://github.com/dotnet/maui/actions/runs/32137202915
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
kubaflo
marked this pull request as ready for review
August 18, 2026 18:44
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
approved these changes
Aug 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to de-flake the Issue24533 UI test by synchronizing interactions with the RefreshView/CollectionView footer, addressing intermittent NullReferenceException failures when the footer element is recreated during refresh.
Changes:
- Replaced direct
WaitForElement("Footer")+Tap("Footer")calls with aTapFooter()helper to centralize “wait then tap” behavior. - Added a
TapFooter()helper method and updated the test to use it before each footer tap.
Comment on lines
+36
to
+40
| void TapFooter() | ||
| { | ||
| App.WaitForElement("Footer"); | ||
| App.Tap("Footer"); | ||
| } |
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.
Caution
agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.
Details
Potential security threats were detected in the agent output.
Review the workflow run logs for details.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Workflow artifact: ci-fix
Artifact kind: help
Refs: #37560
Target branch: net11.0
Attempt: 1/10
Attempt 1 of 10
Wait for the RefreshView footer to be present before every tap in
Issue24533.Previous attempts (prior commits on this PR)
None; this is the first attempt.
This attempt differs by: introducing a synchronization point before each footer interaction without changing the behavior under test.
Root cause
Build 1554813 throws
NullReferenceExceptionfromHelperExtensions.TapatIssue24533.cs:26.ScrollToonly dispatches a scroll command, whileTap(string)immediately dereferencesFindElement; refreshing the CollectionView can recreate the footer between those operations.Flake class: test-quality
Why this was flaky
The test waits for
Footeronly once, then repeatedly scrolls, refreshes the CollectionView, and taps without re-establishing element readiness. The signature appeared in some but not all recentmaui-pr-uitestsbuilds.De-flake
A
TapFooterhelper now callsWaitForElementbefore every tap. Assertions are unchanged, no timeout was increased, and no retry attribute was added.Fix
Keep every interaction synchronized with the current footer element after CollectionView updates.
What is unverified / where I need help
Validation
not run because the failing scenario requires an iOS UI-test device rigEvidence
Filed by
ci-status-fix-net11. This is the single PR for #37560: the workflow watches its own CI and pushes up to 10 attempts on this same PR (it never opens a second PR). It advances only when the fix's own build settles red and that red is caused by the fix. Comments, reviews, and commits do not transfer ownership; the loop remains autonomous until this PR is closed. EligibleCHANGES_REQUESTEDreviews are handled through Track C. After 10 attempts it stops and defers to humans. In round 1 a maintainer still needs to comment/azp run maui-pr(plus the gated uitests/devicetests legs when relevant) to exercise each new commit.