Skip to content

[ci-fix-net11] Needs review: synchronize RefreshView footer taps (refs #37560) - #37578

Merged
kubaflo merged 1 commit into
net11.0from
ci-fix/issue-37560-17cd19f684a56b4a
Aug 18, 2026
Merged

kubaflo merged 1 commit into
net11.0from
ci-fix/issue-37560-17cd19f684a56b4a

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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 NullReferenceException from HelperExtensions.Tap at Issue24533.cs:26. ScrollTo only dispatches a scroll command, while Tap(string) immediately dereferences FindElement; refreshing the CollectionView can recreate the footer between those operations.

Flake class: test-quality

Why this was flaky

The test waits for Footer only once, then repeatedly scrolls, refreshes the CollectionView, and taps without re-establishing element readiness. The signature appeared in some but not all recent maui-pr-uitests builds.

De-flake

A TapFooter helper now calls WaitForElement before 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

  • Device UI validation was not run because this runner has no iOS device rig.
  • Please confirm the test passes repeatedly on the iOS UI-test leg.

Validation

  • Command: not run because the failing scenario requires an iOS UI-test device rig
  • Result: not run

Evidence


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. Eligible CHANGES_REQUESTED reviews 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.

Generated by CI Failure Fixer (net11.0) · gpt56 · 272.5 AIC · ⌖ 82.9 AIC · ⊞ 31K · ◷

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo

kubaflo commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@kubaflo
kubaflo marked this pull request as ready for review August 18, 2026 18:44
Copilot AI lite review requested due to automatic review settings August 18, 2026 18:44
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo merged commit ee4d06c into net11.0 Aug 18, 2026
121 of 144 checks passed
@kubaflo
kubaflo deleted the ci-fix/issue-37560-17cd19f684a56b4a branch August 18, 2026 18:45

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 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 a TapFooter() 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");
}
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Aug 18, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants