-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run NativeAOT tests when ILLink changes #88934
Conversation
NativeAOT uses code from ILLinker - specifically we share lot of tests. So if these change we want to make sure it didn't break their usage in NativeAOT. The comment change in the tests is to trigger this new rule in the CI - but we can keep the comment regardless.
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsNativeAOT uses code from ILLinker - specifically we share lot of tests. So if these change we want to make sure it didn't break their usage in NativeAOT. The comment change in the tests is to trigger this new rule in the CI - but we can keep the comment regardless. This was found by #88678 which broke NativeAOT (#88922) because the CI for #88678 didn't run NativeAOT tests.
|
When do you run the NativeAOT tests? For wasm we run only System.Runtime.Tests on PRs, because the full run is resource heavy. Currently, you need to run That should catch other instances of illinker changes that might break stuff in wasm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@radical Right now we only run the tests when Native AOT or something else in the coreclr tools directory changes (which is mostly native aot and crossgen2). This also runs the tests when ILLink changes, but this is similarly low traffic. Also, this is just the smoke tests. The full suite is in runtime-extra-platforms and doesn't run by default in PR. |
Also - I should have been more specific. This will run the NativeAOT Unit tests - so tests which were written directly for the compiler. It will NOT run the AOTed libraries tests for example. |
Thanks, that helps! 👍 |
All failures are known and the desired lag did run in CI. |
NativeAOT uses code from ILLinker - specifically we share lot of tests. So if these change we want to make sure it didn't break their usage in NativeAOT.
The comment change in the tests is to trigger this new rule in the CI - but we can keep the comment regardless.
This was found by #88678 which broke NativeAOT (#88922) because the CI for #88678 didn't run NativeAOT tests.