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

3259 Коммитов

Автор SHA1 Сообщение Дата
TJ Lambert 2814d76bbd
[Localization] New Pipeline to replace github action - not from fork (#17853) 2023-03-23 12:17:31 -05:00
Rolf Bjarne Kvinge 6161fbbb30
[devops] Collect crash reports for each test job. (#17880) 2023-03-22 22:00:41 +01:00
Rolf Bjarne Kvinge e86c77a773
[devops] Run .NET tests with the 'Windows' category on Windows (#17796) 2023-03-22 07:49:03 +01:00
dotnet-maestro[bot] 8852f61dfe
[main] Update dependencies from dotnet/installer (to 7.0.2xx) (#17803)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.AspNetCore.App.Ref**: from 7.0.3 to 7.0.4 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer
- **Subscription**: fffd7604-ce46-455f-0f2f-08db24524baf
- **Build**: 20230320.23
- **Date Produced**: March 21, 2023 6:36:46 AM UTC
- **Commit**: 332c2bc24954c8305a1985bd8e52088cc6b6a677
- **Branch**: refs/heads/release/7.0.2xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.105-servicing.23165.29 to 7.0.203-servicing.23170.23][8]

[8]: f7fbfe4...332c2bc
2023-03-22 07:41:11 +01:00
Rolf Bjarne Kvinge a1d915a8a6
[devops] Clean simulator runtimes from bots. (#17832)
If there are more than one simulator runtime for a given platform, then
remove all of them.

This will hopefully fix a few problems we're having with hard drive
space issues (we end up with a lot of identical simulator runtimes
downloaded).
2023-03-21 07:42:09 +01:00
Rolf Bjarne Kvinge f37c86bd1e
[tools] Re-create dotnet-linker.csproj.inc when dotnet-linker.csproj changes. (#17826) 2023-03-17 07:58:12 +01:00
Alex Soto 91781715a9
[CI] [siminstaller] Bump bots to use the Ventura and make siminstaller more resilient (#17760)
## siminstaller

We are getting a `System.IO.IOException: Resource busy`
when trying to detach with hdiutil on Ventura. When reaching
this spot we are really done with the mounted resource so
let's force detaching and in the event that it fails let's
just log since at this point the simulator is installed.

## CI

Bump bots to use the Ventura images, and Add `macOSName`
parameter to our yaml templates.

`macOSName` maps to the `macOS.Name` capability in our bots, this
way we can set the macOS name we want to use on the bots in bot build and tests.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-03-14 07:27:00 +01:00
Rolf Bjarne Kvinge 8b3a434000
[devops] Report the result of the Windows tests as a GitHub comment. (#17727) 2023-03-13 08:09:35 +01:00
Manuel de la Pena 0d4c797b7c
[CI] Download the minimum number of artefacts (#17762)
Because the template is know shared between pipelines, we need tone more
precise.
2023-03-10 11:43:54 -05:00
Manuel de la Pena bf32e8551c
[CI] Allow to debug the env in the upload jobs. (#17724) 2023-03-08 11:47:48 -05:00
Rolf Bjarne Kvinge 63e6d9b4e8
[src] Commit some of the response files. (#17718)
We'll soon build and run tests on Windows, and some tests use these response files,
so it makes building these tests on Windows easier if we don't have to re-create
the response files (our generation logic is all written in make, which is not the
easiest on Windows).
2023-03-07 17:32:27 +01:00
Rolf Bjarne Kvinge 3e86254ef8
[devops] Make decisions whether the windows tests should be run or not. (#17717) 2023-03-07 07:54:07 +01:00
Rolf Bjarne Kvinge d5fb1c60e9
[devops] Upload all binlogs from the Windows tests (#17720) 2023-03-07 07:49:46 +01:00
Rolf Bjarne Kvinge e013c10a30
Add support for function pointers to BlockLiteral. (#17672)
Add support for function pointers to BlockLiteral, and use it to update
almost all manually bound block code to use function pointers (in .NET).

Also add support to the linker for optimizing the new block API.

Contributes towards https://github.com/xamarin/xamarin-macios/issues/15783.
2023-03-06 10:26:08 +01:00
Manuel de la Pena ddec161ea1 [CI] Pass stirng not array. 2023-03-04 11:50:32 -05:00
Manuel de la Pena 6c27c2915b
[CI] Ensure that the condition also include the dependency of the stage. (#17703)
Without the extra condition, the stage iwll run always when the stage
dependency was skipped or cancelled.
2023-03-04 11:46:15 -05:00
Manuel de la Pena 0a8170017b
[CI] Fix the GIT_HASH variable inside the buildjob. (#17681)
Because the variable is an output variable, we need to provide the name
of the step that creates the variable. This is nto needed in other
stages because we are setting the variable via the env vars of the
stage.
2023-03-03 10:25:39 -05:00
Rolf Bjarne Kvinge e170ba56d8
[dotnet] Rework how we handle manifest version bands. (#17670)
* Use a separate variable for Mono's and Emscripten's manifest version band,
  so that they can diverge (this is a decision from the corresponding teams,
  we don't control it).
* Have a separate variable for our own manifest version band, so that it's
  easier to hard code it if we want to.
* Rename a few variables to make them clearer.
* Remove hardcoded rc.2 logic, we're not using any rc.2 versions right now, so
  that's dead code.
* A few other minor changes.
2023-03-03 13:17:55 +01:00
Rolf Bjarne Kvinge 58f1b3de79
[tools] Commit the regenerated SdkVersions.cs (#17671)
Also make it an error if the SdkVersions.cs file was updated, so this doesn't
go unnoticed again.
2023-03-03 07:54:33 +01:00
Manuel de la Pena 9dfad11a8b
Revert "[CI] Set a variable to be able to avoid collision between templates. (#17664)" (#17688)
This reverts commit f4ebf2f75e.

This changes does not work when not in a PR. Needs to be reverted
2023-03-02 19:18:19 -05:00
Manuel de la Pena f4ebf2f75e
[CI] Set a variable to be able to avoid collision between templates. (#17664) 2023-03-02 14:44:43 -05:00
Rolf Bjarne Kvinge 8f8818dd72
[generator] Use the new Block API that makes BlockLiteral disposable. (#17612)
Contributes towards https://github.com/xamarin/xamarin-macios/issues/15783.
2023-03-01 07:23:21 +01:00
Manuel de la Pena 7933da85db
[CI] Add a prefix to the uploads and downloads to avoid collisions. (#17636)
This allows to add a prefix to the uploads/downloads of the CI to help
avoid collisions with other projects when the template is used in a diff
template.

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-02-28 16:19:03 -05:00
TJ Lambert 80fdc5871a
[Localization] Revert "[CI] Remove the translations from the main stage. (#17453)" (#17537)
We actually do need to keep this task inside our normal builds for the
Loc team to identify if there are new translations through the
localizationDrop artifact. The other pipeline that runs this task on the
cron job is used for a separate part of the localization process that
creates the PRs with the usable translations.

We re-add the job and provide a new parameter to ignore the translations (set to be true by default) that way other pipelines using the template can ignore the job.


https://github.com/xamarin/maccore/wiki/Localization#the-translation-process

---------

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-02-28 12:32:34 -05:00
Rolf Bjarne Kvinge 8285c08c17
[registrar] Improve support for pointers to value types in exported signatures. (#17608)
This will be required when we make blocks use blittable callbacks, since we'll
have to use pointers in a few cases (because ref/out arguments aren't
blittable).
2023-02-28 11:48:27 +01:00
Manuel de la Pena 876522e374
[CI] The DropsPAT was removed, change it to a new one. (#17610)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-02-27 09:55:53 +01:00
Manuel de la Pena 0517317ae6
[CI] Add the prefix to the prepare release stage. (#17582) 2023-02-22 11:32:03 -05:00
Manuel de la Pena eb7bcb24f2
[CI] Remove step that is not longer used and is always ignored. (#17583)
We do not longer use it and makes noise in the CI.
2023-02-22 11:31:50 -05:00
Manuel de la Pena 77afb6009b
[CI] Fix yaml paramenter. (#17581) 2023-02-21 14:22:12 -05:00
Manuel de la Pena 4e640a9f40
[CI] Do not skip the insertion but the nuget push. (#17571)
Do not skip the msi conversion since that will be needed in the unified
pipeline BUT skip pushing to the internal nuget feeds.
2023-02-21 14:06:13 -05:00
dustin-wojciechowski 3eeb7691dc
Add ventura to mac tests configurations (#17349)
Added Ventura machines to macTestConfigurations within both the
build-ci-pipeline and the build-pr-pipelines.

---------

Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-02-13 11:08:18 -05:00
Rolf Bjarne Kvinge 51136f1656
[devops] Remove logic to publish the mlaunch NuGet. (#17494)
The mlaunch NuGet is published from the maccore repository now.
2023-02-10 22:42:08 +01:00
Rolf Bjarne Kvinge 8efc00aa01
[src] Create XML documentation when building our platform assemblies for .NET. Fixes #17395. (#17476)
Also fix XML comments to be valid and not produce compiler warnings.

Unfortunately XML comments can't be conditionally compiled
(https://github.com/dotnet/csharplang/discussions/295), so we have to 
duplicate a lot of content that is just slightly different.

Fixes https://github.com/xamarin/xamarin-macios/issues/17395.
2023-02-09 09:24:08 +01:00
Rolf Bjarne Kvinge afb6505f8c
[tests] Bump Microsoft.NET.Test.Sdk version to latest stable. (#17462)
The older version of Microsoft.NET.Test.Sdk depends on an older version of
Newtonsoft.Json, which triggers automated security warnings.

Ref: https://devdiv.visualstudio.com/DevDiv/_componentGovernance/113130/alert/7090885?typeId=12169115
2023-02-07 14:52:45 +01:00
Rolf Bjarne Kvinge fd44670214
[ObjCRuntime] Make sure to call 'Release' in all code paths in Runtime.GetINativeObject<T> when owns=true. Fixes #12732. (#17118)
Fixes https://github.com/xamarin/xamarin-macios/issues/12732.
2023-02-07 07:22:35 +01:00
Manuel de la Pena a53585ea0a
[CI] Skip the insertions when not needed in the unified pipeline. (#17455) 2023-02-06 21:06:51 -05:00
Manuel de la Pena 59aebf259c
[CI] Remove the translations from the main stage. (#17453)
The tramslations are meant to be done per week using the cron job. The
cron job does not use the main stage template, ergo we can simplify the
stage by removing the translations.
2023-02-06 16:07:30 -05:00
TJ Lambert 7798c7c5f1
[Localization] Add flag to change line endings (#17422)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2023-02-02 13:27:31 -05:00
Rolf Bjarne Kvinge 614a16a358
[autoformat] Fix line endings for localization output. (#17407)
Ref: https://github.com/xamarin/xamarin-macios/pull/17403
2023-02-01 16:59:42 +01:00
Manuel de la Pena 8682ff8d56
[CI] Remove yaml lint issue. (#17412) 2023-01-31 16:01:48 -05:00
Rolf Bjarne Kvinge b654db9f2d
[tools] Fix MT1302 to show the correct path to the assembly. (#17362)
We used to show this:

> ILLINK warning MT1302: Could not extract the native library 'StaticLibrary.a' from '~/Downloads/BindingTest/obj/Debug/net7.0-ios/iossimulator-x64/linker-cache/StaticLibrary.a'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').

now we show the assembly:

> ILLINK warning MT1302: Could not extract the native library 'StaticLibrary.a' from '~/Downloads/BindingTest/obj/Debug/net7.0-ios/iossimulator-x64/linker-cache/BindingLibrary.dll'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').

Also increase diagnostics for this failure scenario to list all the resources
in the given assembly.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-01-26 17:01:41 +01:00
Rolf Bjarne Kvinge 41384c6af8
[tools] Add diagnostics when a native library turns off -dead_link support. (#17361)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-01-26 16:16:13 +01:00
Rolf Bjarne Kvinge 98819287cc
[runtime/generator] Add support for BindAs with CMVideoDimensions. (#17308)
This is required for some new iOS 16 APIs.
2023-01-25 15:34:28 +01:00
Rolf Bjarne Kvinge 6af8da73af
[tools] Try to fix #xamarin/maccore@2637 by making sure a file's timestamp changes. (#17352)
Try to fix #xamarin/maccore@2637 by making sure a file's timestamp changes
after make runs the corresponding target.

Otherwise it seems make may run into some sort of infinite loop.

Fixes https://github.com/xamarin/maccore/issues/2637.
2023-01-25 08:56:56 +01:00
Rolf Bjarne Kvinge ddda284da5
[tools] Enable the PushToTalk framework in the simulator. (#17274)
Apple provides the headers to target PushToTalk (so using PushToTalk in code
builds just fine for the simulator in Xcode), but it doesn't work at runtime.

I believe it's better to allow the same thing in our bindings, for two reasons:

* Apple prints out a helpful error message at runtime, instead of our rather
  incomprehensible build error.
* Apple might implement simulator support in the future, in which case we
  won't need to do anything else.
2023-01-18 18:55:04 +01:00
VS MobileTools Engineering Service 2 87f4b91f8d
Localized file check-in by OneLocBuild Task: Build definition ID 17751: Build ID 7198107 (#17246)
This is the pull request automatically created by the OneLocBuild task
in the build process to check-in localized files generated based upon
translation source files (.lcl files) handed-back from the downstream
localization pipeline. If there are issues in translations, visit
https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is
https://aka.ms/onelocbuild and the localization process in general is
documented at https://aka.ms/AllAboutLoc.
2023-01-17 12:14:36 -06:00
Manuel de la Pena 00219b952f
[CI] Move the upload to a hosted image. (#17192)
We have noticed that the azure upload steps fail when they are executed
in a on prem windows machine. The infra team does not know what this is
happening. To work around it we are taking the following stes:

- Move the upload to a hosted image, which does work.
- Donot download all artefacts, since hosted images only have a 10 gb
hdd. We download all but the not needed files using negative match
patterns.
2023-01-12 11:05:15 -05:00
Manuel de la Pena 5541f48180
[CI] Set extra parameters for the azure upload. (#17161) 2023-01-10 18:38:06 -05:00
Rolf Bjarne Kvinge 6c04f7621a
[tools] Update SdkVersions.cs after the latest Xcode 14.2 bump. (#17101)
* Update `SdkVersions.cs` after the latest Xcode 14.2 bump.
* Rename `[SdkVersions|ProductConstants].cs.in` to `[SdkVersions|ProductConstants].in.cs`.
  This way the autoformatter makes sure it's formatted correctly.
2022-12-21 17:44:27 +01:00
Rolf Bjarne Kvinge 83b0727967
[tests] Port and improve the availability attribute test from introspection. (#17083)
Port the availability attribute test from introspection to cecil-tests. It's much
easier and faster to test attributes using Cecil using a desktop executable than
having to execute a test app on each target platform.

This also means that we can make the ApiAvailabilityTest in introspection
legacy-only.

Ref: https://github.com/xamarin/xamarin-macios/issues/10834
2022-12-20 12:46:06 +01:00