Repository navigation
[Ci] Windows Cv1 lane Shared setup - #40168
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40168Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40168" |
This comment has been minimized.
This comment has been minimized.
### Description of Change `Shell.FlyoutBackgroundColor` set from a `Style`, implicit or explicit, was ignored. Only a value set directly on the `Shell` worked, and `FlyoutBackground` worked from a `Style`. **Root cause** The `Shell` constructor binds `FlyoutBackgroundColor` to an `AppThemeBinding` for the default white/black colors. It uses the public `SetBinding`, which applies the binding with `SetterSpecificity.FromBinding`, and a binding outranks every `Style` setter; only a value set directly on the element is higher. So the default always won over a `Style`. **Fix** The default binding is applied with the lowest specificity, `new SetterSpecificity()`, through the same internal overload `Setter` uses for bindings in styles. A `Style` setter or a value set directly on the `Shell` now wins over it, and when nothing else sets the property the theme colors still apply, including when the theme changes. The Material 3 path on Android, which doesn't create this binding, is unchanged. **Tests** In `AppThemeTests`: - `StyleSetsShellFlyoutBackgroundColor`: an implicit `Shell` style sets the color, and it stays after a theme change. - `ShellFlyoutBackgroundColorFollowsTheThemeWithoutAStyle`: without a style the default is still white in light and black in dark. | | Without fix | With fix | |---|---|---| | `main` (4c74701) | First test fails: White instead of Red | Both pass; Controls.Core.UnitTests 6735 passed | ### Issues Fixed Fixes dotnet#9736 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Reuse the seven existing CollectionView category shards for Windows CV1 to avoid running the full suite in a single job. Preserve the legacy handler configuration. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
6f298dd to
e9a8853
Compare
This reverts commit c14cab3 to keep the Windows CV1 PR scoped to its pipeline change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/rebase |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR Test Gate
🧪 Gate analysis — click to expand⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect. No interpretable test-group summary was produced. No additional test execution is inferred. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit c20b2df.
This comment has been minimized.
This comment has been minimized.
PR Test Gate
🧪 Gate analysis — click to expand⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect. No interpretable test-group summary was produced. No additional test execution is inferred. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit c20b2df.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the Windows CV1 CollectionView matrix and per-category filtering changes.
No open issues 🎉
What changed in this PR
This PR updates the Windows CV1 UI test lane to run CollectionView category groups as separate matrix jobs while retaining the legacy handler configuration.
Changes:
- Creates matrix entries for configured category groups whose names start with
CollectionView. - Uses each job’s
CATEGORYGROUPas its test filter instead of the broadCollectionViewfilter.
| File | Description |
|---|---|
eng/pipelines/common/ui-tests.yml |
Adds category-based matrix execution and per-group filtering to the Windows CV1 test lane. |
Review effort: Balanced
### Description of Change This pull request introduces improvements that the Windows UI test pipeline to run CollectionView tests in a more flexible and granular way. **Windows UI Test Pipeline Improvements:** - Updated the UI test pipeline to run CollectionView tests with `UseWindowsCollectionView2Handler=false` for each category group, using a matrix strategy to enable more granular test execution (`ui-tests.yml`). - Changed the test filter in the pipeline to use the current `CATEGORYGROUP` from the matrix, allowing each job to target a specific test group (`ui-tests.yml`). --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
### Description of Change This pull request introduces improvements that the Windows UI test pipeline to run CollectionView tests in a more flexible and granular way. **Windows UI Test Pipeline Improvements:** - Updated the UI test pipeline to run CollectionView tests with `UseWindowsCollectionView2Handler=false` for each category group, using a matrix strategy to enable more granular test execution (`ui-tests.yml`). - Changed the test filter in the pipeline to use the current `CATEGORYGROUP` from the matrix, allowing each job to target a specific test group (`ui-tests.yml`). --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Description of Change
This pull request introduces improvements that the Windows UI test pipeline to run CollectionView tests in a more flexible and granular way.
Windows UI Test Pipeline Improvements:
UseWindowsCollectionView2Handler=falsefor each category group, using a matrix strategy to enable more granular test execution (ui-tests.yml).CATEGORYGROUPfrom the matrix, allowing each job to target a specific test group (ui-tests.yml).