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

5905 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 6fb6824528
[tests] Don't run BitcodeNotSupported tests on watchOS. (#5744)
Ref: https://github.com/mono/mono/pull/13007
2019-03-08 19:27:53 +01:00
Manuel de la Pena 9eb75dda71
[XHarness] Reenable the System.Core tests on mac os x. (#5743)
Fixes https://github.com/xamarin/maccore/issues/1191
2019-03-08 17:02:15 +01:00
Rolf Bjarne Kvinge c7db380263 Merge remote-tracking branch 'origin/master' into mono-2019-02 2019-03-08 16:33:40 +01:00
Rolf Bjarne Kvinge f796249982 Bump mono
Commit list for mono/mono:

* mono/mono@c8906bed28 [corlib] Disable ThreadPoolTest.GetAvailableThreads () on machines with many cores
* mono/mono@e21641dab1 [crash] Detect when 0 attached threads, fix hang/double-fault.
* mono/mono@8ebb772f86 [2019-02] Bump bockbuild to get GTK fix
* mono/mono@db0df0733d Ensure that the module cctor is run before the entry point is executed (#13242) (#13299)
* mono/mono@1e36288b8e [jit] Avoid an assert when gsharedvt enums are boxed. (#13306)
* mono/mono@4a0e34d358 [2019-02] [linker] Fix monotouch tests which need Xamarin.iOS.dll (#13294)
* mono/mono@c7e155b4a7 [2019-02] Fix mono conc hashtable lookup endless loop (#13291)
* mono/mono@58faa215f4 [2019-02] [interp] mixed mode fixes for delegates (#13259)
* mono/mono@43409aab03 [2019-02] Fix Directory.GetLogicalDrives () (#13286)
* mono/mono@c3b2368aff [mini] Inline Selector.GetHandle for tvOS and watchOS assemblies as well. (#13254)
* mono/mono@ce536b347b [2019-02] [aot] add wrappers to \u0022slim\u0022 mscorlib (i.e. --aot=interp) (#13168)
* mono/mono@5c6441aca8 [interp] compute size of generic valuetype correctly (#13226)
* mono/mono@6ad7d7987d [sdks] Use throttle() instead of lock()
* mono/mono@b5a53bf43a Revert "[sdks] Make sure to run only one build per type per node"
* mono/mono@9ec28a5cdf [ci] Add node name to log of Jenkins pipeline builds
* mono/mono@0d60209c63 [2019-02] [System.Net.Http] Move NSUrlSessionHandler from xamarin-macios to mono (#13249)
* mono/mono@66a15f77b3 [2019-02] [monodroid] Use CoreFX to implement System.Drawing types that used to be in Mono.Android.dll (#13237)
* mono/mono@5fc4dc076d [android] Fix inaccurate detection of sendfile()
* mono/mono@a342f2e4af Bump corefx for type forwarders ported from 2018-10 Xamarin.Android integration
* mono/mono@0aac8c4e0f [2019-02]  Fix multiple issues with response file option on Windows. (#13176)
* mono/mono@077ca320a8 [aot] use unbox arbitrary trampolines for "slim" mscorlib (#13167)
* mono/mono@f438e1b260 [2019-02] [aot] abort lookup early when a method isn\u0027t available in AOT image (#13178)
* mono/mono@60deb21fd8 [ci] Use dl.internalx.com when building on private Jenkins
* mono/mono@979cf7978b [aot] Resolve profile against compiled assembly (#13156)
* mono/mono@b4f8e8a698 [System] Bump SocketTest.TestSelect1 socket timeout to 1ms (#13152)
* mono/mono@ed72d79eda Bump API snapshot submodule
* mono/mono@39e7d07270 Make `System.dll` internals visible to `Mono.Android`.
* mono/mono@5809340a13 [nuget] Add new versions of System.Net.Http
* mono/mono@48ce16320f [nuget] Add new versions of System.Text.Encoding.CodePages ..
* mono/mono@a3f69d7b21 [sdks] Make sure to run only one build per type per node
* mono/mono@2ba053262f use for loop to access item values and avoid InvalidCastException which occurs because VirtualDirectoryMappingCollection enumerator returns key and it's not expected
* mono/mono@8f9491c094 [loader] Fix off by 1 (netstandard is a framework facade)
* mono/mono@91a7262377 Bump bockbuild for GTK fix
* mono/mono@076b66a58a Bump ikdasm
* mono/mono@5212219db3 [mcs] Remove doc about CAS security
* mono/mono@237e312ff7 Pass X509Certificate2 to the certificate validator. (#13036)
* mono/mono@4c2b149264 Remove leading . from script invocation (#13051)
* mono/mono@1ce836d47d [2019-02] Bump linker submodule to latest master (#13034)
* mono/mono@737f6ae708 Set executable bit for all .sh files in repo
* mono/mono@0c2b8e9f24 Correct access permissions to include "user execute" for run-msbuild.sh. (#13042)
* mono/mono@b9fa0ff807 [bitcode] round up value type size for slot calculation (#13008)
* mono/mono@3ba037bc23 Revert "[Facades] Remove System.Drawing.Primitives from xammac_net_4_5_SUBDIRS"
* mono/mono@99dc534da0 [Facades] Remove System.Drawing.Primitives from xammac_net_4_5_SUBDIRS
* mono/mono@55c62ea399 [2019-02] [sdks] Add mac-{mac32,mac64} targets (#12977)
* mono/mono@e62516b7aa [2019-02] [crash] Add more detailed reporting for exceptions (#13000)
* mono/mono@143e2151e6 [System.Net.Http] Improve HttpClientTest to use the retry http listener (#13003)
* mono/mono@5c66a3da2f [2019-02] [ci] Fix Linux x64 Bitcode job (#13004)
* mono/mono@5c6e79ffa7 Mono.Native: Simplify checking for min-version
* mono/mono@1f1942c356 [corlib] Fix CustomAttributeDataTest.MethodIncludesDllImportAttributeData() on watch/tv
* mono/mono@7c3abd8e0d [2019-02] [debugger] Reverting part of https://github.com/mono/mono/pull/12114  (#12960)
* mono/mono@f7f0580b04 [2019-02] [ios] add crosswatch64_32 target (#12939)
* mono/mono@4da62d4568 [2019-02] Bump cecil submodule (#12942)
* mono/mono@d1bab8193b Update roslyn-binaries submodule to point to latest master revision
* mono/mono@f3bdb526f0 Fix issue where togglerefs might be incorrectly pinned. (#12815)
* mono/mono@fc80faabb0 [ci] Bump bockbuild to get fontconfig download url fix
* mono/mono@1790e8a88f [aot] interp flag on AOT images only on mscorlib required (#12891)
* mono/mono@765166c97a [interp] Fix ldelema (#12929)
* mono/mono@14c5f6cc41 [2019-02] [interp] Add method to seq_points table after we finish registering it (#12908)
* mono/mono@6ad34f458f [arm/bitcode] mark valuetype returns as such when dealing with pinvokes (#12912)
* mono/mono@7f5125179d [ci] Support building the OSX .pkg on private Jenkins
* mono/mono@062e05b4f7 Merge pull request #12860 from monojenkins/backport-pr-12856-to-2019-02
* mono/mono@9f6ad1ef7a FIxing crash where a generic enum is passed into get_shared_type. Also added automated test to catch this scenario. (#12848)
* mono/mono@f218806bf3 [2019-02] [metadata] Fix dynamic delegate (#12812)
* mono/mono@e9c6379247 [2019-02] [arm64] encode offset within stack slot for r4 in gsharedvt descriptor (#12887)
* mono/mono@77b48ca726 [sre] Handle null values in MarshalAsAttribute CustomAttributeBuilder
* mono/mono@1dcd313412 [runtime] Use temp folders for merp tests (#12870)
* mono/mono@6abff04d78 [2019-02] [ios] pass --enable-monotouch to cross compilers so icall defintions are visible to it (#12836)
* mono/mono@3101d1c7fb [Registry] Prevent crash due to background thread facing problems in the file system
* mono/mono@35aea5b0ef [tests] Disable flaky block_guard_restore_aligment_on_exit.exe on Windows PRs
* mono/mono@034f1d68a3 [2019-02] Add support for async-streams (C# 8.0). (#12832)
* mono/mono@fd9b8567d5 [2019-02] [corlib] Remove reflection-based Mono.Native test (#12828)
* mono/mono@ea3ee83061 [2019-02] Extend mono-native minimum version magic to CPPFLAGS/CXXFLAGS (#12813)

Diff: 6fe4c149ee...c8906bed28
2019-03-08 16:32:48 +01:00
Rolf Bjarne Kvinge 013f08034c
[Foundation] Speed up string[]->NSArray conversion by not creating temporary managed NSString instances. (#5741) 2019-03-08 14:18:39 +01:00
Rolf Bjarne Kvinge 99e727c90b
Merge pull request #4904 from xamarin/mono-2018-10
Bump to mono:2018-10
2019-03-08 11:06:50 +01:00
Sebastien Pouliot 244563ef6d
[foundation] Add missing availability attributes. Fixes #5714 (#5736)
verified with

* NSItemProviderErrorCode: https://developer.apple.com/documentation/foundation/nsitemprovidererrorcode?language=objc
* NSLengthFormatterUnit: https://developer.apple.com/documentation/foundation/nslengthformatterunit?language=occ
* NSMassFormatterUnit: https://developer.apple.com/documentation/foundation/nsmassformatterunit?language=occ

also NSQualityOfService was mentioned but it already have the correct attributes
https://developer.apple.com/documentation/foundation/nsqualityofservice?language=occ

Fixes https://github.com/xamarin/xamarin-macios/issues/5714
2019-03-07 16:47:42 -05:00
Manuel de la Pena 112502c081
[Xharness] Reenable the SystemXml tests on mac os x. (#5735)
Fixes https://github.com/xamarin/maccore/issues/1201
Fixes https://github.com/xamarin/maccore/issues/1202
2019-03-07 17:19:47 +01:00
Rolf Bjarne Kvinge 8887b615d1
[CoreGraphics] Make CGPattern inherit from NativeObject, and add a CGPattern test. (#5734)
* [CoreGraphics] Make CGPattern inherit from NativeObject, and add a CGPattern test.

* Make test work on all platforms.
2019-03-07 16:49:12 +01:00
Rolf Bjarne Kvinge 3b89c618cd
Bump maccore to get update to bot provisioning. (#5727)
* Bump maccore to get update to bot provisioning.

Diff: 3105682752...f3034c261f

* [jenkins] Prepackaged macOS tests only need a custom keychain.
2019-03-07 16:04:35 +01:00
Manuel de la Pena bc3b5a2d43
[Tests] Fix the tests.sln to include the new test projects. (#5720)
Update the sun and ensure that the GUID of the projects are always the same to make the .sln file happy.
2019-03-07 13:14:53 +01:00
Manuel de la Pena cad438dcfa
[XHarness] Reenable the System.Configuration tests on mac os x. (#5702)
Reenable the tests and add support to ignoring certain tests depending
on the version of the mac os x that is under test. The
System.Configuration tests make no sense in Modern.

Fixes https://github.com/xamarin/maccore/issues/1189
Fixes https://github.com/xamarin/maccore/issues/1190
2019-03-07 13:09:56 +01:00
Tim Miller 567b60b4f4 Add Additional Metadata Generation During Builds (#5718)
Updates the jenkinsFile to include generating ci-checkout.json and dependency-info.json.

ci-checkout.json is a list of all of the repositories included in the workspace of the project and their respective hashs.

dependency-info.json includes all of the info in ci-checkout.json, as well as a scan of the containing cs/fsproj files and their containing package and project references.
2019-03-07 08:42:13 +01:00
Sebastien Pouliot 3cedf9d6ba
Bump XI and XM versions after branching for d16-1 (#5730) 2019-03-06 16:20:57 -05:00
Sebastien Pouliot 45eb105da4
[uikit] Simplify UIApplication.Main wrt NSString usage (#5729)
The lifespan of `new NSString (x).Handle` can be shorter than expected
and there's a better (lighter) alternative to get that handle
2019-03-06 16:09:08 -05:00
Sebastien Pouliot 2eb178c7cd
[apidiff] Remove the `_*` noise in XM diffs (#5721)
Fix comparison so the XM profiles do not report _inexistent_ changes for `_Attribute`, `_EventInfo` and `_Exception`. That noise makes it harder to review the diffs (for us) and is incorrect in our published API diffs (for release notes).

Also
* Delete .unzip.stamp on clean
* Skip classic XM diff (binaries won't change)
2019-03-06 11:02:50 -05:00
Chris Hamons 35842ffc5e
[generator] Use WeakDelegate in EventAndDelegateMismatch check (#5726)
- Fixed #5724
- In some cases, such as surfacing an instance created from ObjC the
typed delegates can return null even if a instance is assigned (if it is not bound as a managed type).
- This means you can accidentally override the delegate without an exception.
- We can use WeakDelegate in our checks
- One type in our build complained, since it did not have a WeakDelegate. Easy to add.
2019-03-06 09:35:54 -06:00
Sebastien Pouliot e53b94d27c
[corefoundation] Add missing CFStringTransform API. Fixes #5705 (#5712)
Since there's no `NSString` or .NET equivalent. This requires a mutable
`CFString` so the new type `CFMutableString` is also added.

* Switch `CFString` base type to `NativeObject` to ease `CFMutableString` implementation;
* Add unit tests for `CFMutableString` both for `CFStringTransform` and some unicode variety to `CFStringAppendCharacters tests` wrt `numChars` being unicode or not (bytes)

Fixes https://github.com/xamarin/xamarin-macios/issues/5705
2019-03-06 08:04:17 -05:00
Vincent Dondain 85b720246a
[msbuild][tests] Clarify FrameworkListTest failure message (#5689) 2019-03-05 13:54:03 -05:00
Michiel Sioen afbe2ca9ef [msbuild] In 'GenerateDebugSymbols', verify that the folder we're touching into exists (#5706)
- Previously, for `Device|Debug` when passing `--dsym=false` to the mtouch extra arguments you would get this [MSB3375 failure](https://gist.github.com/VincentDondain/dce853be2acbce16011adf43a200eb09#file-gistfile1-txt-L5600).
- We are now checking that the folder we're trying to touch into exists, preventing the build failure.
2019-03-05 11:49:19 -05:00
Rolf Bjarne Kvinge 9168a63698
[tests] Adjust system check when running tests on older macOS versions (we don't need simulators) (#5713)
Fixes this warning:

    make: *** tools/siminstaller: No such file or directory.  Stop.
    Can't check if simulators are available, because siminstaller failed to build.
2019-03-05 17:18:18 +01:00
Manuel de la Pena e3153dcfbe
[Xharness] Reenable MonoPoxis tests on mac os x. (#5711)
Fixes https://github.com/xamarin/maccore/issues/1190
Fixes https://github.com/xamarin/maccore/issues/1188
2019-03-05 11:26:59 +01:00
Manuel de la Pena 92ebe5b64a
[XHarness] Reenable SystemServiceModelTests on mac os x. (#5710)
Fixes  https://github.com/xamarin/maccore/issues/1198
2019-03-04 18:17:56 +01:00
Manuel de la Pena 568d19944d
[XHarness] Reneable SystemIdentityModelTests on mac os x. (#5708)
Fixes  https://github.com/xamarin/maccore/issues/1194
2019-03-04 17:42:07 +01:00
Manuel de la Pena 10912633e3
[Xharness] Reenable the xunit based System.Data tests on mac os x. (#5709)
Fixes https://github.com/xamarin/maccore/issues/1208
2019-03-04 17:41:37 +01:00
Alex Soto d2a4ecfcaa
[generator] Fix CMSampleBuffer usage in 3rd party bindings (#5707)
Fixes xamarin/xamarin-macios#5692

3rd party bindings cannot use the `.ctor(IntPtr, bool)` of
`CMSampleBuffer` because it is `private`, they must use
`Runtime.GetINativeObject<T> (IntPtr, bool)` instead.
2019-03-04 08:13:34 -05:00
Manuel de la Pena 98d9fc2cf3
[XHarness] Reenable MonoCSharpTests on mac os x. (#5696)
Fixes https://github.com/xamarin/maccore/issues/1186
2019-03-04 10:56:22 +01:00
Rolf Bjarne Kvinge 9c9ef46028
Bump maccore to get mlaunch improvements. (#5682)
Commit list for xamarin/maccore:

Diff: a5782e3dc7...3105682752
2019-03-04 08:41:48 +01:00
Sebastien Pouliot 78859b97b8
[apidiff] Fix location for XI (when comparing), otherwise we get the full (not PR) diff (#5700) 2019-03-03 12:46:47 -05:00
Manuel de la Pena 365fd66609
[Xharness] Reenable System.Data.Sqlite tests on mac os x. (#5697)
Tests are reenabled and a small typo fixed.

Fixes https://github.com/xamarin/maccore/issues/1187
2019-03-01 17:52:55 +01:00
Manuel de la Pena 1b1792cb43
[XHarness] Reenable the System.IO.Compression and (#5694)
System.IO.Compression.FileSystem tests on mac os x.

Reenable the tests that can be ran without failures.

Fixes https://github.com/xamarin/maccore/issues/1195
Fixes https://github.com/xamarin/maccore/issues/1146
2019-03-01 17:02:42 +01:00
Manuel de la Pena 3d1c3e5c6b
[XHarness] Fix makefile to take into account the importer sources. (#5695)
Ensure that when the importer sources are changed, xharness is
recompiled.
2019-03-01 17:02:08 +01:00
Manuel de la Pena de82764456
[XHarness] Reneable the System.Transaction tests on Mac OS X. (#5686)
Reenable the tests and ensure that the failing ones on Modern are
ignored. The bcl tests on mac os x can now make a diff between the
version (Moder/Full) to ignore files so that tests that work in a
version are not ignored in the other one.

Fixes https://github.com/xamarin/maccore/issues/1200
2019-03-01 10:29:21 +01:00
Rolf Bjarne Kvinge 221f3e4a37 Merge remote-tracking branch 'origin/master' into mono-2018-10 2019-03-01 09:35:53 +01:00
Rolf Bjarne Kvinge 590524243c
Improve MachO support to read LC_BUILD_VERSION and static libraries. (#5685)
* MachO.cs: Support reading LC_BUILD_VERSION

Newer SDKs set this instead of LC_VERSION_MIN_*

* MachO.cs: Add support for reading Mach-O files inside ar archives.

* [tests] Augment ProductTests.MinOSVersion to test static libraries as well.

* Adjust enum field names to match our naming scheme.
2019-03-01 08:00:53 +01:00
Sebastien Pouliot 507d37eef6
[apidiff] Fix the comparison with the previous commit (#5690)
The removal of the XML files broke the comparison with the previous
commit. It did NOT fail the original PR because the targets were
in the previous commit.

And it will fail this PR because the previous commit still does not
have the targets - but it _should_ be fine, once merged, for all
future PR.

Fixes https://github.com/xamarin/maccore/issues/1452
2019-02-28 20:49:10 -05:00
Chris Hamons 2df9e4cdd3
[mac][msbuild] Add MigrateToNewXMTFI to convert TFI to new Xamarin.Mac.NET (opt-in) (#5654)
- https://github.com/xamarin/xamarin-macios/issues/5480
- Related: https://github.com/NuGet/NuGet.Client/pull/2572

To allow nuget to target XM Full we need to have a unique TFI (TargetFrameworkIdentifier).

However, that's a really scary change to force, so let's opt-in for now. You can set

<MigrateToNewXMIdentifier>true</MigrateToNewXMIdentifier> in your project or

MigrateToNewXMIdentifier=true msbuild project.csproj

to try it out. We can convert the opt-in to an opt-out with sufficient validation \ releases.
2019-02-28 16:33:25 -06:00
Alexander Köplinger 97b5aef47e Merge branch 'master' into mono-2018-10 2019-02-28 21:18:49 +01:00
Alexander Köplinger 54880d550c Bump mono 2019-02-28 21:17:10 +01:00
Manuel de la Pena c2967c0d50
[XHarness] Ensure we do a nuget restore on bcl imported tests. Fixes #5383 (#5574)
* [XHarness] Ensure we do a nuget restore on bcl imported tests. Fixes #5383

We need to ensure that a nuget restore is done, otherwise we might have
build issues with missing libs.

Fixes https://github.com/xamarin/xamarin-macios/issues/5383
2019-02-28 18:27:01 +01:00
Rolf Bjarne Kvinge 564628a289
Fix ARM64-based CPU detection logic; take #3. (#5683)
The previous implementation was broken, because:

* We called GetIsARM64CallingConvention in Runtime's static constructor.
* Runtime.Arch hadn't been set yet in the static constructor, which means it
  was Arch.DEVICE (0).
* This meant GetIsARM64CallingConvention would return true on iOS/tvOS x86-64
  simulator.

So delay the initialization of the IsARM64CallingConvention field until we've
been initialized.
2019-02-28 17:31:10 +01:00
Manuel de la Pena a5232f8c5e
[Tests] Make test inconclusive if httpbin does not return the headers. (#5684)
In some cases, httpbin might return errors or other results. In that
case, we cannot assert that the auth headers are not present. We set the
test to inconclusive to ensure that we do not fail due to the external
page.

Fixes https://github.com/xamarin/maccore/issues/1453
2019-02-28 15:35:36 +01:00
Alexander Köplinger bbbf15a72b Merge branch 'master' into mono-2018-10
# Conflicts:
#	tests/bcl-test/System.Core/System.Core.csproj.template
#	tests/bcl-test/System.Net.Http/System.Net.Http-mac.csproj.template
#	tests/bcl-test/System.ServiceModel.Web/System.ServiceModel.Web.csproj.template
#	tests/bcl-test/System.Xml.Linq/System.Xml.Linq-mac.csproj.template
#	tests/bcl-test/System/System.csproj.template
2019-02-28 13:06:00 +01:00
Manuel de la Pena 297aebef60
[Tests] Fix the make rule that generate the test projects. Fixes #5638 (#5666)
Fixed the rule to generate the tests. This branch adds missing test dlls
that the make rule check, or it will give an error stating that tests
are missing.

This feature should be added to xharness and an issue was created for
that: https://github.com/xamarin/maccore/issues/1447

Fixes https://github.com/xamarin/xamarin-macios/issues/5638
2019-02-28 11:52:04 +01:00
Manuel de la Pena 9c35ba28d1
[XHarness] Allow all cultures in the bcl tests. #5640 (#5667)
Some of the bcl tests need certain cultures. Add them to the templates
so that tests do not fail due to a missing culture.

Fixes https://github.com/xamarin/xamarin-macios/issues/5640
2019-02-28 11:48:35 +01:00
Manuel de la Pena 8972d43416
[XHarness] Remove not longer needed .csproj on the bcl tests. (#5676)
Followin PRs:

* Mac removal https://github.com/xamarin/xamarin-macios/pull/5671
* iOS/TvOS/WatchOS removal https://github.com/xamarin/xamarin-macios/pull/5668

We do not longer needs theses .csprojs since the tests are not longer
ran.
2019-02-28 11:45:19 +01:00
Manuel de la Pena 7318306f50
[Tests] Fix failign mtouch tests after bcl test were removed. (#5681)
After commit 2619d8f5ca the System.Core
tests does not longer exists. Which makes the mtouch test that depends
on it, fail too. This changes the test to use a present test.
2019-02-28 11:42:11 +01:00
Vincent Dondain f8d00ee167
[xm][msbuild] Fix full profile FrameworkList file (#5674)
* Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/801867
  System.Memory.dll not being copied anywhere when Roslyn package is referenced
  The issue was that the XM FrameworkList was shared for the 2 profiles and there are differences.
  The Full profile for instance doesn't have `System.Memory` and that causes some issues with Nuget package references.
* Updated tests to report issues against the XM Full and Mobile Framework lists
* Now using 2 separate XM FrameworkList files (updated makefile) since the list of assemblies is different and that's expected by the mono team.
2019-02-27 12:38:38 -05:00
Sebastien Pouliot ad3b70e9c7
[api-diff] Remove apidiff XML reference files. Fixes #4891 (#5663)
Instead download the assemblies (part of existing bundle.zip) of the
current release and generate the XML locally (no storage in github)
before doing the diff against the newer, just built, assemblies.

reference: https://github.com/xamarin/xamarin-macios/issues/4891
2019-02-27 08:59:53 -05:00
Manuel de la Pena 2619d8f5ca
[XHarness] Remove duplicated runs of certain bcl tests. (#5668)
Most of the tests are comming from the downloaded SDK, but some of them
have to reman because they are running/passing more tests. This
differences are due to how the tests that come from mono are written
(missing resources etc..)

Please take a look at
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/794210/ for the
list of bcl tests and test number differences.
2019-02-27 11:08:04 +01:00