Skip to content

Fix SKIASHARP_VERSION yaml missed by the m148 bump - #4144

Merged
mattleibow merged 2 commits into
mainfrom
mattleibow/fix-m148-azure-version-yaml
Jun 11, 2026
Merged

mattleibow merged 2 commits into
mainfrom
mattleibow/fix-m148-azure-version-yaml

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Problem

The m148 milestone bump (#4125) updated all version numbers in scripts/VERSIONS.txt to 4.148.0, but scripts/azure-templates-variables.yml was left at SKIASHARP_VERSION: 4.147.0 — even though that variable's own comment requires it to match the nuget version in VERSIONS.txt (it's a compile-time constant feeding the BUILD_NUMBER counter and cannot be derived dynamically).

Root cause

This wasn't a manual oversight — the automation was wired to a filename that no longer exists:

Date PR What happened
2025-04-24 #3247 Split the pipeline up SKIASHARP_VERSION was moved out of scripts/azure-pipelines-variables.yml (deleted) into scripts/azure-templates-variables.yml.
2026-03-25 #3574 Improve update-skia skill The Phase 6 script update-versions.ps1 was created referencing the already-deleted azure-pipelines-variables.yml. Its Test-Path … else { skip } guard silently no-op'd.
2026-06-11 #4125 Update to m148 The script ran, "file not found → skipped" silently, the gate didn't check the yaml, and 4.147.0 was left behind.

Changes

  • Bump SKIASHARP_VERSION to 4.148.0 in scripts/azure-templates-variables.yml.
  • Fix the update-skia Phase 6 script (update-versions.ps1):
    • Point at the correct filename scripts/azure-templates-variables.yml.
    • Replace only the SKIASHARP_VERSION line via a targeted regex (no naive whole-file substitution).
    • Hard-fail (Write-Error) if the file is missing, instead of silently skipping — so a future rename is caught loudly.
    • Add a positive verification gate: assert SKIASHARP_VERSION exactly 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 like 4.146.0, or carried a suffix like 4.147.0-preview.2.)
  • Update docs (SKILL.md, references/typical-changes.md) to the correct filename.

Verification

  • PowerShell parses clean.
  • Simulated the gate: 4.146.0 → fails (correct); 4.147.0 → passes at 4.148.0 (correct).

mattleibow and others added 2 commits June 11, 2026 19:39
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]>
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

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

PowerShell / 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-4144
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4144

@mattleibow
mattleibow merged commit e6aa807 into main Jun 11, 2026
3 of 4 checks passed
@mattleibow
mattleibow deleted the mattleibow/fix-m148-azure-version-yaml branch June 11, 2026 17:53
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@mattleibow mattleibow added this to the 4.148.0-rc.1 milestone Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant