Repository navigation
ci: publish a Native AOT consumer from the packed packages - #74
Merged
Merged
Conversation
Blind-Striker
added this pull request to stack #69
October 23, 2026 15:27
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
This was referenced Oct 23, 2026
Blind-Striker
force-pushed
the
aot/package-consumer-ci
branch
from
October 23, 2026 20:24
53e4f6b to
8f9c3df
Compare
This was referenced Oct 23, 2026
The native-aot-tests job now packs Core and Extensions and publishes tests/package-consumer from those packages with Native AOT on Windows and Linux, using a fresh NuGet cache. The project sits outside the solution and stops the repository's Directory.Build.* and central package management from applying, so it sees only what a NuGet consumer sees. It runs the existing consumer calls plus a Type-based API, which needs the source generator to arrive through the package's buildTransitive target, and checks that it runs as a native executable. Linux also calls LocalStack.
Rename tests/package-consumer/Consumer.csproj to LocalStack.Client.PackageConsumer.Tests. It now marks itself with LocalStackTestRunsAsPublishedExecutable, so Cake skips it like the Native AOT lane, and CI publishes it for every framework in LocalStackModernTargetFrameworks instead of a hardcoded net10.0.
Blind-Striker
force-pushed
the
aot/package-consumer-ci
branch
from
October 23, 2026 21:13
8f9c3df to
aba0b5a
Compare
Blind-Striker
marked this pull request as ready for review
October 23, 2026 21:55
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.
Stack (review bottom-up, merge as one stack): #62 base, #66 the #63 fix, #67 Native AOT test lane, #68 static-factory generic path, #70 slim generator, #71 public docs, #72 internal docs and 3.0.0, #73 reflection-free test, #74 package consumer in CI, #75 convention clean-up, #76 service catalog refresh.
Goal of the stack: 3.0.0, where existing consumers upgrade without code changes, both packages support Native AOT on net10.0/net11.0, and the libraries use no runtime reflection for types the compiler can see (a JIT-only fallback covers the rest).
This PR
The
native-aot-testsjob now packs Core and Extensions and publishestests/LocalStack.Client.PackageConsumer.Testsfrom those packages for every framework inLocalStackModernTargetFrameworkswith Native AOT on Windows and Linux, with a fresh NuGet cache. The project is outside the solution and blocks the repository'sDirectory.Build.*and central package management, so it sees only what a NuGet consumer sees. It runs the unchanged consumer calls plus aType-based API (which needs the generator to arrive through the package'sbuildTransitivetarget), checks it runs as a native executable, and calls LocalStack on Linux.Verification
Locally on win-x64: packs succeed (3.0.0), publish with
TreatWarningsAsErrorsreports 0 IL warnings, and the native consumer passes with and without LocalStack. linux-x64 from the same packages was checked in WSL Ubuntu before this step existed.