Skip to content

[Testing] Moved ImageDoesNotLeak test case from Device Test to UI Test #28223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

HarishKumarSF4517
Copy link
Contributor

@HarishKumarSF4517 HarishKumarSF4517 commented Mar 6, 2025

This pull request aims to relocate the memory leak tests for the Image control from device tests to UI tests, as they have been failing intermittently in the device tests. Additionally, unnecessary internet checks have been removed from these test cases, since the web view only loads simple HTML code that does not require an internet connection.

Memory Leak Tests Update:

Test Case Modifications:

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Mar 6, 2025
Copy link
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 6, 2025
@anandhan-rajagopal anandhan-rajagopal added the area-testing Unit tests, device tests label Mar 6, 2025
@HarishKumarSF4517 HarishKumarSF4517 marked this pull request as ready for review March 6, 2025 15:15
@Copilot Copilot AI review requested due to automatic review settings March 6, 2025 15:15
@HarishKumarSF4517 HarishKumarSF4517 requested a review from a team as a code owner March 6, 2025 15:15
Copy link
Contributor

@Copilot 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.

PR Overview

This PR moves the Image memory leak test from the device tests to the UI tests to address intermittent failures. Key changes include:

  • Removal of the Image memory leak test from the device tests.
  • Addition of an Image test case in the MemoryTests switch statement in the HostApp.
  • Inclusion of a new ImageDoesNotLeak test method in the Shared tests, and removal of unnecessary internet connectivity checks.

Reviewed Changes

File Description
src/Controls/tests/TestCases.HostApp/Issues/MemoryTests.cs Removed the isInternetRequired parameter and added the Image case to the RunMemoryTest switch.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/MemoryTests.cs Removed VerifyInternetConnectivity calls and added the ImageDoesNotLeak test method.
src/Controls/tests/DeviceTests/Elements/Image/ImageTests.cs Removed the legacy DoesNotLeak test for Image.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/Controls/tests/TestCases.HostApp/Issues/MemoryTests.cs:75

  • Consider adding a comment in the default branch to indicate that no memory test is defined for unhandled data types, clarifying the intended control flow.
default:

@jsuarezruiz
Copy link
Contributor

/azp run

@jsuarezruiz jsuarezruiz self-assigned this Mar 6, 2025
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho rmarinho merged commit 995d571 into dotnet:main Mar 13, 2025
126 of 128 checks passed
rmarinho added a commit that referenced this pull request Mar 17, 2025
* [Testing] Moved ImageDoesNotLeak test case from Device Test to UI Test (#28223)

* Enable ImageLeakTest from Device to UI Test

* Update MemoryTests.cs

* Update MemoryTests.cs

* Update GarbageCollectionHelper.cs

* [ci] Update arcade and xharness

* Update bug-report.yml (#28394)

* Update bug-report.yml

* Update bug-report.yml

* [ci] Cleanup the provisionator Xcode script (#28395)

* Upgrade from 1.6.5 to 1.6.6 (#28338)

* [testing] Disable CheckEntitlementsForMauiBlazorOnMacCatalyst (#28407)

* Made sudo optional for linux jdk provisioning (#28195)

When used in some scenarios (eg: Dockerfile), sudo isn't desirable, so this provides a way to optionally remove it from the invocation.

---------

Co-authored-by: HarishKumarSF4517 <harish.kumar@syncfusion.com>
Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants