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

5273 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 50bb4912e1
Revert "[xharness] Only build the BCL tests when we need them. (#5139)" (#5149)
This reverts commit 7277bbcd2b, it breaks building & running the new BCL tests.
2018-11-20 07:06:37 -05:00
Rolf Bjarne Kvinge 5761691c21
[jenkins] Fix slack reporting, and make it more resilient against failures. Fixes maccore#1160. (#5142)
* [jenkins] Fix getting author name+email for Slack reporting.

* [jenkins] Make slack reporting more resilient against failures. Fixes maccore#1160.

Fixes https://github.com/xamarin/maccore/issues/1160.
2018-11-20 02:55:57 -05:00
Aaron Bockover 9c028036b4 The NSBackingStore enum is not deprecated (#5144) 2018-11-20 02:54:19 -05:00
Chris Hamons dd75eedacf [codeowners] Add chamons to a few areas (#5147) 2018-11-19 22:20:40 -05:00
Rolf Bjarne Kvinge 163059c19b Build xibuild before mlaunch, since mlaunch needs xibuild to build. (#5143) 2018-11-19 14:28:16 -05:00
Rolf Bjarne Kvinge ecfe54a814
Bump maccore to get mlaunch build fix. (#5141)
Commit list for xamarin/maccore:

* xamarin/maccore@278d0e0c98 [mlaunch] Fix mlaunch build by using xibuild. (#1159)

Diff: e73094e632...278d0e0c98
2018-11-19 11:45:32 -05:00
Rolf Bjarne Kvinge 7277bbcd2b
[xharness] Only build the BCL tests when we need them. (#5139)
Only build the BCL tests when we need them, because we can't build them when
we're running the device tests (because we don't have a built source tree in
that case).

Since the test assemblies are required when generating the BCL projects, this
means we also delay creating the BCL projects until we need them.
2018-11-19 09:07:35 -05:00
Bernhard Urban f15233f3db [tests] enable msorlib with interpreter (#5122) 2018-11-19 07:18:12 -05:00
Jeffrey Stedfast 530f848ac9 [msbuild] Fixed compilation of SceneKit assets in library projects (#5130)
The problem is that AppBundleDir never gets defined for library projects.

Luckily, _AppBundleName and AppBundleExtension are always defined and
all we need is the directory name (i.e. MyApp.app), so this will work
just fine.

Fixes issue #5129
2018-11-18 16:35:02 -05:00
Bernhard Urban 74b3233be3 Bump to mono:2018-06 (#5136)
Commit list for mono/mono:

* mono/mono@bb3ae37d71 [interp] attempt to intrinsify again after a method is resolved regarding generics (#11715)
* mono/mono@78eb5303e8 [2018-06] [aot] image is usable without debug flag when interpreter is used (#11711)
* mono/mono@54cc205dd9 [2018-06] [crash] Remove duplicated il_offset (#11703)
* mono/mono@279ac406e7 [2018-06] [runtime] Fix the size calculation in mono_debug_add_method (). (#11686)
* mono/mono@1ac52d1827 [2018-06] [llvm] bump for armhf callingconv fix (#11610)

Diff: eee1d634e8...bb3ae37d71
2018-11-18 16:34:06 -05:00
Alex Soto 265c46b91b
[QuickLook] Add [ThreadSafe] to `QLThumbnailReply` and `QLFileThumbnailRequest` (#5119)
`QLThumbnailReply` and `QLFileThumbnailRequest`  members are called
from a background thread within `QLThumbnailProvider` extension
so our check on `UIApplication.EnsureUIThread ()` is not needed.

Fixes xamarin/xamarin-macios#5117
2018-11-17 23:08:09 -05:00
Ankit Jain f865694f86 Move tests to use new tool xibuild and thus fix msbuild tests (#5128)
* xibuild: New wrapper tool to run msbuild or managed executables

MSBuild supports fallback paths for projects imported using
`$(MSBuildExtensionsPath)`, but these must be specified explicitly in
the app.config of the main executable. There was a PR to allow use of
properties for this in the app.config, but that was not accepted
upstream.

This is required for being able to:

1. build projects with msbuild against the in-tree XI/XM build output
2. and to run nunit tests against the same.

For this we introduce a new tool, `xibuild`, based on XA's `xabuild`.
This supports the fallback paths to be specified via the environment variable
`MSBuildExtensionsPathFallbackPathsOverride`[1].
It essentially operates in 3 modes:

1. `xibuild -c /path/to/foo.exe`
	Generates /path/to/foo.exe.config with the fallback paths inserted into that.

2. `xibuild -- /v:diag /path/to/project.csproj`
	Runs msbuild with the arguments after `--` with a custom app.config based on
	`MSBuild.dll.config`, with the fallback paths correctly inserted.
	This is in a temporary file and the original config file is not touched.

3. `xibuild -t -- /path/to/managed_tool.exe args`
	Generates `/path/to/managed_tool.exe.config` based on `MSBuild.dll.config` with
	the fallback paths inserted, and runs `managed_tool.exe` with the arguments.
	The default is to overwrite the config file.
	But there is also a switch to merge it with an existing config file.

--
1. Value of the environment variable $MSBuildExtensionsPathFallbackPathsOverride
is prepended to any existing list of search paths in `MSBuild.dll.config`, IOW,
it takes precedence. So, the order of lookup becomes:

  - Value of the property `$(MSBuildExtensionsPath)`
  - Value of the environment variable `$MSBuildExtensionsPathFallbackPathsOverride`
  - /Library/Frameworks/Mono.framework/External/xbuild on macOS

* Integrate use of `xibuild` with the tests

Update all uses of `msbuild` and invocations of tools like nunit that
might depend on using the in-tree builds to use `xibuild`.

* xibuild: Move help descriptions to OptionSet itself.
2018-11-16 14:24:35 -05:00
Manuel de la Pena 505006952c
[Tests] Add a new iOS app to run the xunit and nunit tests (#4914)
Mono know provides a set of testing assemblies that contain the tests to be ran in each of the supported platforms. This commit adds the following:

1. Two different runners that can be used to execute NUnit and xUnit tests.
2. The necessary  glue to get xharness to run the new tests and report the results.
3. A new test that will ensure that if mono adds new tests, xharness will report failures if the tests are not run or not ignored.
2018-11-16 13:31:40 -05:00
Jeffrey Stedfast 6ebf136073
[msbuild] Pass ProjectGuid and ProjectTypeGuids to Archive task (#5118)
This is part of https://devdiv.visualstudio.com/DevDiv/_workitems/edit/705977
2018-11-15 17:13:27 -05:00
Chris Hamons e91ba9f93a
[mmp] Fix typo (#5123)
- https://github.com/xamarin/xamarin-macios/issues/5121
2018-11-13 17:56:05 -05:00
Chris Hamons d248cb6007
Remove some [Sealed] in XAMCORE_4_0 where not necessary (#5108)
- Added in 7d88592 but in XAMCORE_4_0 we don't need it since the "bad" binding won't be there.
2018-11-12 14:51:35 -06:00
Chris Hamons bacfa4e05c
[mac] Remove unnecessary PostSnippet and backing fields (#5101)
- https://github.com/xamarin/xamarin-macios/issues/3543
2018-11-09 16:01:15 -06:00
Bernhard Urban b53086fd0b Bump to mono:2018-06 (#5115)
Commit list for mono/mono:

* mono/mono@eee1d634e8 [ios] remove DISABLE_POLICY_EVIDENCE (#11580)

Diff: 4d7b7ab375...eee1d634e8
2018-11-09 16:54:29 -05:00
Chris Hamons a278fff887
[mac] Enable various msbuild only tests that were disabled (#5113)
- https://github.com/xamarin/xamarin-macios/issues/4110
2018-11-09 13:38:39 -06:00
Rolf Bjarne Kvinge e3dc242386 [ImageCaptureCore] Add missing availability attribute. Fixes maccore#1126. (#5109)
Fixes https://github.com/xamarin/maccore/issues/1126.
2018-11-09 10:39:07 -05:00
Rolf Bjarne Kvinge 3aa7582f4c
[monotouch-test] Add version check to SceneKit.ActionTest. Fixes maccore#1119. (#5099)
Fixes https://github.com/xamarin/maccore/issues/1119.
2018-11-08 18:41:19 +01:00
Rolf Bjarne Kvinge ab2f931da6
[tests] Increase the timeout for 'Mac Binding Projects' from the default 5m to 15m. Fixes maccore#1125. (#5105)
Fixes https://github.com/xamarin/maccore/issues/1125.
2018-11-08 18:22:26 +01:00
Rolf Bjarne Kvinge e3f97c56dd
[jenkins] Run the 'Test docs' step even if the 'Run tests' step failed. (#5106)
This is done by preventing the 'Run tests' failure from throwing exceptions, and instead manually set failure modes.
2018-11-08 16:24:56 +01:00
Rolf Bjarne Kvinge fa440cf01c
[xharness] Make sure we don't run 'nuget restore' for tests-mac.sln multiple times in parallel. Fixes maccore#1122. (#5104)
Make sure we don't run 'nuget restore' for test-mac.sln multiple times in
parallel by creating a separate make target that runs 'nuget restore', and
making every build-mac-* target depend on that target.

Fixes https://github.com/xamarin/maccore/issues/1122.
2018-11-08 15:36:56 +01:00
Alex Soto 8c207428a9
[ImageCaptureCore] Add ImageCaptureCore Bindings (#5074)
* [ImageCaptureCore] Add ImageCaptureCore Bindings

Fixes xamarin/xamarin-macios#4273

* [ImageCaptureCore] remove not needed `unsafe`

Co-Authored-By: dalexsoto <alex@alexsoto.me>

* Implement feedback
2018-11-07 09:52:39 -05:00
Rolf Bjarne Kvinge ef3df84a14
[src] Handle some troublesome characters in branch names better. Fixes #5097. (#5100)
Most characters should now work, including emojis.

Except for double quotes, that turned out too ugly.

Workaround: don't create branches with double quotes in their names.

Fixes https://github.com/xamarin/xamarin-macios/issues/5097.
2018-11-07 15:34:36 +01:00
Rolf Bjarne Kvinge 3835e1dafb
[tests] Point MSBuild to the right Xamarin.Mac location when building packaged Xamarin.Mac tests. Fixes maccore#1115. (#5090)
* [tests] Point MSBuild to the right Xamarin.Mac location when building packaged Xamarin.Mac tests. Fixes maccore#1115.

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

* [xharness] Ensure all makefile targets set the proper environment variables.
2018-11-07 09:34:16 +01:00
Emanuel Fernandez Dell'Oca e840eb31d3 [msbuild] Removes CompileEntitlements target inputs (#5096)
Since we don't require projects to contain an Entitlement.plist file we cannot use that as input, because if that file does not exist the CompileEntitlements target will be skipped. This target runs the CompileEntitlements task that generates a new Entitlements file, and that file is required to deploy the app to a device because it contains the application-identifier entitlement.

Fixes #5094
2018-11-07 08:33:18 +01:00
Sebastien Pouliot 47ff8fd1eb
Update dependencies to their heads (#5091)
Commit list for xamarin/Xamarin.MacDev:

* xamarin/Xamarin.MacDev@49a17b1 VSTS 702327: Launch image sizes for iPhone XS Max and iPhone XR (#35)
* xamarin/Xamarin.MacDev@95599c5 Added new Xcode10 Watch Complication values (#34)
* xamarin/Xamarin.MacDev@59b15be Use Version.TryParse
* xamarin/Xamarin.MacDev@2dd5fa0 Merge pull request #32 from xamarin/vsts-692176
* xamarin/Xamarin.MacDev@a97390f VSTS-692176: Add missing AutoFill Credential Provider entitlement
* xamarin/Xamarin.MacDev@19b14f6 Added API to get the recommended Xcode version value

Diff: 39ea45bad4...49a17b1cbb

Commit list for mono/mono:

* mono/mono@4d7b7ab375 [ci] Fix Windows .msi build
* mono/mono@21dc7470bc [bcl] avoid false pinning in GCTest (#11534)
* mono/mono@d9779c1df6 [interp] accept typed-by-ref as return type from a JIT call (#11538)
* mono/mono@e7e14a7929 [interp] transform delegate invoke in method body too (#11549)
* mono/mono@cadeaf43da [ci] Switch to new syntax of Azure Storage plugin

Diff: 709b46e333...4d7b7ab375

Commit list for xamarin/maccore:

* xamarin/maccore@e73094e632 Update maciostools to head (#1117)
* xamarin/maccore@4902ebbdbd Merge pull request #1105 from xamarin/swift-o-matic-optional-virtual-constructor
* xamarin/maccore@76ecea4760 Added IsOptional property.
* xamarin/maccore@77d93295bd Added a test where the init fails to ensure both paths work.
* xamarin/maccore@3d989b1ca4 Support for optional constructors in virtual classes.
* xamarin/maccore@bfdc782d0e Merge pull request #1100 from xamarin/swift-o-matic-constructor-mulligan
* xamarin/maccore@cf8025724d Added field and prop for ClassHandle
* xamarin/maccore@dc2e3f32fe Trimmed down ObjC constructors.
* xamarin/maccore@b53827c151 [SoM] Document CI a bit. (#1101)
* xamarin/maccore@46d01c8c10 [SoM] Provision XI and Mono as well. (#1099)
* xamarin/maccore@b4455eafcb bye bye old code.
* xamarin/maccore@34730dfeac Lots of changes for constructor refactoring.
* xamarin/maccore@bd09006725 Merge pull request #1096 from xamarin/swift-o-matic-required-init
* xamarin/maccore@2af91dc79a Label those asserts!
* xamarin/maccore@ea5b501a47 It looks like cmake isn't there?
* xamarin/maccore@b50285719f Support for required init methods
* xamarin/maccore@6e7187da41 [install-qa-provisioning-profiles] Create directory before trying to create files in it. (#1095)
* xamarin/maccore@8addb4a338 Merge pull request #1092 from xamarin/swift-o-matic-objc-methods
* xamarin/maccore@9dc7111497 Removed dead code, added nfloat.
* xamarin/maccore@663279065d Removed dead code.
* xamarin/maccore@3852918abc Added code to import C# methods defined in ObjC bindings.

Diff: b35c3a8d76...e73094e632
2018-11-06 13:28:41 -05:00
Rolf Bjarne Kvinge 27688e8d5b
[xharness] Fix the generation of the Mac makefile to export the right variables to use the locally build Xamarin.Mac. (#5087) 2018-11-06 15:06:58 +01:00
Rolf Bjarne Kvinge 012a0650b6
[mtouch] Fix formatting for MT0079 and update the MT4134 test to take into account the warning. Fixes maccore#1116. (#5089)
Fixes https://github.com/xamarin/maccore/issues/1116.
2018-11-06 15:06:10 +01:00
Rolf Bjarne Kvinge 1ca7da537d Mono 5.16.0.87+ breaks us, so make sure we don't use it for now. (#5088) 2018-11-06 09:05:02 -05:00
Bernhard Urban b9170ae434 [tests] enable monotouch-test with --interpreter=-mscorlib on Jenkins (#5051)
aka. mixed mode
2018-11-06 13:22:17 +01:00
Rolf Bjarne Kvinge 1b32a8dba5
[monotouch-test] Improve diagnostic output when MessageHandlerTest fails. (#5085)
Reference: https://github.com/xamarin/xamarin-macios/issues/4013
2018-11-06 09:57:35 +01:00
Rolf Bjarne Kvinge ac54b7d065
[monotouch-test] Improve VTDecompressionSessionTests asserts to print better info in case of failure. (#5083)
Showing the actual failed value is much more helpful than just "sorry, it failed".

See https://github.com/xamarin/xamarin-macios/issues/4900.
2018-11-06 09:53:59 +01:00
Sebastien Pouliot 21f3545437
Bump mono 2018-06 before P2 branch (#5084)
Commit list for mono/mono:

* mono/mono@709b46e333 [tests] reduce recursion depth (#11484)
* mono/mono@b291519422 [crash] Fix async setting for crash reporter
* mono/mono@149206a5ee [crash] Fix merp invocation (#11436)
* mono/mono@2f2615ffc8 [2018-06] [delegates] do not use CEE_CALLVIRT for non-virtual methods (#11450)
* mono/mono@47eb7c55eb [2018-06] [interp] Overflow fixes (#11426)

Diff: 3ae42fc38d...709b46e333
2018-11-05 17:52:16 -05:00
Sebastien Pouliot 121fe236ba
[scenekit] Fix `SCNAction.TimingFunction` signature to `Func<float,float>`. Fixes #5058 (#5068)
This was incorrectly bound as `Action<float>`.
Added unit test for the API compatibility stubs.

reference: https://github.com/xamarin/xamarin-macios/issues/5058

* [tests] Adjust test not to fail

reference: https://github.com/xamarin/xamarin-macios/issues/5072
2018-11-05 14:20:03 -05:00
Sam Schwarz d0d28f8200 Without this added the azure links in the side panel won't work. This step can also be updated to the new pipeline syntax using the pipeline syntax generator. (#5081) 2018-11-05 19:22:24 +01:00
Rolf Bjarne Kvinge 38bae20618
Fix min macOS version confusion. (#5080)
* MIN_OSX_SDK_VERSION: the minimum macOS version we support for running macOS apps.
* MIN_OSX_VERSION_FOR_MAC: the minimum macOS version we support for running XM/XI themselves.

Change our build to make sure the above is respected, and in particular:

* The mac32 and mac64 builds must use MIN_OSX_SDK_VERSION.
* The runtime/ build must use MIN_OSX_SDK_VERSION.
* The tools64 build should use MIN_OSX_VERSION_FOR_MAC.

Also document a bit better the various version variables.
2018-11-05 14:46:41 +01:00
Rolf Bjarne Kvinge ef8f1dcbfe
[mtouch/mmp] Unify Xcode lookup & verification code in mtouch and mmp. (#5077)
Share all the code to find and verify Xcode between mtouch and mmp.

Also print out the actual product version when logging which Xcode was used
(to make it easier to detect if a beta version is in use).
2018-11-05 08:16:29 +01:00
Chris Hamons 366281e8b7
[mmp] Remove duplicate libmono-system-native.a logic (#5073)
- https://github.com/xamarin/xamarin-macios/pull/4980 and the mono branch merge both added it
- However both copies were not the same, one was conditional and one added an extra -u option
- This collapses them into one check
2018-11-02 09:07:50 -05:00
Matt Ward 8339b0075d NSUrlSessionHandler - Support basic auth and multiple auth headers (#5052)
If the challenge is for basic authentication then try to get the
credentials for this authentication type.

Also handle multiple WWW-Authenticate headers, such as:

WWW-Authenticate: Negotiate,  NTLM

If the credentials provided on the NSUrlSessionHandler are not
available for a specific authentication type, or if the authentication
method is not supported, then reject the protection space. This allows
the next authentication challenge to be sent to the DidReceiveChallenge
method. Also handle a null reference exception that could occur if
there were no credentials available for the authentication type.
2018-11-02 09:00:45 -04:00
Vincent Dondain f389c03970 [msbuild] Don't log notices as errors (#5067)
- Fixes #5065: [Xcode10.1]Could not get traitsetID for iPhone11,6 error while building with Xcode10.1 and new iOS device
  (https://github.com/xamarin/xamarin-macios/issues/5065).
- `actool` in Xcode 10.1 now outputs some `com.apple.actool.notices` (we might not have hit that before) and those make the task fail because we log them as errors (we shouldn't).

* Lower notice to LogMessage

Update other LogMessage to output "tool notice :"
2018-11-01 14:08:31 -04:00
Sebastien Pouliot f60fcbbb16
Merge pull request #5066 from spouliot/xcode10.1-master
Merge xcode10.1 into master
2018-11-01 14:00:53 -04:00
Rolf Bjarne Kvinge fdc691d771 [jenkins] Remove any system versions of XI/XM to make absolutely sure nothing in our build requires them. (#5059) 2018-10-31 17:47:28 -04:00
Sebastien Pouliot 2dec2c0193 [xtro] Move remaining todo (MPS) to ignore 2018-10-31 17:28:24 -04:00
Sebastien Pouliot 3ab481ea70 Merge xcode10.1 into master
Also update apidiff from d15-9 since it's both frozen and includes xcode10.1
2018-10-31 15:54:48 -04:00
Emanuel Fernandez Dell'Oca 2922becfd2 [msbuild] VS Incremental build fixes (#5054)
Most of these changes are needed from VS to make incremental builds work.

The problem here is VS runs MSBuild on Windows and remotes (most of) the task executions to the Mac. Since MSBuild is running on Windows the inputs and outputs are checked there, but the output files won't be created on Windows unless those are explicitly declared as output ITaskItems of a task. VS don't copy every file created on the Mac back to Windows because that will increase the build time unnecessarily.

For instance, the _GenerateFrameworkDebugSymbols target was using the Info.plist file created by the dsymutil tool as output, but that file was not declared as ITaskItem output of the DsymUtil task so VS didn't know that file should be created on Windows.

This doesn't mean every task should have an output property declaring ITaskItems, but if you're writing a target that will use certain files as output those files should be output of one of the tasks that target is running.

Partial fix for https://dev.azure.com/devdiv/DevDiv/_workitems/edit/710309.
2018-10-31 15:05:07 -04:00
Michiel Sioen def919add8 [coregraphics] Added ScreenImage overload for Xamarin Mac allowing for more options (#5056) 2018-10-31 11:12:44 -04:00
monojenkins 4b89f459a7 [tests] Fix some tests to succeed when run on macOS 10.14 (#5060)
Public bots were updated today.

Fixes https://github.com/xamarin/maccore/issues/1106
Fixes https://github.com/xamarin/maccore/issues/1107
2018-10-31 10:45:46 -04:00