Skip to content
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

[iOS.Simulator] Failed to determine the exit code #639

Closed
3 tasks
fanyang-mono opened this issue Aug 24, 2023 · 7 comments · Fixed by dotnet/runtime#93463
Closed
3 tasks

[iOS.Simulator] Failed to determine the exit code #639

fanyang-mono opened this issue Aug 24, 2023 · 7 comments · Fixed by dotnet/runtime#93463

Comments

@fanyang-mono
Copy link
Member

fanyang-mono commented Aug 24, 2023

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=383982

Build leg reported

iOS.Simulator.LibraryMode.Test.WorkItemExecution

Pull Request

dotnet/runtime#91008

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "Failed to determine the exit code",
    "BuildRetry": false,
    "ErrorPattern": "",
    "ExcludeConsoleLog": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=383982
Error message validated: Failed to determine the exit code
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/24/2023 3:44:42 PM UTC

Report

Build Definition Test Pull Request
437457 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
437357 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
437224 dotnet/runtime JIT_opt.WorkItemExecution
436829 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#91560
436870 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
436778 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
436360 dotnet/runtime JIT/Directed/aliasing_retbuf/aliasing_retbuf/aliasing_retbuf.sh
428731 dotnet/runtime JIT/Directed/aliasing_retbuf/aliasing_retbuf/aliasing_retbuf.sh
436308 dotnet/runtime JIT_Regression.WorkItemExecution dotnet/runtime#92057
435688 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
435316 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
435050 dotnet/runtime JIT_opt.WorkItemExecution
434180 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
433988 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#93182
433702 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
433394 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92974
432858 dotnet/runtime JIT_Regression.WorkItemExecution
432793 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#91800
432431 dotnet/runtime JIT_Methodical.WorkItemExecution
432200 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92057
432136 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
431633 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92057
431543 dotnet/runtime JIT_opt.WorkItemExecution
431495 dotnet/runtime JIT_Methodical.WorkItemExecution dotnet/runtime#92471
431376 dotnet/runtime JIT_Regression.WorkItemExecution
430969 dotnet/runtime JIT_opt.WorkItemExecution
430845 dotnet/runtime JIT_opt.WorkItemExecution dotnet/runtime#92057
430640 dotnet/runtime JIT_opt.WorkItemExecution
430428 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
430356 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
429942 dotnet/runtime JIT_Regression.WorkItemExecution dotnet/runtime#92057
430200 dotnet/runtime JIT_opt.WorkItemExecution dotnet/runtime#93131
430188 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
430155 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#91808
429941 dotnet/runtime JIT_opt.WorkItemExecution dotnet/runtime#93109
429642 dotnet/runtime JIT_opt.WorkItemExecution dotnet/runtime#93108
429608 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92471
429616 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
429653 dotnet/runtime JIT_Methodical.WorkItemExecution dotnet/runtime#93109
429628 dotnet/runtime JIT_Methodical.WorkItemExecution dotnet/runtime#92057
429167 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
428630 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#93061
429034 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
428717 dotnet/runtime JIT_opt.WorkItemExecution
428384 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#91800
427248 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92927
428283 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
428233 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92057
428019 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92029
427761 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
427718 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
427426 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92471
427357 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
427009 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
426861 dotnet/runtime JIT_opt.WorkItemExecution
426737 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
426302 dotnet/runtime JIT_opt.WorkItemExecution
426337 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
425881 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92057
425987 dotnet/runtime JIT_opt.WorkItemExecution
425496 dotnet/runtime JIT_opt.WorkItemExecution
425500 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92728
425411 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
425340 dotnet/runtime JIT_opt.WorkItemExecution
425041 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
424667 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92057
423382 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
422534 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
422421 dotnet/runtime JIT_Regression.WorkItemExecution
422184 dotnet/runtime JIT_opt.WorkItemExecution
421480 dotnet/runtime JIT_opt.WorkItemExecution
421326 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
421052 dotnet/runtime JIT_opt.WorkItemExecution
420796 dotnet/runtime JIT_opt.WorkItemExecution
420421 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
420359 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
420139 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
419821 dotnet/runtime JIT_opt.WorkItemExecution
419746 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
419035 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92471
419010 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
418441 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
418385 dotnet/runtime JIT_opt.WorkItemExecution
418094 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
418047 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
417682 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
417421 dotnet/runtime JIT_SIMD.WorkItemExecution
417183 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
417028 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
416950 dotnet/runtime baseservices_varargs.WorkItemExecution dotnet/runtime#92057
416766 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution dotnet/runtime#92057
416738 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
416674 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
416588 dotnet/runtime JIT_opt.WorkItemExecution
416597 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
416394 dotnet/runtime JIT_opt.WorkItemExecution
416292 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
416172 dotnet/runtime JIT_opt.WorkItemExecution
416166 dotnet/runtime JIT_opt.WorkItemExecution
415882 dotnet/runtime iOS.Simulator.LibraryMode.Test.WorkItemExecution
Displaying 100 of 182 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
9 39 182
@fanyang-mono fanyang-mono changed the title Failed to determine the exit code [iOS.Simulator] Failed to determine the exit code Aug 24, 2023
@jandupej
Copy link
Member

