| name | release-testing |
| description | Run integration tests to verify SkiaSharp NuGet packages work correctly before publishing.
Use when user asks to: - Test/verify packages before release - Run integration tests - Test on specific device (iPad, iPhone, Android emulator, Mac, Windows) - Verify SkiaSharp rendering works - Check if packages are ready for publishing - Run smoke/console/blazor/maui tests - Continue with release - Test version X
Triggers: "test the release", "verify packages", "run tests on iPad", "check ios tests", "test mac catalyst", "run android tests", "continue", "test 3.119.2-preview.2".
|
Release Testing Skill
Verify SkiaSharp packages work correctly before publishing.
ā ļø NO UNDO: This is Step 3 of 4 in the release pipeline. See releasing.md for full workflow.
Pipeline: Step 1: release-branch ā Step 2: release-status ā Step 3 (this skill) ā Step 4: release-publish
CRITICAL: ANY FAIL IS TOTAL FAIL
- Test fails ā Release FAILS
- Test times out ā Release FAILS
- Screenshot doesn't match ā Release FAILS
Never rationalize failures. Fix the issue before proceeding.
ā ļø CRITICAL: Semver Version Ordering
When identifying which release branch to test, you MUST use semver ordering, NOT alphabetical or sort -V ordering.
In semver, a bare version is ALWAYS newer than its prerelease variants:
3.119.2-preview.1 < 3.119.2-preview.2 < 3.119.2-preview.3 < 3.119.2 (FINAL)
release/3.119.2 is the stable release and is NEWER than release/3.119.2-preview.3.
To find the latest release branch:
- List all release branches:
git branch -r | grep "release/"
- Identify the highest base version (e.g.,
3.119.2)
- Check if a bare version branch exists (e.g.,
release/3.119.2) ā if so, that is the latest
- If only preview branches exist, the highest preview number is the latest
ā ļø Getting this wrong means testing the wrong version ā wasting the entire process or shipping untested packages.
Step 1: Check CI Status
Before testing, verify CI builds have completed using the release-status skill:
python3 .agents/skills/release-status/scripts/pipeline-status.py release/{version}
Prerequisite: The SkiaSharp pipeline (ID 10789) must have completed successfully ā this is
the pipeline that signs and publishes packages to the internal feed.
SkiaSharp-Tests (ID 15756) should pass but does not block testing/publishing.
See the release-status skill for full pipeline chain documentation,
manual queries, and troubleshooting.
Extracting NuGet Version
The build description contains the internal version in format: #{base}-{label}.{build}+{branch}
Preview example: #3.119.2-preview.2.3+3.119.2-preview.2 succeeded
- Internal version:
3.119.2-preview.2.3
- NuGet version:
3.119.2-preview.2.3 (same ā build number is part of the prerelease tag)
Stable example: #3.119.2-stable.3+3.119.2 succeeded
- Internal version:
3.119.2-stable.3
- NuGet version:
3.119.2 (base only ā build number is NEVER appended to stable versions)
ā ļø Stable versions never include a build number. Each CI build of a stable release produces a different internal package (3.119.2-stable.1, 3.119.2-stable.2, etc.) but the published NuGet version is always just 3.119.2.
Step 2: Resolve Package Versions
DO NOT ask user for exact NuGet versions. Resolve automatically:
-
Fetch release branch and read version files:
grep "^SkiaSharp\s" scripts/VERSIONS.txt | grep "nuget" | awk '{print $3}'
grep "^HarfBuzzSharp\s" scripts/VERSIONS.txt | grep "nuget" | awk '{print $3}'
grep "PREVIEW_LABEL:" scripts/azure-templates-variables.yml | awk '{print $2}' | tr -d "'"
SkiaSharp ... nuget line ā base version (e.g., 3.119.2)
HarfBuzzSharp ... nuget line ā base version (e.g., 8.3.1.3)
PREVIEW_LABEL ā label (e.g., preview.2 or stable)
-
Search and filter for the SPECIFIC version:
For preview releases (PREVIEW_LABEL is NOT stable):
dotnet package search SkiaSharp \
--source "https://aka.ms/skiasharp-eap/index.json" \
--exact-match --prerelease --format json \
| jq -r '.searchResult[].packages[] | select(.id == "SkiaSharp") | .version' \
| grep "^{base}-{label}\."
... | grep "^3.119.2-preview.3\."
Pick the highest build number (e.g., 3.119.2-preview.3.1). This IS the NuGet version.
For stable releases (PREVIEW_LABEL is stable):
dotnet package search SkiaSharp \
--source "https://aka.ms/skiasharp-eap/index.json" \
--exact-match --prerelease --format json \
| jq -r '.searchResult[].packages[] | select(.id == "SkiaSharp") | .version' \
| grep "^{base}-stable\."
... | grep "^3.119.2-stable\."
The internal feed has {base}-stable.{build} packages (e.g., 3.119.2-stable.3), but the NuGet version is just {base} (e.g., 3.119.2). The build number is never appended to stable versions.
ā ļø CRITICAL: Use .version to get ALL versions, NOT .latestVersion which only returns the newest.
The feed contains multiple version streams (e.g., 3.119.2 AND 3.119.3), so you MUST filter
by the base version and preview label from the release branch.
-
Pick the NuGet version:
- Preview: Highest build number from matching versions (e.g.,
3.119.2-preview.3.1)
- Stable: Just the base version (e.g.,
3.119.2) ā no build number appended
-
Report to user:
Preview:
Resolved versions:
SkiaSharp: 3.119.2-preview.3.1
HarfBuzzSharp: 8.3.1.3-preview.3.1
Build number: 1
Stable:
Resolved versions:
SkiaSharp: 3.119.2
HarfBuzzSharp: 8.3.1.3
Internal build: 3.119.2-stable.3 (on feed)
No packages found? CI build hasn't completed. See troubleshooting.md.
Step 3: Confirm Test Matrix
Before running tests, determine and confirm the test matrix with the user.
Device Requirements
| Platform | Old Version | New Version |
|---|
| Android | API 21-23 (5.0-6.0) | API 35-36 (15-16) |
| iOS | Oldest available runtime | Newest available runtime |
š See setup.md for device selection details and emulator creation.
Confirm with User
Planned test matrix:
- iOS (old): [device] ([oldest available iOS runtime])
- iOS (new): [device] ([newest available iOS runtime])
- Android (old): [device] (Android 6.0 / API 23)
- Android (new): [device] (Android 16 / API 36)
- Mac Catalyst: Current macOS
- Blazor: Chromium
- Console: .NET runtime
- Linux (Docker): Docker container (mcr.microsoft.com/dotnet/sdk:8.0)
Proceed with this matrix?
Step 4: Run Integration Tests
Pre-Test Cleanup (REQUIRED)
ā ļø CRITICAL: These steps MUST be done before ANY integration tests:
rm -rf output/logs/testlogs/integration/*
mkdir -p output/logs/testlogs/integration
adb devices | grep emulator | awk '{print $1}' | while read emu; do
adb -s $emu emu kill 2>/dev/null
done
sleep 5
adb devices -l
ls output/logs/testlogs/integration/
Run Tests
cd tests/SkiaSharp.Tests.Integration
dotnet test -p:SkiaSharpVersion={version} -p:HarfBuzzSharpVersion={hb-version}
Test Commands
dotnet test --filter "FullyQualifiedName~SmokeTests" ...
dotnet test --filter "FullyQualifiedName~ConsoleTests" ...
dotnet test --filter "FullyQualifiedName~LinuxConsoleTests" ...
dotnet test --filter "FullyQualifiedName~BlazorTests" ...
dotnet test --filter "FullyQualifiedName~MauiiOSTests" ... -p:iOSDevice="iPhone 14 Pro" -p:iOSVersion="16.2"
dotnet test --filter "FullyQualifiedName~MauiMacCatalystTests" ...
dotnet test --filter "FullyQualifiedName~MauiAndroidTests" ... \
-p:AndroidDeviceId="emulator-5554" \
-p:AndroidApiLevel="23"
Android Emulator Workflow
ā ļø CRITICAL: Run only ONE Android emulator at a time to avoid device confusion.
-
Verify no emulators running:
adb devices -l
-
Start emulator with WIPE and boot verification:
emulator -avd Pixel_API_23 -wipe-data -no-snapshot -no-audio
adb shell getprop sys.boot_completed
adb shell getprop ro.build.version.sdk
ā ļø The -wipe-data flag is REQUIRED to ensure a clean emulator state. Without it,
cached apps or system state from previous runs may interfere with tests.
-
Run tests with device validation:
DEVICE_ID=$(adb devices | grep emulator | awk '{print $1}')
API_LEVEL=$(adb -s $DEVICE_ID shell getprop ro.build.version.sdk | tr -d '\r')
dotnet test --filter "FullyQualifiedName~MauiAndroidTests" \
-p:AndroidDeviceId="$DEVICE_ID" \
-p:AndroidApiLevel="$API_LEVEL" \
-p:SkiaSharpVersion={version} \
-p:HarfBuzzSharpVersion={hb-version}
-
Shut down emulator before next test:
adb -s $DEVICE_ID emu kill
sleep 5
adb devices -l
-
Repeat for next API level (start from step 1)
Test Execution Order
| Test | Run on Old | Run on New | Time |
|---|
| SmokeTests | Once | - | ~2s |
| ConsoleTests | Once | - | ~20s |
| LinuxConsoleTests | Once (Docker) | - | ~2min |
| BlazorTests | Once | - | ~2min |
| MauiMacCatalystTests | Once | - | ~2min |
| MauiiOSTests | ā
Yes | ā
Yes | ~2min each |
| MauiAndroidTests | ā
Yes | ā
Yes | ~2min each |
iOS and Android run TWICE: once on oldest, once on newest.
Providing User Feedback
CRITICAL: Long-running tests need continuous feedback. Users should never wait more than 30 seconds without knowing what's happening.
- Update the TODO checklist at each phase transition
- When waiting with
read_bash, note elapsed time: "ā³ Still building (~60s elapsed)"
- Tell users what's normal: "MAUI Release builds take 30-120s, silence is expected"
š See monitoring.md for:
- Phase timing and expected durations
- Output indicators to detect which phase is active
- Feedback templates and example output
- Troubleshooting hangs and crashes
Step 5: Verify & Report
Release Criteria
Proceed to release-publish ONLY when:
- ā
ALL tests pass (no failures)
- ā
iOS tests pass on BOTH oldest and newest runtime
- ā
Android tests pass on BOTH oldest (API 21-23) and newest (API 35-36)
- ā
Screenshots exist in
output/logs/testlogs/integration/
Skip Policy
Hardware skips only:
- iOS/Mac tests on non-macOS ā Skip (hardware unavailable)
- Windows tests on non-Windows ā Skip (hardware unavailable)
NOT valid skips:
- "No Android emulator" ā Create one
- "Android SDK not found" ā Ask user for path
- "No iOS simulators" ā Install via Xcode
- "Tool X not installed" ā Install it
If environment is broken, FIX IT. Do not skip tests.
Final Report Format
ā
Release Testing Complete
| Test | Platform | Version | Status |
|------|----------|---------|--------|
| SmokeTests | .NET | - | ā
Passed |
| ConsoleTests | .NET | - | ā
Passed |
| LinuxConsoleTests | Docker Linux | - | ā
Passed |
| BlazorTests | Chromium | - | ā
Passed |
| MauiMacCatalystTests | macOS | - | ā
Passed |
| MauiiOSTests | iOS 16.2 (oldest) | iPhone 14 Pro | ā
Passed |
| MauiiOSTests | iOS 18.5 (newest) | iPhone 16 Pro | ā
Passed |
| MauiAndroidTests | Android 6.0 (API 23) | Pixel_API_23 | ā
Passed |
| MauiAndroidTests | Android 16 (API 36) | Pixel_API_36 | ā
Passed |
Ready for publishing.
References