runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[release/8.0] TimeZoneInfoTests.Platform_TimeZoneNames failing on Android

Open tarekgh opened this issue 5 months ago • 10 comments

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1101363 Build error leg or test failing: System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames Pull request: https://github.com/dotnet/runtime/pull/117873

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1101363&view=ms.vss-test-web.build-test-results-tab&runId=30146292&resultId=108183&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

      <test name="System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames(tzi: (UTC+10:00) Australian Eastern Time (Sydney), displayName: \&quot;(UTC+10:00) Eastern Australia Time (Sydney)\&quot;, alternativeDisplayName: null, standardName: \&quot;Australian Eastern Standard Time\&quot;, daylightName: \&quot;Australian Eastern Daylight Time\&quot;, alternativeDaylightName: null)" type="System.Tests.TimeZoneInfoTests" method="Platform_TimeZoneNames" time="0.0006074" result="Fail">
        <failure exception-type="Xunit.Sdk.TrueException">
          <message><![CDATA[Display Name: Neither '(UTC+10:00) Eastern Australia Time (Sydney)' nor '' equal to '(UTC+10:00) Australian Eastern Time (Sydney)']]></message>
          <stack-trace><![CDATA[   at System.Tests.TimeZoneInfoTests.Platform_TimeZoneNames(TimeZoneInfo tzi, String displayName, String alternativeDisplayName, String standardName, String daylightName, String alternativeDaylightName) in /_/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/TimeZoneInfoTests.cs:line 151
   at System.Object.InvokeStub_TimeZoneInfoTests.Platform_TimeZoneNames(Object , Span`1 )
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)]]></stack-trace>
        </failure>
      </test>

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Display Name: Neither '(UTC+10:00) Eastern Australia Time (Sydney)' nor '' equal to '(UTC+10:00) Australian Eastern Time (Sydney)'",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1101363 Error message validated: [Display Name: Neither '(UTC+10:00) Eastern Australia Time (Sydney)' nor '' equal to '(UTC+10:00) Australian Eastern Time (Sydney)'] Result validation: :x: Known issue did not match with the provided build. Validation performed at: 7/21/2025 11:13:19 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

tarekgh avatar Jul 21 '25 23:07 tarekgh

CC @matouskozak

tarekgh avatar Jul 21 '25 23:07 tarekgh

I see that it is happening on release/9.0-staging as well and I'm not aware of any globalization changes backported to .NET 9 from our side. @kotlarmilos are you aware of any Android OS updates going on?

matouskozak avatar Jul 22 '25 07:07 matouskozak

No, I am not aware of any Android OS updates.

kotlarmilos avatar Jul 22 '25 08:07 kotlarmilos

it's possible that something updated ICU/TZ data on the devices, e.g. through Google Play

akoeplinger avatar Jul 22 '25 13:07 akoeplinger

Usually we get the TZ display names from ICU, so @akoeplinger highly likely be correct.

tarekgh avatar Jul 22 '25 15:07 tarekgh

The test got modified in https://github.com/dotnet/runtime/pull/118329

matouskozak avatar Aug 07 '25 07:08 matouskozak

I just hit this in 8.0: https://github.com/dotnet/runtime/pull/118763#issuecomment-3192294884

jozkee avatar Aug 15 '25 17:08 jozkee

cc @matouskozak

tarekgh avatar Aug 15 '25 18:08 tarekgh

Another occurrence in https://github.com/dotnet/runtime/pull/119523

ManickaP avatar Sep 12 '25 06:09 ManickaP

@matouskozak could you please port the fix https://github.com/dotnet/runtime/pull/118329 to the servicing branches?

tarekgh avatar Sep 12 '25 15:09 tarekgh