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

13839 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 620a4ebbd9
[dotnet] Generate Microsoft.<platform>.Sdk.ImplicitNamespaceImports.props. (#15385)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-12 09:34:55 +02:00
Rolf Bjarne Kvinge 3609f59373
[actions] Add action to re-generate global.json for a dotnet/installer bump. (#15456) 2022-07-12 09:15:46 +02:00
Steve Hawley ee03980483
removed constructor size limit (#15459) 2022-07-11 17:00:40 -04:00
Rolf Bjarne Kvinge 1f1c03b435
[msbuild] Copy partial app manifests to build server if they exists on Windows. Fixes #15267. (#15328)
The exclusion of partial app manifests happened here, but the commit doesn't explain why:

f4a4b232f8 (diff-178de6110858688b9f7c2e8e57a873f5ac9498b355a456bfc18547ab2df876bc)

It's certainly wrong if the partial app manifest is a part of the project, but
this exclusion might be because partial app manifests might be added as a part
of the build as well.

So change the logic to copy partial app manifests from Windows if they exist
there and they're not empty.

Fixes https://github.com/xamarin/xamarin-macios/issues/15267.
2022-07-11 20:39:07 +02:00
Rolf Bjarne Kvinge 978835aff2
[CoreCLR] Avoid having any internal calls in managed code for CoreCLR. Fixes #15343. (#15358)
CoreCLR does not like running into methods declared as internal calls:

    [MethodImplAttribute (MethodImplOptions.InternalCall)]

and will fail with an error, even if the method is never executed, just encountered by the JIT:

    ECall methods must be packaged into a system module

In the early days of .NET support we solved this by adding an indirection for
CoreCLR, where the internal call was hidden inside a managed call that would
never be executed at runtime. This seems to work fine in most cases, except
when the debugger attached, when I'm guessing the JIT is more aggressive, and
looks further ahead (and fails).

On the other hand, in the early days of .NET support on macOS the managed code
had to work for both Mono and CoreCLR without modification (since the same
implementation assembly would be picked by the build independent on the actual
runtime). This is no longer the case, since we only support CoreCLR on macOS
now, which allows us to put any Mono-specific managed code (such as the
internal call) in !macOS conditions.

Fixes https://github.com/xamarin/xamarin-macios/issues/15343.
2022-07-11 20:09:08 +02:00
Rolf Bjarne Kvinge a6c5b914ab
[devops] Enable verbose build. (#15366)
* [devops] Enable verbose build.

* Allow to set the build in verbose when the pipeline is in debug mode.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-11 20:03:47 +02:00
Rolf Bjarne Kvinge 1aed252ebc
Bump MonoTouch.Dialog and Touch.Unit. (#15388)
New commits in migueldeicaza/MonoTouch.Dialog:

* migueldeicaza/MonoTouch.Dialog@558958b Revert "[MonoTouch.Dialog] Use 'BundledNETCoreAppTargetFrameworkVersion' to specify the .NET version in the project files. (migueldeicaza/MonoTouch.Dialogspouliot/Touch.Unit#261)"

Diff: 8e859cc662..558958b0a2

New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@564433f Revert "[Touch.Client] Use 'BundledNETCoreAppTargetFrameworkVersion' to specify the .NET version in the project files. (spouliot/Touch.Unit#113)"

Diff: 6963a2a279..564433f35c

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-11 20:01:26 +02:00
Rolf Bjarne Kvinge 3751d37a99
[dotnet] Use an arm64-based .NET local install on arm64 machines. Fixes #15375. (#15389)
Fixes https://github.com/xamarin/xamarin-macios/issues/15375.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-11 20:00:53 +02:00
Rolf Bjarne Kvinge 40aa3b2dfd
[ObjCRuntime] Add missing cases for UIntPtr for determining if a type is a built-in type. (#15391)
Also fix a typo for "System.nint".

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-11 20:00:11 +02:00
Rolf Bjarne Kvinge d251b69ae7
[generator] Don't use culture-aware API. (#15392)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-11 19:59:36 +02:00
Rolf Bjarne Kvinge 7ad3f2b740
Bump xharness. (#15423)
Bump xharness to get TCC fix:

53594edb70
2022-07-11 19:55:56 +02:00
Rolf Bjarne Kvinge e85d9f8619
[tests] Update tests to find nunit.framework.dll in our own local package folder. (#15422)
Fixes these test failures:

    Xamarin.MTouch.FastDev_LinkAll(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_LinkAll(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_LinkAll_Then_NoLink(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_LinkAll_Then_NoLink(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_LinkSDK(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_LinkSDK(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_LinkWithTest(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_LinkWithTest(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoFastSim_LinkAll(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoFastSim_LinkAll(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoFastSim_LinkSDK(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoFastSim_LinkSDK(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoFastSim_NoLink(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoFastSim_NoLink(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoLink(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_NoLink(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_Sim(iOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.FastDev_Sim(tvOS): System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
    Xamarin.MTouch.RebuildWhenReferenceSymbolsInCode: System.IO.FileNotFoundException : Could not find nunit.framework.dll in /Users/builder/.nuget/packages/nunit/3.12.0/lib/netstandard2.0/nunit.framework.dll. Has the version changed?
2022-07-11 19:55:26 +02:00
Rolf Bjarne Kvinge 840d2e9115
[msbuild] Remove code for watchOS 1 extensions, which we no longer support. (#15327) 2022-07-11 10:54:19 +02:00
Rolf Bjarne Kvinge abbd6ef466
[msbuild/tools] Fix path issues in the FilterStaticFrameworks task and ExtractBindingLibraries step. Fixes #15289. (#15321)
In the FilterStaticFrameworks task:

* Convert Windows-style paths to Mac-style paths.
* Give a better error if a framework can't be found.
* Don't try to copy frameworks that don't exist on Windows to the Mac.

In the ExtractBindingLibrariesStep:

* Return a relative path to frameworks we've extracted to make things easier for
  remote builds.

* In the _ComputeFrameworkFilesToPublish target, don't compute the source
  directory for frameworks using RootDir + Directory, because some frameworks
  may only exist on the mac, and RootDir + Directory will be a Windows path
  when building remotely. Instead use 'Identity', which is a relative path and
  will work on both Windows and Mac.

Fixes https://github.com/xamarin/xamarin-macios/issues/15289.
2022-07-11 10:39:54 +02:00
Rolf Bjarne Kvinge a55ec9ea7f
[devops] Make sure BUILD_REVISION is set to something during the build. (#15374)
We have logic that depend on this variable to determine whether we're in CI or not.
2022-07-08 19:51:33 +02:00
Rolf Bjarne Kvinge 7a02358c0e
[build] Commit global.json to get maestro updates. (#15401) 2022-07-08 16:51:15 +02:00
Rolf Bjarne Kvinge 1ecd84353f
[dotnet] Fix hang after packing .NET NuGets. Fixes #13355. (#15407)
This has been bothering me for a while... the symptom is that the build just
hangs at the end. Curiously it's never happend on the bots, only locally.

1. It only happens when using parallel make. When using parallel make, make is
   in a jobserver mode, where sub-makes are controlled using a pair of file
   descriptors inherited by the sub-makes. A consequence of this algorithm is
   that the controlling make process will wait until all inherited file
   descriptors have been closed before it will realize that all its sub-makes
   have finished.
2. 'dotnet pack' will build the corresponding project, and that might start a
   background compiler server.
3. This background compiler server does not seem to close any file descriptors
   it inherits.
4. The background compiler server does not necessarily exit by the time `make`
   is done.
5. The result is that `make` things there are still sub-makes doing stuff,
   because there are inherited file descriptors still open.
6. Killing the compiler server (in another terminal for instance) will make
   make realize it's done (and the hang is resolved).

So I'm applying the last point: shutting down the compiler server after
packing all the .NET NuGets.

Fixes https://github.com/xamarin/xamarin-macios/issues/13355.
2022-07-08 16:50:20 +02:00
Manuel de la Pena 279054ab25
[CI] Change logic to take into account that CI has no labels. (#15414) 2022-07-07 15:57:35 -04:00
Manuel de la Pena 3314ed823b
[CI] Use the Stable Xcode channel in main related branches. (#15406)
Xcode14 broke actool. We have created two diff bot images:

- Stable: Contains the latests stable xcode (xcode13.4)
- Beta: Contains the latests beta xcode OR will allow it to be
  installed.

By doing this we mitigate the possible issues that the new Xcode might
create. Some of the bots have already been migrated.

This commit SHOULD NOT be backported to xcode14.
2022-07-06 13:51:10 -04:00
Manuel de la Pena 4700f69e71
[CI] Fix the skip of tests. (#15404)
When the label is not present we set the value to false. We also needed
to make sure that the project is checked out when we try to write the
comment.

This should be backported to xcode14.
2022-07-06 10:04:31 -04:00
Manuel de la Pena 68fe412e89
[CI] Allow to pass the xcode channel. (#15377)
Allow to pass the xcode channel we are going to be using. This is to
ensure that we do not try to build the xcode14 branch in beta bots. At
the moment all bots are using the Beta channel, but once the lab has
been updated we should be able to move main to Stable.
2022-06-30 09:19:12 -04:00
Manuel de la Pena 9a8d74b880
[Build] Allow to skip the build of Hotrestart. (#15380) 2022-06-30 09:18:42 -04:00
Manuel de la Pena cf26e6e627
[CI] Provide a script to help when doing bot reports. (#15376)
We have several issues with reports. VSTS UI is not very good at this,
yet we do the scripts to take care of it. Added a script that allows to
show all the bots based on a capability.

Example
```
pwsh bots-info.ps1 -Token "$YOURTOKEN" -PoolName "VSEng-Xamarin-RedmondMacBuildPool-iOS-Untrusted" -Capability "XcodeChannel"
```

Output:
```
VSEng-Xamarin-RedmondMacBuildPool-iOS-Untrusted bots:
	Name: BOT-0189.Catalina; XcodeChannel=Stable
	Name: BOT-0202.Catalina; XcodeChannel=Stable
	Name: XAMBOT-1098.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1104.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1042.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1043.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1108.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1107.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1109.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1017.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1023.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1044.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1105.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1103.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1106.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1030.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1033.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1035.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1036.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1037.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1039.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1100.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1101.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1094.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1096.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1102.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1099.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1097.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1160.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1161.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1162.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1163.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1165.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1164.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1166.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1167.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1168.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1169.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1170.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1171.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1172.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1173.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1174.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1175.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1176.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1177.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1180.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1181.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1183.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1184.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1179.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1178.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1182.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1193.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1192.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1185.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1188.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1187.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1186.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1190.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1191.Monterey; XcodeChannel=Beta
	Name: XAMBOT-1189.Monterey; XcodeChannel=Beta
```
2022-06-29 17:00:32 -04:00
Manuel de la Pena 8bd19e5514
[CI] Allow to skip all tests in the parallel implementation. (#15334)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-06-29 15:27:03 -04:00
Manuel de la Pena a5f72dda33
[CI] Provide hardware information. (#15369)
Get the bot information to improve the debugging of build failures. The
following is an example of the output:

Software:

    System Software Overview:

      System Version: macOS 12.4 (21F79)
      Kernel Version: Darwin 21.5.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Mandels Home iMac Pro
      User Name: Manuel de la Pena Saenz (mandel)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 3 days 23:43

Hardware:

    Hardware Overview:

      Model Name: iMac Pro
      Model Identifier: iMacPro1,1
      Processor Name: 8-Core Intel Xeon W
      Processor Speed: 3,2 GHz
      Number of Processors: 1
      Total Number of Cores: 8
      L2 Cache (per Core): 1 MB
      L3 Cache: 11 MB
      Hyper-Threading Technology: Enabled
      Memory: 64 GB
      System Firmware Version: 1731.120.10.0.0 (iBridge: 19.16.15071.0.0,0)
      OS Loader Version: 540.120.3~6
      Serial Number (system): C02WD0V7HX8F
      Hardware UUID: 85EE3276-4E8F-592A-A47B-599DFAB6DF1C
      Provisioning UDID: 85EE3276-4E8F-592A-A47B-599DFAB6DF1C
      Activation Lock Status: Disabled

Developer:

    Developer Tools:

      Version: 13.3.1 (13E500a)
      Location: /Applications/Xcode_13.3.0.app
      Applications:
          Xcode: 13.3.1 (20103)
          Instruments: 13.3.1 (64552.71)
      SDKs:
          DriverKit:
              21,4:
          iOS:
              15,4: (19E239)
          iOS Simulator:
              15,4: (19E239)
          macOS:
              12,3: (21E226)
          tvOS:
              15,4: (19L439)
          tvOS Simulator:
              15,4: (19L439)
          watchOS:
              8,5: (19T241)
          watchOS Simulator:
              8,5: (19T241)
2022-06-28 20:30:03 -04:00
Manuel de la Pena eee31cb3fa
Should be || not && (#15367) 2022-06-28 20:29:40 -04:00
Manuel de la Pena 19df6512d5
[CI] Stop running pipelines on debug mode. (#15364) 2022-06-28 20:29:24 -04:00
Manuel de la Pena 600eb67bac
[CI] Just collect sim logs on debug. (#15341)
The step takes time and it will be ignored unless we need to debug the
bots/pipeline.
2022-06-28 11:10:56 -04:00
Steve Hawley b4c68ab209
manage DisposableObject (#15355) 2022-06-27 16:02:20 -04:00
Manuel de la Pena 7fa68bc8e5
[CI] Ignore branches that start with dev/* (#15362)
Other teams in xamarin/microsoft do no use forks but use dev branhces.
The correct thing in our repo is to use forks, yet other developers
insist in not following our developement practices. The fact that this
branches are created results in 2 builds:

- One for CI
- On for the PR

It is harder to educate other developers than it is to ignore their
branches, therefore we have added the pattern dev/* to the exclude
list for branches in the CI build.
2022-06-27 14:50:31 -04:00
dependabot[bot] 73681fd173
Bump peterjgrainger/action-create-branch from 2.0.1 to 2.2.0 (#15350)
Bumps [peterjgrainger/action-create-branch](https://github.com/peterjgrainger/action-create-branch) from 2.0.1 to 2.2.0.
- [Release notes](https://github.com/peterjgrainger/action-create-branch/releases)
- [Commits](https://github.com/peterjgrainger/action-create-branch/compare/v2.0.1...v2.2.0)

---
updated-dependencies:
- dependency-name: peterjgrainger/action-create-branch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 11:21:36 -04:00
dependabot[bot] 389d09bca4
Bump actions/checkout from 2 to 3 (#15351)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 11:20:49 -04:00
dependabot[bot] 8fcf8d0daf
Bump peter-evans/repository-dispatch from 1 to 2 (#15352)
Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 1 to 2.
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v1...v2)

---
updated-dependencies:
- dependency-name: peter-evans/repository-dispatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 11:20:34 -04:00
dependabot[bot] 5f6855f021
Bump devmasx/merge-branch from 1.3.1 to 1.4.0 (#15353)
Bumps [devmasx/merge-branch](https://github.com/devmasx/merge-branch) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/devmasx/merge-branch/releases)
- [Changelog](https://github.com/devmasx/merge-branch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/devmasx/merge-branch/compare/v1.3.1...1.4.0)

---
updated-dependencies:
- dependency-name: devmasx/merge-branch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 11:20:16 -04:00
Naveen 573480b394
chore: Included githubactions in the dependabot config (#15330)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-06-27 13:23:48 +02:00
Rolf Bjarne Kvinge a55557fd54
[NSObject] Unify some code between iOS and macOS. (#15302)
* Add these methods to shared code so they're available on all platforms
  (they're already available on mobile platforms), since there's no reason to
  exclude them on macOS:
    * NSObject.Init
    * NSObject.Alloc
    * NSObject.InvokeInBackground
* Remove unused usings.
* Move identical code in platform-specific files to shared code.
2022-06-27 12:53:09 +02:00
Manuel de la Pena 1fa2efba62
[CI] Bump the build timeout. (#15345)
There are certain bots misbehaving and taking longer. We believ ethat it
might be due to some throttiling depending on their positio in the lab.
We are increasing the timeout for those cases.
2022-06-24 14:07:24 -04:00
Manuel de la Pena 2521d07ab2
[CI] Do not run introspection unless it has been selected. (#15342) 2022-06-24 12:45:26 -04:00
Peter Collins e39e8e3655
[post-build] Fix Maestro asset publishing (#15339)
Attempts to push build asset information to Maestro started failing
recently:

    D:\a\1\s\xamarin-macios\packages\microsoft.dotnet.arcade.sdk\6.0.0-beta.21212.6\tools\SdkTasks\PublishBuildAssets.proj(43,5): error MSB4062: The "PushMetadataToBuildAssetRegistry" task could not be loaded from the assembly C:\Users\VssAdministrator\.nuget\packages\microsoft.dotnet.maestro.tasks\1.1.0-beta.20570.1\tools\netcoreapp3.1\Microsoft.DotNet.Maestro.Tasks.dll. Could not load file or assembly 'C:\Users\VssAdministrator\.nuget\packages\microsoft.dotnet.maestro.tasks\1.1.0-beta.20570.1\tools\netcoreapp3.1\Microsoft.DotNet.Maestro.Tasks.dll'. The system cannot find the path specified.

Commit a1d0b6eb looks like it may have broken this, as it changed the
`globalPackagesFolder` used for NuGet packages across the repo.

Looking at [PublishBuildAssets.proj][0] we should be able to set the
`$(NuGetPackageRoot)` property to the new `globalPackagesFolder` value,
fixing attempts to load `Microsoft.DotNet.Maestro.Tasks.dll`.

[0]: b8007eed82/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishBuildAssets.proj (L32)
2022-06-23 16:31:17 -04:00
Manuel de la Pena af69c5787b
[CI] Fix api diff comment (#15337)
Fix writting a comment when not on a PR build.
2022-06-23 14:49:10 -04:00
Steve Hawley 8965dde9a0
[nnyeah] Fix more ctor/handle mapping (#15324)
* Fix more ctor/handle mapping

* Make sure the mapping happens
2022-06-23 14:24:28 -04:00
Manuel de la Pena ab4dac6253
[CI] Fix tests for the pwsh. (#15338)
Fixed the following two issues:

1. Update tests to use the correct constructor.
2. Renamed $context because it is a known pester variable name and would
   get overriden.
2022-06-23 13:31:26 -04:00
Rolf Bjarne Kvinge 897ce7b736
[xharness] Environment variables need to be fetched. (#15316) 2022-06-23 12:15:21 -04:00
Manuel de la Pena 63c69e49c1
[CI] Fix error when collecting the sim logs. (#15333)
We are getting errors with the following:

> Error creating archive at '/Users/builder/azdo/_work/2/s/diagnostic-sim-output/output.tar.gz'.
> Files are still in /Users/builder/azdo/_work/2/s/diagnostic-sim-output/output
> An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=17):
> Unable to write or file already exists
> File exists

we remove the path in case it is present and continue even if there was
an error since it does not imply a test failure.
2022-06-23 12:11:41 -04:00
Manuel de la Pena b1ea4b51aa
[CI] Allow tests to be ran in parallel. (#15322)
This allows the CI to run ALL the tests that the project has in
parallel. This is divided in two main changes:

1. Xharness - We move away from using boolenas to use a flag that states
   the tests to run.
2. yaml - We have move the code to use a template per label. This new
   jobs all run in parallel and the results are later collected by a
   funel job
3. pwsh - Added a new class that understands that we have several mark
   downs with the tests results. The classes parses them and them writes
   a single comment (and example can be found here: https://github.com/xamarin/xamarin-macios/pull/15201#issuecomment-1162366240

The changes gives the following advantages vs how we used to run tests:

1. The CI run for all tests moves from taking 13 hours to 3/4 hours
   (depending on the number of bots in the pool).
2. The download needed to verify the results on a case of failure is
   smaller. Rather than downloading several GBs we now just download
   that part of the html that we are interested in.
3. Better bot utlization. Bots are just used to a max of 2 hours, this
   means that we can use the bots better since they are fragmented.
4. Less VMs. VSDrops has added support for macOS and Linux, we take
   advanges of that here.


Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-06-23 08:54:21 -04:00
Manuel de la Pena f02a74af7d
[Tests] Bump Newtonsoft.Json version (#15329)
Bump the version to fix:

* https://github.com/xamarin/xamarin-macios/security/dependabot/1
* https://github.com/xamarin/xamarin-macios/security/dependabot/2

The dependency is in a tests, but this way we make the warning fo away.
2022-06-23 08:51:51 -04:00
Manuel de la Pena 0afa4860b7
[CI] Print the uri that was requested for better debugging. (#15325) 2022-06-23 08:48:58 -04:00
Rolf Bjarne Kvinge 27d131a8e6
A .NET 'servicing' release is also a stable release. (#15311) 2022-06-23 08:56:07 +02:00
Rolf Bjarne Kvinge 9ff8a6b3da
[devops] Collect diagnostic logs from the simulator. (#15215)
Collect diagnostic logs from the simulator to try to get better diagnostic information for https://github.com/xamarin/maccore/issues/2558.

Interestingly it seems like just collecting diagnostic information makes the problem much less likely to occur...
2022-06-22 23:18:52 +02:00
Manuel de la Pena fae8c53bbf
[Tests] Add missing nuget. (#15313)
Tests work because other tests do use the nugets and gets picked up by
the runner. Yet, if we execute this projects witjout others, the tests
will fail when trying to use the nunit2 format.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-06-22 17:10:27 -04:00