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

807 Коммитов

Автор SHA1 Сообщение Дата
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
Connor Adsit 87e9ae6718
Update all provisionator call sites to use AUTH_TOKEN_GITHUB_COM (#16511)
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.
2022-10-31 16:19:14 +01:00
Rolf Bjarne Kvinge 65d34e53a3
[devops] Use the right environment variables to determine which platforms are included. (#16509) 2022-10-31 11:38:28 +01:00
Rolf Bjarne Kvinge 1956cd6ee9
[devops] Run shellcheck on all files, and fix any issues. (#16508) 2022-10-31 09:12:16 +01:00
Rolf Bjarne Kvinge 37984502ee
[devops] Only run tests on other macOS versions in certain scenarios. (#16385)
* Don't run these tests if neither macOS nor Mac Catalyst is enabled.
* Honor `skip-all-tests` to skip these tests.
* Change the `skip-packaged-xamarin-mac-tests` label to `skip-packaged-macos-tests` since Xamarin.Mac is disappearing soon.
* Add a `run-packaged-macos-tests` to mirror `skip-packaged-macos-tests` (this is useful when using `skip-all-tests` to only run these tests).
2022-10-28 08:05:15 +02:00
Rolf Bjarne Kvinge de5a475f9e
[devops] Continue if there are any errors gathering agent logs. (#16444) 2022-10-25 22:49:28 +02:00
Rolf Bjarne Kvinge 9954ad217a
[devops] Fix crash report collection when there's nothing to collect. (#16405)
Fix crash report collection to not try to zip up the
~/Library/Logs/DiagnosticReports directory if there's nothing in it, because
it creates a warning in Azure DevOps:

    + zip -9rj /Users/builder/azdo/_work/2/s/crash-reports.zip /Users/builder/Library/Logs/DiagnosticReports
    zip error: Nothing to do! (try: zip -9rj /Users/builder/azdo/_work/2/s/crash-reports.zip . -i /Users/builder/Library/Logs/DiagnosticReports)
    ##[error]Bash exited with code '12'.

Also remove some debug spew, and make it possible to create a crash report
collection locally by writing the zip file to the current directory if
SYSTEM_DEFAULTWORKINGDIRECTORY isn't set.
2022-10-24 11:41:48 +02:00
Rolf Bjarne Kvinge 88e893d129
[devops] Remove dead code. (#16406) 2022-10-24 11:34:34 +02:00
Rolf Bjarne Kvinge 2c75e2c105
[devops] Simplify code a bit to install qa provisioning profiles. (#16407) 2022-10-24 11:28:31 +02:00
Rolf Bjarne Kvinge 95429d3aa2
[devops] Increase bash compatibility and clean variables a bit. (#16395)
Remove support/logic for the following labels:

* run-internal-tests
* skip-external-tests
* trigger-device-tests

because they didn't actually do anything.

Also use underscores instead of dashes in output variables, because these
variables are also exported as environment variables, and environment variable
names can't contain dashes (bash can't access them).
2022-10-21 10:06:50 +02:00
Rolf Bjarne Kvinge 24f1fc18ed Merge remote-tracking branch 'origin/xcode14.1' into net7.0-xcode14.1 2022-10-20 19:30:22 +02:00
Rolf Bjarne Kvinge 778baa731f
[devops] Fix a couple of typos. (#16381) 2022-10-19 14:41:29 +02:00
Rolf Bjarne Kvinge 40f4d778de
[devops] Add 'net8.0' and 'release-test/*' as release branches. (#16383)
This is a follow-up to dbcf1cadf8.
2022-10-19 14:40:15 +02:00