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

6275 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 56ae1da5b9
[XHarness] Allow to ignore the iOS 32 tests and show the devices that are connected.
Two changes to improve CI:

1. List the devices connected to the bot.
2. Allow to ignore the 32 devices.
2019-04-25 17:38:10 +02:00
Rolf Bjarne Kvinge bd457212d5
[tests] Add sample tester. (#5870)
* [tests] Add sample tester.

Add a unit project that looks for iOS/macOS/tvOS sample projects in several
repositories, and builds them all.

* [tests][sampletester] Remove known issue which has now been fixed.

* [tests] Only run sample tests on CI in Azure Devops.

* Remove the possibility of automatically running the sample tests with
  xharness (so the sample tests won't run on PR bots or internal bots when the
  'run-all-tests' label is added). It's still possible to run the sample tests
  manually from the xharness web UI.

* Automatically trigger the sample test run in Azure Devops if the
  'run-sample-tests' label is applied to a PR (and that PR is executed on
  internal Jenkins).

* Fix typo.

* Fix path.

* Verbose output to track down scheduling failure.

* Bump maccore to get improved debug spew.

Diff: f527c9c526..f89d74b165

* [tests][sampletester] Fix build for TodoWCF.
2019-04-25 17:18:43 +02:00
Sebastien Pouliot d988124684
Remove private API (#5915)
* [pdfkit] Remove private API

* [vision] Remove VNRequest preferredMetalContext API and add API compatibility stub

Looks like it was removed between iOS 11 beta 4 and 5
http://codeworkshop.net/objc-diff/sdkdiffs/ios/11.0b5/Vision.html

* [gameplaykit] Do not expose selector for 'RemoveData'

* [cloudkit] Remove selector from deprecated 'UsesBackgroundSession' API

* [metalperformanceshaders] Remove private API

* [gamekit] Remove private API

* [avfoundation] Replace AVAssetResourceLoadingRequest 'finished' by 'isFinished'

Apple now reject the original (iOS 6) `finished` selector - even if its
replacement `isFinished` is not available until iOS 7.

* [corebluetooth] 'Primary' and 'UUID' are not mutable

This was not documented (or mis-documented in earlier macOS docs) and
the API are now replaced with empty stubs to maintain binary
compatibility with existing code.

* [coreanimation] Remove CAEmitterBehavior 'initWithType:' and 'behaviorWithType:' API

Corresponding headers were removed in Xcode 9 without any explanation
rdar #33590997 was filled - no news
'initWithType:' and 'behaviorWithType:' API now cause rejection
Tracked in https://trello.com/c/J8BDDUV9/86-33590997-coreanimation-quartzcore-api-removals

* [uikit] Remove (macOS only) API from NSLayoutManager (on other platforms)
2019-04-25 10:16:22 -04:00
Manuel de la Pena 4745a438b2
[VSTS] Do not set the tests that have to be ran, use a new env arg to be set in the VSTS job. (#5948) 2019-04-25 12:06:47 +02:00
Rolf Bjarne Kvinge 9882746e37 [tests] Fix race condition in the MT5211 mtouch test.
We build for both armv7 and arm64, and the failure we're looking for can
happen with either architecture. The order in which the architectures are
built is random, and mtouch will fail once the first error occurs, which means
that we can't assert that the failure comes from the arm64 build, since the
armv7 build might have been executed first (and triggered the error).

So just don't assert that the expected error message contains the
architecture, which makes the assert valid for both armv7 and armv64.
2019-04-25 09:05:49 +02:00
Alexander Köplinger 99ea097abf Merge remote-tracking branch 'upstream/master' into mono-2019-02 2019-04-24 23:28:00 +02:00
Sebastien Pouliot 852a41b28a
[appkit] Fix NSTabView.Delegate (missing/removed `virtual`) (#5946)
This was removed accidentally while fixing the generator
ref: 35842ffc5e
2019-04-24 17:20:59 -04:00
Vlad Brezae 26ba16e3e6 [mtouch] Enable dsym even from aot'ed images when interpreter is enabled (#5919)
Fixes https://github.com/mono/mono/issues/13975
2019-04-24 13:11:39 -04:00
Rolf Bjarne Kvinge bf3b45973e
[MetalPerformanceShaders] MPSImageNormalizedHistogram isn't available in iOS 11 as the headers claim. (#5942)
A simple test revels the truth:

    dyld: Symbol not found: _OBJC_CLASS_$_MPSImageNormalizedHistogram
      Referenced from: /var/containers/Bundle/Application/4DA44899-5F1D-4BF9-9C2E-B26982AE89F1/uistestappobjc.app/uistestappobjc
      Expected in: /System/Library/Frameworks/MetalPerformanceShaders.framework/MetalPerformanceShaders
     in /var/containers/Bundle/Application/4DA44899-5F1D-4BF9-9C2E-B26982AE89F1/uistestappobjc.app/uistestappobjc

This fixes this test failure on iOS 11:

    [FAIL] MPSImageNormalizedHistogramTests.Constructors : ObjCRuntime.RuntimeException : Wrapper type 'MetalPerformanceShaders.MPSImageNormalizedHistogram' is missing its native ObjectiveC class 'MPSImageNormalizedHistogram'.
2019-04-24 06:38:10 +01:00
Vincent Dondain 5832f4a3ba
[provisioning] Make sure nothing can block Xcode mv (#5943)
The device tests would often fail on bots with the following:

```
Extracting /tmp/x-provisioning/Xcode_10.2.xip...
Archive Utility[4964:12156830] Persistent UI failed to open file file:///Users/xamarinqa/Library/Saved%20Application%20State/com.apple.archiveutility.savedState/window_2.data: No such file or directory (2)
Installing Xcode 10.2 to /Applications/Xcode102.app...
mv: rename Xcode.app to /Applications/Xcode102.app: Not a directory
```

This is because we might have an Xcode symlink already at the destination location. The simple fix is to always make sure the destination is clean before moving the extracted Xcode to it.
2019-04-23 16:55:59 -04:00
Rolf Bjarne Kvinge df85569d23
[runtime] Rename CallState to XamarinCallState to keep the public namespace cleaner. (#5940)
Also ignore the corresponding public symbols in the PublicSymbols test.

This was introduced in 464882d14a (changes to
the CallState struct made the compiler create public symbols).

Fixes these test failures:

    1) Failed : Xamarin.Tests.Misc.PublicSymbols(iOS)
      Failed libraries
      Expected: <empty>
      But was:  "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libxamarin-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    "
      at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196

    2) Failed : Xamarin.Tests.Misc.PublicSymbols(tvOS)
      Failed libraries
      Expected: <empty>
      But was:  "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libxamarin-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.AppleTVSimulator.sdk/usr/lib/libxamarin-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    "
      at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196

    3) Failed : Xamarin.Tests.Misc.PublicSymbols(watchOS)
      Failed libraries
      Expected: <empty>
      But was:  "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchOS.sdk/usr/lib/libxamarin-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchSimulator.sdk/usr/lib/libxamarin-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    "
      at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196

    4) Failed : Xamarin.Tests.Misc.PublicSymbols(macOSMobile)
      Failed libraries
      Expected: <empty>
      But was:  "/work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-system-debug.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-system.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac.a:
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    	__ZN9CallState3selEv
    	__ZN9CallState4selfEv
    	__ZN9CallState8is_stretEv
    "
      at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196
2019-04-23 16:53:35 +01:00
Rolf Bjarne Kvinge 09701f4c19
[tests] Fix bgen test to compile by adding missing using. (#5932) 2019-04-23 16:26:38 +01:00
Rolf Bjarne Kvinge f802a02eed
[registrar] Add token type validation. (#5934)
This should never happen, but an MT0099 at build time is much better than a
runtime exception.
2019-04-23 14:57:55 +01:00
Rolf Bjarne Kvinge 37a4db8335
[registrar] Use the right method to get INativeObject handles. (#5935) 2019-04-23 14:10:51 +01:00
Rolf Bjarne Kvinge c8ff37a3f2
[docs] Fix issues that look like merge problems in the mtouch/mmp docs. (#5933)
* Fix formatting for a few errors.
* Add a few missing mtouch errors.

It looks like all of this is due to incorrect merges.
2019-04-23 13:59:39 +01:00
Rolf Bjarne Kvinge 88d05b0245
[bgen] Use ErrorHelper.Warning instead of ErrorHelper.Show to show warnings. (#5926)
* [bgen] Use ErrorHelper.Warning instead of ErrorHelper.Show to show warnings.

It makes it clearer that warnings are warnings.

* Fix showing warnings with /warnaserror.
2019-04-23 13:32:24 +01:00
Rolf Bjarne Kvinge 64c8f864b3
[ObjCRuntime] Make Class IEquatable. (#5922)
Makes it easier for tests to compare arrays of Classes, since existing NUnit
API supports comparing arrays of IEquatables.
2019-04-23 06:31:13 +01:00
Rolf Bjarne Kvinge 3e75c76d89
[runtime] Get the domain at the top of xamarin_invoke_trampoline. (#5925)
This avoids calling it multiple times in a loop further down in the method.
2019-04-23 06:30:46 +01:00
Rolf Bjarne Kvinge 464882d14a
[runtime] Refactor a little bit to avoid code duplication. (#5924) 2019-04-23 06:29:20 +01:00
Rolf Bjarne Kvinge adb57537b5
[bgen] Show an error if trying to bind an array of selectors. (#5923) 2019-04-23 06:29:03 +01:00
Rolf Bjarne Kvinge 66ba411303 [UIKit] Don't crash if UIGestureRecognizer.Dispose is called multiple times. Fixes #5899. (#5921)
Fixes https://github.com/xamarin/xamarin-macios/issues/5899.
2019-04-22 15:52:06 -05:00
Chris Hamons ee09409baa
[msbuild][mac] Fix forcing provisioning profile when entitlements set (#5912)
- https://github.com/xamarin/xamarin-macios/issues/5061
2019-04-22 13:11:07 -05:00
Alexander Köplinger 946e0174b0 Bump mono
New commits in mono/mono:

* mono/mono@cf880be66a [Mono.Runtime.Tests] Exclude simd tests

Diff: 158b6137fa..cf880be66a
2019-04-17 15:23:36 +02:00
Alexander Köplinger 8ed5e3926a bcl-test-importer: Add three more unit test assemblies 2019-04-17 14:58:49 +02:00
Alexander Köplinger 3ebafb9725 bcl-test-importer: Correctly process watch/tv assemblies
The missing test assemblies validator wasn't matching them since it looked for monotouch_, instead of monotouch_watch_
2019-04-17 14:33:50 +02:00
Alexander Köplinger fc7008d226 bcl-test-importer: Select first type that ends with Test/Tests
We need to avoid selecting some unrelated type that could conflict between assemblies like FileCleanupTestBase.
2019-04-17 14:32:27 +02:00
Alexander Köplinger 65153f4985 Add System.Runtime.CompilerServices.Unsafe xunit test to iOS 2019-04-17 12:20:27 +02:00
Alexander Köplinger b1dc78525d bcl-test-importer: Append .Unsafe to System.Runtime.CompilerServices test suite
It's actually an important distinction.
2019-04-17 12:18:29 +02:00
Alexander Köplinger dbbc954447 Reenable tests that were fixed 2019-04-17 11:30:41 +02:00
Alexander Köplinger 0da0bcaaae Merge remote-tracking branch 'upstream/master' into mono-2019-02 2019-04-17 11:29:35 +02:00
Alexander Köplinger d405c37692 Bump mono
New commits in mono/mono:

* mono/mono@158b6137fa [corefx] Use fallbacks when link() fails
* mono/mono@5a9fb2376d [MacSDK] Bump F# to 4.5 (#10919)
* mono/mono@eb478b5163 [gsharedvt] Fix sizeof opcode (#13831)
* mono/mono@d67de36ffb [2019-02] [arm] align stack pointer in throw trampoline (#14083)
* mono/mono@d3ece1d29f [2019-02] [aot] change method table generation so that it works for larger assemblies on ARM (#14052)
* mono/mono@d76895f97f [WinForms] Fix displayed image in TreeNode when ImageIndex set to -2 When ImageIndex in TreeNode set to -2 must not displayed any image

Diff: d75c142a46..158b6137fa
2019-04-17 11:29:21 +02:00
Alexander Köplinger 9bd927bb7f Workaround https://github.com/xamarin/xamarin-macios/issues/5760 in generator csproj 2019-04-16 17:59:23 +02:00
Alexander Köplinger cf8d42e4c0 [testgenerator] Fix generated decimal values when separator isn't point
E.g. in German the decimal separator is comma which makes the generated C# invalid.

Fix by always doing culture invariant ToString().
2019-04-16 12:32:01 +02:00
Manuel de la Pena c734cf2def
[CFNetwork] Ensure we do not block on redirects. (#5900)
The changes in mono are changing threading. This means that the code is
getting deadlock in the ReadStreamData.

This happens because we were not removing the handlers from the first requests events.
Initially, before we had to take care about the auth headers, this was needed to init
certain internal state for the HttpContent that was sexposed to the
user. With the fix of the CVE, the first request, in case of a redirect,
is garbage and is ignored. The second request is the one returned to the
user and contains all the required info.

Removing the event handlers, ensure that HandleClose is not called and
therefore ReadStream is never called.
2019-04-16 12:14:17 +02:00
William Kent dc8e07f678 Add macOS Xcode archive support (#5862)
* Initial commit of ArchiveTaskBase for macOS

* Fix namespace

* Add concrete Archive task

* Add Archive target to Xamarin.Mac.Common.targets

* Remove TODOs for non-applicable items

* Add more properties to archive Info.plist

* Add more parameters to Archive task

* Set the ArchiveDir output parameter

* Move ITunesSourceFiles parameter

* Add test

* Fix msbuild mistakes preventing archive from working

* Reorder ApplicationProperties to be at top like iOS

* Add note

* Improve error handling

* Fix archive to be loadable in Xcode

* 4 spaces to tabs

* More space -> tab
2019-04-15 15:20:18 -05:00
Alexander Köplinger 455af1ccc1 Merge remote-tracking branch 'upstream/master' into mono-2019-02 2019-04-15 15:05:36 +02:00
Alexander Köplinger 8308ec9c67 Bump Mono .pkg version 2019-04-15 15:05:13 +02:00
Alexander Köplinger db657ee58b Bump mono
New commits in mono/mono:

* mono/mono@d75c142a46 Bump corefx to get unit test fix

Diff: b85fdbdb10..d75c142a46
2019-04-15 11:37:05 +02:00
Rolf Bjarne Kvinge d4e41445a2
[jenkins] Set a 1h build timeout. (#5893)
Builds take approximately 30 minutes on a bot now, so 1 hour should be plenty.

This makes sure a 32-bit dialog doesn't waste 9h of bot time just sitting
there.
2019-04-12 19:06:04 +02:00
Rolf Bjarne Kvinge 0aa5025c40
Merge pull request #5891 from rolfbjarne/bgen-inprocess-tests
[bgen] Add support for sequential and parallel execution of the generator within the same process.
2019-04-12 19:05:47 +02:00
Chris Hamons 2278512aba [launcher] Pass --use-map-jit to mono on XM app startup
- Related: https://github.com/mono/mono/pull/13446
    - Patch by Miguel
2019-04-12 18:06:28 +02:00
Alexander Köplinger 505a957acc [bcl-tests] Add Microsoft.CSharp reference to Mono.CSharp_test.dll on XM
It's needed for the C# "dynamic" feature.
2019-04-12 17:43:18 +02:00
Alexander Köplinger 51d66ea5cc Bump mono
New commits in mono/mono:

* mono/mono@b85fdbdb10 [corlib] Disable FileTest.SymLinkStats() on TVOS
* mono/mono@170a35d5fd Remove TypedReference.MakeTypedReference readonly restriction
* mono/mono@a1accb6f3e [w32error] Add ENONET error case
* mono/mono@b31a8fac42 [jit] Make dlmalloc use mono_valloc so it picks up the MAP_JIT flag on osx.
* mono/mono@bcea757791 [utils] stub mono_setmmapjit on Win32 and Wasm
* mono/mono@0a47789f15 Do not use MAP_JIT by default, instead make this something that is toggled by Xamarin.Mac which needs it

Diff: bfbc3b7366..b85fdbdb10
2019-04-12 16:37:06 +02:00
Rolf Bjarne Kvinge 05dda1afc0 Merge remote-tracking branch 'origin/master' into bgen-inprocess-tests 2019-04-12 15:33:24 +02:00
Rolf Bjarne Kvinge 409861b0f6
[bgen] Build the frameworks.g.cs from BUILD_DIR. (#5894)
This fixes an issue with the per-pr api/generator diff comparison, since with
this change we now build src/ with the right source code.
2019-04-12 15:33:16 +02:00
Rolf Bjarne Kvinge dd239ce1ff Merge remote-tracking branch 'origin/master' into bgen-inprocess-tests 2019-04-12 15:32:24 +02:00
Rolf Bjarne Kvinge 4967d6f516
[apidiff] Make temporary / stamp paths depend on APIDIFF_DIR. Fixes maccore#1522. (#5895)
This fixes an issue with the api comparison since the api comparison fails if
it detects unexpected modified files. Putting the temporary files in
APIDIFF_DIR makes sure the api comparison doesn't see those files as
unexpectedly modified.

Fixes https://github.com/xamarin/maccore/issues/1522.
2019-04-12 15:31:27 +02:00
Alexander Köplinger 1cdf2ac3a8 Revert "[XHarness] Update ignore for some failing tests. (#5887)"
This reverts commit a3ad78c937.

It was fixed in mono 2019-02.
2019-04-11 20:31:48 +02:00
Alexander Köplinger 915b3f425e Bump mono
New commits in mono/mono:

* mono/mono@bfbc3b7366 Bump corefx to get System.Linq.Expressions test fix
* mono/mono@44792fcb6d [nuget] Bump to nuget 5.0.0
* mono/mono@4d6d75648d delete redundant try/catch from test
* mono/mono@0771040bd1 Fix NRE when combobox was disposed and Text setted
* mono/mono@556b1c4828 Fix local variable assign
* mono/mono@32a7cc8792 Fix Stackoverflow when SplitContainer`s SplitterDistance setted in SplitterMoved event subscription
* mono/mono@014b86cdba [SWF] Method OnClosed should pass FormClosedEventArgs type, instead of EventArgs.
* mono/mono@ff2865a078 [2019-02] [profiler] Add duration=NUM parameter to AOT profiler (#13688) (#13967)

Diff: 766b3204c3..bfbc3b7366
2019-04-11 20:31:33 +02:00
Alexander Köplinger db86c8cc88 Merge remote-tracking branch 'upstream/master' into mono-2019-02 2019-04-11 20:28:57 +02:00