Skip to content

[wasm] System.Runtime tests fail on windows, timezone issues #52007

Closed

Description

@radekdoulik

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

  1. ghost added
    untriaged
    on Apr 28, 2021
  2. lewing commented on Apr 28, 2021

    @lewing
    Member

    Interesting, not sure why this would happen.

    cc @tqiu8

  3. removed
    untriaged
    on Apr 28, 2021
  4. added this to the 6.0.0 milestone on Apr 28, 2021
  5. tqiu8 commented on Apr 28, 2021

    @tqiu8
    Contributor

    Hmmm...maybe it had to do with that change that split TimeZoneInfo because of size?

  6. lewing commented on Apr 28, 2021

    @lewing
    Member

    @radekdoulik can you send me the .blat file?

  7. lewing commented on Apr 29, 2021

    @lewing
    Member
  8. radekdoulik commented on Apr 29, 2021

    @radekdoulik
    MemberAuthor

    That does the trick. I will open PR for it.

      info: === TEST EXECUTION SUMMARY ===
      info: Total: 38018, Errors: 0, Failed: 0, Skipped: 66, Time: 109.6852609s
    
  9. ghost added
    in-pr
    on Apr 29, 2021
  10. ghost removed
    in-pr
    on May 3, 2021
  11. ghost locked as resolved and limited conversation to collaborators on Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmarea-Interop-mono

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions