gecko-dev/taskcluster
Connor Sheehan a8c491e89c Bug 1534463: patch run-task to clone from private hgweb mirrors r=tomprince
With tasks able to access the hgmointernal config from a Taskcluster
secret, we can now add functionality to `run-task` to support checking
out from the private hg service. Here we add add a `resolve_checkout_url`
function which takes the base/head repository URLs and determines
whether we should clone from the public or private service, returning
the resolved URL. The function pulls down the secret and checks that
the region the task is executing in is in the set of supported regions.
Then we generate a random number and default to the public service if
the number is lower than our "rate". If all the above conditions are
met, we replace `hg.mozilla.org` with the resolved domain name for the
given region.

We add a call to this function to `collect_vcs_options`, and skip
resolving the private URL if we aren't performing a checkout from
within `run-task`.

Differential Revision: https://phabricator.services.mozilla.com/D25002

--HG--
extra : moz-landing-system : lando
2019-04-11 17:19:36 +00:00
..
ci Bug 1536804 - Add a task for summarising wpt metadata, r=ahal 2019-04-11 16:39:50 +00:00
docker Backed out 4 changesets (bug 1458385) for nightly updates fail. a=backout 2019-04-10 21:09:46 +03:00
docs Bug 1540152 - Run checks done in push-apk in promote-phase, instead of the very last task of the pipeline r=mtabara 2019-04-09 14:56:52 +00:00
scripts Bug 1534463: patch run-task to clone from private hgweb mirrors r=tomprince 2019-04-11 17:19:36 +00:00
taskgraph Bug 1543033 Fix pathing for win64_aarch64_info.txt r=mtabara 2019-04-11 12:11:56 +00:00
.yamllint
mach_commands.py Bug 1488313: [taskgraph] Add options to reuse on-push tasks in cron graphs; r=dustin,aki 2019-03-27 19:34:53 +00:00
moz.build