-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Libraries][iOS/MacCatalyst/tvOS] IsIanaIdTest fails from mismatched expectation #58440
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @tarekgh, @safern Issue DetailsIn #57732, several TimeZoneInfoTests were tweaked to pass on iOS/MacCatalyst/tvOS. At the time, when running tests, I'm not certain what is supposed to be a TimeZoneId and not IanaId on iOS/MacCatalyst/tvOS yet, and I'm not sure exactly what had changed between that change and the latest run on #57208 to cause it to no longer not be an IanaId. The fix should simply be finding a known TimeZoneId on iOS/MacCatalyst/tvOS that is and will not be recognized as an IanaId.
|
Tagging subscribers to this area: @dotnet/area-system-runtime Issue DetailsIn #57732, several TimeZoneInfoTests were tweaked to pass on iOS/MacCatalyst/tvOS. At the time, when running tests, I'm not certain what is supposed to be a TimeZoneId and not IanaId on iOS/MacCatalyst/tvOS yet, and I'm not sure exactly what had changed between that change and the latest run on #57208 to cause it to no longer not be an IanaId. The fix should simply be finding a known TimeZoneId on iOS/MacCatalyst/tvOS that is and will not be recognized as an IanaId.
|
Tagging subscribers to 'arch-ios': @steveisok, @akoeplinger Issue DetailsIn #57732, several TimeZoneInfoTests were tweaked to pass on iOS/MacCatalyst/tvOS. At the time, when running tests, I'm not certain what is supposed to be a TimeZoneId and not IanaId on iOS/MacCatalyst/tvOS yet, and I'm not sure exactly what had changed between that change and the latest run on #57208 to cause it to no longer not be an IanaId. The fix should simply be finding a known TimeZoneId on iOS/MacCatalyst/tvOS that is and will not be recognized as an IanaId.
|
@tarekgh Ah it does look like the culprit instead of my original suspicion. It looks like on iOS/tvOS/MacCatalyst the |
|
Right, the problem is the test itself, I'm thinking the right action would be to extend I'll put up a PR |
I am not sure why you need to add these extra conditions? Could you tell in detail what are the TZ Ids which fail on iOS or tvOS? |
@tarekgh I updated the description since my first glance/assumption was incorrect.
The only failure seems to be that |
…t and test fixes for Android (#58841) Manual backport of #57208, #58519, #58562, #58210, #57732, #58428, #58586, #58745, #57687 to release/6.0 Numerous test suites have been failing for iOS/tvOS/MacCatalyst consistently on CI without useful logs as to why. Moreover, some of these suites pass locally. This PR looks to reduce the failures on CI by skipping the problematic suites Skips test suites logged in #53624 ActiveIssues #58440 #58418 #58367 #58584 Co-authored-by: Mitchell Hwang <[email protected]> Co-authored-by: Alexander Köplinger <[email protected]> Co-authored-by: Jo Shields <[email protected]>
In #57732, several TimeZoneInfoTests were tweaked to pass on iOS/MacCatalyst/tvOS. At the time, when running tests,America/Buenos_Aires
was no recognized as an IanaID on iOS/MacCatalyst/tvOS, so that value was used instead ofPacific Standard Time
which throws TimeZoneNotFound ahead of returning false for IsIanaId.I'm not certain what is supposed to be a TimeZoneId and not IanaId on iOS/MacCatalyst/tvOS yet, and I'm not sure exactly what had changed between that change and the latest run on #57208 to cause it to no longer not be an IanaId.
The fix should simply be finding a known TimeZoneId on iOS/MacCatalyst/tvOS that is and will not be recognized as an IanaId.From another glance with #58440 (comment), it appears that the failure is directly from this addition to the test
runtime/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs
Line 2667 in faafb32
The newest check fails on iOS/MacCatalyst/tvOS as the
TimeZoneInfo.Local.Id
isAmerica/New_York
. The check expects for theTimeZoneInfo.Local.Id
to be anIana Id
if the platform is NOT windows or if the Id is NOT UTC. It seems as thoughAmerica/New_York
is evaluated as not being an Iana Id.The text was updated successfully, but these errors were encountered: