mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
a8c491e89c
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 |
||
---|---|---|
.. | ||
ci | ||
docker | ||
docs | ||
scripts | ||
taskgraph | ||
.yamllint | ||
mach_commands.py | ||
moz.build |