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

4440 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 38ac83a43f
[jenkins] Make it possible to run internal jenkins tests on pull requests. (#4334)
Add support for the 'run-internal-tests' label on pull requests to indicate
that the internal jenkins should run tests when that label is applied.

Also make it so that either the 'run-internal-tests' or the 'build-package'
label will actually make the internal jenkins execute (otherwise the 'run-
internal-tests' label would also require the 'build-package' label, which
wouldn't be very obvious/user-friendly).
2018-06-28 14:58:30 +02:00
Rolf Bjarne Kvinge 5245cfab14
[Foundation] Fix NSDictionary string indexers. (#4335)
Creating a new NSString doesn't always lead to creating a new NSString, which
will obviously cause trouble.

The scenario is:

* An NSString with the value @"Bye" is added to an NSDictionary, with the same
  string as both the key and the value.

* The (managed) string indexer is used to try to get the value back. The
  string indexer would call 'new NSString ("Bye")', which would create a new
  managed NSString, and maybe a new native NSString (or maybe it would re-use
  an existing NSString). Then the handle of this NSString would be passed to
  the native API, and the same handle would come back as the result (since the
  same string is both the key and the value). We'd call Runtime.GetNSString on
  the returned handle, get back the same managed instance that was created
  just before the call to the native method. Finally, just before returning
  this managed instance from the indexer, we'd dispose it... since it was
  created in a 'using' block. Then we'd return a disposed NSString object from
  the indexer. Ops.

The fix is to not create a managed wrapper for the NSString handle we need to
pass to the native API, but create and free the native NSString object without
using a managed wrapper.
2018-06-28 14:57:41 +02:00
Sebastien Pouliot b63f668a4e
[tvos][tvuikit] Add new TVUIKit (up to beta 2) (#4346) 2018-06-28 08:51:38 -04:00
Rolf Bjarne Kvinge 89df923fac
[xharness] Don't try to add additional information to xml logs. Fixes maccore#827. (#4349)
Don't try to inject additional information into xml logs, it seems we may
corrupt the xml file.

Fixes https://github.com/xamarin/maccore/issues/827.
2018-06-28 14:51:25 +02:00
Rolf Bjarne Kvinge 0d31720770
Use libc++ instead of stdlibc++ when compiling with Xcode 10. (#4348)
Xcode 10 doesn't ship with stdlibc++ anymore, we need to use libc++ instead.

This is documented in Xcode 10's release notes:

> Building with libstdc++ was deprecated with Xcode 8 and is not supported in Xcode 10 when targeting iOS. C++ projects must now migrate to libc++ and are recommended to set a deployment target of iOS 7 or later.

This fixes a problem when compiling certain system headers as Objective-C++.

References:

* https://twitter.com/jeremyhu/status/1003882060556062720
* https://stackoverflow.com/a/50734510/183422
* https://trello.com/c/PsHpNHq6/113-40824697-scenekith-doesnt-compile-as-objective-c
2018-06-28 14:49:22 +02:00
Chris Hamons bd9e8cf1a0
Add CoreAudio 10b1 (#4343) 2018-06-27 12:21:18 -07:00
Chris Hamons c4a54aa1dd
CoreWLan 10b1 (#4344) 2018-06-27 12:21:01 -07:00
Rolf Bjarne Kvinge 3dcfdd47dd
[jenkins] Add support for completely skipping the public jenkins job using a label. (#4333)
This can be useful when working on the support for private jenkins, since many
of those changes can only be tested as a pull request, and they also tend to
include a lot of commits (because nothing can be tested locally).

So until whatever needs implementing for private jenkins is complete and
working, there's no need for the public bots to do anything for such pull
requests.
2018-06-26 15:50:54 +02:00
Sebastien Pouliot 695a547c57
[tvos][tvmlkit] Update up to beta 2 (#4325) 2018-06-26 08:47:51 -04:00
Matt Sylvia ba2757ccd6 Branching for xcode10 2018-06-25 18:26:19 -04:00
Rolf Bjarne Kvinge f0dacd1bfb
[Security] Don't call properties in the Dispose method, access the field directly. (#4329)
This is particularly important because in this case the property will try to
(re)create the handle, thus making Dispose behave incorrectly.
2018-06-25 10:50:39 +02:00
Rolf Bjarne Kvinge 9a59588107
[introspection] Cache typo checks. (#4327)
This makes TypoTest finish in 62 seconds on Mojave instead of 411 seconds.
2018-06-25 10:48:57 +02:00
Rolf Bjarne Kvinge c7179142b9
[generator] Fix project file for debugging Xamarin.Mac configurations. (#4328) 2018-06-25 10:48:02 +02:00
Rolf Bjarne Kvinge 06fd4029f3
[generator] Fix generated code for INativeObject properties in filters: we don't own such objects. (#4330)
Fixes a crash in the MonoTouchFixtures.CoreImage.FilterTest.ColorSpace on macOS 10.9 and 10.10:

    Assertion failed: (!space->is_singleton), function color_space_dealloc, file ColorSpaces/color-space.c, line 102.
    Stacktrace:

      at <unknown> <0xffffffff>
      at (wrapper managed-to-native) CoreGraphics.CGColorSpace.CGColorSpaceRelease (intptr) [0x00009] in <7709ef494bc84be8a727c0b1d19c4344>:0
      at CoreGraphics.CGColorSpace.Dispose (bool) [0x00016] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.0.103/src/Xamarin.Mac/CoreGraphics/CGColorSpace.cs:116
      at CoreGraphics.CGColorSpace.Finalize () [0x00002] in /Library/Frameworks/Xamarin.Mac.framework/Versions/4.99.0.103/src/Xamarin.Mac/CoreGraphics/CGColorSpace.cs:94
      at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) [0x0001f] in <ea4ecc87ef1044a98fc1b5fdb59119e7>:0

    Native stacktrace:

    	0   xammac_tests                        0x000000010d55fc18 mono_handle_native_crash + 264
    	1   libsystem_platform.dylib            0x00007fff8d4a152a _sigtramp + 26
    	2   ???                                 0x0000000000000000 0x0 + 0
    	3   libsystem_c.dylib                   0x00007fff9aba76df abort + 129
    	4   libsystem_c.dylib                   0x00007fff9ab6edd8 basename + 0
    	5   CoreGraphics                        0x00007fff8c2b58b8 color_space_dealloc + 248
    	6   CoreFoundation                      0x00007fff87997af3 CFRelease + 371
    	7   ???                                 0x00000001248548cd 0x0 + 4907681997
    	8   ???                                 0x000000012416a13c 0x0 + 4900430140
    	9   xammac_tests                        0x000000010d5f7d0e mono_gc_run_finalize + 734
    	10  xammac_tests                        0x000000010d6e859a sgen_gc_invoke_finalizers + 234
    	11  xammac_tests                        0x000000010d5f9754 finalizer_thread + 756
    	12  xammac_tests                        0x000000010d6ae930 start_wrapper + 704
    	13  libsystem_pthread.dylib             0x00007fff8ae8999d _pthread_body + 131
    	14  libsystem_pthread.dylib             0x00007fff8ae8991a _pthread_body + 0
    	15  libsystem_pthread.dylib             0x00007fff8ae87351 thread_start + 13

On newer macOS versions, the API that returns a CGColorSpace returns a global
object that can't be retained/released, and thus won't crash since the
CGColorSpace is never freed.
2018-06-25 10:47:14 +02:00
Manuel de la Pena 489e0119e0
[IOSurface] Update for Xcode10-beta2 (#4322) 2018-06-22 16:41:11 +02:00
Manuel de la Pena e7f1161146
[AVFoundation] bump for Xcode10-beta 2. Includes AVFAudio. (#4313) 2018-06-22 10:36:01 +02:00
Sebastien Pouliot 081655a45c
[tests] Fix introspection tests when running on Mojave (10.14) (#4318)
Mostly known iOS cases that are now part included in macOS.

Two failures remains until the AppKit update is merged, i.e.
both were _upgraded_ to conform to `NSSecureCoding`

```
[FAIL] NSBezierPath conforms to NSSecureCoding but does not implement INSSecureCoding
[FAIL] NSGradient conforms to NSSecureCoding but does not implement INSSecureCoding
```
2018-06-21 15:13:50 -04:00
Sebastien Pouliot 761bc085a8
[scenekit] Update for beta 2 (#4317) 2018-06-21 13:35:45 -04:00
Sebastien Pouliot 009f208eb8
[macos][quartzcomposer] Move existing (pre-Xcode10) API from .todo to .ignore (#4316) 2018-06-21 13:35:16 -04:00
Manuel de la Pena 94355148c9
[AVKit] Update for Xcode10-beta2 (#4314) 2018-06-21 16:23:36 +02:00
Rolf Bjarne Kvinge a6311765b5
Bump maccore to get mlaunch fix to make os_log write to stderr. (#4307)
Commit list for xamarin/maccore:

* xamarin/maccore@a49e4f2ca1 Bump maciostools to get logging improvement. (#864)

Diff: 01da406883...a49e4f2ca1
2018-06-21 10:15:05 +02:00
Rolf Bjarne Kvinge ec44e83abe
[introspection] CMMovementDisorderManager isn't usable for now. (#4306) 2018-06-21 10:14:14 +02:00
Manuel de la Pena 05cc126dc3
[NaturalLanguage] Xcode10-beta2 update. (#4300) 2018-06-21 08:01:37 +02:00
Alex Soto 2c6eec8687
[Intents] Update bindings to Xcode 10 Beta 2 (#4303) 2018-06-20 16:54:00 -05:00
Alex Soto 99a71fcfe4
[ReplayKit] Update bindings to Xcode 10 beta 2 (#4304) 2018-06-20 16:51:22 -05:00
Sebastien Pouliot 0888061736
[contacts] Update for beta 2 (#4298) 2018-06-20 11:26:49 -04:00
Sebastien Pouliot 92992385a1
[accounts] Update for beta 2 (#4297) 2018-06-20 11:25:51 -04:00
Sebastien Pouliot 6e79ddd477
[mapkit] Update for beta2 (macOS only changes) (#4296) 2018-06-20 11:21:15 -04:00
Sebastien Pouliot 5ef2690764
Bump for xcode10 beta 2 2018-06-19 22:02:47 -04:00
Alex Soto 18f182187d
[CarPlay] Update bindings to Xcode 10 Beta 2 2018-06-19 16:52:36 -05:00
Sebastien Pouliot 8fcce2310f [mtouch] Warn, don't error, with a newer xcode wrt rdar://40824697 2018-06-19 17:41:22 -04:00
Sebastien Pouliot b6db4296e6 Update xtro not to report any failure (move unclassified to todo files) 2018-06-19 16:32:00 -04:00
Sebastien Pouliot ee6461d20d Add new coreimage filter stubs and a partial update for xtro 2018-06-19 15:58:02 -04:00
Sebastien Pouliot cc73932ea5 Bump for xcode10 beta 2 2018-06-19 15:26:08 -04:00
Sebastien Pouliot 7762c643bb
[contacts] Update for beta 1 (#4291)
A new enum value and the removal of availability on existing error codes
since they are output, not input.
2018-06-19 08:29:12 -04:00
Manuel de la Pena 145237dd7a
[UserNotifications] Add Xcode 10 support. (#4290) 2018-06-19 07:39:55 +02:00
Rolf Bjarne Kvinge b0f8d1f0d9
[compare-commits] Fix APFS check to check for functionality, not OS version. (#4057) (#4284)
Since having a certain OS version doesn't necessarily mean that the file system will be APFS.
2018-06-18 19:26:51 +02:00
Rolf Bjarne Kvinge 345ccdec9c
[jenkins] Make the Jenkins-built packages the official ones. (#4283) 2018-06-18 17:15:57 +02:00
Manuel de la Pena fc32c2980c
[UserNotificationsUI] Update the fro Xcode 10. (#4268) 2018-06-18 16:05:20 +02:00
Manuel de la Pena 553238abc8
[UIKit] Update for Xcode10. (#4253) 2018-06-18 16:01:47 +02:00
Rolf Bjarne Kvinge 2aaee04e56
[Jenkins] Publish bundle.zip and msbuild.zip as GH statuses as well. (#4238) (#4280)
This also requires a maccore bump.

* xamarin/maccore@30c28d1469 [release] Rename bundlefull.zip to bundle.zip. (#848)

Diff: f274834136...30c28d1469
2018-06-18 07:54:42 +02:00
Alex Soto 3aa2167928
[IdentityLookupUI] Add bindings for Xcode 10 Beta 1 (#4281) 2018-06-15 20:46:35 -05:00
Sebastien Pouliot f9a0253e71
[videosubscriberaccount] Update for beta 1 (#4275)
This ended up enabling the framework for macOS.
2018-06-15 16:43:23 -04:00
Sebastien Pouliot 03a352dc53
[mapkit] Updates for beta1 (#4256) 2018-06-15 16:42:15 -04:00
Sebastien Pouliot f96d4c9f9b
[macos][quartzcomposer] Update for beta 1 (#4258)
Nothing really new beside the OpenGL related deprecation and the fact
that 3 fields were removed, without deprecation, and this requires some
adjustments in the intro tests (while running on 10.14) to ignore them.

1) ApiFieldTest.FieldExists (Introspection.MacApiFieldTest.ApiFieldTest.FieldExists)
     3 errors found in 5680 fields validated: QCCompositionInputRSSArticleDurationKey, QCCompositionInputRSSFeedURLKey, QCCompositionProtocolRSSVisualizer
  Expected: 0
  But was:  3

  at Introspection.ApiFieldTest.FieldExists () [0x00127] in /Users/poupou/git/xcode10/xamarin-macios/tests/introspection/ApiFieldTest.cs:245
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/poupou/git/xcode10/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

2) ApiFieldTest.NonNullNSStringFields (Introspection.MacApiFieldTest.ApiFieldTest.NonNullNSStringFields)
     3 errors found in 4904 fields validated: QuartzComposer.QCComposition.InputRSSArticleDurationKey, QuartzComposer.QCComposition.InputRSSFeedURLKey, QuartzComposer.QCComposition.ProtocolRSSVisualizer
  Expected: 0
  But was:  3

  at Introspection.ApiFieldTest.NonNullNSStringFields () [0x0008d] in /Users/poupou/git/xcode10/xamarin-macios/tests/introspection/ApiFieldTest.cs:214
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/poupou/git/xcode10/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

That issue is filed w/Apple https://bugreport.apple.com/web/?problemID=41125938
2018-06-15 16:41:26 -04:00
Alex Soto 344c3f0b78
[IdentityLookup] Update bindings to Xcode 10 Beta 1 (#4276) 2018-06-15 13:55:06 -05:00
Rolf Bjarne Kvinge ae6058dd6b
[xharness] Fix publishing xtro's html report. (#4270)
1. Put xtro's results in a subdirectory of the current test's log directory,
   not a sibling directory of the root log directory (which would prevent it
   from being uploaded after a test run, since only the root log directory is
   uploaded).

2. Just add the existing index.html as the html report to the collection of
   logs, no need to create a new file pointing to it. This fixes a problem
   where the generated html file would redirect to a local file, which would
   not work when served from a web server.
2018-06-15 18:01:02 +02:00
Rolf Bjarne Kvinge ddd7d4cc19
[tests] Fix Xamarin.Linker.SdkTest.NoAssemblyReferenceInAttributes. Fixes #4241. (#4269)
It seems Cecil doesn't search next to the current assembly for any assembly
references, which means that it may fail to resolve assemblies in certain
circumstances:

    Failed files
    Expected: <empty>
    But was:
        Failed to process /work/maccore/xcode10/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/2.1/OpenTK.dll: Failed to resolve assembly: 'monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
        Failed to process /work/maccore/xcode10/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.TVOS/OpenTK-1.0.dll: Failed to resolve assembly: 'Xamarin.TVOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
        Failed to process /work/maccore/xcode10/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.iOS/OpenTK-1.0.dll: Failed to resolve assembly: 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'"

However, Cecil does search the current directory by default, so before loading
any assemblies, change the current directory to the directory of the assembly
we're loading.

Fixes https://github.com/xamarin/xamarin-macios/issues/4241.
2018-06-15 17:32:22 +02:00
Rolf Bjarne Kvinge 2133bf3e10
[tests] Ignore 32-bit mac tests when running on internal Jenkins. (#4267)
The 32-bit mac tests are disabled by default, but the 'run-all-tests' label
enables them, so we're explicitly disabling them.
2018-06-15 12:23:38 +02:00
Rolf Bjarne Kvinge 6ea6a497b7
[xharness] Add run configuration to project to easily debug internal jenkins execution. (#4266) 2018-06-15 11:11:25 +02:00