xamarin-macios
xamarin-macios copied to clipboard
[Foundation] Implement the server certificate custom validation callback usage in NSUrlSessionHandler
We recently implemented the ServerCertificateCustomValidationCallback
in Xamarin.Android (https://github.com/xamarin/xamarin-android/pull/6665). It would be great to have feature parity and support the same callback in Xamarin.iOS and Xamarin.Mac.
Related to https://github.com/dotnet/runtime/issues/68898.
Partial fix for https://github.com/xamarin/xamarin-macios/issues/14632.
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
:fire: [PR Build] Build failed :fire:
Build failed for the job 'Generate API diff'
Pipeline on Agent Hash:
:fire: [PR Build] Build failed :fire:
Build failed for the job 'Build packages'
Pipeline on Agent Hash:
The build fails with:
Foundation/NSUrlSessionHandler.cs(885,102): error CS1061: 'NSUrlSessionHandler' does not contain a definition for 'ServerCertificateCustomValidationCallback' and no accessible extension method 'ServerCertificateCustomValidationCallback' accepting a first argument of type 'NSUrlSessionHandler' could be found (are you missing a using directive or an assembly reference?)
Foundation/NSUrlSessionHandler.cs(974,24): error CS1061: 'NSUrlSessionHandler' does not contain a definition for 'ServerCertificateCustomValidationCallback' and no accessible extension method 'ServerCertificateCustomValidationCallback' accepting a first argument of type 'NSUrlSessionHandler' could be found (are you missing a using directive or an assembly reference?)
Foundation/NSUrlSessionHandler.cs(1007,27): error CS1061: 'NSUrlSessionHandler' does not contain a definition for 'ServerCertificateCustomValidationCallback' and no accessible extension method 'ServerCertificateCustomValidationCallback' accepting a first argument of type 'NSUrlSessionHandler' could be found (are you missing a using directive or an assembly reference?)
make[1]: *** [build/watch/reference/Xamarin.WatchOS.dll] Error 1
/azp run
Commenter does not have sufficient privileges for PR 15117 in repo xamarin/xamarin-macios
@mandel-macaque I don't have permissions to run CI in this repo. Could you please re-run the tests for my latest changes?
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
:books: [PR Build] Artifacts :books:
Artifacts were not provided.
Pipeline on Agent XAMMINI-007.Monterey Hash: f9a46f4dc3e10b57c745a461405500a71a84e346 [PR build]
:x: [PR Build] Tests on macOS Mac Catalina (10.15) failed :x:
Failed tests are:
- monotouch-test
Pipeline on Agent Hash: f9a46f4dc3e10b57c745a461405500a71a84e346 [PR build]
:white_check_mark: API diff for current PR / commit
Legacy Xamarin (No breaking changes)
- ~iOS~ (no change detected)
- ~tvOS~ (no change detected)
- ~watchOS~ (no change detected)
- ~macOS~ (no change detected)
NET (empty diffs)
- ~iOS~: (empty diff detected)
- ~tvOS~: (empty diff detected)
- ~MacCatalyst~: (empty diff detected)
- ~macOS~: (empty diff detected)
:white_check_mark: API diff vs stable
Legacy Xamarin (No breaking changes)
.NET (No breaking changes)
:white_check_mark: Generator diff
Generator diff is empty
Pipeline on Agent Hash: f9a46f4dc3e10b57c745a461405500a71a84e346 [PR build]
:x: [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) failed :x:
Failed tests are:
- xammac_tests
- monotouch-test
Pipeline on Agent Hash: f9a46f4dc3e10b57c745a461405500a71a84e346 [PR build]
@mandel-macaque @rolfbjarne could someone run the tests for me one more time please? 😄
BTW what would I need to do to enable CI runs for my commits and PRs? Do I need to join some organization/group/team on Github or AzDO?
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
BTW what would I need to do to enable CI runs for my commits and PRs? Do I need to join some organization/group/team on Github or AzDO?
That's a good question. Maybe @dalexsoto knows?
In the meantime feel free to ping me whenever you do a commit and I'll trigger the CI.
:books: [PR Build] Artifacts :books:
Packages generated
View packages
- Microsoft.iOS.Bundle.15.4.396-ci.pr.gh15117.pkg
- Microsoft.iOS.Ref.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.ios-arm.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.ios-arm64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.iossimulator-arm64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.iossimulator-x64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.iossimulator-x86.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Sdk.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Templates.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.iOS.Windows.Sdk.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Bundle.15.4.396-ci.pr.gh15117.pkg
- Microsoft.MacCatalyst.Ref.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Runtime.maccatalyst-arm64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Runtime.maccatalyst-x64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Sdk.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Templates.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.macOS.Bundle.12.3.396-ci.pr.gh15117.pkg
- Microsoft.macOS.Ref.12.3.396-ci.pr.gh15117.nupkg
- Microsoft.macOS.Runtime.osx-arm64.12.3.396-ci.pr.gh15117.nupkg
- Microsoft.macOS.Runtime.osx-x64.12.3.396-ci.pr.gh15117.nupkg
- Microsoft.macOS.Sdk.12.3.396-ci.pr.gh15117.nupkg
- Microsoft.macOS.Templates.12.3.396-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.iOS.Manifest-6.0.300.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.300.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.macOS.Manifest-6.0.300.12.3.396-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.tvOS.Manifest-6.0.300.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.NET.Workload.iOS.15.4.396-ci.pr.gh15117.msi
- Microsoft.tvOS.Bundle.15.4.396-ci.pr.gh15117.pkg
- Microsoft.tvOS.Ref.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Runtime.tvos-arm64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Runtime.tvossimulator-arm64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Runtime.tvossimulator-x64.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Sdk.15.4.396-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Templates.15.4.396-ci.pr.gh15117.nupkg
- xamarin.ios-15.13.0.92.pkg
- xamarin.mac-8.13.0.92.pkg
Pipeline on Agent XAMBOT-1104.Monterey' Hash: 65a2df397b7e09a910e4a42345b8480aa35ba9c4 [PR build]
:white_check_mark: API diff for current PR / commit
Legacy Xamarin (No breaking changes)
- ~iOS~ (no change detected)
- ~tvOS~ (no change detected)
- ~watchOS~ (no change detected)
- ~macOS~ (no change detected)
NET (empty diffs)
- ~iOS~: (empty diff detected)
- ~tvOS~: (empty diff detected)
- ~MacCatalyst~: (empty diff detected)
- ~macOS~: (empty diff detected)
:white_check_mark: API diff vs stable
Legacy Xamarin (No breaking changes)
.NET (No breaking changes)
:white_check_mark: Generator diff
Generator diff is empty
Pipeline on Agent Hash: 65a2df397b7e09a910e4a42345b8480aa35ba9c4 [PR build]
:computer: [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) passed :computer:
:white_check_mark: All tests on macOS M1 - Mac Big Sur (11.5) passed.
Pipeline on Agent Hash: 65a2df397b7e09a910e4a42345b8480aa35ba9c4 [PR build]
@rolfbjarne I don't understand what happened with all the simulator tests - they all fail at the Install dotnet workloads
step. Is that caused by some of my changes or is that some infra flakiness?
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
@simonrozsival that's a known issue we had in CI for a little while. I've merged main (where the issue is fixed) into your branch, and triggered a new build. Hopefully it goes better :)
@rolfbjarne I see, thanks 😄
:white_check_mark: API diff for current PR / commit
Legacy Xamarin (No breaking changes)
- ~iOS~ (no change detected)
- ~tvOS~ (no change detected)
- ~watchOS~ (no change detected)
- ~macOS~ (no change detected)
NET (empty diffs)
- ~iOS~: (empty diff detected)
- ~tvOS~: (empty diff detected)
- ~MacCatalyst~: (empty diff detected)
- ~macOS~: (empty diff detected)
:white_check_mark: API diff vs stable
Legacy Xamarin (No breaking changes)
.NET (No breaking changes)
:white_check_mark: Generator diff
Generator diff is empty
Pipeline on Agent Hash: cee43a2638503941800ae6008c98244a35b2015f [PR build]
:computer: [PR Build] Tests on macOS Mac Catalina (10.15) passed :computer:
:white_check_mark: All tests on macOS Mac Catalina (10.15) passed.
Pipeline on Agent Hash: cee43a2638503941800ae6008c98244a35b2015f [PR build]
:books: [PR Build] Artifacts :books:
Packages generated
View packages
- Microsoft.iOS.Bundle.15.4.430-ci.pr.gh15117.pkg
- Microsoft.iOS.Ref.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.ios-arm.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.ios-arm64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.iossimulator-arm64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.iossimulator-x64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Runtime.iossimulator-x86.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Sdk.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Templates.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.iOS.Windows.Sdk.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Bundle.15.4.430-ci.pr.gh15117.pkg
- Microsoft.MacCatalyst.Ref.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Runtime.maccatalyst-arm64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Runtime.maccatalyst-x64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Sdk.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.MacCatalyst.Templates.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.macOS.Bundle.12.3.430-ci.pr.gh15117.pkg
- Microsoft.macOS.Ref.12.3.430-ci.pr.gh15117.nupkg
- Microsoft.macOS.Runtime.osx-arm64.12.3.430-ci.pr.gh15117.nupkg
- Microsoft.macOS.Runtime.osx-x64.12.3.430-ci.pr.gh15117.nupkg
- Microsoft.macOS.Sdk.12.3.430-ci.pr.gh15117.nupkg
- Microsoft.macOS.Templates.12.3.430-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.iOS.Manifest-6.0.300.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.300.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.macOS.Manifest-6.0.300.12.3.430-ci.pr.gh15117.nupkg
- Microsoft.NET.Sdk.tvOS.Manifest-6.0.300.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.NET.Workload.iOS.15.4.430-ci.pr.gh15117.msi
- Microsoft.tvOS.Bundle.15.4.430-ci.pr.gh15117.pkg
- Microsoft.tvOS.Ref.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Runtime.tvos-arm64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Runtime.tvossimulator-arm64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Runtime.tvossimulator-x64.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Sdk.15.4.430-ci.pr.gh15117.nupkg
- Microsoft.tvOS.Templates.15.4.430-ci.pr.gh15117.nupkg
- xamarin.ios-15.13.0.126.pkg
- xamarin.mac-8.13.0.126.pkg
Pipeline on Agent XAMBOT-1103.Monterey' Hash: cee43a2638503941800ae6008c98244a35b2015f [PR build]
:x: [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) failed :x:
Failed tests are:
- xammac_tests
- monotouch-test
Pipeline on Agent Hash: cee43a2638503941800ae6008c98244a35b2015f [PR build]