dotnet / infer

Infer.NET is a framework for running Bayesian inference in graphical models
https://dotnet.github.io/infer/
MIT License
1.56k stars 230 forks source link

Compiler options test sometimes failing due to multithreading issues #382

Closed samwebster closed 2 years ago

samwebster commented 2 years ago

Looks like multiple threads are accessing the same temporary file: Microsoft.ML.Probabilistic.Tests.DistributedTests.DistributedRegressionTest failed: 6: UseParallelForLoops=True FreeMemory=False ReturnCopies=False OptimiseInferenceCode=True: System.IO.IOException: The process cannot access the file 'C:\Users\cloudtest\AppData\Local\Temp\w_rep0_B\0.bin' because it is being used by another process. 6: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 6: at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 6: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) 6: at Microsoft.ML.Probabilistic.Collections.FileArray`1.StoreItem(Int32 index, T value) in D:\a_work\1\s\src\Runtime\Core\Collections\FileArray.cs:line 167 6: at Microsoft.ML.Probabilistic.Tests.DistributedTests.DistributedRegression_EP.Constant() in D:\a_work\1\s\test\Tests\DistributedTests.cs:line 1418 6: at Microsoft.ML.Probabilistic.Tests.DistributedTests.DistributedRegressionTest() in D:\a_work\1\s\test\Tests\DistributedTests.cs:line 417