dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.93k stars 4.64k forks source link

[NativeAOT-iOS] MacCatalyst fails to start/log `nativeaot.SmokeTests` tests #105804

Open matouskozak opened 1 month ago

matouskozak commented 1 month ago

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=756458 Build error leg or test failing: nativeaot.SmokeTests.Reflection, nativeaot.SmokeTests.StackTraceMetadata Affected CI: maccatalyst-arm64 Release AllSubsets_NativeAOT_RuntimeTests (runtime-extra-platforms)

The test are failing either with: XHarness exit code: 83 (APP_LAUNCH_FAILURE)

[05:10:37.6845280] The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-600 "procNotFound: no eligible process with specified descriptor" UserInfo={_LSLine=387, _LSFunction=_LSAnnotateAndSendAppleEventWithOptions}

or XHarness exit code: 82 (RETURN_CODE_NOT_SET)

Failed to detect application's exit code. The log file was empty / not found at /tmp/helix/working/9D2308EA/w/9FFA08F1/uploads/Reports/nativeaot.SmokeTests.Reflection/Reflection/net.dot.nativeaot_SmokeTests_Reflection.log

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "nativeaot/SmokeTests/Reflection/Reflection/Reflection.sh [FAIL]",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=756458 Error message validated: [nativeaot/SmokeTests/Reflection/Reflection/Reflection.sh [FAIL]] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 8/1/2024 1:15:20 PM UTC

Report

Build Definition Test Pull Request
789085 dotnet/runtime nativeaot.SmokeTests.Reflection.WorkItemExecution
784159 dotnet/runtime nativeaot.SmokeTests.Reflection.WorkItemExecution
773348 dotnet/runtime nativeaot.SmokeTests.Reflection.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 3
dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to 'os-maccatalyst': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.

dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to this area: @directhex, @matouskozak See info in area-owners.md if you want to be subscribed.

matouskozak commented 1 month ago

Could it be related to https://github.com/dotnet/runtime/pull/102882 @ivanpovazan @kotlarmilos ?

ivanpovazan commented 1 month ago

Could it be related to #102882 @ivanpovazan @kotlarmilos ?

I don't think so, that issue did disable the test, but we had a failure with it on tvos-arm64 even before in: https://github.com/dotnet/runtime/issues/90460

If I remember correctly the behavior was similar to what you are getting ie the device log showed correct output in the logs but test return value was not what the test runner expected.

I would check if we are properly rooting every possible test infra assembly when we build these tests with NativeAOT.

ivanpovazan commented 1 month ago

@matouskozak @kotlarmilos could you check this:

I would check if we are properly rooting every possible test infra assembly when we build these tests with NativeAOT.