Skip to content

test: add AOT smoke tests - #1223

Merged
vbreuss merged 1 commit into
mainfrom
test/aot-smoke-tests
Nov 22, 2026
Merged

vbreuss merged 1 commit into
mainfrom
test/aot-smoke-tests

Conversation

@vbreuss

@vbreuss vbreuss commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

#1222 marks the libraries as AOT compatible, but the analyzers enabled by IsAotCompatible only see the libraries themselves. This adds a console app under Tests/Aot that 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 FileSystemWatcherMock of a simulated OS, the timeout detection of WaitAsync on the mock TimeProvider, 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 AotSmokeTests pipeline target runs in ci.yml and build.yml, and the push jobs depend on it. The build schema is regenerated with the current Fallout version.

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.
@vbreuss vbreuss self-assigned this Nov 22, 2026
@vbreuss vbreuss added the coverage Additional tests for edge cases or improvement of test coverage label Nov 22, 2026
@mergify

mergify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds a console smoke app that runs normally and as a Native AOT executable on Windows, Linux and macOS.

  • A consumer app checks real and mock library features under Native AOT.
  • The build checks native AOT apps across all three operating systems.

No actionable issues found.

Reviews (1) · Last reviewed commit: "test: add AOT smoke tests" · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 10 files

Turn on auto-fix | Re-trigger cubic

@vbreuss
vbreuss enabled auto-merge (squash) November 22, 2026 06:55
@vbreuss
vbreuss disabled auto-merge November 22, 2026 07:27
@vbreuss
vbreuss merged commit 6ffef06 into main Nov 22, 2026
15 checks passed
@vbreuss
vbreuss deleted the test/aot-smoke-tests branch November 22, 2026 07:27
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

This is addressed in release v8.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coverage Additional tests for edge cases or improvement of test coverage state: released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant