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

10556 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot 2111ba32fc
[dotnet][msbuild] Stop publishing dylibs in release builds (#11210)
With https://github.com/xamarin/xamarin-macios/pull/11158 we do not
load symbols from the dylibs - so we do not have to ship them.

This makes the size comparison, between legacy and dotnet, more accurate
since the dylibs were large binaries.

https://gist.github.com/spouliot/9cad974b73b982404421e634f2a3a2b7
2021-04-14 16:43:14 -04:00
Manuel de la Pena 20318fe15a
[CI] Add a tag to identify those auto-scheduled builds. fixes #11191 (#11204) 2021-04-14 10:56:31 -04:00
Sebastien Pouliot 4560862966
[msbuild] Fix copy/paste error from #11196 (#11206)
Not sure how I could mess up a copy/paste between file - but I succeeded
to create a subtle bug (would have expected it more crash happy)

Fix issue #11151
2021-04-14 09:39:39 -04:00
Alex Soto ed245a16b0
[Make.versions] Update version after d16-10 Preview 2 (#11200) 2021-04-14 08:28:27 -04:00
Manuel de la Pena 312ab983a1
[CI] Provide the name of the bot with provisioning issues. (#11198) 2021-04-13 16:35:04 -04:00
Rolf Bjarne Kvinge 9a0cd6182b
[introspection] Add/fix/remove availability attributes for Mac Catalyst to make introspection's Introduced test pass. (#10587)
Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
2021-04-13 15:48:20 -04:00
Manuel de la Pena d1465586da
[CI] If the device tests could not be provisioned do communicate it. (#11194)
Rather than let the pipeline continue doing steps that do not make
sense, report the issue to be reviewed and reported to the bot admins.

The need of that template and extra env variable is due to the lack of
proper scripting in yaml so I have to get creative.
2021-04-12 21:25:31 -04:00
dotnet-maestro[bot] c423a620d1
Update dependencies from https://github.com/mono/linker build 20210412.1 (#11192)
Microsoft.NET.ILLink , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21205.2 -> To Version 6.0.100-preview.2.21212.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-04-12 18:05:20 -04:00
Sebastien Pouliot 05aa0c8aa8
[tests][introspection] Report error if no version is present in [SupportedOSPlatformAttribute] (#11193)
Otherwise a `[SupportedOSPlatformAttribute ("ios12,3")]` (should be a
dot, not a comma) would throw a `NullReferenceException` making it
harder to track down the error
2021-04-12 14:56:06 -04:00
Filip Navara 605bc43e44
[dotnet] Handle `lib` prefix for P/Invokes for runtime native libraries (#11158)
* Workaround dotnet/runtime#47533 and avoid listing required symbols when native libraries are dynamically linked
* Don't call LibMonoNativeLinkMode on macOS builds
* Apply iOS workarounds also for tvOS and Mac Catalyst
2021-04-10 13:02:55 -04:00
Sebastien Pouliot 4e48aa2ae1
[generator][dotnet] Add support for `[Uns|S]upportedOSPlatformAttribute` (#10580)
This moves our current/legacy attributes to the ones added in dotnet 5 [1].

Short Forms (only in bindings)

| Old                                   | New                                 |
|---------------------------------------|-------------------------------------|
| [iOS (7,0)]                           | [SupportedOSPlatform ("ios7.0")]    |
| [NoIOS]                               | [UnsupportedOSPlatform ("ios")]     |

Long Forms

| Old                                   | New                                 |
|---------------------------------------|-------------------------------------|
| [Introduced (PlatformName.iOS, 7,0)]  | [SupportedOSPlatform ("ios7.0")]    |
| [Obsoleted (PlatformName.iOS, 12,1)]  | [Obsolete (...)]                    |
| [Deprecated (PlatformName.iOS, 14,3)] | [UnsupportedOSPlatform ("ios14.3")] |
| [Unavailable (PlatformName.iOS)]      | [UnsupportedOSPlatform ("ios")]     |

Other changes

* `[SupportedOSPlatform]` and `[UnsupportedOSPlatform]` are not allowed on `interface` [2] which means they cannot be used for protocols. This is currently handled by inlining the existing attributes on all members.
* `[ObsoletedInOSPlatform]` was removed in net5 RC. This PR is now mapping the existing attributes to `[Obsolote]`, however multiple ones cannot be added so they need to be platform specific.

Remaining work (manual bindings update) tracked in https://github.com/xamarin/xamarin-macios/issues/11055

References

* [1] https://github.com/xamarin/xamarin-macios/issues/10170
* [2] https://github.com/dotnet/runtime/issues/47599
* [3] https://github.com/dotnet/runtime/issues/47601
2021-04-10 11:09:14 -04:00
Manuel de la Pena 75e913ed4f
[CI] Set status as error if one or more tests failed. (#11170)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2021-04-09 21:52:25 -04:00
Manuel de la Pena b483c26db4
[Build] Add a rule to execute the first run of Xcode. Why copy paste a command? (#11180)
* [Build] Add a rule to execute the first run. Why copy paste a command\?

* Some info about the targets.
2021-04-09 21:41:29 -04:00
Manuel de la Pena 6022c63970
[CI] Re-enable CI on maestro branches. (#11181)
Because the maestro bot is not a team memeber AND cannot be added as
one, it will not trigger a PR build, but it will trigger an CI build. WE
make the changes to take those as PR builds and do them in the CI.
2021-04-09 21:40:44 -04:00
Manuel de la Pena bd12a6c4f4
[Build] Allow to disable the build with the xamarin parts. (#11179) 2021-04-09 21:40:02 -04:00
Sebastien Pouliot a9251bb9ae
Bump MSBuild.StructuredLogger to 2.1.404 (#11182)
Required to bump dotnet runtime to preview 4 as the binary log format
was updated (and this affects our ability to run some tests)

https://vsdrop.corp.microsoft.com/file/v1/xamarin-macios/device-tests/20210407.33/4632319/sim/;/tests/vsdrops_index.html
2021-04-09 19:58:28 -04:00
Sebastien Pouliot f85af095da
[dotnet] Add ICU support for iOS builds (#11163)
and re-enable some tests for dotnet

Part of the fix for https://github.com/xamarin/xamarin-macios/issues/8906

Known Issues
* [some Calendar are not the expected ones](https://github.com/dotnet/runtime/issues/50859)
* [No support for tvOS (bitcode)](https://github.com/dotnet/runtime/issues/48508)
2021-04-09 17:06:26 -04:00
Přemek Vysoký 1e11c21fa1
Bump maccore to fix mlaunch NRE when starting Simulator bundles (#11165)
New commits in xamarin/maccore:
 
* [xamarin/maccore@c89fd6a](https://github.com/xamarin/maccore/commit/c89fd6a) Fix `--launchsimbundleid` action (#2412)

Diff: b9aaee7254..c89fd6a694
2021-04-09 13:39:01 -04:00
Manuel de la Pena b4ae740a43
[CI] Do not try to upload test results when not ran. (#11176)
We allow to manually run the builds with no tests, yet we had some
expectations in following jobs. This commit makes sure we do not get
errors when not runnning the tests.
2021-04-09 12:51:08 -04:00
Emanuel Fernandez Dell'Oca 6dfb470e74
Reenable HotRestart targets for the legacy Sdk (#11169)
There's no Hot Restart support for net6 yet, but we should still import those targets if the file exist, because are needed on the legacy iOS Sdk on Windows.
2021-04-09 11:20:05 -04:00
Sebastien Pouliot ccb43cba56
[dotnet][msbuild] Fix RelativePath inside ResolvedFileToPublish (#11173)
This worked fine up to P3 but failed with an early bump [1] to P4
where paths became invalid (missing a `/`) like:

`bin/iPhoneSimulator/Debug/net6.0-ios/iossimulator-x64/publish/../dont link.applibxamarin-dotnet-debug.dylib`

and did not copy the required `.dylib` [2] (and other stuff) inside the
app bundle.

[1] https://github.com/xamarin/xamarin-macios/pull/11127
[2] .dylib where the first thing to crash at startup

```
Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/builder/Library/Developer/CoreSimulator/Caches/dyld/19G2021/com.apple.CoreSimulator.SimRuntime.iOS-14-4.18D46
DYLD_ROOT_PATH=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib

Dyld Error Message:
  dyld: Using shared cache: C11E5D38-A0B0-37FA-AECD-28B337F6C0CA
Library not loaded: @rpath/libxamarin-dotnet-debug.dylib
  Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/B3F9E3AC-227F-4B66-9F12-76C5B2CE4E34/data/Containers/Bundle/Application/379106D5-912C-47CC-A0E5-446C7C524706/dont link.app/dont link
  Reason: image not found
```
2021-04-09 08:37:15 -04:00
Manuel de la Pena 51ad45d92a
[CI] Do not longer need to use a rebase trigger we have it from github. (#11171) 2021-04-09 07:10:07 -04:00
Alex Soto fecbf756c9
Merge pull request #11105 from dalexsoto/alex-xcode12.5-main
Merge xcode12.5 into main
2021-04-09 07:05:54 -04:00
Alex Soto 225ad67175 [monotouch-tests] Disable dotnet MacCat tests for now since they hang in BS 2021-04-08 23:11:24 -04:00
Alex Soto 360bb93c5e [monotouch-tests] Disable MacCat tests for now since they hang in BS 2021-04-08 17:55:55 -04:00
Alex Soto 8b926000a6
Merge branch 'main' into alex-xcode12.5-main 2021-04-08 17:42:32 -04:00
TJ Lambert 6dc0ea89d1
Turning off isCreatePRSelected (#11139)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-04-08 17:21:39 -04:00
Alex Soto dd828d0b39
Revert "[main] Update dependencies from dotnet/installer (#11127)" (#11167)
This reverts commit 219c6979eb.
2021-04-08 16:15:44 -04:00
Sebastien Pouliot 99892d79f9
[tests] Revert manual preservation of InternalsVisibleToAttribute.ctor(string) (#11160)
The issue https://github.com/mono/linker/issues/1913 was fixed a while ago.
2021-04-08 13:01:35 -04:00
Manuel de la Pena c9486eb6c8
[CI] Perform a run with no tests on Sundays for the translations team. (#11159)
Create a cron job that will execute on Sundays at noon to have a green
build for the translations team to use.
2021-04-08 11:39:04 -04:00
Sebastien Pouliot 578a80cbe1
[dotnet][msbuild] Do not copy `.pdb` files inside `.app` for release builds (#11153)
The original goal was to remove the `.dylib` from the app bundle.
However some are required, even in release, so that will need to be
fixed first [1]

[1] https://github.com/xamarin/xamarin-macios/issues/11145
2021-04-08 09:09:24 -04:00
dotnet-maestro[bot] 219c6979eb
[main] Update dependencies from dotnet/installer (#11127)
[main] Update dependencies from dotnet/installer
2021-04-08 12:27:25 +00:00
Sebastien Pouliot 4e5f5fe030
[tests[ Add app bundle size comparison between legacy and dotnet (#11149)
Based on Rolf's earlier work [1] and a copy of my `app-compare` code [2]

[1] https://github.com/rolfbjarne/xamarin-macios/tree/dotnet-size-comparison-helloworld
[2] https://github.com/spouliot/dotnet-tools/tree/master/app-compare
2021-04-07 16:10:40 -04:00
Alex Soto 2b499743c6 [monotouch-tests] Ignore CheckAddressBookPermission for MacCat 2021-04-07 12:55:04 -04:00
Manuel de la Pena 9d22123562
[CI] Fix wrong fwd labels. (#11144)
We are trying to join the json rather than the collection of strings.
$tag is a collection we can joing.
2021-04-07 09:24:08 -04:00
Alex Soto e5818d815b [monotouch-tests] disable some more MacCat crashers 2021-04-07 00:04:48 -04:00
Alex Soto 06185ea8fc [monotouch-tests] Import some fixes from xamarin/xamarin-macios#10587 2021-04-06 22:59:51 -04:00
Alex Soto cff0f14ab8 Merge remote-tracking branch 'origin/alex-xcode12.5-main' into alex-xcode12.5-main 2021-04-06 21:38:47 -04:00
Manuel de la Pena 50f23672fd [CI] Fix wrong fwd labels.
We are trying to join the json rather than the collection of strings.
$tag is a collection we can joing.
2021-04-06 21:34:56 -04:00
Alex Soto bf682fd2aa Fix submodules and disable AddressBookTests in MacCat 2021-04-06 20:47:17 -04:00
Alex Soto 2dc65e0d62 Merge remote-tracking branch 'xamarin/main' into alex-xcode12.5-main 2021-04-06 20:13:29 -04:00
Manuel de la Pena 8bddf85cf7
[CI][GitHub] Use the correct verb to the request. (#11133) 2021-04-06 19:53:00 -04:00
Manuel de la Pena 6cf8cdb804
[CI] Simplify if for stage selection. (#11131) 2021-04-06 16:24:49 -04:00
dotnet-maestro[bot] 1b6c83eac8
Update dependencies from https://github.com/mono/linker build 20210405.2 (#11114)
Microsoft.NET.ILLink , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21172.2 -> To Version 6.0.100-preview.2.21205.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-04-06 14:08:35 -04:00
Manuel de la Pena 65a319d514
[CI] Do not generate no used stages. (#11102) 2021-04-06 09:51:29 -04:00
Manuel de la Pena 7b750598d9
[CI] Group all API diff in a template to make things manageable. (#11112) 2021-04-05 18:49:18 -04:00
Alex Soto ea5835196d
Revert "[Make.config] Allow '.' on CURRENT_BRANCH_ALPHANUMERIC to match android package names (#11108)" (#11115)
This reverts commit 955245d586.
2021-04-05 18:02:46 -04:00
Manuel de la Pena faae5d1531
Exclude builds for certain paths. (#11104) 2021-04-05 13:28:18 -04:00
Manuel de la Pena b046835875
[CI] Black magic to make life better. (#11101)
We are doing some black magic. We have several templates that
are executed with different parameters.

The problem with that is that templates cannot be used with the
matrix strategy, so we are doing a little trick based on the following:

1. We can create a template that expands.
2. We can use the each keyword, which allow a loop
3. yaml is a super set of json, therefore, it was jsond dictionaties

We use the parameters as yaml objs (simple json ones) and we pass them.
Now we can:

1. Add more tests with less typing.
2. Modify the tests when we manually trigger a build.

Yes! number 2 is very cool, do you want to remove a stage from a manual
build, just delete it. Do you want to change the device test labels,
just edit the object.
2021-04-05 11:50:45 -04:00
Alex Soto 955245d586
[Make.config] Allow '.' on CURRENT_BRANCH_ALPHANUMERIC to match android package names (#11108) 2021-04-04 21:42:37 -04:00