Skip to content

ci: publish a Native AOT consumer from the packed packages - #74

Merged
Blind-Striker merged 2 commits into
aot/reflection-free-testfrom
aot/package-consumer-ci
Oct 23, 2026
Merged

Blind-Striker merged 2 commits into
aot/reflection-free-testfrom
aot/package-consumer-ci

Conversation

@Blind-Striker

@Blind-Striker Blind-Striker commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

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-tests job now packs Core and Extensions and publishes tests/LocalStack.Client.PackageConsumer.Tests from those packages for every framework in LocalStackModernTargetFrameworks with Native AOT on Windows and Linux, with a fresh NuGet cache. The project is outside the solution and blocks the repository's Directory.Build.* and central package management, so it sees only what a NuGet consumer sees. It runs the unchanged consumer calls plus a Type-based API (which needs the generator to arrive through the package's buildTransitive target), checks it runs as a native executable, and calls LocalStack on Linux.

Verification

Locally on win-x64: packs succeed (3.0.0), publish with TreatWarningsAsErrors reports 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.

@Blind-Striker
Blind-Striker added this pull request to stack #69 October 23, 2026 15:27
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
nuget/AWSSDK.S3 4.0.104.4 UnknownUnknown
nuget/AWSSDK.SQS 4.0.100.18 UnknownUnknown
nuget/LocalStack.Client.Extensions UnknownUnknown
nuget/Microsoft.Extensions.Configuration.Json 10.0.13 UnknownUnknown
nuget/Microsoft.Extensions.DependencyInjection 10.0.13 UnknownUnknown

Scanned Files

  • tests/LocalStack.Client.PackageConsumer.Tests/LocalStack.Client.PackageConsumer.Tests.csproj

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
nuget/AWSSDK.S3 4.0.104.4 UnknownUnknown
nuget/AWSSDK.SQS 4.0.100.18 UnknownUnknown
nuget/LocalStack.Client.Extensions UnknownUnknown
nuget/Microsoft.Extensions.Configuration.Json 10.0.13 UnknownUnknown
nuget/Microsoft.Extensions.DependencyInjection 10.0.13 UnknownUnknown

Scanned Files

  • tests/package-consumer/Consumer.csproj

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
Blind-Striker force-pushed the aot/package-consumer-ci branch from 8f9c3df to aba0b5a Compare October 23, 2026 21:13
@Blind-Striker
Blind-Striker marked this pull request as ready for review October 23, 2026 21:55
@Blind-Striker
Blind-Striker merged commit 49573c2 into master Oct 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant