Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform_TimeZoneNames failing for Iran time zones on macOS #83901

Closed
jkoritzinsky opened this issue Mar 24, 2023 · 13 comments · Fixed by #83952
Closed

Platform_TimeZoneNames failing for Iran time zones on macOS #83901

jkoritzinsky opened this issue Mar 24, 2023 · 13 comments · Fixed by #83952
Assignees
Labels
area-System.DateTime disabled-test The test is disabled in source code against the issue Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@jkoritzinsky
Copy link
Member

jkoritzinsky commented Mar 24, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=216592
Build error leg or test failing: System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
Pull request: #83755

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "(UTC+03:30) Iran Standard Time (Tehran)",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
220994 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83966
220990 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83965
220938 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220380 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83574
220952 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220943 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220848 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220781 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220128 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83565
220785 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220516 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83557
220473 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83829
220438 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83728
220447 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83965
220439 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83742
220422 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83958
220430 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83079
220426 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83966
220409 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83743
220414 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83813
220418 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83957
220399 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83729
220369 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83425
220389 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83577
220393 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83602
220365 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83342
220361 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83341
220373 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83462
220356 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83078
220348 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #80955
220352 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #81607
220329 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220338 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220334 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220333 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220214 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
220145 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83302
220149 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83303
218383 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83966
219430 dotnet/runtime System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames #83577

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
38 40 40
@jkoritzinsky jkoritzinsky added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Mar 24, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Mar 24, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 24, 2023
@jkoritzinsky
Copy link
Member Author

@jkoritzinsky
Copy link
Member Author

Looks like the text is in the specific subcase that failed. Maybe the Known Issues logic isn't searching in test subcases that failed?

jkotas added a commit to jkotas/runtime that referenced this issue Mar 25, 2023
@ghost ghost added in-pr There is an active PR which will close this issue when it is merged and removed in-pr There is an active PR which will close this issue when it is merged labels Mar 25, 2023
@stephentoub stephentoub added disabled-test The test is disabled in source code against the issue and removed blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Mar 25, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Mar 25, 2023
@stephentoub stephentoub reopened this Mar 25, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 25, 2023
@stephentoub stephentoub added area-System.Globalization and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners untriaged New issue has not been triaged by the area owner labels Mar 25, 2023
@ghost
Copy link

ghost commented Mar 25, 2023

Tagging subscribers to this area: @dotnet/area-system-globalization
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=216592
Build error leg or test failing: System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames
Pull request: #83755

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "(UTC+03:30) Iran Standard Time (Tehran)",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
Author: jkoritzinsky
Assignees: -
Labels:

area-System.Globalization, disabled-test, untriaged

Milestone: -

@stephentoub stephentoub added the untriaged New issue has not been triaged by the area owner label Mar 25, 2023
UnityAlex pushed a commit to Unity-Technologies/runtime that referenced this issue Mar 25, 2023
@tarekgh
Copy link
Member

tarekgh commented Mar 25, 2023

[FAIL] System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames(tzi: (UTC+03:30) Iran Standard Time (Tehran), displayName: "(UTC+03:30) Iran Time", standardName: "Iran Standard Time", daylightName: "Iran Daylight Time")
Assert.Equal() Failure
                                 ↓ (pos 31)
Expected: ···: "(UTC+03:30) Iran Time", StandardName: Iran Standard Time",···
Actual:   ···: "(UTC+03:30) Iran Standard Time (Tehran)", StandardName: Ir···
                                 ↑ (pos 31)
   at System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames(TimeZoneInfo tzi, String displayName, String standardName, String daylightName) + 0x71c
   at System.Runtime!<BaseAddress>+0x11ef4a0
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x14c
[SKIP] System.Reflection.Tests.ReflectionCacheTests.InvokeClearCache_NoExceptions
[SKIP] System.Reflection.Tests.ReflectionCacheTests.GetMembers_MultipleCalls_ClearCache_ReflectionCacheTestsType
[SKIP] System.Reflection.Tests.ReflectionCacheTests.GetMembers_MultipleCalls_ClearCache_All
Finished System.Runtime.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

@tarekgh tarekgh added this to the Future milestone Mar 25, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Mar 25, 2023
@tarekgh tarekgh self-assigned this Mar 25, 2023
@hoyosjs
Copy link
Member

hoyosjs commented Mar 27, 2023

Looks like the text is in the specific subcase that failed. Maybe the Known Issues logic isn't searching in test subcases that failed?

@dotnet/dnceng do you know why this blob isn't matching? It seems to fit and it appears in the error section of the test case.

@chcosta
Copy link
Member

chcosta commented Mar 27, 2023

@hoyosjs, sorry it's not behaving as you expect. Understanding this will require some investigation. Can you file an issue in Arcade with sufficient context / repro so that it can be triaged and addressed appropriately?

@carlossanlop
Copy link
Member

carlossanlop commented Mar 28, 2023

This is also happening in 6.0 and 7.0, so I'm reopening the issue.
Can we please backport the fix? Reminder to backport to release/6.0-staging and release/7.0-staging.

Affected 7.0 PR is: #83747
Affected 6.0 PR is: #83748

Failure message in both is:

    System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames(tzi: (UTC+03:30) Iran Standard Time (Tehran), displayName: "(UTC+03:30) Iran Time", standardName: "Iran Standard Time", daylightName: "Iran Daylight Time") [FAIL]
      Assert.Equal() Failure
                                       ↓ (pos 31)
      Expected: ···: "(UTC+03:30) Iran Time", StandardName: Iran Standard Time",···
      Actual:   ···: "(UTC+03:30) Iran Standard Time (Tehran)", StandardName: Ir···
                                       ↑ (pos 31)
      Stack Trace:
        /_/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs(140,0): at System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames(TimeZoneInfo tzi, String displayName, String standardName, String daylightName)
        /_/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(370,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

@Clockwork-Muse
Copy link
Contributor

... so, why do we have tests that are dependent on external data with no guarantee of stability? Should we be just checking for a non-empty string? That it contains part of some content?

@tarekgh
Copy link
Member

tarekgh commented Mar 28, 2023

@Clockwork-Muse it is good to be aware of the changes and find out if the change make sense too.

@carlossanlop carlossanlop added the Known Build Error Use this to report build issues in the .NET Helix tab label Mar 28, 2023
@carlossanlop
Copy link
Member

@hoyosjs Any ideas why this isn't catching the failures?

The json pattern is correct, but the Known Build Error label was missing. That label is what makes the bot start monitoring failures that match the json pattern.

I added the label a few hrs ago but it isn't matching the 7.0 and 6.0 patterns. I suspect it's because the ExcludeConsoleLog item was set to true. I changed it to false, hopefully that'll make the failures to get collected.

@carlossanlop carlossanlop added Known Build Error Use this to report build issues in the .NET Helix tab and removed Known Build Error Use this to report build issues in the .NET Helix tab labels Mar 29, 2023
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Mar 29, 2023
@carlossanlop
Copy link
Member

I suspect it's because the ExcludeConsoleLog item was set to true. I changed it to false, hopefully that'll make the failures to get collected.

Yep, that was it. The bot is collecting failed CI legs now.

@carlossanlop
Copy link
Member

Backports merged. We can close this.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.DateTime disabled-test The test is disabled in source code against the issue Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants