Skip to content

Use CollectionView2 for test GroupedCollectionViewRemovalsUseCurrentAdapterPositions - #38598

Merged
kubaflo merged 1 commit into
dotnet:mainfrom
Vignesh-SF3580:fix-testFailure38321
Sep 16, 2026
Merged

kubaflo merged 1 commit into
dotnet:mainfrom
Vignesh-SF3580:fix-testFailure38321

Conversation

@Vignesh-SF3580

Copy link
Copy Markdown
Contributor

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!

Issue Details

The GroupedCollectionViewRemovalsUseCurrentAdapterPositions test is failing on iOS when running with CollectionView1 (CV1). The test was checked locally, and the crash can be reproduced with CV1. The same test scenario works properly with CollectionView2 (CV2). The PR changes are related to Android, while this test failure occurs only with iOS CV1.

This test was added in #38486

Root Cause

The test scenario causes an existing crash with CollectionView1 (CV1) on iOS. During the investigation, it was also found that the GroupFooterTemplate used in the sample contributes to the CV1 crash. The same scenario works correctly with CV2. The same behavior was reproduced with MAUI 10.0.0 without the PR changes, confirming that the failure is not related to this PR.

Description of Change

Updated the test to run only with CollectionView2 (CV2). This avoids the existing CV1-specific failure on iOS while continuing to validate the intended grouped CollectionView item removal scenario.

@github-actions

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 -- 38598

Or

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

@Vignesh-SF3580 Vignesh-SF3580 added the community ✨ Community Contribution label Sep 16, 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.

@vishnumenon2684 vishnumenon2684 added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 16, 2026
@Vignesh-SF3580 Vignesh-SF3580 changed the title Use CollectionView2 for GroupedCollectionViewRemovalsUseCurrentAdapte… Use CollectionView2 for test GroupedCollectionViewRemovalsUseCurrentAdapterPositions Sep 16, 2026
@kubaflo
kubaflo marked this pull request as ready for review September 16, 2026 17:10
Copilot AI lite review requested due to automatic review settings September 16, 2026 17:10
@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 e9b9a5f into dotnet:main Sep 16, 2026
29 of 39 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 16, 2026

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.

🔵 Needs a closer look

Final human review is recommended before approval.

Pull request overview

Updates the grouped CollectionView removal test to use CollectionView2, avoiding the known iOS CollectionView1 crash.

Changes:

  • Replaced CollectionView with CollectionView2.
  • Preserved the grouped layout and removal scenario.
File summaries
File Changes
src/Controls/tests/TestCases.HostApp/Issues/Issue38321.cs Uses the CollectionView2 test control.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 17, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 14c83031 Deployed Sep 16, 2026 by Vignesh-SF3580 via conclusion #1926
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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