Repository navigation
Fix ARGB value for MediumPurple color - #39077
Conversation
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Summary - enables `mono/SkiaSharp` and `mono/SkiaSharp.Extended` as non-workload sources in the official NuGet release pipeline - resolves SkiaSharp builds through the same Darc repository-and-commit path used by existing release sources - verifies the returned BAR repository and exact commit before gathering assets - documents the preparation-only dry-run inputs for SkiaSharp releases SkiaSharp is registered with Maestro through a manual-frequency subscription, so this does not create automatic MAUI dependency updates. SkiaSharp.Extended can use the same consumer path once its selected commit is registered in BAR. ## Safety - `pushPackages: false` performs BAR resolution, gathering, validation, NuGet.org filtering, and audit artifact creation without creating a production publish stage - real non-workload publishing remains blocked by `ManualValidation` before the protected NuGet service connection is used - package identities are filtered against NuGet.org both during preparation and immediately before publishing - repository, commit, package identity, duplicate, malformed-package, and workload-manifest checks remain fail-closed ## Validation - 26 Pester tests passed across the official release pipeline and package-status helper - pipeline YAML and both inline PowerShell scripts parsed successfully - feature-branch preparation run resolved SkiaSharp BAR 333234 and staged all 40 selected packages at versions `4.150.4` and `14.2.1.4`, with no missing or duplicate identities - a gated feature-branch production-shape run prepared the same 40/40 audit set and reached the manual approval boundary before the publish job --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…otnet#37674) <!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Detail On Mac Catalyst, VoiceOver announces selectable task items in a CollectionView only by name, without an actionable role. Although users can activate the item with Control + Option + Space, they are not informed that it is interactive. VoiceOver should announce an appropriate role, such as “button,” for selectable items. ### Root Cause - On iOS/MacCatalyst, VoiceOver announced only a CollectionView item's text and did not announce its role/interactivity (for example, "Button"), even when SelectionMode made the item selectable. - UpdateAccessibilityTraits unconditionally applied UIAccessibilityTrait.Button to the cell's first templated child view. When that child was a non-accessible container, such as a Grid or Border wrapping a Label, the trait was applied to a view that VoiceOver did not use as the accessibility element. - The nested descendant that was actually exposed to VoiceOver (IsAccessibilityElement == true) never received the trait, so VoiceOver announced only the item's text without indicating that it was selectable/interactable. ### Description of Change - The fix changes the trait assignment to recursively search the first templated child’s view hierarchy for the first view with IsAccessibilityElement == true. The UIAccessibilityTrait.Button trait is then applied directly to that accessibility element. - The search intentionally does not descend into UIControl subtrees. This preserves the native accessibility roles of controls such as UIButton, UITextField, and UISwitch, rather than overriding their existing accessibility behavior. - For selectable items, the button trait is added to the discovered accessibility element. When SelectionMode.None is used, the trait is removed. - This ensures that the trait is applied to the same native view that VoiceOver uses as the accessibility target. Consequently, VoiceOver correctly announces both the item's content and its interactive role, for example, “Survey Employees, Button.” ### Validated the behaviour in the following platforms - [ ] Android - [ ] Windows - [ ] iOS - [x] Mac ### Issues Fixed: Fixes dotnet#37140 ### Screenshots | Before | After | |---------|--------| | <video src="https://github.com/user-attachments/assets/9b00bcc3-bb31-49f6-9f97-1fd0f3891d5a"> | <video src="https://github.com/user-attachments/assets/93426da3-564b-46dd-b5f8-60adfedb195d"> |
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Scope Remove **only** the old `/review rerun` machinery: the hourly scanner and its compiled workflow, rerun eligibility/query/dispatch scripts, obsolete rerun tests, and rerun queue label handling/documentation. The command was already rejected by the manual trigger; keep those rejection guards so it cannot accidentally start a normal review. **Preserved:** manual `/review` with platform/branch options and `workflow_dispatch`, missed-command recovery, `eng/pipelines/ci-copilot.yml`, the full review orchestrator and reporting/label helpers, `/review tests`, standalone review skills, and the unrelated daily `pr-review-queue.yml` report. Recovery previously imported parsing/date/permission helpers from the rerun eligibility script. Move only its seven required functions into `shared/ReviewCommandHelpers.ps1`, without changing their executable implementations, and relocate their existing tests into the recovery suite. The only change to `Review-PR.ps1` replaces obsolete `/review rerun` retry advice with `/review`. This is a fresh branch from `main`, not a reuse of the broad removal in closed, unmerged dotnet#39027. ## Validation - 258 existing local checks passed across manual trigger, recovery (including relocated helper checks), labels, `/review tests`, and AI Summary reporting. - Including the broader local `Review-PR.Tests.ps1` suite: 344 passed, one pre-existing model assertion failed. - Actual [PowerShell Script Tests CI run](https://github.com/dotnet/maui/actions/runs/36753179656): **2,201 passed, 2 failed**. Both failures expect `$model = "gpt-5.6-sol"`, while `Review-Tests.ps1` already uses `gpt-6-astra` on the base commit. They are `CopilotPipeline.Tests.ps1:70` and `Review-PR.Tests.ps1:328`; both test files and `Review-Tests.ps1` are byte-for-byte unchanged from `main` at this branch's base. These unrelated baseline failures are deliberately not fixed here. - PowerShell parsing passed; token comparison confirmed all seven extracted function implementations match `main`. - `actionlint` reports only the existing empty platform-choice warning, reproduced on `main`; with that warning excluded, the manual trigger, recovery, and daily report validate. - `git diff --check` passed; no remaining rerun machinery/queue references, apart from intentional command rejection and negative assertions. No new pipeline/YAML tests were added. The scanner source and generated lock are deleted together; no surviving gh-aw workflow needs recompilation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…w items" (dotnet#39010) Reverts dotnet#37674 It was supposed to be merged to inflight/current not main
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Summary - Preserve workspace-owner read access when the isolated evaluator atomically replaces `packed-refs`. - Exercise repeated evaluator pack-ref replacements followed by owner-side Git reads and restores. - Keep the existing copied-workspace, configuration, worktree, and runtime-state behavior unchanged. ## Validation - `TestPrepareVallyEvaluation.rb`: 90 runs, 650 assertions - `TestSkillWorkflowModes.rb`: 17 runs, 185 assertions - Mandatory trusted-ref validation: 8 required paths and 9 skill test directories - Strict Vally 0.14.0 lint: 17 specs - `bash -n`, focused `shellcheck`, actionlint parsing, and `git diff --check` - Linux container self-check under non-root runner ownership, covering repeated replacement/read/restore cycles and prior runtime invariants - `cgmanifest.json` and `templatestrings.json` unchanged --------- Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com>
…tnet#38324) <!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Adds a **maintainer-triggered GitHub Agentic Workflow (gh-aw) for `/review performance`**. The command runs selected managed benchmarks against pinned merge-base/head revisions, asks GPT to interpret the evidence and coverage gaps, and publishes one independently rendered and validated performance report. It follows the `/review tests` command entrypoint and dotnet#38807's separation between untrusted execution and credentialed reporting. **The PR is now scoped to this hosted workflow and its required managed benchmarking/reporting dependencies.** ### Hosted-only scope Reduced from 63 changed files to **24**, all under `.github/`. There are no remaining changes to framework source, device tests/runners, `eng/`, or `docs/`. Retained: the workflow source/compiled lock, trusted orchestration, managed selector/ABBA runner/comparator, trusted managed benchmark overlays, coverage catalogs, GPT interpretation skill, deterministic decision/renderer/validator, focused managed/report checks, and command documentation/routing. Removed: native-device infrastructure and drivers, the local `check-pr-performance` skill, native request/evidence ingestion, the history writer, duplicate benchmark sources under `src/`, and their dedicated tests/documentation. **This PR no longer depends on dotnet#38274.** The platform catalog only describes coverage gaps; it does not execute native scenarios or promise an available device driver. Merged `main` without rewriting history. Preserved its removal of legacy rerun automation and moved the performance-command exclusion into the new shared recovery helper. ### New GitHub Agentic Workflow - **Source:** `.github/workflows/copilot-review-performance.md`. - **Compiled workflow:** `.github/workflows/copilot-review-performance.lock.yml`, generated with gh-aw **v0.86.2**. - **Trusted orchestrator:** `.github/scripts/Review-Performance.ps1` (`Gather`, `Measure`, `Prepare`, `Render`). - **Interpretation skill/model:** `perf-analysis`, using **`gpt-5.6-sol`**. A current write/maintain/admin collaborator requests a review with a newly created comment on an open PR: ```text /review performance ``` Only this exact subcommand activates the performance workflow. Other subcommands, unauthorized comments, issues, closed PRs, and changes without product files do not start measurements. The full `/review` trigger and missed-command recovery explicitly exclude `/review performance`. 1. **Trusted intake:** executes from the default branch, pins PR merge-base/head and harness SHAs, and selects coverage without executing PR code. 2. **Isolated measurements:** a disposable GitHub-hosted Linux job runs managed BenchmarkDotNet benchmarks in ABBA order. Base/head use separate unprivileged users and an explicit child-environment allowlist. No Copilot PAT or posting token reaches benchmark builds/runs. 3. **Independent evidence and GPT interpretation:** a fresh job imports bounded structured evidence and computes the decision baseline. GPT reads that bundle and the pinned diff and supplies narrative only, with no authority to execute more measurements or select another publication target. 4. **Validated gh-aw publication:** a separate safe-output job downloads independent evidence, recomputes the decision, renders and validates the report, and rechecks caller permission plus live PR base/head identities before publishing. Older performance reports are hidden. Automation failures produce a run link, not a fabricated performance verdict. Production uses the existing **`copilot-pat-pool` environment** for GPT credentials and the repository's GitHub Actions token for scoped publication. There is no new Azure pipeline, service connection, device queue, or scheduled recovery. ### Manual dispatch and retries After deployment to the default branch: ```bash # Measure, interpret, render, and validate without posting. gh workflow run copilot-review-performance.lock.yml \ --repo dotnet/maui --ref main \ -f pr_number=32382 -f suppress_output=true # Run the same workflow and publish the validated report. gh workflow run copilot-review-performance.lock.yml \ --repo dotnet/maui --ref main \ -f pr_number=32382 -f suppress_output=false ``` `pr_number` must identify an open PR. Dry-run mode suppresses publication, not measurements, GPT interpretation, or report validation. Context, structured evidence, reports, and separate SDK-install/build/benchmark diagnostics are retained for seven days. Diagnostic logs are not admitted as measurement evidence. **Retry with a fresh dispatch or a new command, not Re-run failed jobs.** Repeated attempts can leave same-named gh-aw agent artifacts in one run, allowing a downstream job to select an earlier attempt's empty output. The decision resolver recommends a managed retry only for missing/incomplete execution or benchmark data; repeating completed unchanged filters cannot fill excluded benchmark-input or native coverage gaps. ### Evidence policy | Evidence | Treatment | |---|---| | Managed allocations | Repeated non-overlapping ranges; default materiality thresholds of 8 bytes and 0.5% | | Shared-host timing | Advisory; requires non-overlapping ranges and at least 15% median movement | | Sampled benchmark families | Supplemental evidence, not proof the changed path executed | | Native paths | Explicit unmeasured coverage gaps; no native execution or local evidence admission | | Missing/incompatible evidence | Incomplete or inconclusive, never a whole-PR pass | The deterministic scripts own verdicts, coverage, and permitted actions. GPT cannot erase a measured regression or clear missing/sampled evidence. Recommendations distinguish measurements, static support, and hypotheses. There is no numeric worth-it score, automatic merge decision, code/label mutation, issue closure, or automatic follow-up. ### Successful final fork verification The [fresh final fork canary](https://github.com/kubaflo/maui/actions/runs/36765284345) **completed successfully** against dotnet#32382, using the final production implementation from `867ffde2fe`. - Intake, activation, measurements, evidence preparation, GPT interpretation, detection, safe outputs, and conclusion all succeeded. - Both Core builds succeeded under `LinuxUsers` isolation with `credentialsSanitized: true`. - Seven benchmarks completed in each of the four ABBA runs, with matching benchmark sets and complete measurement data. - Changed binding/XAML workloads remained excluded. Coverage was explicitly incomplete, with the deterministic next action `needs_human_discussion`; no native measurements or whole-PR clearance were claimed. - The downloaded report-validation artifact contains **`valid: true` and `errors: []`**. Canary commit `e2550e87ba` differs from production only in the two workflow files: it uses the existing personal Copilot secret, restricts dispatch to the dedicated fork branch, targets the selected upstream PR, and forces staged output. **No new upstream report was posted, and no upstream environment protection was changed.** Production PAT-pool configuration and normal publication behavior remain intact on the PR branch. The staged run retains a non-fatal gh-aw conclusion annotation about the absent `safe-outputs-items` artifact. The actual safe-output rendering/validation job and overall run succeeded; this is not a claim that live upstream publication was exercised by the dry run. ### Additional validation and CI caveats All five retained managed/decision/report suites passed again on the final revision. The 69 existing command-routing/recovery checks passed. PowerShell/JSON syntax, scoped formatting, whitespace checks, strict gh-aw compilation, and native actionlint checks passed. Existing shared-workflow actionlint diagnostics were verified against `main` and left unchanged. **Normal PR checks are not all green:** the [Pester check](https://github.com/dotnet/maui/actions/runs/36765208984) has 2,201 passes and two stale assertions expecting `gpt-5.6-sol` while `Review-Tests.ps1` uses `gpt-6-astra`. Both test files and their subject are byte-identical to the merged `main`. [Skill Validation](https://github.com/dotnet/maui/actions/runs/36765201279) fails before inspecting PR content because the unchanged checkout action refuses fork checkout in `pull_request_target`. These unrelated shared checks were not weakened or modified. `maui-pr` is neutral on the final GitHub-only revision. Earlier real hosted runs exposed and verified fixes for assigning to PowerShell's read-only `$HOME` and using the Windows-only SDK installer on Linux. Those fixes and retained diagnostic artifacts remain in the reduced implementation. **Deployment remains pending:** the PR is still a draft and unmerged. The workflow, lock, skill, and trusted scripts must reach `dotnet/maui`'s default branch before the upstream slash command operates. Fork validation does not imply production activation or replace normal CI and human review. Operating instructions are in `.github/docs/pr-review-workflow.md`. ### Issues Fixed No product issue is closed. This PR adds an explicitly authorized, hosted managed-performance review workflow. --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9c4135af-95e6-472d-9309-98f5d13cb737
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Switch all 14 GitHub Agentic Workflows from `gpt-5.6-sol` to `gpt-6.1-sol` and regenerate their `.lock.yml` files. GPT-6.1 Sol is enabled in the live Copilot model catalog and supports the Responses API. A restricted, no-tool Copilot CLI inference request using the exact model ID also succeeded. The pinned gh-aw v0.86.2 runtime and AWF v0.27.44 pricing catalog do not yet include this model. To make the change runnable without upgrading infrastructure: - Explicitly configure `COPILOT_PROVIDER_WIRE_API: responses` for both agent and threat-detection execution. - Import shared, model-specific pricing from `shared/gpt-6.1-sol.md`, using the [official OpenAI model reference](https://developers.openai.com/api/docs/models/gpt-6.1-sol): $2 input, $10 output, $0.10 cached input, and $2.50 cache writes per million tokens. - Update the hosted review workflow documentation. Local review runners and offline evaluation models are unchanged. Compiler, Copilot CLI (1.0.79), firewall, action pins, permissions, triggers, and safe-output settings remain unchanged. The existing firewall supports live discovery of models missing from its offline catalog; the pricing overlay avoids its missing-pricing inference rejection. ### Validation - `gh aw compile --strict --no-check-update` succeeded for all 14 workflows. - `gh aw list --json` confirms every generated lock is current. - Inspected all generated execution environments and pricing overlays: both execution phases use `gpt-6.1-sol` and `responses`. - Native actionlint found only two reproduced baseline diagnostics: its unsupported `concurrency.queue` field and existing `github.aw.import-inputs.random_seed` expressions. With those existing diagnostics excluded, all 14 lock files pass. The compiler's Docker-based actionlint invocation could not run because Docker is unavailable locally. - `git diff --check` passed. No pipeline tests were added. ### Issues Fixed N/A — workflow model configuration update. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Summary Follow-up to dotnet#38324. The first production `/review performance` run successfully published its report, but used flat Markdown instead of the agreed expandable presentation: [example on dotnet#39024](dotnet#39024 (comment)). - Restore **Performance Review Summary**, the actual PR author/pinned commit notification, and truthful Scope/Result/Commit badges as the visible header. - Put the verdict, coverage and benchmark table inside **Performance Results**, and static findings, recommendations and next action inside **Findings & Follow-up**. Both sections are closed by default for static-only, measured and incomplete reports. - Pass trusted PR metadata into rendering and validation. Reject flat, expanded, nested, extra or incorrectly named sections, stray expanded narrative, mismatched authors/commits and misleading badges. Escape narrative HTML and block fences so generated prose cannot break the layout. - Allow `img.shields.io` in gh-aw's safe-output URL policy without expanding the agent network allowlist, and regenerate the workflow with gh-aw v0.86.2. Measurement, verdict, coverage, permissions and stale-evidence rules are unchanged. This does not modify the existing production comment; the new layout takes effect for commands after this fix reaches the default branch. ## GPT-6.1 Sol alignment Includes the merged dotnet#39036 model migration, retaining `gpt-6.1-sol`, Responses API configuration and shared pricing for all 14 gh-aw workflows, including agent and threat-detection execution. Corrects the stale hosted-model sentence identified in [this review thread](dotnet#39036 (comment)), while preserving the independent configuration of local runners and evaluations. ## Validation - All five existing perf-analysis suites pass; report-component coverage includes every verdict, both report profiles and 12 malformed-layout rejection cases. No pipeline/YAML configuration tests were added. - Replayed the trusted Render stage using production run `36778478869` evidence and original narrative, without posting a comment. Re-rendered the measured ABBA report from run `36765284345` with unchanged evidence and narrative. - GitHub's Markdown API rendered both reports with exactly two closed sibling accordions, three visible badges and the managed benchmark table inside Performance Results. The exact previously published flat report now fails presentation validation. - All 14 workflows compile with pinned gh-aw v0.86.2. Inspected all 28 generated agent/detection environments: `gpt-6.1-sol` and `responses`. Native actionlint passes with the documented baseline exclusions; PowerShell/JSON parsing and scoped formatting pass. - **Fresh staged fork canary passed:** [run 36784039109](https://github.com/kubaflo/maui/actions/runs/36784039109), based on production commit `b509aa2fa89c2c93fe40bfac57729e8ac20d72a5`. All executed jobs succeeded, report validation is `valid: true` with no errors, and runtime logs confirm GPT-6.1 Sol/Responses in both agent and detection. Safe-output processing reports one staged operation with no failed operations. The report artifact contains the restored layout; no live performance comment was posted. The canary differs only in the two workflow files: exact dedicated-fork/manual-dispatch guards, an existing personal inference secret, a fixed upstream target and forced staging. Production files are restored and clean. The known non-fatal staged-mode `safe-outputs-items` missing-artifact annotation remains; report validation and safe-output processing succeed. The upstream Skill Validation check is blocked before evaluating PR content by the existing `actions/checkout` refusal to run fork code in `pull_request_target`. This PR does not weaken that guard. ---------
<!-- Please let the below note in for people that find this PR --> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Remove two source-identified causes of intermittent UI-test failures without weakening regression coverage: - `Issue10947.CollectionViewHeaderShouldNotScroll` reacquires native header/footer geometry after focus changes using the existing stale-element-aware helper. Its fixture explicitly respects container safe areas: local Android execution demonstrated that the header could otherwise be completely hidden underneath the status bar and absent from the accessibility tree. Both exact rectangle comparisons are unchanged. - `ShellFlyoutContent.FlyoutContentTests` waits for restored default flyout items after custom content/template reset, and for destination page controls after selection, instead of tapping during native flyout reconstruction. There are no test skips, new blanket retries, arbitrary sleeps, snapshot changes, or relaxed assertions. This complements dotnet#38822 rather than duplicating its null-content ScrollView and Android photo-picker fixes. ### Issues Fixed CI-observed stale-element/lookup failures in the CollectionView header/footer regression and the Shell flyout-content restoration test. This is test/fixture-only; it does not claim to fix persistent CollectionView scrolling, lifecycle crashes, XAML constructor failures, or build errors found during the cross-branch investigation. ### Validation All runs used `.github/scripts/BuildAndRunHostApp.ps1` with method-name filters and explicit checks that the intended tests actually executed. | Platform | Header/footer | Flyout-content | |---|---|---| | Android API 34 | Four independent first-attempt passes | Three independent first-attempt passes | | iOS, iPhone 17 Pro | One first-attempt pass | One first-attempt pass | | Windows / MacCatalyst | Not run locally | Not run locally | Nine genuine passing executions in total. Failed-test retry recoveries and zero-test runner success are explicitly excluded from the validation count. Formatting and patch whitespace checks passed. `maui-pr` was queued for commit `4f4bcaabaa`. Cross-platform UI CI was requested with `/azp run maui-pr-uitests`; its results are pending. Finite runs do not establish absolute reliability. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39077Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39077" |
|
Hey there @@TomasGnG! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Hey there @TomasGnG! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Note 🔍
|
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@TomasGnG — new AI review results are available based on commit
402479b.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ⚠️ SKIPPED
No tests were detected in this PR.
Recommendation: Add tests to verify the fix using the write-tests-agent.
📋 Pre-Flight — Context & Validation
PR #39077 Pre-Flight
Context
- PR:
Fix ARGB value for MediumPurple color - Issue: #39076,
Colors.MediumPurple has incorrect ARGB value (#FF9370D8 instead of #FF9370DB) - Base / head:
main/TomasGnG:main - Local review branch:
pr-review-39077at4a1eaac93a(squashed review commit) - Requested platform: Android
- Gate: Skipped because the PR adds no tests; the existing
gate/content.mdwas left unchanged.
The reported behavior is platform-neutral: Colors.MediumPurple.ToArgbHex() returns the wrong blue component because the predefined color table contains 0xFF9370D8; the standard RGB value is (147, 112, 219), or 0xFF9370DB.
Existing PR Approach
The PR changes only src/Graphics/src/Graphics/Colors.cs:
- /// <summary>Gets the system-defined color that has an ARGB value of <c>#FF9370D8</c>.</summary>
- public static readonly Color MediumPurple = Color.FromUint(0xFF9370D8);
+ /// <summary>Gets the system-defined color that has an ARGB value of <c>#FF9370DB</c>.</summary>
+ public static readonly Color MediumPurple = Color.FromUint(0xFF9370DB);This directly corrects both the XML documentation and packed ARGB literal. No platform-specific execution path is involved.
Bounded Validation
No primary test was detected in the PR, and the request supplied no additional mandatory regression-test list. The attempts must not add or edit tests because the try-fix baseline allow-list is expected to contain only the PR-modified Colors.cs.
Use this targeted existing Graphics unit-test command (not the full suite):
dotnet test src/Graphics/tests/Graphics.Tests/Graphics.Tests.csproj --filter "FullyQualifiedName=Microsoft.Maui.Graphics.Tests.ColorUnitTests.DefaultColorsMatch|FullyQualifiedName=Microsoft.Maui.Graphics.Tests.ColorUnitTests.TestFromHex|FullyQualifiedName=Microsoft.Maui.Graphics.Tests.ColorUnitTests.TestToHex|FullyQualifiedName=Microsoft.Maui.Graphics.Tests.ColorUnitTests.TestFromUint"These tests exercise the named-color table and each color-construction/conversion mechanism available to alternative implementations. They are regression coverage only: none asserts MediumPurple specifically, so a passing attempt must not be represented as direct automated proof of the corrected named value.
Candidate Constraints
- Modify only files permitted by
.github/.baseline-state.jsonafterEstablishBrokenBaseline.ps1. - Avoid repeating the PR's packed-
uintliteral correction. - Run one implementation/test pass and at most one focused correction/retest.
- Perform the try-fix skill's inline expert self-review; do not launch another reviewer.
- Capture artifacts, restore exclusively through
EstablishBrokenBaseline.ps1 -Restore, and leave the checked-out PR unchanged after each attempt.
🔬 Code Review — Deep Analysis
Code Review — PR #39077
Independent Assessment
What this changes: Corrects the shared Colors.MediumPurple definition and its XML documentation from #FF9370D8 to the standard ARGB value #FF9370DB.
Inferred motivation: The existing named-color table supplies an incorrect blue channel (0xD8, 216) instead of the standard MediumPurple blue channel (0xDB, 219).
Reconciliation with PR Narrative
Author claims: The PR fixes the ARGB value for MediumPurple and closes #39076.
Agreement/disagreement: The code exactly matches that claim. Keeping Color.FromUint is the simplest and most consistent implementation because every neighboring named color uses the same packed-ARGB representation. The XML documentation and runtime value remain synchronized.
Prior Review Reconciliation
The expert reviewer produced zero inline findings (inline-findings.json is []). The anonymous GitHub fallback found no prior top-level or inline reviews and no prior ❌ Error findings.
CI Status
- Trusted gate: Skipped because the submitted PR adds no tests.
- Required-check result: Pending on the current remote head; the anonymous GitHub API reported active
maui-pr, device-test, and UI-test check runs. - Action taken: Confidence is capped at low. The trusted gate was not rerun, and pending CI was not treated as a pass.
Findings
⚠️ Warning — No direct regression test
The PR fixes a public named-color value but adds no test that asserts Colors.MediumPurple resolves to #FF9370DB. The bounded Graphics tests used by STEP 5a exercise nearby color construction and conversion paths, but both candidate reports explicitly confirm that none directly covers MediumPurple. A focused assertion in ColorUnitTests would prevent this one-byte table error from recurring.
No correctness, API-shape, platform, performance, or compatibility defect was found in the submitted implementation itself.
Failure-Mode Probing
- Named lookup and brush consumers: Both resolve through
Colors.MediumPurple, so they receive the corrected shared value without additional platform-specific paths. - Default/startup behavior: The only behavioral change is construction of one existing static color with a corrected constant; no new initialization path, shared mutable state, or lifecycle behavior is introduced.
- Adjacent named colors: The edit is isolated to
MediumPurple; neighboring constants and aliases are unchanged.
External Output Contract
Not applicable.
Verdict: NEEDS_DISCUSSION
Confidence: low
Summary: The raw code fix is correct, minimal, and consistent with the named-color table, and the expert reviewer found no inline defect. The skipped gate and missing direct regression test prevent an LGTM under the review contract; adding one focused unit assertion is the only actionable improvement.
🛠️ Try-Fix — Analysis & Comparison
PR #39077 Alternative Fix Candidates
Aggregate Status
| Candidate | Model | Alternative mechanism | Result | Tests | Self-review |
|---|---|---|---|---|---|
| 1 | gpt-5.3-codex |
Explicit RGBA channels | Pass | 4 passed | 0 findings |
| 2 | gpt-5.6-sol |
Canonical ARGB hex parsing | Pass | 4 passed | 0 findings |
Candidate 1
Approach: Replaced MediumPurple initialization with explicit RGBA construction, Color.FromRgba(147, 112, 219, 255), and updated the XML ARGB documentation to #FF9370DB.
Prior approach avoided: The PR directly edits the packed-uint literal to Color.FromUint(0xFF9370DB).
Mechanism-level difference: This fix supplies separate red, green, blue, and alpha channels instead of relying on a packed ARGB literal and its decoding path. The blue value is therefore represented directly as decimal 219.
Files changed: src/Graphics/src/Graphics/Colors.cs (+2/-2)
Result: Pass
Inline self-review: 0 findings.
Diff:
diff --git a/src/Graphics/src/Graphics/Colors.cs b/src/Graphics/src/Graphics/Colors.cs
index 77c3b09671..124cad0fd1 100644
--- a/src/Graphics/src/Graphics/Colors.cs
+++ b/src/Graphics/src/Graphics/Colors.cs
@@ -185,8 +185,8 @@ namespace Microsoft.Maui.Graphics
public static readonly Color MediumBlue = Color.FromUint(0xFF0000CD);
/// <summary>Gets the system-defined color that has an ARGB value of <c>#FFBA55D3</c>.</summary>
public static readonly Color MediumOrchid = Color.FromUint(0xFFBA55D3);
- /// <summary>Gets the system-defined color that has an ARGB value of <c>#FF9370D8</c>.</summary>
- public static readonly Color MediumPurple = Color.FromUint(0xFF9370D8);
+ /// <summary>Gets the system-defined color that has an ARGB value of <c>#FF9370DB</c>.</summary>
+ public static readonly Color MediumPurple = Color.FromRgba(147, 112, 219, 255);
/// <summary>Gets the system-defined color that has an ARGB value of <c>#FF3CB371</c>.</summary>
public static readonly Color MediumSeaGreen = Color.FromUint(0xFF3CB371);
/// <summary>Gets the system-defined color that has an ARGB value of <c>#FF7B68EE</c>.</summary>Test: The bounded Graphics filter passed 4 tests, with 0 failures and 0 skips. It covers relevant construction/conversion behavior but does not directly assert Colors.MediumPurple.
Failure analysis: Not applicable.
Restoration: Confirmed Restored True; no candidate source diff remained.
Candidate 2
Approach: Corrected the XML ARGB documentation and initialized MediumPurple by parsing canonical ARGB text with Color.FromArgb("#FF9370DB").
Prior approaches avoided: The PR corrects the packed-uint literal passed to Color.FromUint(0xFF9370DB). Candidate 1 constructs the color from four explicit channels with Color.FromRgba(147, 112, 219, 255). Candidate 2 uses neither packed integer encoding nor explicit RGBA arguments.
Mechanism-level difference: Color.FromArgb sends the eight hexadecimal text digits through the color string parser, which extracts alpha, red, green, and blue before constructing the value. The corrected DB suffix therefore reaches the blue component through hex-text parsing rather than packed-bit decoding or direct channel parameters.
Files changed: src/Graphics/src/Graphics/Colors.cs (+2/-2)
Result: Pass
Inline self-review: 0 findings.
Diff:
diff --git a/src/Graphics/src/Graphics/Colors.cs b/src/Graphics/src/Graphics/Colors.cs
index 77c3b09671..bfd921b99d 100644
--- a/src/Graphics/src/Graphics/Colors.cs
+++ b/src/Graphics/src/Graphics/Colors.cs
@@ -185,8 +185,8 @@ namespace Microsoft.Maui.Graphics
public static readonly Color MediumBlue = Color.FromUint(0xFF0000CD);
/// <summary>Gets the system-defined color that has an ARGB value of <c>#FFBA55D3</c>.</summary>
public static readonly Color MediumOrchid = Color.FromUint(0xFFBA55D3);
- /// <summary>Gets the system-defined color that has an ARGB value of <c>#FF9370D8</c>.</summary>
- public static readonly Color MediumPurple = Color.FromUint(0xFF9370D8);
+ /// <summary>Gets the system-defined color that has an ARGB value of <c>#FF9370DB</c>.</summary>
+ public static readonly Color MediumPurple = Color.FromArgb("#FF9370DB");
/// <summary>Gets the system-defined color that has an ARGB value of <c>#FF3CB371</c>.</summary>
public static readonly Color MediumSeaGreen = Color.FromUint(0xFF3CB371);
/// <summary>Gets the system-defined color that has an ARGB value of <c>#FF7B68EE</c>.</summary>Test: The same bounded Graphics filter passed 4 tests, with 0 failures and 0 skips. It directly exercises FromArgb parsing and relevant conversion paths, but does not directly assert Colors.MediumPurple.
Failure analysis: Not applicable; the first implementation/test pass succeeded, so no correction pass ran.
Restoration: Confirmed Restored True; no candidate source diff remained.
Comparison
Both alternatives produce the corrected color and passed the bounded regression filter. Candidate 1 avoids parsing and makes channel values explicit, while candidate 2 expresses the canonical ARGB spelling directly but adds string parsing during static initialization. Both are less consistent with the surrounding generated-style color table than the PR's direct packed-literal correction.
No PR-added test or existing test directly asserts Colors.MediumPurple; STEP 5b should retain that coverage gap in its assessment.
📝 PR Finalize — Recommended Title & Description
Assessment: ✏️ Recommend updating — the current metadata is accurate but omits the Graphics component, exact corrected value, root cause, and cross-platform scope.
Recommended title
[Graphics] Colors: Correct MediumPurple ARGB value
Recommended description
### Description of Change
Corrects `Colors.MediumPurple` in `src/Graphics/src/Graphics/Colors.cs` from `#FF9370D8` to the standard ARGB value `#FF9370DB` and updates the matching XML documentation. The previous literal used `0xD8` for the blue channel instead of `0xDB`.
This change affects the shared Graphics color definition and applies to all platforms.
### Issues Fixed
Fixes #39076
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winner: pr-plus-reviewer
The submitted source correction is technically correct, minimal, and consistent with the surrounding named-color table. pr-plus-reviewer retains that implementation and adds the missing direct regression assertion, which passed the exact bounded Graphics validation (4 passed, 0 failed, 0 skipped). Because the winning test change is not present in the submitted PR HEAD, the PR needs the winning refinement before approval.
Comparative Ranking
| Rank | Candidate | Implementation | Direct MediumPurple regression coverage |
Validation | Assessment |
|---|---|---|---|---|---|
| 1 | pr-plus-reviewer |
Keeps Color.FromUint(0xFF9370DB) and matching XML documentation |
Yes — asserts Colors.MediumPurple.ToUint() equals 0xFF9370DBu |
PASS: 4/4 targeted tests | Best combination of minimal production change, table consistency, and durable coverage |
| 2 | pr |
Corrects the packed ARGB literal and XML documentation | None; trusted Gate skipped | Remote CI pending | Best production implementation, but the original one-byte regression remains unguarded |
| 3 | try-fix-1 |
Uses Color.FromRgba(147, 112, 219, 255) |
None | PASS: 4/4 bounded tests | Correct and allocation-free, but less consistent with every neighboring packed-ARGB constant |
| 4 | try-fix-2 |
Uses Color.FromArgb("#FF9370DB") |
None | PASS: 4/4 bounded tests | Correct, but introduces unnecessary string parsing during static initialization and departs furthest from the table's established representation |
No candidate failed its reported regression command, so the failed-test ranking rule did not alter the order. Both STEP 5a candidates explicitly report that their four passing tests do not directly assert Colors.MediumPurple; their mechanism changes therefore do not offset the raw PR's coverage gap.
Expert Review
- The single authorized
maui-expert-reviewerpass producedinline-findings.jsonas[]. - Independent code tracing confirmed that named parsing and brush consumers all resolve through the corrected shared
Colors.MediumPurplefield. - No correctness, API-shape, platform-specific, performance, lifecycle, or compatibility defect was found in the PR implementation.
- The actionable review gap is regression prevention: the submitted PR adds no test for the corrected public named-color value.
- Anonymous review-surface reconciliation found no prior ❌ Error findings.
Winning Refinement
pr-plus-reviewer adds one assertion to the existing DefaultColorsMatch test:
Assert.Equal(0xFF9370DBu, Colors.MediumPurple.ToUint());The assertion targets the exact reported defect and would distinguish the old 0xFF9370D8 value from the corrected value. The candidate passed DefaultColorsMatch, TestFromHex, TestToHex, and TestFromUint in the required single targeted run. The complete reviewer-only and PR-base diffs are persisted as pr-plus-reviewer/reviewer.patch and pr-plus-reviewer/candidate.patch.
Residual Uncertainty
The trusted Gate was skipped because the submitted PR contains no tests, and the current remote CI matrix was still pending when reviewed. Those states are not treated as passing evidence. No additional full-suite run, gate rerun, or iterative candidate refinement was performed.
🧭 Next Steps — reviewer changes required
The reviewer-enhanced candidate identified changes that are not yet in the submitted PR.
Why: pr-plus-reviewer preserves the raw PR's correct and idiomatic packed-ARGB fix while adding a direct regression assertion for Colors.MediumPurple. Its single required targeted validation passed all 4 selected Graphics tests, unlike the raw PR and STEP 5a alternatives, which have no direct coverage of the corrected named value.
Address the actionable findings in this review before merging.
Update the text color lookup to use the standard #9370DB value. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
left a comment
There was a problem hiding this comment.
Can you do it please? #39077 (comment)
|
@dotnet-policy-service agree |
TomasGnG
left a comment
There was a problem hiding this comment.
Thanks, I didn't check for other uses of the hex value
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
<!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> Fixes the ARGB value for MediumPurple color <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39076 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Description of Change
Fixes the ARGB value for MediumPurple color
Issues Fixed
Fixes #39076