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

703 Коммитов

Автор SHA1 Сообщение Дата
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
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
Manuel de la Pena 8682ff8d56
[CI] Remove yaml lint issue. (#17412) 2023-01-31 16:01:48 -05: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 84dd56cd08
[devops] Become paranoid about making sure there are no artifacts around from previous builds. (#16903) 2022-12-01 18:25:40 +01:00
TJ Lambert af965ceddc
[Localization] Set OneLocBuild Task to not delete Lego Branch (#16909)
In our localization process, the Loc team builds the translations (in
the not-user-readable .lcl files) and merges them into the
'Localization' branch from a 'Lego/...' branch. After this happens, our
'Get Localization Translations' github action takes that commits and
creates a PR into main with those changes. It is really important that
this github action works because we will later delete the 'Localization'
branch and create a new one from the 'main' branch so that the branches
stay in sync.

There worked fine, but there is now a 'isDeletePrSourceBranchSelected'
input to the OneLocBuild task that defaults to true that deletes the
'Lego/...' branch right after the commit to 'Localization' is made. Due
to this, the github action cannot bring the commit to 'main' because the
'Lego/...' branch no longer exists.

The hope is that setting this input to false will successfully not
delete the 'Lego/...' branch allowing the rest of the flow to be
uninterrupted.

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-11-29 14:03:09 -06:00
Rolf Bjarne Kvinge 1454fe6d13
[devops] Update according to renamed label. (#16813)
Also add 'run-packaged-macos-tests' to the labels we care about.

This fixes an issue where the label combination
'skip-all-tests,run-packaged-macos-tests' would not run any tests.
2022-11-21 09:43:25 +01:00
TJ Lambert ea74ef3396
[Localization] Change the Cron Job to trigger weekend scheduled build (#16835)
I have been testing these changes inside the xamarin-macios-translations
pipeline.
The last run was green (found
[here](https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=6984912&view=results)).
I had to use some placeholder code for the actual calls for the
OneLocBuild task that will communicate with the Loc Team but it reached
those points as expected!

This PR also rips out calls to the main-stage.yml template to only use
the stages necessary for the OneLocBuild run over the weekend!

I think these changes are set to see if the main branch can trigger the
OneLocBuild Task over the weekend build!

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-11-18 17:22:17 -06:00
Rolf Bjarne Kvinge f8fcd0e827
[devops] Set BUILD_REVISION globally. (#16772)
A lot of code in our repo uses the presence of the BUILD_REVISION environment
variable to determine whether we're running in CI or not, so just set the
variable globally once so that it's always set - that way we never forget to
set it.

Note that the exact value of the variable doesn't matter, only that it's set.
Also change one place in the yaml that was depending on the contents of the
BUILD_REVISION to use the Azure Devops variable BUILD_SOURCEVERSION instead
(like we do everywhere else in our yaml code).
2022-11-16 15:08:48 +01:00
Manuel de la Pena d307589ebb
[DevOps] Use the correct hash for the comment. (#16766)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-16 06:55:45 -05:00
Manuel de la Pena 58a14e9231
[DevOps] Do not use ta vm for the pkgs upload due to its hdd size. (#16765)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-15 18:15:36 -05:00
Rolf Bjarne Kvinge ad55eb6efc
[devops] Skip a few steps if something goes wrong. (#16756)
There's no need to:

* Check for HD space.
* Make mlaunch verbose.
* Reset launchctl.

if something else already went wrong in a test run.
2022-11-15 18:20:27 +01:00
Manuel de la Pena 0ed4ad3a26
[DevOps] Allow to pass extra dependencies for the build stage. (#16736)
Allow to add a dependency before our build. This is used in the unified
pipeline to try to download the binaries if it can rather than building
from scratch.

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-14 23:35:00 -05:00
Manuel de la Pena 363b6727ed
[DevOps] Forward forgotten parameters. (#16737)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-14 23:34:43 -05:00
Manuel de la Pena fc1b421f82
[DevOps] Write comments in the correct repo when we are not in self. (#16730)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-14 11:56:00 -05:00
Manuel de la Pena 80c0e76218
[DevOps] Checkout the yaml repos to fix an issue with the working dir. (#16715)
Azure pipelines has this terrible design in which the path of the
checkout is different depending if you checkout a single repo or
several.

In this case, we have no issues on macios because we do know we have not
been checkout with anyother repo in the upload step, that is not the
case when working on the unified pipeline. Rather than adding some
complicated logic, we are going to be checking out the yaml templates so
that we have the same working directory structure.
2022-11-11 14:02:06 -05:00
Rolf Bjarne Kvinge 9fb6a4b309
[devops] Augment the install-workloads.sh script to make it easier to run locally. (#16698)
It's often desired to run the install-workloads.sh script locally, in order to
diagnose problems with it.

So improve it a bit by:

* Adding a few comments explaining things.
* Don't assume we're in the correct directory.
* Figure out BUILD_SOURCESDIRECTORY if it's not already set.
* Validate a bit and show more helpful errors.

Hopefully future me will be grateful!
2022-11-11 13:42:35 +01:00
Manuel de la Pena be0c787503
[DevOps] Allow to pass the alias of the xamarin repo and its commit to the checkout. (#16657)
This will allow an external pipeline to checkout the repo and use our
templates to build.

This is a partial fix for
https://github.com/xamarin/sdk-insertions/issues/41
2022-11-10 08:12:42 -05:00
Manuel de la Pena d7833fcf8d
[DevOps] Allow to pass a prefix to be used in the display names. (#16686)
This will allow to know the owner of the stage.
2022-11-10 08:12:11 -05:00
Manuel de la Pena e51827ddb8
[DevOps] Use the project URI to calculate the project. (#16680)
The template can be run by a diff pipeline, that means that the project
and the commit wont point to xmarin/xamarin-macios. We use the URI to
calculate the org and the repo to be passed to the pwh objects.

Fixes https://github.com/xamarin/sdk-insertions/issues/43
2022-11-10 08:11:22 -05:00
Manuel de la Pena 4da68c36ba
[DevOps] Update the way we pass the token to the provisionator task. (#16691) 2022-11-09 18:57:55 -05:00
Rolf Bjarne Kvinge 5eda14f782
[devops] Reset dependencies before adding provisioning profiles. (#16651)
This makes sure we're at the right maccore hash before adding provisioning
profile (in particular we want to be at the hash where the PR branch is at,
not the tip of main (which is the default)).
2022-11-09 19:23:52 +01:00
Manuel de la Pena 527de6d0ab
[DevOps] Pass the yaml resource name since the default is not longer valid. (#16676) 2022-11-09 11:56:47 -05:00
Manuel de la Pena bbecd22e33
[DevOps] Do not use the output var from the azure step for the urls. (#16653) 2022-11-09 08:54:24 -05:00
Manuel de la Pena ee778c0f64
[DevOps] Fix missed variables format. (#16634)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-09 08:52:14 -05:00
Alex Soto ba77d29f4e
[CI] Go back to the stable bots (#16661) 2022-11-09 07:42:12 +01:00
Manuel de la Pena 968ebbf4d3
[DevOps] Fix value of yamlResourceName to use the new resource name. (#16658) 2022-11-08 13:07:13 -05:00
Manuel de la Pena e1ecf77211 [Devops] Fix the tempalte name. There was a merge race. 2022-11-08 12:04:03 -05:00
Manuel de la Pena 6aab509be5
[DevOps] Use the checkout template for the unified pipeline to work. (#16626)
Move to use a template to perform the checkout. The new template allows
to perform the checkout using a resource alias, which later can be used
to use the template outside this repo.

Partial fix for https://github.com/xamarin/sdk-insertions/issues/41

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-11-08 11:58:30 -05:00
Manuel de la Pena 1cb4266ffa
[DevOps] Update statuses urls for the new storage. (#16595) 2022-11-08 11:28:13 -05:00
Manuel de la Pena 805b99aec6 [DevOps] Rename the yaml-templates resources to match the MAUI repo.
In an attempt to unify the build of all the SDKs we need to be rename all shared resources between the CIs to all use the same name.

This commit renames the resource to use the pattern used by MAUI.

Partial fix for xamarin/sdk-insertions#39
2022-11-07 19:37:27 -05:00
Manuel de la Pena 92fe604feb
[DevOps] Allow to set the azure storage to be used via variables. (#16602)
Be ready for possible container changes:

"By failing to prepare, you are preparing to fail."
2022-11-07 09:16:22 -05:00
Manuel de la Pena 2f9e064dbb
[DevOps] Update the version of the provisionator template to deal with the new storage. (#16594) 2022-11-06 18:14:35 -05:00
Rolf Bjarne Kvinge eaa5805b7a
[devops] Only publish enabled platforms to maestro. (#16579)
* Read the enabled platforms from the build configuration.
* Iterate over each platform, and only push the enabled ones to maestro.
* Iterate over each platform again, and only add the enabled ones to the default
  channel (for the current branch).
2022-11-04 15:40:05 +01:00
Rolf Bjarne Kvinge ceaa0171da
Merge net7.0-xcode14.1 into main. (#16555)
This merges .NET 7 + Xcode 14.1 support into main.
2022-11-04 08:36:25 +01:00
Rolf Bjarne Kvinge 2a6023d3a3
[devops] Move logic to store and load the build configuration to disk into shareable PowerShell functions. (#16552)
* This makes it much easier to maintain the code, since it's possible to run it locally.
* Add tests!
* Add a DOTNET_PLATFORMS variable to the build configuration to list all the
  enabled .NET platforms.
* Add INCLUDE_DOTNET_<platform> variables to the build configuration for each
  enabled .NET platform. These new variables will be used in a future pull request.
2022-11-03 22:24:50 +01:00
Rolf Bjarne Kvinge 846c538cd3
[devops] Make publishing binlogs nonfatal. (#16556)
We don't need the binlogs in order to produce a successful build (only to
diagnose a failing build).
2022-11-03 21:22:39 +01:00
Rolf Bjarne Kvinge 581d6b4218 Merge remote-tracking branch 'origin/main' into main-net7.0-xcode14.1 2022-11-03 09:34:32 +01:00
Rolf Bjarne Kvinge 1171587edc
[apidiff] Change to use dl.internalx.com with a GitHub PAT for API reference downloads. (#16548)
Update the download of API references to:

* Use `dl.internalx.com` links instead of `bosstoragemirror.blob.core.windows.net`
  links (the relative path stays the same).
* Require a GitHub PAT in order to download from dl.internalx.com. This PAT
  can either be provided through a file (recommended for local use) or through
  the environment.
* Document these changes.
2022-11-03 09:07:22 +01:00
Rolf Bjarne Kvinge cdc62aeae9 Merge remote-tracking branch 'origin/net7.0-xcode14.1' into main-net7.0-xcode14.1 2022-11-03 08:21:55 +01:00
VS MobileTools Engineering Service 2 1edb55798e
[net7.0-xcode14.1] Update all provisionator call sites to use AUTH_TOKEN_GITHUB_COM (#16519)
This introduces changes to ensure that the Github token is available at all provisionator invocations so that when we need to flip to using dl.internalx.com, there are no breakages.


Backport of #16511

Co-authored-by: cadsit <connor.adsit@gmail.com>
2022-10-31 17:14:34 +01:00