Repository navigation
test: run the public entry points as a Native AOT test executable - #67
Merged
Blind-Striker merged 3 commits intoOct 23, 2026
Merged
Conversation
Blind-Striker
added this pull request to stack #69
October 23, 2026 11:12
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Blind-Striker
force-pushed
the
aot/native-aot-test-lane
branch
from
October 23, 2026 11:23
34e5664 to
a8d75b7
Compare
Blind-Striker
force-pushed
the
aot/native-aot-test-lane
branch
from
October 23, 2026 13:33
a8d75b7 to
97a0d28
Compare
This was referenced Oct 23, 2026
Add LocalStack.Client.NativeAot.Tests (xUnit v3 4.0.2 AOT, net10.0/net11.0). It is published with PublishAot and run as a native executable, so trim/AOT warnings fail the publish (TreatWarningsAsErrors) and the tests prove the existing calls work with no consumer code change: - AddLocalStack + AddAwsService<IAmazonS3> + resolve, as consumers write it - every AddAwsService/AddAWSServiceLocalStack/TryAdd* overload - Session generic and Type-based interface/implementation paths, and SessionStandalone, for S3 and SQS - live S3 and SQS round trips when LOCALSTACK_NATIVE_AOT_HOST is set CI gets a native-aot-tests job (windows-latest, ubuntu-22.04); Linux starts LocalStack 4.14.0 for the live tests. The Cake test task skips the project because it is not a dotnet test target.
- The lane's target frameworks come from LocalStackModernTargetFrameworks, and CI publishes and runs every framework MSBuild reports instead of listing net10.0 and net11.0 by hand. - Cake skips test projects that set LocalStackTestRunsAsPublishedExecutable (read through MSBuild with the target frameworks) instead of matching a project name.
Blind-Striker
force-pushed
the
aot/native-aot-test-lane
branch
from
October 23, 2026 20:24
97a0d28 to
a1af327
Compare
This was referenced Oct 23, 2026
Blind-Striker
marked this pull request as ready for review
October 23, 2026 21:54
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
Adds
tests/LocalStack.Client.NativeAot.Tests(xUnit v3 4.0.2 AOT, net10.0/net11.0). It is published withPublishAotand run as a native executable by the newnative-aot-testsCI job (windows-latest, ubuntu-22.04);TreatWarningsAsErrorsmakes any trim/AOT warning fail the publish. It covers the unchangedAddLocalStack+AddAwsService<IAmazonS3>consumer, all 8 registration overloads, CoreSessiongeneric andTypepaths, andSessionStandalone. Linux also runs live S3/SQS round trips against LocalStack 4.14.0. Cake skips projects that setLocalStackTestRunsAsPublishedExecutable, because they are notdotnet testtargets. Frameworks come fromLocalStackModernTargetFrameworks; CI reads them throughmsbuild -getProperty. Test names follow the Should convention.Verification
Local win-x64: net10.0 and net11.0 publish with 0 IL warnings; 35/35 pass with LocalStack running, 33 pass and 2 skip without it. The CI job is green on Windows and Linux.