Skip to content

[ci-scan-net11] Fix for Windows DragEvents UI test times out waiting for DragOver - #38095

Merged
kubaflo merged 1 commit into
dotnet:net11.0from
TamilarasanSF4853:flaky-fix-37561
Sep 2, 2026
Merged

kubaflo merged 1 commit into
dotnet:net11.0from
TamilarasanSF4853:flaky-fix-37561

Conversation

@TamilarasanSF4853

Copy link
Copy Markdown
Contributor

This PR addresses flaky UI test failures in CI and includes updates to improve rendering and test stability across platforms. The main changes are as follows:

DragEvents: The test fails because the drag-and-drop operation sometimes stops midway, causing the assertion validations to fail. Therefore, a retry was added to ensure that the drag-and-drop operation completes successfully.

Fixes: #37561

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38095

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38095"

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Sep 2, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@TamilarasanSF4853! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 2, 2026
@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.

@sheiksyedm
sheiksyedm marked this pull request as ready for review September 2, 2026 06:40
Copilot AI lite review requested due to automatic review settings September 2, 2026 06:40
@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.

@sheiksyedm

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests

@azure-pipelines

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

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.

🟡 Changes recommended

The added [Retry(4)] is unlikely to be effective as-is because retries re-run without resetting/navigating back to the gallery start state, so subsequent attempts may fail earlier without re-exercising the drag scenario.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR targets flakiness in the Controls UI test suite by attempting to mitigate intermittent failures in the DragEvents UI test (notably seen on Windows CI) via NUnit retry behavior.

Changes:

  • Adds a [Retry(4)] attribute to the DragEvents UI test to re-run the test on failure.
File summaries
File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/DragAndDropUITests.cs Adds NUnit retry metadata to the DragEvents test to reduce intermittent failures.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment on lines 25 to 27
[Test]
[Retry(4)]
[Category(UITestCategories.Gestures)]
@kubaflo
kubaflo merged commit e3d9e51 into dotnet:net11.0 Sep 2, 2026
132 of 143 checks passed
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Sep 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 9a59627c Deployed Sep 2, 2026 by TamilarasanSF4853 via conclusion #1684
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-gestures Gesture types community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows testing-flakiness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants