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

[mono] Apple mobile tests could not find test artifacts #89491

Closed
kotlarmilos opened this issue Jul 26, 2023 · 8 comments · Fixed by #89508
Closed

[mono] Apple mobile tests could not find test artifacts #89491

kotlarmilos opened this issue Jul 26, 2023 · 8 comments · Fixed by #89508
Labels
area-VM-meta-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS
Milestone

Comments

@kotlarmilos
Copy link
Member

kotlarmilos commented Jul 26, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=349967&view=results
Build error leg or test failing: tvos-arm64 Release AllSubsets_Mono
Pull request: #88167

Error Message

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

{
  "ErrorMessage": "System.IO.DirectoryNotFoundException : Could not find a part of the path",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
[FAIL] System.IO.Compression.ZLibStreamUnitTests.Dispose_WithUnfinishedReadAsync   Test name: System.IO.Compression.ZLibStreamUnitTests.Dispose_WithUnfinishedReadAsync
[20:08:56.1418830] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1418930] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.FileNotFoundException : Could not find file '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/UncompressedTestFiles/TestDocument.pdf'.   Exception stack traces:    at System.IO.FileInfo.get_Length()
[20:08:56.1419040]    at System.IO.Compression.CompressionStreamUnitTestBase.Dispose_WithUnfinishedReadAsync()
[20:08:56.1419100] --- End of stack trace from previous location ---
[20:08:56.1419190]    Execution time: 0.0040698
[20:08:56.1419670] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723] 2) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.Read_EndOfStreamPosition   Test name: System.IO.Compression.ZLibStreamUnitTests.Read_EndOfStreamPosition
[20:08:56.1419890] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1425240] 2023-07-25 17:08:56.242 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1433750] 2023-07-25 17:08:56.244 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1433920]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1448530] 2023-07-25 17:08:56.244 System.IO.Compression.Tests[43690:25521723]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1448670]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1448730]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1448780]    at System.IO.Compression.CompressionStreamUnitTestBase.Read_EndOfStreamPosition()
[20:08:56.1449250] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723] --- End of stack trace from previous location ---
[20:08:56.1449330]    Execution time: 0.0046917
[20:08:56.1450030] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723] 3) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen   Test name: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(mode: Compress)   Test case: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen
[20:08:56.1450210]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1450800] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1451490] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1452160] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1452240]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1452290]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1458420] 2023-07-25 17:08:56.246 System.IO.Compression.Tests[43690:25521723]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1458600]    at System.IO.Compression.CompressionStreamUnitTestBase.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode mode)
[20:08:56.1458660] --- End of stack trace from previous location ---
[20:08:56.1458720]    Execution time: 0.0029031
[20:08:56.1472050] 2023-07-25 17:08:56.247 System.IO.Compression.Tests[43690:25521723] 4) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen   Test name: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(mode: Decompress)   Test case: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen
[20:08:56.1472200]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1484290] 2023-07-25 17:08:56.248 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1484470] 2023-07-25 17:08:56.249 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1491640] 2023-07-25 17:08:56.249 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1491750]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1491810]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1492290] 2023-07-25 17:08:56.249 System.IO.Compression.Tests[43690:25521723]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1492360]    at System.IO.Compression.CompressionStreamUnitTestBase.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode mode)
[20:08:56.1492410] --- End of stack trace from previous location ---
[20:08:56.1492450]    Execution time: 0.004419
[20:08:56.1496950] 2023-07-25 17:08:56.250 System.IO.Compression.Tests[43690:25521723] 5) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.FlushAsync_DuringFlushAsync   Test name: System.IO.Compression.ZLibStreamUnitTests.FlushAsync_DuringFlushAsync
[20:08:56.1497730] 2023-07-25 17:08:56.250 System.IO.Compression.Tests[43690:25521723]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1506120] 2023-07-25 17:08:56.251 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1507180] 2023-07-25 17:08:56.251 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1507320]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1518130] 2023-07-25 17:08:56.252 System.IO.Compression.Tests[43690:25521723]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1518430]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1518480]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1518530]    at System.IO.Compression.CompressionStreamUnitTestBase.FlushAsync_DuringFlushAsync()
[20:08:56.1541760] 2023-07-25 17:08:56.253 System.IO.Compression.Tests[43690:25521723] --- End of stack trace from previous location ---
[20:08:56.1542050]    Execution time: 0.0029317

