Skip to content

Remove IsWatchOS checks for consistency #117653

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

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

davidnguyen-tech
Copy link
Member

Description

Remove OperatingSystem.IsWatchOS() checks for consistency.

Related issues

Fixes #92601

@Copilot Copilot AI review requested due to automatic review settings July 15, 2025 11:49
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 15, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes all OperatingSystem.IsWatchOS() checks to streamline platform consistency and deprecate explicit watchOS handling.

  • Dropped watchOS from runner entry logic and platform detection utilities.
  • Updated tests, interop layers, and library code to no longer special-case watchOS.
  • Aligned OperatingSystemTests, globalization messaging, and internal platform behaviors accordingly.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
RunnerEntryPoint.cs Removed IsWatchOS from Apple entry-point condition.
PlatformDetection.cs Excluded watchOS from unsupported-native-assets and AppleMobile flags.
OperatingSystemTests.cs Eliminated watchOS entry in OS platform test data.
GlobalizationMode.Unix.cs Dropped watchOS check in ICU load failure logic.
msquic.cs Removed watchOS from SockaddrHasLength predicate.
PingTest.cs No longer excludes watchOS from raw-sockets logic.
PathInternal.CaseSensitivity.cs Excluded watchOS from case-insensitivity detection.
Interop.Odbc.cs ODBC library lookup no longer checks for watchOS.

@davidnguyen-tech davidnguyen-tech added area-Infrastructure-mono os-ios Apple iOS and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jul 15, 2025
@davidnguyen-tech
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kotlarmilos kotlarmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@davidnguyen-tech
Copy link
Member Author

/ba-g Infstrastructure problem, timeouts (e.g. tracked in #117714)

@davidnguyen-tech davidnguyen-tech merged commit 620e7ad into dotnet:main Jul 18, 2025
183 of 202 checks passed
@davidnguyen-tech davidnguyen-tech deleted the issue-92601 branch July 18, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

be consistent about tests for WatchOS
2 participants