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

7345 Коммитов

Автор SHA1 Сообщение Дата
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
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
Sebastien Pouliot bde29edfb4
Produce the API diff based on 13.8 (not 13.6) (#7739) 2020-01-22 17:26:14 -05:00
Alex Soto 8441a3303c
[devops] Bump maccore to update provisioning script (#7713) 2020-01-15 10:35:50 -05:00
monojenkins 5f802ef535 [xcode11.3] [XHarness] If there are issues generating the BCL tests for mac don't crash. (#7680)
* [XHarness] If there are issues generating the BCL tests for mac dont crash.

* [xcode11.3][mono] Use the right mono branch 2019-08 to sync with android

* Allways build from source.

* Revert "Allways build from source."

This reverts commit 09b7a4c432.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2020-01-07 00:23:33 -05:00
monojenkins db7ccd7d2f [xharness] Do not trace the reflection exceptions used for the BCL. (#7635) 2019-12-20 15:10:15 -05:00
monojenkins 7a22053587 [xcode11.3] [Tests] Split groups so that they work on iOS 32b. (#7617)
After this commit we will have more application but they will be the
appropiate size so that they can be built with the linker for iOS 32b.
It is important to note that the following apps WILL CONTINUE to fail
since the dlls need to be splitted in mono:

* mscorlib tests
* Mono BCL tests group 5 - Which is monotouch_System.Core_xunit-test.dll
and is too large.
2019-12-18 11:16:29 -05:00
monojenkins aaafa2df6f [xharness] Don't try to parse log files that don't exist. (#7614)
Makes xharness throw fewer exceptions, which makes tracing output simpler to read.
2019-12-17 17:04:00 -05:00
monojenkins a6c714fa84 [xcode11.3] [monotouch-test] Simplify NetworkReachabilityTest.CtorIPAddressPair test. (#7613)
* [monotouch-test] Improve reachability test.

Tested on:

* All macOS versions we support (10.9 -> 10.15).
* tvOS device: 13.2
* iOS devices: 8.2, 9.3.5, 10.3.3, 11.4.1, 12.4.1, 13.3
* iOS simulators: 10.3, 11.0, 12.0, 13.2.
* tvOS simulators: 10.2, 13.2

* Yay Apple!

* Give up.

* Revert unneeded change.
2019-12-17 16:07:22 -05:00
Alex Soto 2bb244fcb0
Merge pull request #7600 from dalexsoto/xcode11.3-d16-4
[xcode11.3] Merge d16-4 into xcode11.3
2019-12-16 21:03:29 -05:00
Alex Soto e98a9440ca
Merge remote-tracking branch 'xamarin/d16-4' into xcode11.3-d16-4 2019-12-15 19:36:45 -05:00
monojenkins 380ad56e4d [introspection] Update according to changes that seem to have occurred in macOS 10.15.2. (#7592) 2019-12-13 10:22:16 -05:00
monojenkins b0f99834b9 [runtime] Don't zero-terminate after the string buffer. Fixes #7564. (#7585)
Fixes https://github.com/xamarin/xamarin-macios/issues/7564.
2019-12-12 16:31:59 -05:00
Alex Soto fc51536ced
[xcode11.3] Bump version number now that Xcode 11.3 is out (#7573) 2019-12-11 12:31:55 -05:00
Vincent Dondain 889705c2ee Bump for Xcode 11.3 final (#7568) 2019-12-11 09:11:17 +01:00
Vincent Dondain 0d8fe219c7
Bump version number for d16.4 service release 1 (#7543) 2019-12-04 12:59:57 -05:00
Manuel de la Pena 8abcd9c60c
[Network] Add missing BindingImplAttr. (#7530)
Fixes: https://github.com/xamarin/xamarin-macios/issues/7513
2019-12-04 11:41:29 -05:00
Vincent Dondain 917041448e
Bump mono to HEAD of 2019-08 (#7538)
New commits in mono/mono:

* mono/mono@bef1e63358 [interp] track valuetype stack for CEE_RET too (#17998)
* mono/mono@56325f4097 [arm] if mtriple is provided, do not set -march
* mono/mono@c4a1b40fbd [2019-08] [runtime] Treat calling a non-virtual method through… (#17961)
* mono/mono@0c9250280d [2019-08] bump msbuild+roslyn to track mono-2019-08 (#17954)
* mono/mono@14aac0c541 Bump msbuild to track mono-2019-08 (#17854)
* mono/mono@a77128ca79 [merp] Remove extraneous waitpid invocation (#17762)
* mono/mono@296a9afdb2 [MacSDK] Bump xamarin-gtk-theme.py to latest revision from private bockbuild (#17786)
* mono/mono@e59c3fbb68 Bump msbuild packages to 1e1d0f2caad3731357cca18b298536e514f5519b (#17724)

Diff: 062f0ab8ca..bef1e63358
2019-12-04 10:38:01 -05:00
monojenkins 74a94c35d1 [monotouch-test] Make NetworkReachabilityTest.CtorIPAddressPair a bit more permissive. Fixes xamarin/maccore#2047. (#7521)
Try to fix https://github.com/xamarin/maccore/issues/2047 by making the test
accept NetworkReachabilityFlags.Reachable for the loopback address on device.

Fixes https://github.com/xamarin/maccore/issues/2047.
2019-12-02 21:54:33 +01:00
monojenkins 2c02cf7a03 [xcode11.3] Bump macios-binaries to get fix for xamarin/maccore#2068. (#7512)
* Bump macios-binaries to get fix for xamarin/maccore#2068.

New commits in xamarin/macios-binaries:

* xamarin/macios-binaries@eb6980e Bump mlaunch to xamarin/maccore@92433b7757 (#28)

Diff: 6f488dd132..eb6980e8b6

* Update submodule branch for macios-binaries.
2019-12-02 21:54:26 +01:00
Rolf Bjarne Kvinge e808ad48aa
[xharness] Make sure to always stop log and system capture. (#7506)
This will hopefully stop the runaway mlaunch processes we've seen on the bots.

Ref: https://github.com/xamarin/maccore/issues/1965.
2019-12-02 21:54:07 +01:00
monojenkins 44d411b8de [xharness] Add a timeout to the periodic command. (#7504)
This will hopefully prevent the periodic command from keeping xharness alive longer than it should.
2019-12-02 21:48:22 +01:00
monojenkins bcf3899893 [generator] If forcing a managed type, we must do so even if there's another managed instance of an incompatible type. Fixes #7441. (#7460)
If forcing a managed type for a particular native handle, we must ensure we're
always successful.

This means creating another managed instance even if there already is an
existing instance for the native handle. This is not optimal, but the
alternative is worse: some functionality can be completely broken otherwise
(such as NSSavePanel⁄NSOpenPanel may stop working).

If creating multiple managed instances for the same native handle ends up
being too problematic, we'll probably have to add full support for this
scenario (see #7442).

Fixes https://github.com/xamarin/xamarin-macios/issues/7441.
2019-11-26 13:38:57 -05:00
monojenkins fd7a5360a5 [xcode11.3] [linker] Do not mark NSObject subclasses from Xamarin.Forms.Platform.iOS.dll assembly (#7483)
Turn older #7165 prototype into an experimental feature. It can be
enabled by adding `--optimize=experimental-xforms-product-type` to the
**Additional mtouch arguments** of the project.

ref: https://github.com/xamarin/xamarin-macios/pull/7165
2019-11-26 08:32:02 -05:00
Manuel de la Pena dadf69e97e
[Networking] Add missing Mac OS X APIs. (#7426)
Add missing APIs and complete the bindings for Xcode 11.
2019-11-22 15:21:39 -05:00
monojenkins 88dc8642f0 [xcode11.3] [Tests] Update tests.sln to include all the BCL tests. (#7482)
Update the UUIDs of the projects to ensure that they are all present
in the sln for developers to use.

Fixes: https://github.com/xamarin/xamarin-macios/issues/7475
FIxes: https://github.com/xamarin/xamarin-macios/issues/7476
2019-11-22 10:34:30 -05:00
Rolf Bjarne Kvinge f7212e7dc5
[introspection] UIMenuController's default ctor stopped working in iOS 13.3. Fixes xamarin/maccore#2067. (#7458)
* [introspection] UIMenuController's default ctor stopped working in iOS 13.3. Fixes xamarin/maccore#2067.

Fixes https://github.com/xamarin/maccore/issues/2067.

* [tests] Add support for comparing 3-part system version strings to watchOS.
2019-11-20 13:45:01 -05:00
Rolf Bjarne Kvinge 806404fa51
Keep track of SDK versions and OS versions separately. Fixes xamarin/maccore#2066. (#7454)
The latest SDK version and the latest OS version does not necessarily have to
match (for instance the iOS 13.2 SDK can support both iOS 13.2 and iOS 13.3),
so keep track of them separately.

Also use the latest OS version to determine which simulator to run, instead of
the latest SDK version (Xcode 11.3 ships with the iOS 13.2 SDK but only has an
iOS 13.3 simulator, not an iOS 13.2 simulator).

Fixes https://github.com/xamarin/maccore/issues/2066.
2019-11-15 17:21:10 +01:00
Pramit Mallick 0e394f7e80
CoreFoundation update - adding to ignore (#7448) 2019-11-15 21:16:40 +05:30
Rolf Bjarne Kvinge e31e6773d1
Bump mono to get archive built with Xcode 11.3 b1. (#7444)
New commits in mono/mono:

* mono/mono@3e882ed1a2 [2019-08][ci] Add Xcode 11.3beta1 for XI/XM Mono SDK builds
* mono/mono@e59c3fbb68 Bump msbuild packages to 1e1d0f2caad3731357cca18b298536e514f5519b (#17724)

Diff: 062f0ab8ca..3e882ed1a2
2019-11-15 08:48:22 +01:00
Vincent Dondain 5e52f30c05 Bump for Xcode 11.3 beta 1 (#7431)
* Bump for Xcode 11.3 beta 1

* [system-dependencies] Make it clearer what failed on the bots.

Locally we use colors to distinguish between warnings and failures, but colors
don't show up on the bots, so use text instead.

* Verbose provisioning.

* [system-dependencies] Improve simulator checks a bit.

* Non-verbose provisioning.
2019-11-14 14:32:26 +01:00
Manuel de la Pena c306cb3e0d
Merge pull request #7433 from mandel-macaque/xcode11.3-bundle-backport
[Xcode11.3] Make CFBundle.GetAll thread safe.
2019-11-14 05:43:18 -05:00
Manuel de la Pena cd7c5171a9 [CoreFoundation] CFBundle.GetAll better thread safe. (#7425)
The initial solution fixed the rance condition in which the index
changed, but that did not guarantee that we would get the correct
bundles. We now clone the CFArray (which also clones the callbacks set
to the array) and iterate over it to make sure Apple does not do evil
tings while we are iteraing.

Better Fixes: https://github.com/xamarin/maccore/issues/940
2019-11-13 17:30:02 -05:00
Manuel de la Pena d99e3b24f9 [CoreFoundation] Add Clone method for CFArray. (#7403)
When working on https://github.com/xamarin/maccore/issues/940 we noticed
that clone the array would be a better approach.

The CFArrayCreateCopy add some nice things:

* The pointer values from theArray are copied into the new array.
* The values are also retained by the new array.
* The count of the new array is the same as theArray
* The new array uses the same callbacks as theArray. [IMPORTANT]

Whith this in, we can have a better fix for https://github.com/xamarin/maccore/issues/940
2019-11-13 17:28:46 -05:00
monojenkins b69e72ba5c [d16-4] [Tests] If we have server errors. Mark test as inconclusive. (#7417)
If we are getting errors (500,401..) do not mark a link all test as a
failure, but as inconclusive.

Fixes: https://github.com/xamarin/maccore/issues/2056
2019-11-12 15:45:06 -05:00
monojenkins 83fd5162f2 [xcode11.3] [Tests] If we have server errors. Mark test as inconclusive. (#7415)
If we are getting errors (500,401..) do not mark a link all test as a
failure, but as inconclusive.

Fixes: https://github.com/xamarin/maccore/issues/2056
2019-11-12 15:08:18 -05:00
monojenkins 31be34a306 [xcode11.3] [Packaging] Ensure that when we build from source, the srcs go to the correct place. (#7407)
* [Packaging] Ensure that when we build from source, the srcs go to the correct plance.

When building from source, the install-sources command was not moving
the files correctly. This change makes sure that, if we build from
source, we do add the mono sources in the correct location.

Fixes: https://github.com/xamarin/xamarin-macios/issues/7393
2019-11-12 09:05:35 -05:00
monojenkins 6d13a39027 [Install] Ensure that sources from mono are included when building from source. (#7389)
The PathManglerFactory was getting confused when building mono from
source again and since it did not find the sources in the download
directory it considered that the path to modify was part of Xamarin.

Now the factory tests first if we are getting a path from the mono
external submodule, if that is the case we know is a mono path and do
the right thing.

Fixes https://github.com/xamarin/maccore/issues/2053
2019-11-08 16:08:30 -05:00
monojenkins 9297672d22 [Install] Ensure that sources from mono are included when building from source. (#7390)
The PathManglerFactory was getting confused when building mono from
source again and since it did not find the sources in the download
directory it considered that the path to modify was part of Xamarin.

Now the factory tests first if we are getting a path from the mono
external submodule, if that is the case we know is a mono path and do
the right thing.

Fixes https://github.com/xamarin/maccore/issues/2053
2019-11-08 16:07:47 -05:00
Waleed Chaudhry a1b670cd63
[FileProvider] Add FileProvider binding xcode11.2b1 (#7384) 2019-11-07 14:42:47 -05:00
monojenkins 5fa3d8abbb [Install] Do not crash when the directory is not found. (#7382)
This is NOT a fix for https://github.com/xamarin/maccore/issues/2053 but
a nice thing to have to make sure that when the file cannot be copied we
have a useful debugging message. Fixing
https://github.com/xamarin/maccore/issues/2053 should be done in the
path mangler that is doing something wrong with the paths.
2019-11-07 13:25:41 -05:00
monojenkins 2db10bda07 [Install] Do not crash when the directory is not found. (#7380)
This is NOT a fix for https://github.com/xamarin/maccore/issues/2053 but
a nice thing to have to make sure that when the file cannot be copied we
have a useful debugging message. Fixing
https://github.com/xamarin/maccore/issues/2053 should be done in the
path mangler that is doing something wrong with the paths.
2019-11-07 13:25:25 -05:00