The System.Formats.Tar.Tests and System.IO.Compression.Tests are failing with System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/'.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=349967
Error message validated: System.IO.DirectoryNotFoundException : Could not find a part of the path
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/26/2023 8:39:19 AM UTC

Report

Build Definition Test Pull Request
353600 dotnet/runtime normal-System.IO.FileSystem.Tests.WorkItemExecution
353569 dotnet/runtime System.IO.Compression.Tests.zip_ReadTests.ReadInterleaved #89548
353281 dotnet/runtime System.Formats.Tar.Tests.TarReader_File_Tests.Throw_FifoContainsNonZeroDataSection #89223
352690 dotnet/runtime System.IO.Compression.Tests.zip_UpdateTests.AddFileToArchive #89431
352583 dotnet/runtime System.IO.Compression.Tests.ZipFile_Create.CreateFromDirectoryNormal #89301
352553 dotnet/runtime System.IO.Compression.Tests.ZipFile_Create.CreateSetsExternalAttributesCorrectly #89498
352503 dotnet/runtime System.IO.Compression.Tests.ZipFile_Create.CreateFromDirectory_IncludeBaseDirectoryAsync #89428
352326 dotnet/runtime System.IO.Compression.Tests.ZipFile_Create.CreateSetsExternalAttributesCorrectly
351866 dotnet/runtime System.IO.Compression.Tests.ZipFile_Create.CreateSetsExternalAttributesCorrectly
351758 dotnet/runtime System.IO.Compression.Tests.ZipFile_Create.CreateSetsExternalAttributesCorrectly #89223
350013 dotnet/runtime System.Data.Tests.SqlTypes.SqlXmlTest.CreateReader_TestAgainstBaseline #89392
351065 dotnet/runtime System.Formats.Tar.Tests.TarReader_Tests.TarReader_LeaveOpen_False_Async
350917 dotnet/runtime System.IO.Compression.Tests.zip_UpdateTests.AddFileToArchive_AfterReading #89308
349967 dotnet/runtime System.IO.Compression.Tests.zip_UpdateTests.UpdateReadTwice #88167

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
8 14 14
@kotlarmilos kotlarmilos added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-VM-meta-mono os-ios Apple iOS Known Build Error Use this to report build issues in the .NET Helix tab labels Jul 26, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jul 26, 2023
@ghost
Copy link

ghost commented Jul 26, 2023

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=349967&view=results
Build error leg or test failing: tvos-arm64 Release AllSubsets_Mono
Pull request: #88167

Error Message

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

