Repository navigation
test: add AOT smoke tests - #1223
Merged
Merged
Conversation
The libraries are now marked as AOT compatible, but the analyzers only see the libraries themselves. Publishing a consumer with Native AOT on every OS verifies that the trimmer and the AOT compiler accept them and that the reflection on private BCL members still works without the JIT.
|
This pull request is merged. |
[Medium impact] The PR appears safe to merge.
|
vbreuss
enabled auto-merge (squash)
November 22, 2026 06:55
vbreuss
disabled auto-merge
November 22, 2026 07:27
|
|
This is addressed in release v8.1.0. |
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.



#1222 marks the libraries as AOT compatible, but the analyzers enabled by
IsAotCompatibleonly see the libraries themselves. This adds a console app underTests/Aotthat is published with Native AOT for net8.0 and net10.0 on Ubuntu, Windows and macOS, with all trim and AOT warnings treated as errors, and runs the same checks with and without the JIT.The checks cover the places that depend on private members or type names of the base class library (BCL): the separator fix in the
FileSystemWatcherMockof a simulated OS, the timeout detection ofWaitAsyncon the mockTimeProvider, and the real file system detection of the memory-mapped files. Breaking each of these in the source makes the matching check fail.The new
AotSmokeTestspipeline target runs inci.ymlandbuild.yml, and the push jobs depend on it. The build schema is regenerated with the current Fallout version.