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

[CFNetwork] Add Xcode13 beta 1 support. #11966

Merged
merged 4 commits into from
Jun 18, 2021

Conversation

mandel-macaque
Copy link
Member

CFHost and all its callers have been deprecated. The other deprecated APIs are not in used by Xamarin.

@mandel-macaque mandel-macaque added the note-highlight Worth calling out specifically in release notes label Jun 17, 2021
Copy link
Member

@rolfbjarne rolfbjarne left a comment

Choose a reason for hiding this comment

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

We use CFStreamCreatePairWithSocketToCFHost

internal extern static void CFStreamCreatePairWithSocketToCFHost (

which is deprecated too: https://developer.apple.com/documentation/cfnetwork/1426831-cfstreamcreatepairwithsockettocf?language=objc

This shows up in xtro as well:

!deprecated-attribute-missing! CFStreamCreatePairWithPeerSocketSignature missing a [Deprecated] attribute
!deprecated-attribute-missing! CFStreamCreatePairWithSocket missing a [Deprecated] attribute
!deprecated-attribute-missing! CFStreamCreatePairWithSocketToCFHost missing a [Deprecated] attribute
!deprecated-attribute-missing! CFStreamCreatePairWithSocketToHost missing a [Deprecated] attribute

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

2 tests failed, 84 tests passed.

Failed tests

  • Xtro/Mac: BuildFailure
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): LaunchFailure Known issue: HE0038)

Pipeline on Agent XAMBOT-1101.BigSur'
Merge de05ce8 into aed7923

[Deprecated (PlatformName.TvOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the new Network framework instead.")]
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove "new" since it's not new anymore (and that won't surface the test of time)

[Deprecated (PlatformName.TvOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the new Network framework instead.")]
Copy link
Contributor

Choose a reason for hiding this comment

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

same

[Deprecated (PlatformName.TvOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the new Network framework instead.")]
Copy link
Contributor

Choose a reason for hiding this comment

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

same.

We already use "Use 'Network.framework' instead." in a lot of other places. It would be best to use the same string to reduce the metadata size of the assembly.

You could also add it to src/ObjCRuntime/ObsoleteConstants.cs so it's easier to avoid different string ending up inside the platform assemblies.

That would require updating (now or later) src/Security/SecureTransport.cs and src/Security/SslConnection.cs

Copy link
Member Author

Choose a reason for hiding this comment

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

Its a trap

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

3 tests failed, 83 tests passed.

Failed tests

  • introspection/Mac Catalyst/Debug: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): Failed
  • monotouch-test/tvOS - simulator/Debug: Failed

Pipeline on Agent XAMBOT-1094.BigSur'
Merge 6173f23 into 0c1c1a7

@mandel-macaque
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 85 tests passed.

Failed tests

  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): Failed

Pipeline on Agent XAMBOT-1104.BigSur'
Merge 6173f23 into abca8f1

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 85 tests passed.

Failed tests

  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): Failed

Pipeline on Agent XAMBOT-1100.BigSur'
Merge b4b40d2 into abca8f1

@mandel-macaque mandel-macaque merged commit 8d2d06b into xamarin:main Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
note-highlight Worth calling out specifically in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants