aspire
aspire copied to clipboard
Test Failure: Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount
Here is the failure log from Helix ... looks like a timeout.
Disabling in this PR.
Build Information
Build: Build error leg or test failing: Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount Pull request:
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
System.IO.DirectoryNotFoundException : Could not find a part of the path '/tmp/p03cmxhk.ubl/mongo-init.js'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
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)
at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.File.WriteToFileAsync(String path, FileMode mode, String contents, Encoding encoding, CancellationToken cancellationToken)
at Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount() in /_/tests/Aspire.Hosting.MongoDB.Tests/MongoDbFunctionalTests.cs:line 266
--- End of stack trace from previous location ---
Last 10 failures:
| Run date | Test Name |
|---|---|
| Apr 25 4 AM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 25 2 AM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 25 12 AM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 24 10 PM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 24 8 PM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 24 6 PM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 24 4 PM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 24 2 PM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 24 12 PM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
| Apr 24 10 AM | [linux] Aspire.Hosting.MongoDB.Tests.MongoDbFunctionalTests.VerifyWithInitBindMount |
-- Updated on 4/29/2025 6:21:23 PM UTC
Summary
| Last 40 | Total failed / total runs |
|---|---|
| 0 | 45 / 100 |
@joperezr would you be able to look at this one? System.IO.DirectoryNotFoundException : Could not find a part of the path '/tmp/p03cmxhk.ubl/mongo-init.js'. .
@joperezr would you be able to look at this one?
System.IO.DirectoryNotFoundException : Could not find a part of the path '/tmp/p03cmxhk.ubl/mongo-init.js'..
https://github.com/dotnet/aspire/pull/8960 should fix the deterministic failure at least.
This was quarantined again in https://github.com/dotnet/aspire/pull/8908, so re-opening. cc @danegsta
Correction - this is being used with a new test which is failing with the same error.
Looks like we weren't explicitly creating a sub-folder before trying to write files.