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

2667 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena d94ede01b3
[CI] Migrate all code to use the new api to set the status on github. (#14728) 2022-04-13 15:42:01 -04:00
Manuel de la Pena 4c8d4457e5
[CI] Fix issue when adding the api diff on CI. (#14731) 2022-04-12 16:24:18 -04:00
Manuel de la Pena b8eb1c3140
[CI] Provide the bot name on mac test result comments. (#14717) 2022-04-12 12:39:54 -04:00
Manuel de la Pena a27b2d25c5
[CI] Fix typo that made comments fail on CI but not PRs. (#14727) 2022-04-12 12:08:05 -04:00
TJ Lambert 1d4daf2b4a
[Localization] Add the resx file for localization and move errors and warnings (#14703)
* Add the resx file for localization and move error and warning strings

* Change NStrings.resx -> Errors.resx

* using the new namespace

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-04-12 09:36:54 -05:00
Manuel de la Pena 2c4bb79243
[CI] Add new pwsh to allow to use the new code for test result comments. (#14722)
Add a few classes that will be later used to create the comments for the
tests.

- GitHubStatus/es: Allows to represent a github status, we are addign a
  class per concern.
- TestResults: Contains the information and logic of a test result.
  Implements the same interface as the other comment objects so that we
  resuse the comment code.

Tests have been added and modified the github action to run on pull
requests too.
2022-04-12 09:20:57 -04:00
Manuel de la Pena c3e9a8c2ab
[CI] Improve the action used to run tests on the pwsh. (#14723) 2022-04-11 16:35:22 -04:00
Manuel de la Pena ad2caf1f94
[CI] Add the hash that was used to build in the commit. (#14713)
Add the hash of the project in the comment footer so that we can know
what we did build. Later we can use this to filter outdated comments.
2022-04-11 10:12:03 -04:00
Manuel de la Pena dfdd8f200c
[CI] Fix variables to show the correct bot in the comments. (#14714) 2022-04-10 19:27:34 -04:00
Manuel de la Pena c87e2c0c59
[CI] Add a prefix to the comment headers. (#14712)
Add a prefix that lets us know if the comment comes from a PR build
(using the public bots) or a CI build (using the private bots).
2022-04-09 20:47:30 -04:00
Manuel de la Pena b9d95213c4
[CI] Re-enable the api diff comments. (#14705) 2022-04-09 09:36:56 -04:00
Steve Hawley a2624f6515
[nnyeah] Namespace change (#14710)
`nnyeah` -> `Microsoft.MaciOS.Nnyeah`
2022-04-08 14:52:02 -04:00
Manuel de la Pena e065229712
[CI] Fix the import path to be relative. (#14706) 2022-04-08 11:35:46 -04:00
Steve Hawley df395f2cff
[nnyeah] Nfloat fields (#14696)
Transform nfloat field references to getters on NFloat
2022-04-07 15:41:31 -04:00
Manuel de la Pena ef7db6a5fc
[ESRP] Move signing to the new xcode version. (#14654) 2022-04-07 12:48:10 -04:00
Manuel de la Pena 83cac1211e
[CI] Add a comment with the pkgs generated as soon as we build. (#14681) 2022-04-07 12:47:50 -04:00
Steve Hawley e0eed38ce1
[nnyeah] Nfloat type substitution (#14675)
This code substitutes NFloat for nfloat.
2022-04-07 09:42:18 -04:00
Rolf Bjarne Kvinge 6af4b9607c
[tools] Make the TargetFramework.DotNet* variables version-agnostic. (#14669)
This minimizes the code changes required for .NET 7.
2022-04-06 21:33:46 +02:00
Manuel de la Pena 0c72b97207
[CI] Split the logic that writes artifacts and test it. (#14358) 2022-04-06 13:43:54 -04:00
Manuel de la Pena b9a7b0c00a
[CI] Move API diff to its own stage to make things much simpler. (#14657)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-06 11:16:42 -04: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 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 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
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 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 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
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