Skip to content

[Testing] Fix for flaky UITests Issue18896 and disable Issue14471 test which fails in CI randomly #28533

Merged
rmarinho merged 3 commits intomainfrom
unknown repository
Mar 21, 2025
Merged

[Testing] Fix for flaky UITests Issue18896 and disable Issue14471 test which fails in CI randomly #28533
rmarinho merged 3 commits intomainfrom
unknown repository

Conversation

@HarishKumarSF4517
Copy link
Copy Markdown
Contributor

@HarishKumarSF4517 HarishKumarSF4517 commented Mar 20, 2025

This pull request includes several updates to the test cases in the src/Controls/tests/TestCases.Shared.Tests/Tests/Issues directory. The changes mainly focus on adding internet connectivity checks and conditional compilation for specific platforms.

Test Case Updates:

Platform-Specific Conditional Compilation:

TestCases

  • Issue18896
  • Issue14471

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Mar 20, 2025
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Hey there @HarishKumarSF4517! 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 Mar 20, 2025
@ghost ghost added the area-testing Unit tests, device tests label Mar 20, 2025
@HarishKumarSF4517 HarishKumarSF4517 marked this pull request as ready for review March 20, 2025 12:44
Copilot AI review requested due to automatic review settings March 20, 2025 12:44
@HarishKumarSF4517 HarishKumarSF4517 requested a review from a team as a code owner March 20, 2025 12:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 addresses the flaky UITests in CI by adding an internet connectivity check for Issue18896 and conditionally disabling Issue14471 on Android.

  • Updated Issue18896 by adding an isInternetRequired parameter and a VerifyInternetConnectivity() call.
  • Disabled the Android test in Issue14471 using a conditional compilation directive.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue14471.cs Added conditional compilation to disable the test on Android.
src/Controls/tests/TestCases.HostApp/Issues/Issue18896.xaml.cs Updated the Issue attribute to require internet connectivity.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18896.cs Inserted a VerifyInternetConnectivity() call in the test method.

@ghost ghost requested a review from jsuarezruiz March 20, 2025 12:44
@HarishKumarSF4517 HarishKumarSF4517 changed the title [Testing] Fix for flaky UITests in CI that occasionally fail - 6 [Testing] Fix for flaky UITests Issue18896 and disable Issue14471 test which fails in CI randomly Mar 20, 2025
@rmarinho
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho
Copy link
Copy Markdown
Member

/backport to inflight/current

@github-actions
Copy link
Copy Markdown
Contributor

Started backporting to inflight/current: https://github.com/dotnet/maui/actions/runs/13972051653

@rmarinho
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@@ -1,4 +1,5 @@
using NUnit.Framework;
#if TEST_FAILS_ON_ANDROID // This test fails randomly, likely because the image source has disappeared sometimes in CI, not able to reproduce locally. For now, we have ignored the test for Android. Issue for re-enabling: https://github.com/dotnet/maui/issues/24243
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.

Did you run it using the same Api Level? We run tests in two difference API levels and sometimes, something fails from a specific version.

@github-project-automation github-project-automation bot moved this from Todo to Changes Requested in MAUI SDK Ongoing Mar 20, 2025
@rmarinho rmarinho requested a review from jsuarezruiz March 20, 2025 19:16
rmarinho
rmarinho previously approved these changes Mar 20, 2025
@jsuarezruiz jsuarezruiz changed the base branch from main to inflight/current March 21, 2025 07:55
@jsuarezruiz jsuarezruiz changed the base branch from inflight/current to main March 21, 2025 07:56
@jsuarezruiz jsuarezruiz dismissed rmarinho’s stale review March 21, 2025 07:56

The base branch was changed.

@rmarinho rmarinho merged commit ad5f635 into dotnet:main Mar 21, 2025
131 checks passed
@github-project-automation github-project-automation bot moved this from Changes Requested to Done in MAUI SDK Ongoing Mar 21, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants