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

[libraries] Fix System.Runtime.Tests TimeZoneInfoTests for iOS/MacCatalyst/tvOS #57732

Merged

Conversation

mdh1418
Copy link
Member

@mdh1418 mdh1418 commented Aug 19, 2021

Fixes #52072

WindowsIds such as "Pacific Standard Time" are not valid TimeZoneIds on iOS/MacCatalyst/tvOS.
iOS and tvOS both use TimeZoneInfo.MinimalGlobalizationData.cs and so TryConvertIanaIdToWindowsId and TryConvertWindowsIdToIanaId will always return false.

This PR looks to skip TimeZoneInfoTests that test windows TimeZoneIds and modifies tests to use iOS/MacCatalyst/tvOS friendly TimeZoneIds instead.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@filipnavara
Copy link
Member

filipnavara commented Aug 19, 2021

The explicit PlatformDetection.IsMacCatalyst check should no longer be necessary, PlatformDetection.IsiOS already returns true on Mac Catalyst.

Otherwise LGTM.

@mdh1418 mdh1418 merged commit 302cc6f into dotnet:main Aug 19, 2021
@mdh1418 mdh1418 deleted the iOS_tvOS_MacCatalyst_TimeZoneInfoTests_fix branch August 19, 2021 22:12
mdh1418 added a commit to mdh1418/runtime that referenced this pull request Sep 9, 2021
…alyst/tvOS (dotnet#57732)

* [libraries] Fix System.Runtime.Tests TimeZoneInfoTests for iOS/MacCatalyst/tvOS

* Remove redundant PlatformDetection.IsMacCatalyst as IsiOS covers it

Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
steveisok pushed a commit that referenced this pull request Sep 13, 2021
…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 <mitchell.hwang@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Jo Shields <directhex@apebox.org>
@ghost ghost locked as resolved and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tvOS] System.Runtime.Tests fails on iOS and tvOS
3 participants