Skip to content

[monotouch-test] Remove versioned code that's become dead due to min macOS version increasing.#25181

Merged
rolfbjarne merged 13 commits intomainfrom
dev/rolf/tests-monotouch-simplification
Apr 27, 2026
Merged

[monotouch-test] Remove versioned code that's become dead due to min macOS version increasing.#25181
rolfbjarne merged 13 commits intomainfrom
dev/rolf/tests-monotouch-simplification

Conversation

@rolfbjarne
Copy link
Copy Markdown
Member

No description provided.

rolfbjarne and others added 2 commits April 17, 2026 00:49
Remove obsolete pre-macOS-12 checks from the macOS monotouch tests and collapse the dead branches to the behavior we now always run with.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Drop the empty macOS assert helpers, remove their remaining callers, and delete the setup methods that became empty afterward.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

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

Removes legacy macOS-version-specific branches and skips in the monotouch-test suite that are now unreachable given the repo’s increased minimum macOS version.

Changes:

  • Eliminated macOS 10.x conditional assertions/branches and related helper APIs (AssertsMac Yosemite/Mavericks helpers).
  • Simplified expected values and feature gates in tests where macOS version checks were previously required.
  • Removed a few macOS-only test setup skips now made redundant by the minimum supported macOS version.

Reviewed changes

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

