Repository navigation
ci: verify trimming, Native AOT and WebAssembly on every target (#272) - #595
Merged
michaelstonis merged 2 commits intoNov 20, 2026
Merged
Conversation
The Native AOT smoke host also extracts the text of a corpus file, saves it and opens it again, on Linux x64, Windows x64 and macOS Arm64. The size probes run on all three runtimes, each against its own runtime identifier's baseline. The Blazor sample's trimmed publish reports every trim warning against its own assembly and treats it as an error. A new browser test runs the same steps in the AOT and the interpreter builds (open with the bundled Standard 14 fonts, render page 1 with the software rasterizer, extract text, save and reopen) and requires the desktop runtime's render hash, text and diagnostics on seven corpus files. The getting-started guide says what CI checks and how fonts resolve in the browser without operating-system fonts. Signed-off-by: Michael Stonis <120685+michaelstonis@users.noreply.github.com>
Measured by this pull request's size-probes legs (run 44754946474). Against osx-arm64, the probes are 4-17% larger on Linux and 1-13% larger on Windows, except the empty app, which is smaller on Windows. Signed-off-by: Michael Stonis <120685+michaelstonis@users.noreply.github.com>
9 tasks
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.
Closes #272
Summary
Most of #272 was already in CI (the
aot-smokejob on three OSes, three trimmed Blazor publishes, the macOS size probes, the Blazor size budget). This closes the gaps:tests/Broadside.Rendering.AotSmoke): besides rendering against the reviewed snapshots, it now extracts the text oftext-standard14.pdf, saves it and opens it again. Runs on linux-x64, win-x64 and osx-arm64.size-probesis a matrix over macOS, Linux and Windows; each leg compares its own runtime identifier inbench/baselines/gate/sizes.json(1% tolerance, existingBenchGate sizes).TrimmerSingleWarn=falseplusILLinkTreatWarningsAsErrors=truein the sample's publish properties, so a warning is attributed to its assembly and fails all three builds (AOT, hot-AOT, interpreter). Today there are none.PlatformParityTests): in both the AOT build and the interpreter build, seven corpus files (Standard 14 text, paths, clipping, DCT, Coons mesh, soft masks, an embedded font) are opened with the bundled Standard 14 fonts, page 1 rendered with the software rasterizer, text extracted, the document saved and reopened. The render hash, size, text, page count and diagnostics must equal what the test process computes on the desktop runtime.UseFontResolver, otherwiseFontProgramNotFound(andFontSubstitutedwhen a stand-in is used).Size budgets
bench/baselines/gate/sizes.json+ 1%PublishedAppTests)--hot-aotruntime moduleThe
linux-x64andwin-x64baselines do not exist yet, so those two legs fail as "new probe" on the first run. I will record them from this PR'ssize-probes-Linuxandsize-probes-Windowsartifacts and push that as a second commit.Deliverables
PlatformParityTests, AOT smoke checks)Public API changes
None.
Verification
dotnet publish tests/Broadside.Rendering.AotSmoke -c Release --use-current-runtimethen--require-aoton osx-arm64: all checks passed, including the two new ones.publish-static.shand--no-aot --runtime-folder framework): no trim warnings.PlatformParityTests: passed; all 14 builds × files had the same hash as the desktop (for exampletext-standard14.pdf13b69e3d9dc6 in both).PublishedAppTests: passed (size budget).dotnet format --verify-no-changeson the three changed projects: clean.