Repository navigation
Fix SKIASHARP_VERSION yaml missed by the m148 bump - #4144
Merged
Merged
Conversation
The m148 update bumped scripts/VERSIONS.txt to 4.148.0 but left scripts/azure-templates-variables.yml at 4.147.0, even though that file's SKIASHARP_VERSION must match the nuget version in VERSIONS.txt. Root cause: the update-skia Phase 6 script (update-versions.ps1) referenced the old filename scripts/azure-pipelines-variables.yml, which no longer exists (renamed to azure-templates-variables.yml). The Test-Path guard silently skipped the update, so the bump was never applied and no gate caught it. - Bump SKIASHARP_VERSION to 4.148.0 - Point the script at the correct file, target only the SKIASHARP_VERSION line, and hard-fail if the file is missing - Add the yaml to the verification gate to catch stale references - Update SKILL.md and typical-changes.md filename references Co-authored-by: Copilot <[email protected]>
Per GPT-5.5 review: the stale-only check (looking for the old milestone number) could pass incorrectly when the yaml value was stuck on a different milestone (e.g. 4.146.0, where the replace is a no-op) or carried a suffix (4.147.0-preview.2 -> 4.148.0-preview.2 no longer contains '147'). Replace it with a positive assertion that SKIASHARP_VERSION exactly equals the target nuget version. Co-authored-by: Copilot <[email protected]>
Contributor
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4144PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4144"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4144/packages --name skiasharp-pr-4144More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4144 |
Contributor
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The m148 milestone bump (#4125) updated all version numbers in
scripts/VERSIONS.txtto4.148.0, butscripts/azure-templates-variables.ymlwas left atSKIASHARP_VERSION: 4.147.0— even though that variable's own comment requires it to match the nuget version inVERSIONS.txt(it's a compile-time constant feeding theBUILD_NUMBERcounter and cannot be derived dynamically).Root cause
This wasn't a manual oversight — the automation was wired to a filename that no longer exists:
SKIASHARP_VERSIONwas moved out ofscripts/azure-pipelines-variables.yml(deleted) intoscripts/azure-templates-variables.yml.update-versions.ps1was created referencing the already-deletedazure-pipelines-variables.yml. ItsTest-Path … else { skip }guard silently no-op'd.4.147.0was left behind.Changes
SKIASHARP_VERSIONto4.148.0inscripts/azure-templates-variables.yml.update-versions.ps1):scripts/azure-templates-variables.yml.SKIASHARP_VERSIONline via a targeted regex (no naive whole-file substitution).Write-Error) if the file is missing, instead of silently skipping — so a future rename is caught loudly.SKIASHARP_VERSIONexactly equals the target nuget version, rather than only checking the old milestone number is absent. (Per GPT-5.5 review: the stale-only check would falsely pass if the value were stuck on a different milestone like4.146.0, or carried a suffix like4.147.0-preview.2.)SKILL.md,references/typical-changes.md) to the correct filename.Verification
4.146.0→ fails (correct);4.147.0→ passes at4.148.0(correct).