Show a summary per file
File Description
tests/monotouch-test/System.Net.Http/MessageHandlers.cs Removes macOS 10.10-specific ignore logic for NSUrlSessionHandler tests.
tests/monotouch-test/SpriteKit/SKScene.cs Drops Mavericks-era setup gating from SpriteKit tests.
tests/monotouch-test/Security/TrustTest.cs Collapses macOS version-dependent trust expectations/feature flags to current baseline behavior.
tests/monotouch-test/Security/SecureTransportTest.cs Removes old macOS minimum checks and legacy datagram-size branching.
tests/monotouch-test/Security/PolicyTest.cs Removes macOS 10.9+ runtime asserts and obsolete property-count special-casing.
tests/monotouch-test/Security/KeyTest.cs Simplifies macOS-version-dependent expectations for key algorithms and status codes.
tests/monotouch-test/Security/KeyChainTest.cs Removes pre-10.9 macOS behavior branch for SecItemAdd expectations.
tests/monotouch-test/SceneKit/SceneKit.cs Removes Yosemite/64-bit setup gating now redundant for supported macOS.
tests/monotouch-test/SceneKit/SCNWorld.cs Removes Mavericks/Yosemite setup gating from SceneKit tests.
tests/monotouch-test/SceneKit/SCNView.cs Removes Yosemite/64-bit setup gating.
tests/monotouch-test/SceneKit/SCNScene.cs Removes Yosemite/64-bit setup gating.
tests/monotouch-test/SceneKit/SCNNode.cs Removes Mavericks/Yosemite setup gating from specific SceneKit tests.
tests/monotouch-test/SceneKit/SCNMaterial.cs Removes Mavericks/64-bit setup gating.
tests/monotouch-test/SceneKit/SCNGeometrySource.cs Removes legacy OS gating and enum filtering logic that only applied to very old macOS versions.
tests/monotouch-test/SceneKit/NodeTest.cs Removes macOS 10.8 minimum assertion from SceneKit node test.
tests/monotouch-test/SceneKit/ActionTest.cs Removes macOS 10.10 minimum assertion from setup.
tests/monotouch-test/ObjCRuntime/DelegateAndDataSourceTest.cs Simplifies 32-bit skip condition after removing El Capitan helper.
tests/monotouch-test/NetworkExtension/VpnManagerTest.cs Removes macOS 10.11 gating and hardcodes feature availability for macOS baseline.
tests/monotouch-test/MultipeerConnectivity/SessionTest.cs Removes macOS 10.10/10.11 gates and simplifies encryption preference logic for macOS.
tests/monotouch-test/ModelIO/MDLMesh.cs Removes macOS 10.12 bounding-box expectation split.
tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs Removes macOS 10.13/10.14 conditional handling in constructor test.
tests/monotouch-test/MapKit/PinAnnotationViewTest.cs Removes macOS 10.12 branch for PinTintColor expectation.
tests/monotouch-test/GameKit/LeaderboardViewControllerTest.cs Removes macOS version gating and leaves the macOS test path inconclusive due to nil init.
tests/monotouch-test/GameKit/LeaderboardTest.cs Removes macOS 10.8/10.9/10.10 feature gates and asserts.
tests/monotouch-test/Foundation/UrlSessionConfigurationTest.cs Removes macOS 10.9/10.10 gating and simplifies feature flags for macOS baseline.
tests/monotouch-test/Foundation/UrlProtocolTest.cs Removes macOS 10.9 bot workaround and legacy callback-path logic.
tests/monotouch-test/Foundation/UrlCredentialTest.cs Removes pre-10.8 macOS persistence expectation branch.
tests/monotouch-test/Foundation/ObjectTest.cs Removes macOS 10.10 gating around SecAccessControl availability in test.
tests/monotouch-test/Foundation/NSMutableDictionary2Test.cs Removes pre-10.8 macOS mutable-copy expectation branch.
tests/monotouch-test/Foundation/NSLinguisticAnalysisTest.cs Removes pre-10.9 macOS word-count expectation branches.
tests/monotouch-test/CoreImage/ImageTest.cs Removes macOS 10.8/10.11 gating in CoreImage tests.
tests/monotouch-test/CoreFoundation/UrlTest.cs Removes macOS 10.9 conditional for file URL string expectation.
tests/monotouch-test/CoreFoundation/DispatchTests.cs Removes macOS 10.10 gating for default global queue label expectation.
tests/monotouch-test/CoreData/ManagedObjectContextTest.cs Replaces runtime macOS version branching with compile-time MONOMAC expectation.
tests/monotouch-test/CoreBluetooth/UuidTest.cs Removes macOS 10.10 gating and always runs those assertions on MONOMAC.
tests/monotouch-test/AssertsMac.cs Deletes Yosemite/Mavericks-era helpers, leaving only availability-attribute skip helper.
tests/monotouch-test/AppKit/NSVisualEffectView.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSViewController.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSView.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSToolbar.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSTextView.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSTextField.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSTableRowView.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSTableColumn.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSTabViewItem.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSTabViewController.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSStoryboardSegue.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSStackView.cs Removes Mavericks-era setup gating.
tests/monotouch-test/AppKit/NSSplitViewItem.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSSplitViewController.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSPathControlItem.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSPathControl.cs Removes Yosemite-era setup gating across multiple tests.
tests/monotouch-test/AppKit/NSImage.cs Removes Mountain Lion/Yosemite setup gating.
tests/monotouch-test/AppKit/NSControl.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AppKit/NSClipView.cs Removes Mavericks-era setup gating.
tests/monotouch-test/AppKit/NSAppearance.cs Removes Yosemite-era setup gating.
tests/monotouch-test/AVFoundation/AVAudioIONode.cs Removes Yosemite-era setup gating.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Restore the runtime platform/version check in ManagedObjectContextTest so Mac Catalyst keeps the expected UndoManager behavior while macOS still uses the newer path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #89f319e] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 89f319e1336acfb6718a3820b112ff7156911d49 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #89f319e] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 89f319e1336acfb6718a3820b112ff7156911d49 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 89f319e1336acfb6718a3820b112ff7156911d49 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #89f319e] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 89f319e1336acfb6718a3820b112ff7156911d49 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🔥 [CI Build #89f319e] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

1 tests crashed, 0 tests failed, 151 tests passed.

Failures

❌ Tests on macOS Monterey (12) tests

🔥 Failed catastrophically on VSTS: test results - mac_monterey (no summary found).

Html Report (VSDrops) Download

Successes

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 89f319e1336acfb6718a3820b112ff7156911d49 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne marked this pull request as ready for review April 24, 2026 08:22
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne merged commit 49b9c79 into main Apr 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants