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

2669 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge ac488b765a Revert "[devops] Only publish binlogs if they exist."
This reverts commit e26250dfcd.
2022-04-06 10:17:34 +02:00
Rolf Bjarne Kvinge 7b8ff8cd0a Revert "[devops] Add a GitHub comment if the build fails."
This reverts commit ecef7ad570.
2022-04-06 10:14:34 +02:00
Rolf Bjarne Kvinge 7c37335dca Revert "[devops] Fix stuff."
This reverts commit 286a67ef23.
2022-04-06 10:14:01 +02:00
Rolf Bjarne Kvinge caeb05ec27 Merge remote-tracking branch 'origin/main' into net7.0 2022-04-06 09:03:21 +02:00
Alex Soto 132d5694d6
[ScreenCaptureKit] Add ScreenCaptureKit bindings up to Xcode 13.3 (#14644)
* [ScreenCaptureKit] Add ScreenCaptureKit bindings up to Xcode 13.3

* Use more appropriate exceptions.

* Remove ScreenCaptureKit from Mac Catalyst.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-05 20:16:31 -04:00
Manuel de la Pena 5e5f05c326
[CI] Improve API diff. (#14642)
Two small improvements before we reconver from the EO:

1. Upload the api diff to vsdrops.
2. Ensure that the dependencies are correct.
2022-04-05 15:24:02 -04:00
Přemek Vysoký 0a99bc260d
[Xharness] Extract mlaunch nupkg only once when multi-targeting (#14631) 2022-04-04 17:41:03 -04:00
Steve Hawley 900ed88249
[nnyeah] Array copy (#14630)
Add support for ArrayCopy
2022-04-04 15:04:04 -04:00
Rolf Bjarne Kvinge abb1831e65
[mtouch] Ignore linker warning due to a bug in the AOT compiler we already know about. (#14627)
The bug in the AOT compiler is being fixed, but until then we can just ignore
the warning, with the idea of removing this code once the AOT bug has been
fixed.

Fixes these MTouch test failures:

    * Xamarin.MTouch.BuildWithCulture("sl_SI"):
        No warnings expected, but got:
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory107/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not

    * Xamarin.MTouch.BuildWithCulture("ur_IN"):
        No warnings expected, but got:
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory109/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not

    * Xamarin.MTouch.MT0095_NotSharedCode:
        No warnings expected, but got:
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory274/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not
        Native linking warning: warning: '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.Tests.BundlerTool.CreateTemporaryDirectory272/mtouch-test-cache/arm64/Xamarin.iOS.dll.o' was built with class_ro_t pointer signing enabled, but previous .o files were not

Ref: https://github.com/xamarin/xamarin-macios/issues/14601
Ref: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1505990/
2022-04-04 19:17:11 +02:00
Rolf Bjarne Kvinge 42d561c623
[tests] Execute tests on older macOS bots with a timeout. (#14593)
This prevents a single test hang from breaking the entire test run.

Also bump timeout to 45 minutes.
2022-04-04 19:16:48 +02:00
Rolf Bjarne Kvinge 22f540dcd8
[devops] Rework and fix issue with making local symlinks point to global installs. (#14626)
* Move the logic to create the Xamarin.iOS and Xamarin.Mac symlinks together,
  so easier spot differences (both expected and unexpected).
* Fix an issue with the logic where we'd make
  /Library/Frameworks/Xamarin.iOS.framework/Versions/git point to
  /Library/Frameworks/Xamarin.Mac.framework/Versions/Current.
2022-04-04 17:52:14 +02:00
Rolf Bjarne Kvinge 5afbfb4de0
[devops] Don't add a failure status for missing notarized packages in PR builds. (#14591)
We're not even trying to notarize packages for PR builds (by design), so we
shouldn't create a failure status.
2022-04-04 17:51:46 +02:00
Manuel de la Pena dbe0e22aaf
[CI] Start using manifest to simplify the pwsh import. (#14588)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-04-04 11:46:32 -04:00
Rolf Bjarne Kvinge a6536d45f1 Merge remote-tracking branch 'origin/main' into net7.0 2022-04-01 18:37:34 +02:00
Rolf Bjarne Kvinge 1c4a64c0c4
[EventKitUI] Add this framework to Mac Catalyst. (#14374)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-01 14:29:30 +02:00
Rolf Bjarne Kvinge 20489118d3 Merge remote-tracking branch 'origin/main' into net7.0 2022-04-01 13:51:53 +02:00
Rolf Bjarne Kvinge eda8f4822d
Bump our system/stable .NET to 6.0.201. (#14552) 2022-03-31 21:56:33 +02:00
Rolf Bjarne Kvinge 24b64e2349
[devops] Improve failure reporting for tests on older macOS bots. (#14486)
Try hard to always add a GitHub comment after (trying to) running macOS tests on other bots.

We now:

* Create a file with a generic error message at the very beginning.
* Update the error message if something we detect goes wrong (with a better error message).
* Delete the file in case of success.
* Check for the file at the very end, reporting any contents as a failure, and only if it doesn't exist, then we report success.

This way we'll pretty much always report _something_.
2022-03-31 21:56:08 +02:00
Steve Hawley 891610b533
[nnyeah] Warn on IConvertible (#14586)
set up warnings on IConvertible calls
2022-03-31 09:36:43 -04:00
Rolf Bjarne Kvinge 20713353ec
[devops] Add a GitHub comment if the build fails. (#14541) 2022-03-31 15:15:05 +02:00
Rolf Bjarne Kvinge 77bac878d6
[IdentityLookupUI] Add this framework to Mac Catalyst. (#14385)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 14:20:08 +02:00
Rolf Bjarne Kvinge e687c20dd6
[AppClip] Add this framework to Mac Catalyst. (#14378)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 13:52:52 +02:00
Rolf Bjarne Kvinge 4f46162e2b Merge remote-tracking branch 'origin/main' into net7.0 2022-03-31 09:11:54 +02:00
Rolf Bjarne Kvinge 39b2c715d4 Bump to net7.0 in ApplePlatform.ToFramework. 2022-03-31 09:09:24 +02:00
VS MobileTools Engineering Service 2 23026fb034
[main] [devops] Fix computing the BRANCH_NAME variable. (#14579)
This is what Azure Devops defines:

* Build.SourceBranchName: the last path component of the branch.
* Build.SourceBranch: the complete ref spec for the branch.

We want the branch name without the 'refs/heads/' part. Unfortunately we can't
use Build.SourceBranchName, because for a branch name like
'release/6.0.3xx-rc1' the last path component is '6.0.3xx-rc1', not
'release/6.0.3xx-rc' - in other words it doesn't have all the information we
need.

That means we need to use the Build.SourceBranch value instead, and remove the
'refs/heads/' part. We already compute BRANCH_NAME like this everywhere else,
so just copy that implementation.


Backport of #14568

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-03-31 08:41:44 +02:00
Steve Hawley 41b076cc0e
Lets do options (#14540)
* Remove existing attributes

* Attribute Conversion

* let's add some options and put in feedback

* don't need this check anymore

* Don't copy paste code without reading, Steve

* fallout from no more nulls

* catch exception from options parsing, check for file existence, fix white space

* whitespace

* add --force-overwrite

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-03-30 14:48:08 -04:00
Manuel de la Pena e5b8b196f7
[xtro] Fix xtro on dotnet. (#14559)
Use the workloads versions to point to the correct dll path when running in a diff bot than the one were the build was done.
2022-03-30 11:32:25 -04:00
Rolf Bjarne Kvinge 3b282198a0
[devops] Build xibuild manually before running the tests. (#14563)
Some tests will build xibuild automatically when needed, some won't. This
means that the ones that don't won't succeed if executed before the ones that
do.

To avoid this scenario, just manually build xibuild before running the tests.
2022-03-30 15:34:29 +02:00
Rolf Bjarne Kvinge c7ffdc9255
[devops] Fix typo. (#14562) 2022-03-30 15:22:19 +02:00
Manuel de la Pena 00f6902acf
[CI] Use public bots to run tests. (#14558)
The internal bots are giving issues running xtro, public ones are ok.
There is no real reason to use the internal pool to run tests and we can
debug the bots in that pool better.

We move to run tests in the public bots unless told otherwise (when
using devices for example).
2022-03-30 09:20:32 -04:00
Rolf Bjarne Kvinge 6391642a40 Merge remote-tracking branch 'origin/main' into net7.0 2022-03-30 10:05:11 +02:00
Rolf Bjarne Kvinge becdade8d2
[nnyeah] Fix path to nnyeah.dll. (#14554)
This makes rebuilds detect that the dll has already been built.
2022-03-29 15:34:06 -04:00
Rolf Bjarne Kvinge 4713e5b349 Merge remote-tracking branch 'origin/main' into net7.0 2022-03-29 15:57:36 +02:00
Rolf Bjarne Kvinge ee302b17c3
Revert "[nnyeah] Fix makefile to use msbuild. (#14533)" (#14546)
This reverts commit 073165fef6.

Fixes this build error:

/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1232,5): error MSB3971: The reference assemblies for ".NETFramework,Version=v5.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK. [/Users/rolf/work/maccore/dotnet/xamarin-macios/tools/nnyeah/nnyeah/nnyeah.csproj]
gmake[2]: *** [Makefile:9: bin/Debug/net5.0/nnyeah.dll] Error 1
2022-03-29 15:45:09 +02:00
Rolf Bjarne Kvinge 31e9352a52 Merge remote-tracking branch 'origin/main' into darc-main-fc6e47e2-7b69-4464-b65f-8f67ca26b4e8 2022-03-29 09:05:12 +02:00
Manuel de la Pena 073165fef6
[nnyeah] Fix makefile to use msbuild. (#14533) 2022-03-28 16:54:56 -04:00
Steve Hawley 6487ec485e
Lets do warnings (#14510)
* Remove existing attributes

* Attribute Conversion

* Added some events

* init only properties and uint

* propagation error
2022-03-28 16:06:54 -04:00
Rolf Bjarne Kvinge 622a1c9d61
[devops] Keep dependency selection logic together. (#14519) 2022-03-28 20:36:00 +02:00
Manuel de la Pena b8cb374aee
[CI] Disable the windows integration tests until we have the lab setup. (#14507) 2022-03-28 12:15:43 -04:00
Manuel de la Pena f2c9749d4d
[CI] Add the job id tot he agent logs. (#14505)
It can happen that we use the same agent for more than one bot, if that
is the case, we need to make sure that we do not have the same name for
the logs. We use the job id + job name for that.
2022-03-28 11:54:04 -04:00
Manuel de la Pena 3f698c47d9
[nnyeah] Add tool to be made via makefiles. (#14513)
Adding the needed Makefile and the dir to the parent one so that the
tool is also built in the CI.


Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-03-28 11:52:59 -04:00
Manuel de la Pena af00cc664b
[nnyeah] Update usage to dotnet. (#14514) 2022-03-28 11:52:04 -04:00
Rolf Bjarne Kvinge f8052c82f9 [build] Remove the DOTNET_SYSTEM_RUNTIME_INTEROPSERVICES_REF_ASSEMBLY_DIR variable, it's no longer needed. 2022-03-28 14:29:41 +02:00
Rolf Bjarne Kvinge 4364bb4d16 Merge remote-tracking branch 'origin/main' into darc-main-fc6e47e2-7b69-4464-b65f-8f67ca26b4e8 2022-03-28 13:51:54 +02:00
Rolf Bjarne Kvinge 685cf52bff
[dotnet-linker] Always use 'dlsym' on Mac Catalyst to work around #14437. (#14483)
The problem is:

1. On Mac Catalyst we AOT-compile managed code by default (since we can't JIT).
2. We recently added a binding for the `ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports` native function, which is only available on Mac Catalyst 15+. The containing framework (`AuthenticationServices`) is available in Mac Catalyst 13+ (which means we won't link weakly with the framework).
3. The AOT compiler emits a non-weak reference to the `ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports` symbol.
4. macOS verifies that there aren't any undefined non-weak symbol references at launch.
5. The `ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports` symbol doesn't exist on macOS 11, and thus the app crashes at launch on macOS 11.

I tried the same thing on iOS, and the problem doesn't occur because iOS doesn't to step 4 - the symbol reference are resolved at first use, which means that everything works just fine until the first time the P/Invoke is called (and then the app aborts).

The workaround is to tell the AOT compiler to not emit a direct reference to the P/Invoke (and use dlsym instead) - this fixes case 3) above. Drawbacks: dlsym is slower than a direct reference.

Fixes https://github.com/xamarin/xamarin-macios/issues/14437.
2022-03-28 08:58:37 +02:00
Rolf Bjarne Kvinge 1e8e4bb69b
[devops] Stop asking *all* tests print *all* stack traces. (#14499)
This makes stdout much more readable.

It also fixes https://github.com/xamarin/maccore/issues/2562.
2022-03-28 08:29:56 +02:00
Rolf Bjarne Kvinge d3ee7165f4
[devops] Fix typo on step name. (#14500) 2022-03-28 08:05:11 +02:00
Manuel de la Pena d36d87f11e
[CI] Checkout the head ref rather than the merge or a reset, this should fix issues with the test selector. (#14496) 2022-03-25 11:38:52 -04:00
Rolf Bjarne Kvinge cfdccdc086
[devops] Upload binlogs from the tests run as well as the build. (#14458) 2022-03-25 16:38:02 +01:00
Rolf Bjarne Kvinge 84669f23d4 [tools] Make the TargetFramework.DotNet* variables version-agnostic. 2022-03-25 14:16:03 +01:00