Граф коммитов

7493 Коммитов

Автор SHA1 Сообщение Дата
Alex Soto 709a90599e Merge remote-tracking branch 'xamarin/xcode11.4' into d16-5-xcode11.4-merge 2020-03-03 10:57:24 -05:00
Alex Soto 5cc1406ec4
[Intents] Update bindings from Xcode 10.3 to Xcode 11.4 Beta 2 (#8025)
* [Intents] Update bindings from Xcode 10.3 to Xcode 11.4 Beta 2

* Fix breaking change and apply feedback

* actually add the bug number 🙄
2020-03-03 06:49:56 -05:00
Rolf Bjarne Kvinge ad15106af4
[msbuild] Add support for Metal in the simulator. Fixes #7392. (#7983) (#7991)
* [msbuild] Provide the correct value for the operating system for tvOS and watchOS to a few tasks. Fixes #6200. (#7226)

The problem with #6200 was that we'd pass -mios-version-min=x.y to the metal
tool even for tvOS apps. This fixes it so that now pass -mtvos-version-min.

Fixes https://github.com/xamarin/xamarin-macios/issues/6200.

* [msbuild] Add support for Metal in the simulator. Fixes #7392. (#7983)
2020-02-28 19:59:03 +01:00
monojenkins fe451491f6
[xcode11.4] [tests] Add `.cctor` execution to introspection (#7987)
This will spot cases like https://github.com/xamarin/xamarin-macios/issues/7959
where a type (static) constructor can fail at runtime, leading to
`TypeLoadException`

Ideally it's covered by it's own tests but it's better covered twice
than never :)

On iOS 64bits [1] simulator we hit some failures [2], later, if the
`.cctor` is executed. It's not a big deal to avoid those types since
we it will be executed on devices later.

[1] API not present on 32bits

[2] Fixing the following triggers similar failures for `DCDevice`

```
ApiClassPtrTest.VerifyClassPtr: class_ptr and RegisterAttribute are different: NFCIso15693CustomCommandConfiguration
Expected: 0
But was: 140735471513712

ApiSelectorTest.StaticMethods: 7 errors found in 2788 static selector validated:
CoreNFC.NFCIso15693ReaderSession : readingAvailable
CoreNFC.NFCNdefMessage : ndefMessageWithData:
CoreNFC.NFCNdefPayload : wellKnownTypeURIPayloadWithString:
CoreNFC.NFCNdefPayload : wellKnownTypeURIPayloadWithURL:
CoreNFC.NFCNdefPayload : wellKnownTypeTextPayloadWithString:locale:
CoreNFC.NFCNdefReaderSession : readingAvailable
CoreNFC.NFCReaderSession : readingAvailable
Expected: 0
But was: 7
```

Co-authored-by: Sebastien Pouliot <sebastien.pouliot@gmail.com>
2020-02-26 16:16:04 -05:00
Alex Soto dd83fbed2d
[UIKit] Update bindings to Xcode 11.4 Beta 2 (#7963) 2020-02-25 06:50:39 -05:00
Alex Soto 144f7d2c83
[CoreImage] Add missing properties found by intro tests (#7970)
Fixes xamarin/xamarin-macios#7956
2020-02-25 06:48:59 -05:00
Alex Soto e9b85d3c56
[VideoSubscriberAccount] Update bindings to Xcode 11.4 Beta 2 (#7964) 2020-02-25 06:48:37 -05:00
Alex Soto 69c19184b1
[WatchKit] Update bindings to Xcode 11.2 Beta 2 (#7965) 2020-02-24 19:36:03 -05:00
Alex Soto 30e8706b4f
[mono] Bump mono to match android (#7942)
New commits in mono/mono:

* mono/mono@c0c5c78e2b Bump bockbuild to bring in Gtk# regression fix (#18912)
* mono/mono@a644983ae8 [2019-10] Make MonoWebRequestHandler linker friendly (#18835)
* mono/mono@85f47fae28 Move HttpClientHandlerTests.Android.cs to nunit (#18888)
* mono/mono@26afa2d5bb [2019-10] Bump msbuild to track mono-2019-10 (#18861)
* mono/mono@e5f0d5d928 [2019-10] [merp] Increase buffer size for state dump (#18838)
* mono/mono@e60eabc767 Move offsets-tool into mono/tools (#18783) (#18831)
* mono/mono@7a59bf3ea5 [2019-10] Bump msbuild to track mono-2019-10 (#18791)
* mono/mono@47bb780c8d [2019-10] Allow users to switch to MonoWebRequestHandler on Android via UI (#18787)
* mono/mono@d6f592717e Bump bockbuild to get GTK NSPasteboardType change.
* mono/mono@1ee12f8625 Update deprecated query parameter to header (#18705)
* mono/mono@8720142834 [iOS] Replace removed dsymutil `-t` switch with `-num-threads` (#18743)
* mono/mono@83c161f276 Skip WebAssembly build in sdks archive build on non-master branches
* mono/mono@0e18125d71 [merp] Add an exception type for managed exceptions (#18722)
* mono/mono@82fffe0749 [runtime] Disable lldb backtrace display on osx, it hangs on attaching in lldb.

Diff: 1cca0cfebf..c0c5c78e2b
2020-02-20 16:30:29 -05:00
Alex Soto cbe129fad0
[xcode11.4] Add support for Xcode 11.4 Beta 2 (#7944) 2020-02-19 18:33:06 -05:00
Manuel de la Pena c68b94bb89
[Tests] Update MT4134 tests for the new Xcode 11.4 (#7931)
New frameworks were added and the test needs to be updated.
2020-02-19 16:13:34 -05:00
Alex Soto d716663061
Replace removed dsymutil `-t` switch with `-num-threads` (#7900) 2020-02-14 15:36:47 -05:00
Rolf Bjarne Kvinge f9d9f6becf
[tests] Simulator dylibs can either have min OS version 7.0 or 8.0. Fixes xamarin/maccore#2153. (#7895)
Fixes https://github.com/xamarin/maccore/issues/2153.
2020-02-14 20:20:55 +01:00
Rolf Bjarne Kvinge d2f3733a1d
[tests] Ignore Xamarin.MMP.Tests.WarningTests.MM0135 on macOS 10.15+. Fixes xamarin/maccore#2035. (#7896)
Ignore Xamarin.MMP.Tests.WarningTests.MM0135 on macOS 10.15+, because this
test requires Xcode 9.4, which doesn't work on macOS 10.15+.

Fixes https://github.com/xamarin/maccore/issues/2035.
2020-02-14 20:17:04 +01:00
Rolf Bjarne Kvinge c53b17d79b
Make the x86-64 slice we inject into binaries optional. (#7891)
We inject an x86-64 slice into binaries that don't contain one, because
Apple's notarization process fails without such a slice.

But make the slice optional and opt-in, because it seems Apple has started
to fail on binaries with such a slice now...
2020-02-14 14:25:43 +01:00
Alex Soto b437313fe0
[UIKit] Update bindings to Xcode 11.4 Beta 1 (#7887) 2020-02-13 16:12:07 -05:00
Alex Soto 91172a80c4
[PassKit] Update bindings to Xcode 11.4 Beta 1 (#7885) 2020-02-13 14:42:14 -05:00
Alex Soto f40be0e14f
[SafariServices] Update bindings to Xcode 11.4 Beta 1 (#7886) 2020-02-13 14:41:46 -05:00
monojenkins 86000d0c3b
[XHarness] Generate TestReorts for NUnit V3. (#7881)
Now that we have NUnit V3 xml results, do generate the test report for
those correctly.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-02-13 11:59:15 -05:00
Alex Soto 5a9748bc37
[LocalAuthentication] Update bindings to Xcode 11.4 Beta 1 (#7884) 2020-02-13 11:21:42 -05:00
Alex Soto efe0e25e66
[CallKit] Update bindings to Xcode 11.4 Beta 1 (#7860) 2020-02-13 10:04:24 -05:00
Alex Soto 19e6e07ce2
[CoreLocation] Update to Xcode 11.4 Beta 1 (#7867) 2020-02-13 07:03:00 -05:00
Alex Soto d75b482e59
[GameKit] Update bindings to Xcode 11.4 Beta 1 (#7869)
* [GameKit] Update bindings to Xcode 11.4 Beta 1

* Fix message
2020-02-12 19:26:45 -05:00
Alex Soto d01d9cbb05
[CoreGraphics] Update bindings to Xcode 11.4 Beta 1 (#7865) 2020-02-12 18:35:47 -05:00
Alex Soto 78e4010173
[CoreText] Update bindings to Xcode 11.4 Beta 1 (#7868) 2020-02-12 18:35:27 -05:00
Alex Soto 570930ec3f
[CoreBluetooth] Update bindings to Xcode 11.4 Beta 1 (#7864) 2020-02-12 18:35:07 -05:00
Alex Soto 60d93abb46
[Contacts] Update bindings to Xcode 11.4 Beta 1 (#7863) 2020-02-12 18:34:49 -05:00
Alex Soto 08bb76928f
[AVFoundation] Update bindings to Xcode 11.4 Beta 1 (#7859) 2020-02-12 18:34:17 -05:00
Alex Soto fdba4ebdba
[ClassKit] Update bindings to Xcode 11.4 Beta 1 (#7862) 2020-02-12 18:23:52 -05:00
Alex Soto 56fa148802
[CarPlay] Update bindings to Xcode 11.4 Beta 1 (#7861) 2020-02-12 18:23:32 -05:00
Alex Soto 72e322c3cb
[AuthenticationServices] Update bindings to Xcode 11.4 Beta 1 (#7858) 2020-02-12 18:22:56 -05:00
Alex Soto 278049cdbb
[AppKit] Update bindings to Xcode 11.4 Beta 1 (#7857) 2020-02-12 18:22:24 -05:00
Manuel de la Pena 9303bb2dc5
[Xcode11.4][XHarness] Add logs to VSTS test runs. (#7844) (#7866)
As per the documentation of the VSTS test uploader (https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=yaml#attachments-support)
the tests support the addition of attachments. We want to be able to
access the logs of the different tests runs, this is achieved the
following way:

1. Move TouchUnit to use NUnit V3 which allows to add attachments.
2. Once the tests are ran, add the attachments to the following nodes:
   1. The very first test-suite. This will allow to have the logs for
   succesul tests.
   2. Add logs to failing tests. Reduces the number of clicks to be done
   to access to the logs when a test case fails.
3. Modify the assembly name of the test-suit to match the name of the
application. This ensures two things.
   1. We have a consistent name for the file column in VSTS, that can be
   used to see recurrent failing tests.
   2. The name is more readable, since if not, it will contain the UUID
   of the device.

Logs are not added to succesful tests because it will have the following
problems:

* Larger data storage usage.
* Longer upload time. The addtion of the logs per tests (succesful or
failed) was tested and resulted in an upload time LONGER than 6 hours
for all TouchUnit, NUnit blc tests and xUnit bcl tests.

In order for this to be useful, the task in the pipeline SHOULD NOT
merge test runs. We should have a test run PER application so that we do
not mix the logs.

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-02-12 18:16:30 -05:00
Manuel de la Pena 6b68384847
[Mono binaries] Set the mono binaries to be the ones compiled with Xcode 11.3 (#7873)
Mono is not yet built with Xcode 11.4, lets use Xcode 11.3 binary
packages to move fwd faster.

Issue created to track the revert of this change: https://github.com/xamarin/xamarin-macios/issues/7872
2020-02-12 18:14:57 -05:00
Manuel de la Pena 35c010db63
[XHarness] USe static variables for common test names. (#7837) (#7853)
One of the reason why we lost the TestReport was because the xml added
from the new code did not use the same name for the log as the expected
one (https://github.com/xamarin/xamarin-macios/pull/7835/files#diff-03773861bcef485bf343300f31b60b0eR374).

If we are going to be using the description as a way to decide what is
going to be done with it, lets use static vars so that we do not have
logs added with the wrong name.
2020-02-12 07:36:43 -05:00
Alex Soto cee4b5e5a1
[xcode11.4] Add xcode 11.4 b1 initial support (#7805)
* [xcode11.4] Add xcode 11.4 b1 initial support

* [xtro] re-enable PDFKit

* Disable watchOS and fix xtro

Unfortunately watchOS simulator hangs when we try to deploy to it
and it keeps our tests timing out. Disabling for now until we
can investigate more.

Disables PDFKit on xtro in macOS

* [jenkins] Switch to use the catalina bot group (#7819)

* Bump maccore to get fix for launching the simulator for watch apps.

New commits in xamarin/maccore:

* xamarin/maccore@546270c8f9 [Xamarin.Hosting] Fix the name of the notification we get when the simulator has launched. (#2145)

Diff: 55957e908d..546270c8f9

* [tests] Diable watch due to time out, enable 10,15,4 in intro, fix min version

* Bump macios-binaries to get updated binary mlaunch as well.

New commits in xamarin/macios-binaries:

* xamarin/macios-binaries@f8c6e63 Bump mlaunch to xamarin/maccore@546270c8f9

Diff: eb6980e8b6..f8c6e63228

* [msbuild] Reflect ibtool changes in our tests

Looks like Apple reverted some changes introduces in Xcode 11
in ibtool, for more context see xamarin/xamarin-macios#6970

* [mtouch] Workaround strange behavior of realpath.

Co-authored-by: Sebastien Pouliot <sebastien.pouliot@gmail.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-02-11 20:25:43 -05:00
Manuel de la Pena 0799e357d7
[Xcode11.4][DDFun|VSTS] Add a URL to a more interesting view. (#7847) 2020-02-11 18:44:01 -05:00
monojenkins 0c89f403a4
[xcode11.4] [XHarness] Do write the TestReport when we have xUnit results. (#7849)
Add code to write the TestReport when we have xunit results. Also
refactored code for the NUnit format to not use LINQ, it will use less
memory and in the future we can move to async (not now since it might
raise other problems).

fixes: https://github.com/xamarin/xamarin-macios/issues/7826

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-02-11 18:43:39 -05:00
Manuel de la Pena c3001c8331
[Jenkins] Do not notarize on PRs. (#7836) (#7839)
It was added as a backup and has not been needed. With the updates to
catalina it makes builds fail on CI.
2020-02-11 06:43:06 -05:00
Manuel de la Pena 5615df29ee
Merge pull request #7830 from monojenkins/backport-pr-7824-to-xcode11.4
Adds the change required to remove the CI noise and all the changes in xharness for VSTS integration.
2020-02-10 15:50:04 -05:00
Manuel de la Pena 359bbbb50b [XHarness] Refactor xml code to make the AppRunner class cleaner. (#7794)
There is a lot of logic related to xml in the AppRunner making it more
complicated than needed. Move the methods to a hlper class.
2020-02-10 10:58:50 -05:00
Manuel de la Pena 101c944bfc [Xharness] Fix all xml parsing issues and ensure that the xml can be consumed by VSTS. (#7768)
We ping the tcp listener to know that we have a tcp connection, that is
written in the xml logs, which means that parsing will not work. Ignore
the ping, parse xml, and make sure that the xml that will be consume by
vsts is valid.

This PR also fixes https://github.com/xamarin/maccore/issues/827 which does not longer happen.
2020-02-10 10:58:36 -05:00
Manuel de la Pena 9e45badf78 [Xharness] Add workaround when we could not share the internet in bots. (#7755)
Looks like we have issues with the internet sharing in the VSTS bots,
this means that now that we always try to parse the XML on CI, we get an
exception, catch it and do not show the results.

The workaround simply tries to read the xml, if possible, we will parse
it, else deal with the text only log. The fix will show the results, but
it is a workaround for a configuration issue in the CI.
2020-02-10 10:58:25 -05:00
Manuel de la Pena abf9dfc997 [Harness] Unify the CI properties. (#7750)
Unify the harness properties to just look at InCI and remove all the
other ones. There is no real need to have differences between jenkins
and VSTS and Wrench is gone.
2020-02-10 10:58:13 -05:00
Manuel de la Pena 2fb329bc96 [XHarness] If in CI, no matter which, use the Xml output. (#7745)
We used to test only on Jenkins, and if the build version had jenkins on
it, rather than doing so, just check if we are in the CI by looking if
BUILD_REVISION is present in the env.
2020-02-10 10:58:00 -05:00
monojenkins 6f712aeaef
[Harness] Just try to generate the report when is NUnit. (#7828)
Use the xml parsing helper methods to decide if the xml can be parsed
and if we will be able to generate the report. That way we avoid an
exception that makes the CI noise.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-02-10 10:40:59 -05:00
Manuel de la Pena 829af5eec3 [Harness] Just try to generate the report when is NUnit.
Use the xml parsing helper methods to decide if the xml can be parsed
and if we will be able to generate the report. That way we avoid an
exception that makes the CI noise.
2020-02-08 02:19:40 +00:00
Manuel de la Pena 768ee83dad
[d16-5] Cherry-picked all xharness fixes done for Xml parsing. 2020-02-07 16:25:14 -05:00
Manuel de la Pena 1f80ebe15e [XHarness] Refactor xml code to make the AppRunner class cleaner. (#7794)
There is a lot of logic related to xml in the AppRunner making it more
complicated than needed. Move the methods to a hlper class.
2020-02-06 08:54:26 -05:00
Manuel de la Pena 8acfe3859e [Xharness] Fix all xml parsing issues and ensure that the xml can be consumed by VSTS. (#7768)
We ping the tcp listener to know that we have a tcp connection, that is
written in the xml logs, which means that parsing will not work. Ignore
the ping, parse xml, and make sure that the xml that will be consume by
vsts is valid.

This PR also fixes https://github.com/xamarin/maccore/issues/827 which does not longer happen.
2020-02-06 08:54:00 -05:00