This seems to occur in the logs:

/private/tmp/helix/working/A70408BB/p/dotnet-cli/sdk/8.0.100-rc.1.23415.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(166,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 9.0.  Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0. Download the .NET SDK from https://aka.ms/dotnet/download [/private/tmp/helix/working/A70408BB/w/B4630A0F/e/publish/ProxyProjectForAOTOnHelix.proj]

@SamMonoRT
Copy link
Member

As pointed out above - seems like a SDK mismatch - error NETSDK1045: The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0. Download the .NET SDK from https://aka.ms/dotnet/download

@steveisok - who is the best contact to assign this issue too. Killing many iOS simulator runs.

@steveisok
Copy link
Member

@steveisok - who is the best contact to assign this issue too. Killing many iOS simulator runs.

Weirdly, that doesn't seem to be stopping anything. If you look at https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-597fd7c448d446a1a3/JIT_Methodical/1/console.b37fd04b.log?helixlogtype=result, you'll notice the app builds and executes.

I think Failed to determine the exit code might not detect the right condition. It looks like xharness is trying multiple avenues to get the exit code. For example:

dbug: 2023-09-14 15:14:52.542326-0700 JIT_Methodical[86845:8715756] DOTNET.APP_EXIT_CODE: 100
dbug: Xamarin.Hosting: Simulated process has exited (could not get process info: Can't find process with ID 86845).
dbug: Process mlaunch exited with 0
dbug: Failed to determine the exit code from /tmp/helix/working/A9EC0901/w/B6C2099F/uploads/iPhone X (iOS 15.0) - created by XHarness.log
dbug: Detected exit code 100 from /tmp/helix/working/A9EC0901/w/B6C2099F/uploads/JIT_Methodical.log
info: App run ended with 100
info: Application has finished with exit code: 100 (as expected)

Notice the failed to determine is from XHarness.log and on the next line it finds it within JIT_Methodical.log. I think some of these are passing.

@steveisok
Copy link
Member

@akoeplinger, I have to suspect the The current .NET SDK does not support targeting .NET 9.0 message is due to us using an RC1 SDK when building on helix. If true, is there a way to send up a workable SDK?

@SamMonoRT
Copy link
Member

@steveisok - who is the best contact to assign this issue too. Killing many iOS simulator runs.

Weirdly, that doesn't seem to be stopping anything. If you look at https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-597fd7c448d446a1a3/JIT_Methodical/1/console.b37fd04b.log?helixlogtype=result, you'll notice the app builds and executes.

I think Failed to determine the exit code might not detect the right condition. It looks like xharness is trying multiple avenues to get the exit code. For example:

dbug: 2023-09-14 15:14:52.542326-0700 JIT_Methodical[86845:8715756] DOTNET.APP_EXIT_CODE: 100
dbug: Xamarin.Hosting: Simulated process has exited (could not get process info: Can't find process with ID 86845).
dbug: Process mlaunch exited with 0
dbug: Failed to determine the exit code from /tmp/helix/working/A9EC0901/w/B6C2099F/uploads/iPhone X (iOS 15.0) - created by XHarness.log
dbug: Detected exit code 100 from /tmp/helix/working/A9EC0901/w/B6C2099F/uploads/JIT_Methodical.log
info: App run ended with 100
info: Application has finished with exit code: 100 (as expected)

Notice the failed to determine is from XHarness.log and on the next line it finds it within JIT_Methodical.log. I think some of these are passing.

Interesting, I checked a few other logs, yeah, the tests are indeed passing.

@ivanpovazan
Copy link
Member

This has been fixed with: dotnet/runtime@e8b8a77

@steveisok
Copy link
Member

@ilyas1974 when you get a chance, can you close this issue as it has been resolved?

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

Successfully merging a pull request may close this issue.

7 participants