dotnet / dnceng

.NET Engineering Services
MIT License
25 stars 18 forks source link

CoreSimulator folder permissions issue on some Mac machines #4199

Open ivanpovazan opened 20 hours ago

ivanpovazan commented 20 hours ago

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=822026

Build leg reported

E2E Apple - Simulator Commands Helix Tests Build_Debug

Pull Request

https://github.com/dotnet/xharness/pull/1282

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

{
  "ErrorPattern": "permission to save the file.*in the folder.*CoreSimulator",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

@dotnet/dnceng

Release Note Category

Additional information about the issue reported

Build error leg or test failing:

When testing simulator commands on some machines we get:

[08:21:48] dbug: Running /Applications/Xcode_14.3.app/Contents/Developer/usr/bin/simctl boot 4B1F47EA-7853-45DF-B459-37A3E6BCABF8
[08:21:49] dbug: An error was encountered processing the command (domain=NSCocoaErrorDomain, code=513):
[08:21:49] dbug: You don’t have permission to save the file “4B1F47EA-7853-45DF-B459-37A3E6BCABF8” in the folder “CoreSimulator”.
[08:21:49] dbug: You don’t have permission.
[08:21:49] dbug: To view or change permissions, select the item in the Finder and choose File > Get Info.
[08:21:49] dbug: Underlying error (domain=NSPOSIXErrorDomain, code=13):
[08:21:49] dbug: The operation couldn’t be completed. Permission denied
[08:21:49] dbug: Permission denied
[08:21:49] dbug: Process simctl exited with 1

Full log for context as it repeats the permission denied throughout the sequence: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-xharness-refs-pull-1282-merge-6620621afd364a37b1/System.Numerics.Vectors.Tests.Attempt.3/1/console.fd153acd.log?helixlogtype=result

Additional info

This was occurring before as reported in: https://github.com/dotnet/dnceng/issues/1878

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=822026 Error message validated: [permission to save the file.*in the folder.*CoreSimulator] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 10/1/2024 2:44:39 PM UTC

Report

Build Definition Test Pull Request
822026 dotnet/xharness System.Numerics.Vectors.Tests.WorkItemExecution dotnet/xharness#1282

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 1
ivanpovazan commented 20 hours ago

This is happening on dci-mac-build-250 Can someone please log in to dci-mac-build-250 via KVM please check the folder permissions.