{
  "ErrorMessage": "System.IO.DirectoryNotFoundException : Could not find a part of the path",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
[FAIL] System.IO.Compression.ZLibStreamUnitTests.Dispose_WithUnfinishedReadAsync   Test name: System.IO.Compression.ZLibStreamUnitTests.Dispose_WithUnfinishedReadAsync
[20:08:56.1418830] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1418930] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.FileNotFoundException : Could not find file '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/UncompressedTestFiles/TestDocument.pdf'.   Exception stack traces:    at System.IO.FileInfo.get_Length()
[20:08:56.1419040]    at System.IO.Compression.CompressionStreamUnitTestBase.Dispose_WithUnfinishedReadAsync()
[20:08:56.1419100] --- End of stack trace from previous location ---
[20:08:56.1419190]    Execution time: 0.0040698
[20:08:56.1419670] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723] 2) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.Read_EndOfStreamPosition   Test name: System.IO.Compression.ZLibStreamUnitTests.Read_EndOfStreamPosition
[20:08:56.1419890] 2023-07-25 17:08:56.241 System.IO.Compression.Tests[43690:25521723]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1425240] 2023-07-25 17:08:56.242 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1433750] 2023-07-25 17:08:56.244 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1433920]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1448530] 2023-07-25 17:08:56.244 System.IO.Compression.Tests[43690:25521723]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1448670]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1448730]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1448780]    at System.IO.Compression.CompressionStreamUnitTestBase.Read_EndOfStreamPosition()
[20:08:56.1449250] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723] --- End of stack trace from previous location ---
[20:08:56.1449330]    Execution time: 0.0046917
[20:08:56.1450030] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723] 3) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen   Test name: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(mode: Compress)   Test case: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen
[20:08:56.1450210]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1450800] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1451490] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1452160] 2023-07-25 17:08:56.245 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1452240]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1452290]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1458420] 2023-07-25 17:08:56.246 System.IO.Compression.Tests[43690:25521723]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1458600]    at System.IO.Compression.CompressionStreamUnitTestBase.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode mode)
[20:08:56.1458660] --- End of stack trace from previous location ---
[20:08:56.1458720]    Execution time: 0.0029031
[20:08:56.1472050] 2023-07-25 17:08:56.247 System.IO.Compression.Tests[43690:25521723] 4) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen   Test name: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(mode: Decompress)   Test case: System.IO.Compression.ZLibStreamUnitTests.BaseStream_ValidAfterDisposeWithTrueLeaveOpen
[20:08:56.1472200]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1484290] 2023-07-25 17:08:56.248 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1484470] 2023-07-25 17:08:56.249 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1491640] 2023-07-25 17:08:56.249 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1491750]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1491810]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1492290] 2023-07-25 17:08:56.249 System.IO.Compression.Tests[43690:25521723]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1492360]    at System.IO.Compression.CompressionStreamUnitTestBase.BaseStream_ValidAfterDisposeWithTrueLeaveOpen(CompressionMode mode)
[20:08:56.1492410] --- End of stack trace from previous location ---
[20:08:56.1492450]    Execution time: 0.004419
[20:08:56.1496950] 2023-07-25 17:08:56.250 System.IO.Compression.Tests[43690:25521723] 5) 	[FAIL] System.IO.Compression.ZLibStreamUnitTests.FlushAsync_DuringFlushAsync   Test name: System.IO.Compression.ZLibStreamUnitTests.FlushAsync_DuringFlushAsync
[20:08:56.1497730] 2023-07-25 17:08:56.250 System.IO.Compression.Tests[43690:25521723]    Assembly:  [System.IO.Compression.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[20:08:56.1506120] 2023-07-25 17:08:56.251 System.IO.Compression.Tests[43690:25521723]    Exception messages: System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/System.IO.Compression.Tests.app/ZLibTestData/TestDocument.pdf.z'.   Exception stack traces:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1507180] 2023-07-25 17:08:56.251 System.IO.Compression.Tests[43690:25521723]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
[20:08:56.1507320]    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode, Func`4 createOpenException)
[20:08:56.1518130] 2023-07-25 17:08:56.252 System.IO.Compression.Tests[43690:25521723]    at System.IO.File.ReadAllBytes(String path)
[20:08:56.1518430]    at StreamHelpers.CreateTempCopyStream(String path)
[20:08:56.1518480]    at LocalMemoryStream.readAppFileAsync(String testFile)
[20:08:56.1518530]    at System.IO.Compression.CompressionStreamUnitTestBase.FlushAsync_DuringFlushAsync()
[20:08:56.1541760] 2023-07-25 17:08:56.253 System.IO.Compression.Tests[43690:25521723] --- End of stack trace from previous location ---
[20:08:56.1542050]    Execution time: 0.0029317

The System.Formats.Tar.Tests and System.IO.Compression.Tests are failing with System.IO.DirectoryNotFoundException : Could not find a part of the path '/private/var/containers/Bundle/Application/5CFA5A88-4C15-401E-A916-556A00578E7B/'.

Author: kotlarmilos
Assignees: -
Labels:

blocking-clean-ci, area-VM-meta-mono, os-ios, Known Build Error

Milestone: -

@kotlarmilos kotlarmilos added this to the 8.0.0 milestone Jul 26, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jul 26, 2023
@akoeplinger
Copy link
Member

Interestingly I don't see this locally. Maybe related to building the projects on Helix? @steveisok any ideas?

@steveisok
Copy link
Member

I'm assuming the test data comes from System.IO.Compression.TestData. @akoeplinger I don't see where this is being packaged with the app and/or written to disk in the tests.

@akoeplinger
Copy link
Member

akoeplinger commented Jul 26, 2023

Yeah it comes from System.IO.Compression.TestData and is supposed to just end up in the app. Not sure if this never worked or regressed recently? But why would it work locally and not on CI?

@akoeplinger
Copy link
Member

OK, I know what's going on. Locally the test files are in the correct subfolders inside the .app:
image

But on the Helix-built one they end up in the root:

image

@kotlarmilos
Copy link
Member Author

kotlarmilos commented Jul 26, 2023

That must have regressed in

<ItemGroup>
<!--
Checks if the directory name "AppleAssembliesToBundle" is equal to the "AssemblyName",
if they match, consider it as the root directory and copy the files there,
otherwise, copy the files to a subdirectory.
-->
<BundleFiles Condition="'%(AppleAssembliesToBundle._IsNative)' != 'true' and ($([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName('%(AppleAssembliesToBundle.Identity)')))) == '$(AssemblyName)' or '$(IsRuntimeTests)' != 'true')"
Include="@(AppleAssembliesToBundle)" TargetDir="publish" />
<BundleFiles Condition="'%(AppleAssembliesToBundle._IsNative)' != 'true' and $([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName('%(AppleAssembliesToBundle.Identity)')))) != '$(AssemblyName)' and '$(IsRuntimeTests)' == 'true'"
Include="@(AppleAssembliesToBundle)" TargetDir="publish\$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName('%(AppleAssembliesToBundle.Identity)'))))" />
<BundleFiles Include="@(AppleNativeFilesToBundle)" TargetDir="publish" />
<BundleFiles Include="$(MonoProjectRoot)\msbuild\apple\data\*" TargetDir="publish" />
<ExtraFiles Condition="'%(AppleAssembliesToBundle._IsNative)' == 'true'"
Include="@(AppleAssembliesToBundle)" TargetDir="extraFiles" />
</ItemGroup>

The RecursivDir didn't work for the runtime tests

<BundleFiles Condition="'%(AppleAssembliesToBundle._IsNative)' != 'true'"
                   Include="@(AppleAssembliesToBundle)"         TargetDir="publish\%(AppleAssembliesToBundle.RecursiveDir)" />
<BundleFiles Include="@(AppleNativeFilesToBundle)"        TargetDir="publish\%(AppleNativeFilesToBundle.RecursiveDir)" />
<BundleFiles Include="$(RuntimeConfigFilePath)"           TargetDir="publish" />

@akoeplinger
Copy link
Member

The RecursivDir didn't work for the runtime tests

Hmm we should figure out that problem then since the RecursiveDir is the correct thing in all of these.

@kotlarmilos
Copy link
Member Author

Runtime tests intermediate path doesn't have full path resolved causing RecursiveDir not being populated.

/Users/miloskotlar/dotnet/runtime/artifacts/tests/coreclr/obj/ios.arm64.Release/Managed/./build/

Resolving the full path should fix the issue.

<IntermediateOutputPath>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)'))</IntermediateOutputPath>

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 26, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 27, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-VM-meta-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants