Skip to content

Exclude System.IO.Compression async tests from wasm #114769

Description

@carlossanlop

The newly added async tests in System.IO.Compression and System.IO.Compression.ZipFile are passing in all platforms and architectures except in the wasm libraries tests. They throw 'PlatformNotSupportedException' with the message 'Cannot wait on monitors on this runtime' which seems to be due to async tests not playing nicely in a single threaded environment.

Because I modified the existing tests so they would run the sync and async code depending on the boolean argument, both sync and async tests are currently failing in those wasm platforms.

The fix would be to split the async tests from the sync tests and either excluding the async tests from wasm or finding a way for them to run without issues in wasm.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1019196
Build error leg or test failing: System.IO.Compression async tests

Error Message

{
"ErrorMessage" : "Cannot wait on monitors on this runtime",
"BuildRetry" : false,
"ExcludeConsoleLog" : false
}
[09:20:30] info: [FAIL] System.IO.Compression.Tests.zip_InvalidParametersAndStrangeFiles.ZipArchiveEntry_CorruptedStream_EnsureNoExtraBytesReadOrOverWritten(async: True)
[09:20:30] info: System.PlatformNotSupportedException : Cannot wait on monitors on this runtime.
[09:20:30] info: at System.Threading.Monitor.ObjWait(Int32 millisecondsTimeout, Object obj)
[09:20:30] info: at System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout)
[09:20:30] info: at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[09:20:30] info: at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[09:20:30] info: at System.Threading.Tasks.Task.InternalWaitCore(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[09:20:30] info: at System.Threading.Tasks.Task.InternalWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
[09:20:30] info: at System.Threading.Tasks.Task`1[[System.IO.MemoryStream, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetResultCore(Boolean waitCompletionNotification)
[09:20:30] info: at System.Threading.Tasks.Task`1[[System.IO.MemoryStream, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Result()
[09:20:30] info: at System.IO.Compression.Tests.zip_InvalidParametersAndStrangeFiles.ZipArchiveEntry_CorruptedStream_EnsureNoExtraBytesReadOrOverWritten(Boolean async)

Known issue validation

Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=1019196
Error message validated:[Cannot wait on monitors on this runtime at System.IO.Compression.Tests]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/17/2025 9:56:24 AM UTC

Report

BuildDefinitionTestPull Request
1019631dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114785
1019609dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114754
1019581dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114720
1019578dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114779
1019575dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114779
1019561dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#113948
1019539dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114781
1019497dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114743
1019481dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114778
1019493dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114690
1019415dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114774
1019380dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114771
1019334dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114720
1019313dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#113948
1019196dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.Tests.WorkItemExecution#114421

Summary

24-Hour Hit Count7-Day Hit Count1-Month Count
151515

Known issue validation

Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=1019196
Error message validated:[Cannot wait on monitors on this runtime]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/17/2025 7:30:03 PM UTC

Report

BuildDefinitionTestPull Request
1019631dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114785
1019609dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114754
1019581dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114720
1019578dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114779
1019575dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114779
1019561dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#113948
1019539dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114781
1019497dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114743
1019481dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114778
1019493dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114690
1019415dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114774
1019380dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114771
1019334dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114720
1019313dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#113948
1019196dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.Tests.WorkItemExecution#114421

Summary

24-Hour Hit Count7-Day Hit Count1-Month Count
151515

Report

BuildDefinitionTestPull Request
1020403dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114672
1020406dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114644
1020310dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#111292
1020300dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114777
1020296dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution
1020275dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution
1020201dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114672
1020196dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114814
1020150dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114048
1020146dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114675
1019823dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114756
1020126dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114811
1020108dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#113956
1020092dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114644
1019561dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#113948
1019817dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114801
1020072dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114757
1020045dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114810
1020023dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114060
1019578dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114779
1019924dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution
1019914dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114758
1019883dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114792
1019858dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114688
1019855dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114805
1019847dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114804
1019841dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114802
1019836dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution
1019813dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114800
1019782dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114285
1019769dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114796
1019762dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114795
1019695dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114060
1019722dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114791
1019666dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114787
1019656dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114672
1019644dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114786
1019634dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#110472
1019631dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114785
1019609dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114754
1019581dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114720
1019575dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114779
1019539dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114781
1019497dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114743
1019481dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114778
1019493dotnet/runtimeWasmTestOnFirefox-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114690
1019415dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114774
1019380dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114771
1019334dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#114720
1019313dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.ZipFile.Tests.WorkItemExecution#113948
1019196dotnet/runtimeWasmTestOnChrome-ST-System.IO.Compression.Tests.WorkItemExecution#114421

Summary

24-Hour Hit Count7-Day Hit Count1-Month Count
435151

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions