Uh oh!
There was an error while loading. Please reload this page.
Mark new userevents tests as native AOT incompatible - #123541
Conversation
These are all crashing: ``` 11:31:58.741 Running test: tracing/userevents/custommetadata/custommetadata/custommetadata.cmd Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1') at System.ArgumentNullException.Throw(String) at System.IO.Path.Combine(String, String, String) at Tracing.UserEvents.Tests.Common.UserEventsTestRunner.ResolveRecordTracePath(String) at Tracing.UserEvents.Tests.Common.UserEventsTestRunner.RunOrchestrator(String, String, Func`2, Int32, Int32) at Tracing.UserEvents.Tests.CustomMetadata.CustomMetadata.Main(String[] args) ```
There was a problem hiding this comment.
Pull request overview
This PR marks all user events tests under src/tests/tracing/userevents/ as incompatible with Native AOT by adding a Directory.Build.props file that sets NativeAotIncompatible=true.
Changes:
- Added a Directory.Build.props file to disable Native AOT testing for all user events tests
jkotas
commented
Jan 23, 2026
Should we have an issue to get this fixed? |
mdh1418
left a comment
There was a problem hiding this comment.
Thanks, I'm guessing that passing around paths like typeof(CustomMetadata).Assembly.Location doesn't work on NativeAOT?
Uh oh!
There was an error while loading. Please reload this page.
MichalStrehovsky
commented
Jan 23, 2026
Yes, Assembly.Location doesn't work in single file form factors because the assembly doesn't exist anymore. AppContext.BaseDirectory works. |
Uh oh!
There was an error while loading. Please reload this page.
These are all crashing: ``` 11:31:58.741 Running test: tracing/userevents/custommetadata/custommetadata/custommetadata.cmd Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1') at System.ArgumentNullException.Throw(String) at System.IO.Path.Combine(String, String, String) at Tracing.UserEvents.Tests.Common.UserEventsTestRunner.ResolveRecordTracePath(String) at Tracing.UserEvents.Tests.Common.UserEventsTestRunner.RunOrchestrator(String, String, Func`2, Int32, Int32) at Tracing.UserEvents.Tests.CustomMetadata.CustomMetadata.Main(String[] args) ```
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
These are all crashing: