Repository navigation
Closed
Labels
Milestone
Description
I see many tests fail like
fail: [FAIL] System.Tests.TimeZoneInfoTests.TimeZoneInfo_DaylightDeltaIsNoMoreThan12Hours
info: System.TypeInitializationException : The type initializer for 'System.Tests.TimeZoneInfoTests' threw an exception.
info: ---- System.TimeZoneNotFoundException : The time zone ID 'Europe/London' was not found on the local computer.
info: -------- System.IO.DirectoryNotFoundException : Could not find a part of the path '/usr/share/zoneinfo/Europe/London'.
info: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
info: ----- Inner Stack Trace -----
info: at System.TimeZoneInfo.FindSystemTimeZoneById(String id)
info: at System.Tests.TimeZoneInfoTests..cctor()
info: ----- Inner Stack Trace -----
info: at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
info: at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
info: at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
info: at System.IO.Strategies.FileStreamHelpers.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options)
info: at System.IO.Strategies.Net5CompatFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
info: at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
info: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
info: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
info: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
info: at Internal.IO.File.ReadAllBytes(String path)
info: at System.TimeZoneInfo.TryGetTimeZoneFromLocalMachine(String id, TimeZoneInfo& value, Exception& e)
It fails locally and on helix too.
Activity
lewing commentedon Apr 28, 2021
Interesting, not sure why this would happen.
cc @tqiu8
tqiu8 commentedon Apr 28, 2021
Hmmm...maybe it had to do with that change that split TimeZoneInfo because of size?
lewing commentedon Apr 28, 2021
@radekdoulik can you send me the .blat file?
lewing commentedon Apr 29, 2021
I think we just need to make https://github.com/dotnet/runtime/blob/main/src/tasks/WasmBuildTasks/GenerateWasmBundle.cs#L35 use unix path separators on windows too
radekdoulik commentedon Apr 29, 2021
That does the trick. I will open PR for it.
[wasm] Use '/' directory separator in .blat
[wasm] Use '/' directory separator in .blat (#52066)