Summary
StreamingJsonDeserializerTests+FileBasedTests unit tests in Microsoft.Maui.Essentials.AI.UnitTests consistently fail with System.IO.IOException due to a file being locked by another process when running in parallel on Windows Helix.
Build Information
- Pipeline: maui-pr (ID 302)
- Build: 1498916
- Build ID: 1498916
- Branch: net11.0
- First seen: 2026-07-07 (build 1497603)
- Occurrences: 2 in last 10 builds (1497603, 1498916)
Affected Legs
Windows Helix Unit Tests (Debug) — Microsoft.Maui.Essentials.AI.UnitTests.dll on Windows (xUnit, Helix)
Error Message
Microsoft.Maui.Essentials.AI.UnitTests.StreamingJsonDeserializerTests+FileBasedTests.ProcessChunk_TxtFile_FinalResultMatchesDirectDeserialization(
fileName: "sahara-itinerary-1.txt", ...) [FAIL]
System.IO.IOException : The process cannot access the file
'C:\h\w\...\TestData\DataStreams\Itinerary\sahara-itinerary-1.txt'
because it is being used by another process.
Stack Trace:
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(...)
at System.IO.File.ReadAllLines(...)
at FileBasedTests.ProcessChunk_TxtFile_FinalResultMatchesDirectDeserialization(...)
(Build 1498916): ProcessChunk_TxtFile_ShouldProgressDaysArray — same IOException on
'maui-itinerary-2.txt' locked by another process.
Recommended Action
- The test reads
.txt files from TestData\DataStreams\Itinerary\ using File.ReadAllLines. Multiple xUnit theories (parameterized test cases) likely share the same file path and run in parallel — the second opener hits the lock.
- Investigate
src/AI/tests/Essentials.AI.UnitTests/Tests/StreamingJsonDeserializerTests/FileBasedTests.cs around line 44. Either:
- Open the file with
FileShare.Read instead of the default FileShare.None, or
- Add
[Collection("sequential")] / disable parallelism for FileBasedTests, or
- Ensure each theory variant uses a distinct file copy.
- Confirm with:
dotnet test ... --filter StreamingJsonDeserializerTests -- RunConfiguration.DisableParallelization=true to check whether sequential execution clears the failure.
Generated by CI Failure Scanner (net11.0) · 165.1 AIC · ⌖ 6.44 AIC · ⊞ 8.8K · ◷
Summary
StreamingJsonDeserializerTests+FileBasedTestsunit tests inMicrosoft.Maui.Essentials.AI.UnitTestsconsistently fail withSystem.IO.IOExceptiondue to a file being locked by another process when running in parallel on Windows Helix.Build Information
Affected Legs
Windows Helix Unit Tests (Debug)—Microsoft.Maui.Essentials.AI.UnitTests.dllon Windows (xUnit, Helix)Error Message
Recommended Action
.txtfiles fromTestData\DataStreams\Itinerary\usingFile.ReadAllLines. Multiple xUnit theories (parameterized test cases) likely share the same file path and run in parallel — the second opener hits the lock.src/AI/tests/Essentials.AI.UnitTests/Tests/StreamingJsonDeserializerTests/FileBasedTests.csaround line 44. Either:FileShare.Readinstead of the defaultFileShare.None, or[Collection("sequential")]/ disable parallelism forFileBasedTests, ordotnet test ... --filter StreamingJsonDeserializerTests -- RunConfiguration.DisableParallelization=trueto check whether sequential execution clears the failure.