gecko-dev/python/sites
Connor Sheehan c1c2126fce Bug 1835962: add support for mach try to submit to Lando r=zeid,mach-reviewers,ahochheiden
Add support for submitting stacks of commits to Lando for queueing
on Try, instead of pushing to hg.mozilla.org directly. This patch
implements the Device Code Authorization flow for Auth0, simple changeset
discovery and patch gathering, and submissing to Lando via HTTP POST.

Add a `try.txt` virtualenv site that contains packages from the common
virtualenv as well as the `auth0-python` package for verifying Auth0
JWTs. Use this new virtualenv for `mach try` and related subcommands.
Add a `--push-to-lando` flag that controls whether the push will be made
via the Lando API or using the VCS to hg.mozilla.org directly.

Create a `lando.py` module in the `tryselect` package that handles the
details around submitting to Lando. Authentication is handled by the
Device Code Authorization flow, and the returned access token is saved
to the mozbuild state directory. Auth0 details are added to the `.lando.ini`
file in the repo root, and a `LANDO_TRY_USE_DEV` environment variable can
be set to control submitting to the prod or dev Lando environments.
This module also includes patch stack gathering and discovery via `mozversioncontrol`.

mozversioncontrol's `Repository` subclass is extended with helper functions
to gather patch files from Mercurial and Git. We also add a `try_config_commit`
context manager that creates a temporary commit to hold try syntax commit
messages and/or a `try_task_config.json` file, which is removed from version
control on submission.

The `mach try` cram tests now use a separate virtualenv that must be built
before running, causing unexpected output in the tests. Run `mach try --help`
in the test setup to force the virtualenv to be built before running any
test.

`mach try chooser` would previously install packages for a small web application
from a `requirements.txt` file when run. Install these via the new `try.txt`
site environment instead. The required dependencies are also added to the
`python-test.txt` site since they will cause some tests to fail due to the
missing dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D187641
2023-10-02 14:31:43 +00:00
..
build.txt Bug 1855716 - Move jsonschema, pyrsistent, and pkgutil_resolve_name dependencies back into mach.txt instead of specifying them in individual sites r=mach-reviewers,ahal 2023-09-28 20:42:50 +00:00
common.txt Bug 1855716 - Move jsonschema, pyrsistent, and pkgutil_resolve_name dependencies back into mach.txt instead of specifying them in individual sites r=mach-reviewers,ahal 2023-09-28 20:42:50 +00:00
docs.txt Bug 1855716 - Move jsonschema, pyrsistent, and pkgutil_resolve_name dependencies back into mach.txt instead of specifying them in individual sites r=mach-reviewers,ahal 2023-09-28 20:42:50 +00:00
ipython.txt
lint.txt Bug 1855716 - Move jsonschema, pyrsistent, and pkgutil_resolve_name dependencies back into mach.txt instead of specifying them in individual sites r=mach-reviewers,ahal 2023-09-28 20:42:50 +00:00
mach.txt Bug 1855716 - Move jsonschema, pyrsistent, and pkgutil_resolve_name dependencies back into mach.txt instead of specifying them in individual sites r=mach-reviewers,ahal 2023-09-28 20:42:50 +00:00
perftest-side-by-side.txt Bug 1789229 - Add side-by-side docs r=perftest-reviewers,sparky 2022-09-23 14:33:21 +00:00
perftest-test.txt Bug 1835962: add support for mach try to submit to Lando r=zeid,mach-reviewers,ahochheiden 2023-10-02 14:31:43 +00:00
python-test.txt Bug 1835962: add support for mach try to submit to Lando r=zeid,mach-reviewers,ahochheiden 2023-10-02 14:31:43 +00:00
repackage-deb.txt Bug 1845272 - Add missing module 'redo' to repackage-deb site r=ahal 2023-07-25 16:25:20 +00:00
try.txt Bug 1835962: add support for mach try to submit to Lando r=zeid,mach-reviewers,ahochheiden 2023-10-02 14:31:43 +00:00
upload-generated-sources.txt
vendor.txt Bug 1808732 - Move various dependencies out of the mach site to either the specific site they're needed in (like build, or lint), and/or to common` r=firefox-build-system-reviewers,glandium 2023-07-25 00:24:53 +00:00
watch.txt
webcompat.txt
wpt-interop.txt Bug 1808732 - Move various dependencies out of the mach site to either the specific site they're needed in (like build, or lint), and/or to common` r=firefox-build-system-reviewers,glandium 2023-07-25 00:24:53 +00:00
wpt.txt Bug 1827252 - updating aioquic version to 0.9.21. r=jgraham 2023-07-27 14:05:48 +00:00