Repository navigation
Use CollectionView2 for test GroupedCollectionViewRemovalsUseCurrentAdapterPositions - #38598
Merged
Merged
Conversation
Vignesh-SF3580
temporarily deployed
to
copilot-pat-pool
September 16, 2026 13:27 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38598Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38598" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
Vignesh-SF3580
temporarily deployed
to
copilot-pat-pool
September 16, 2026 13:27 — with
GitHub Actions
Inactive
Vignesh-SF3580
temporarily deployed
to
copilot-pat-pool
September 16, 2026 13:29 — with
GitHub Actions
Inactive
Vignesh-SF3580
temporarily deployed
to
copilot-pat-pool
September 16, 2026 13:31 — with
GitHub Actions
Inactive
Vignesh-SF3580
temporarily deployed
to
copilot-pat-pool
September 16, 2026 13:31 — with
GitHub Actions
Inactive
Vignesh-SF3580
temporarily deployed
to
copilot-pat-pool
September 16, 2026 13:32 — with
GitHub Actions
Inactive
kubaflo
approved these changes
Sep 16, 2026
kubaflo
marked this pull request as ready for review
September 16, 2026 17:10
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🔵 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
CollectionViewwithCollectionView2. - 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
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.