Commit Graph

8 Commits

Author SHA1 Message Date
Connor Sheehan
48093e83dd Bug 1871425: re-enable autoformatting after disabling WPT linter r=zeid DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D203191
2024-02-29 21:22:27 +00:00
Connor Sheehan
7ce68fd0c5 Bug 1871425: disable Lando autoformatting r=TYLin DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D198044
2024-01-09 17:59:10 +00:00
Connor Sheehan
51f73dc9ce Bug 1871425: re-enable Lando autoformatting after WPT linter fixes r=zeid DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D197682
2024-01-04 18:52:28 +00:00
Connor Sheehan
3341c015a7 Bug 1871425: disable Lando's automated code formatting r=TYLin DONTBUILD
Disable automated code formatting in Lando while we debug issues with
the WPT linter failing on seemingly unrelated patches.

Differential Revision: https://phabricator.services.mozilla.com/D197130
2023-12-22 04:02:16 +00:00
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
Connor Sheehan
da978990d0 Bug 1801965: update .lando.ini file for new autoformatting implementation r=zeid DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D162758
2022-11-22 20:19:59 +00:00
Zeid Zabaneh
581f8dc781 Bug 1740791: temporarily disable autoformatting r=sheehan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D131254
2021-11-16 16:49:41 +00:00
Connor Sheehan
553fd4e3fe Bug 1714470: add .lando.ini file r=zeid DONTBUILD
Used to control auto-formatting, at the moment limited to black.
The current fileset pattern matches all `.py` files in the `python/`
directory and no files in any `third_party` directory.

Differential Revision: https://phabricator.services.mozilla.com/D117014
2021-06-08 12:52:25 +00:00