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

171 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 97e0e8c3c4 Bug 1860630 - Upgrade zstandard to 0.22. r=firefox-build-system-reviewers,mach-reviewers,sergesanspaille,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D194184
2023-12-13 02:39:24 +00:00
Noemi Erli bf3ce8752b Backed out changeset 83540e45dfb8 (bug 1860630) for causing mach related bustage 2023-12-12 23:00:01 +02:00
Mike Hommey 2aae8fea6a Bug 1860630 - Upgrade zstandard to 0.22. r=glandium CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D194184
2023-12-12 20:11:48 +00:00
Ben Dean-Kawamura aff73c9027 Bug 1867639 - Vendor in new application-services / Glean / UniFFI. r=markh,janerik,supply-chain-reviewers,mach-reviewers,ahal
Updated uniffi-bindgen-gecko-js to work with UniFFI 0.25.2:
- Use `config.toml` to list UniFFI sources.  This makes it easier to
  associate data with them, for example the `crate_name` field that's
  now required to generate the sources.
- Enable the `extern-rustbuffer` feature on `uniffi_core`
- Updated the external types fixture to work around
  https://github.com/mozilla/uniffi-rs/issues/1872

Ran mach vendor and mach cargo vet to update the Rust crates.

Differential Revision: https://phabricator.services.mozilla.com/D195163
2023-12-12 14:13:44 +00:00
ahochheiden da48f565f7 Bug 1843209 - Regenerate the `third_party/python` lockfile with Python `3.8` as the minimum version r=firefox-build-system-reviewers,glandium,mach-reviewers,ahal
If this is not done, the next person to vendor will also make all of the changes in this commit, which is unnecessary noise.

Differential Revision: https://phabricator.services.mozilla.com/D183450
2023-12-12 03:52:01 +00:00
Narcis Beleuzu 18393f328a Backed out 2 changesets (bug 1867639) for causing WR bustages
Backed out changeset b77038bd9fee (bug 1867639)
Backed out changeset cf885f915fdf (bug 1867639)
2023-12-05 22:35:09 +02:00
Ben Dean-Kawamura a889812ec8 Bug 1867639 - Vendor in new application-services / Glean / UniFFI. r=markh,janerik,supply-chain-reviewers,mach-reviewers,ahal
Updated uniffi-bindgen-gecko-js to work with UniFFI 0.25.2:
- Use `config.toml` to list UniFFI sources.  This makes it easier to
  associate data with them, for example the `crate_name` field that's
  now required to generate the sources.
- Enable the `extern-rustbuffer` feature on `uniffi_core`
- Updated the external types fixture to work around
  https://github.com/mozilla/uniffi-rs/issues/1872

Ran mach vendor and mach cargo vet to update the Rust crates.

Differential Revision: https://phabricator.services.mozilla.com/D195163
2023-12-05 19:55:30 +00:00
Andrew Halberstadt 8fbd8f010e Bug 1854327 - [docs] Upgrade Sphinx==6.2.1 + other dependencies, r=firefox-source-docs-reviewers,mach-reviewers,sylvestre,championshuttler,ahochheiden
Also remove dependencies that we don't depend on directly. I assume these were
previously added to get a lockfile of sorts, but maintaining our dependencies'
dependencies manually is an excercise in futility.

Let's forget about locking, and if it becomes a problem implement locking into
mach's sites logic.

Differential Revision: https://phabricator.services.mozilla.com/D195300
2023-12-04 21:26:17 +00:00
Andrew Halberstadt 393672d628 Bug 1867848 - [docs] Stop processing Markdown frontmatter, r=firefox-source-docs-reviewers,necko-reviewers,mach-reviewers,championshuttler,valentin,sylvestre,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D195284
2023-12-04 21:26:13 +00:00
Noemi Erli a08fb1a2d8 Backed out 2 changesets (bug 1867639) for causing wrench bustages CLOSED TREE
Backed out changeset 014768de11ca (bug 1867639)
Backed out changeset 375a5bb63fa7 (bug 1867639)
2023-12-01 23:21:07 +02:00
Ben Dean-Kawamura c34d9f3c2d Bug 1867639 - Vendor in new application-services / Glean / UniFFI. r=markh,janerik,supply-chain-reviewers,mach-reviewers,ahal
Updated uniffi-bindgen-gecko-js to work with UniFFI 0.25.2:
- Use `config.toml` to list UniFFI sources.  This makes it easier to
  associate data with them, for example the `crate_name` field that's
  now required to generate the sources.
- Enable the `extern-rustbuffer` feature on `uniffi_core`
- Updated the external types fixture to work around
  https://github.com/mozilla/uniffi-rs/issues/1872

Ran mach vendor and mach cargo vet to update the Rust crates.

Differential Revision: https://phabricator.services.mozilla.com/D195163
2023-12-01 14:26:03 +00:00
Tom Marble 4bc28aac35 Bug 1682371 - mach skipfails part 2: enable ci r=jmaher,mach-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D195017
2023-11-30 19:38:30 +00:00
Tom Marble 3cf3eee656 Bug 1682371 - mach skipfails part 1: add dependencies r=jmaher,mach-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D193150
2023-11-29 00:12:23 +00:00
Cosmin Sabou f35f3f7628 Backed out changeset 4c5b3ec73a9a (bug 1682371) for python related failures. CLOSED TREE 2023-11-28 01:20:46 +02:00
Tom Marble 476009c507 Bug 1682371 - mach skipfails part 1: add dependencies r=jmaher,mach-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D193150
2023-11-27 23:00:41 +00:00
Cosmin Sabou 720d42893d Backed out 2 changesets (bug 1843209) for python3 related browser accessible failures. CLOSED TREE
Backed out changeset 052214d67a99 (bug 1843209)
Backed out changeset 36c5e6c2819f (bug 1843209)
2023-11-23 02:41:22 +02:00
ahochheiden 02c5e485e8 Bug 1843209 - Regenerate the `third_party/python` lockfile with Python `3.8` as the minimum version r=firefox-build-system-reviewers,glandium,mach-reviewers,ahal
If this is not done, the next person to vendor will also make all of the changes in this commit, which is unnecessary noise.

Differential Revision: https://phabricator.services.mozilla.com/D183450
2023-11-22 20:07:42 +00:00
James Graham 788dec70ad Bug 1865606 - Update ipython for mach python --ipython, r=mach-reviewers,ahal
This is the latest version that still support 3.7.x. The 8.x series initially requires 3.8 and later
3.9. We could perhaps update to a 3.8-requiring version since this isn't used anywhere in automation,
but this version is a conservative choice for now.

Differential Revision: https://phabricator.services.mozilla.com/D194052
2023-11-21 14:46:36 +00:00
Alexandra Borovova 51ac345df1 Bug 1863685 - Update pathes of h2, hpack, hyperframe packages and use vendored version of h2 for raptor and talos r=perftest-reviewers,mach-reviewers,jgraham,sparky
In the scope of the wptserve update (https://bugzilla.mozilla.org/show_bug.cgi?id=1862598), also h2, hpack, hyperframe packages got updated and changed their folder structure, which requires paths to be updated.

Differential Revision: https://phabricator.services.mozilla.com/D193908
2023-11-19 15:30:34 +00:00
Jan-Erik Rediger 48117e62df Bug 1860506 - Update to Glean v55 and glean_parser v10. r=TravisLong,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D192960
2023-11-13 14:29:54 +00:00
Kagami Sascha Rosylight 480ad10a29 Bug 1861659 - Update to mots 0.10.0 r=zeid,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D192076
2023-10-27 17:11:17 +00:00
Mike Hommey 51cedc9e0f Bug 1859997 - Switch manifestparser to toml instead of tomlkit. r=jmaher,ahal,mach-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D191394
2023-10-26 07:30:55 +00:00
Cristina Horotan bd2c9f62b3 Backed out changeset e17da829b210 (bug 1859997) for causing mochitest failures at test_docload_shutdown.html on a CLOSED TREE 2023-10-26 08:59:31 +03:00
Mike Hommey c66a1d80e6 Bug 1859997 - Switch manifestparser to toml instead of tomlkit. r=jmaher,ahal,mach-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D191394
2023-10-25 20:54:17 +00:00
Butkovits Atila 86407ac452 Backed out changeset 7ff55ad72883 (bug 1859997) for causing python related mass failures. CLOSED TREE 2023-10-25 02:02:35 +03:00
Mike Hommey b51e571424 Bug 1859997 - Switch manifestparser to toml instead of tomlkit. r=jmaher,ahal,mach-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D191394
2023-10-24 21:36:23 +00:00
James Graham 54cd5fd930 Bug 1852325 - Support calculating interop scores adjusted for expected failures, r=Sasha,mach-reviewers,ahal
Add an --expected-failures option to `mach wpt-inerop-score`. This
takes the path to a file which has the format:

\# Mark entire test as expected failure
/test/id.html
\# Mark one subtest as expected failure
/another/test/id.html,subtest name

The output is the actual interop score, plus two extra columns, one
giving the fraction of the score accounted for by expected failures,
and one giving the score after accounting for expected failures.

Differential Revision: https://phabricator.services.mozilla.com/D188729
2023-10-23 13:25:07 +00:00
Julien Cristau 65eae6f08c Bug 1858455 - update vendored json-e to 4.5.3 r=mach-reviewers,releng-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D190700
2023-10-12 08:13:23 +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
ahochheiden 869025981e 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
D180501 made the original change that this patch undoes. An earlier
change in that stack inadvertently silently disabled Telemetry, which
hid this issue.

The problem is that `glean` (which we optionally install in the `mach`
site also needs `jsonschema` (and `jsonschema` depends on `pyrsistent`
and `pkgutil_resolve_name`). Since our vendored version was no longer
specified in the `mach.txt` site, it pulled a different version
(`4.19.1`) from the vendored version (`4.17.3`) which causes issues in
the `wpt` site.

Since glean explicitly needs `jsonschema` it never should have been
taken out of the `mach` site, so this patch corrects that mistake.

Differential Revision: https://phabricator.services.mozilla.com/D189553
2023-09-28 20:42:50 +00:00
Connor Sheehan fcfe38a1ef Bug 1854496: update vendored aiohttp/requests and add new dependencies r=firefox-build-system-reviewers,mach-reviewers,ahochheiden
Update `aiohttp` to version 3.8.5 and `requests` to version 2.31.0,
and vendor their respective dependencies. Add all the new dependencies
to the various required site virtualenv requirements files.

Differential Revision: https://phabricator.services.mozilla.com/D188904
2023-09-25 14:22:11 +00:00
Jan-Erik Rediger 8dd4f8a708 Bug 1852921 - Upgrade to Glean v54.0.0 r=chutten,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D188084
2023-09-19 08:18:12 +00:00
Sandor Molnar 1f5dbccdb3 Backed out changeset 1e582a0e5593 (bug 1852921) for causing build bustages 2023-09-19 01:43:08 +03:00
Jan-Erik Rediger a98db88b61 Bug 1852921 - Upgrade to Glean v54.0.0 r=chutten,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D188084
2023-09-18 14:09:18 +00:00
Logan Rosen 0ea7512aa9 Bug 1750450 - update to Sphinx 5.3.0 r=sylvestre,firefox-source-docs-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D187860
2023-09-11 07:16:10 +00:00
Logan Rosen 51f5fcdd75 Bug 1786490 - remove references to vendored pyparsing r=sylvestre,mach-reviewers,ahal,ahochheiden
Not necessary because pyparsing is no longer a dependency of packaging, so it is no longer vendored.

Differential Revision: https://phabricator.services.mozilla.com/D186411
2023-09-06 16:14:30 +00:00
Travis Long aa6cb926b7 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-07 11:02:56 +00:00
Cristina Horotan 29d764fc02 Backed out changeset 672918ecc3bc (bug 1626969) for causing mach failures on a CLOSED TREE 2023-08-04 22:09:05 +03:00
Travis Long de399e3600 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-04 18:41:55 +00:00
Tom Marble b51988220c Bug 1779473 - Add TOML support to manifestparser r=jmaher,ahal
ManifestParser will read TOML files, if present, when use_toml=True
Added tomlkit as a third_party python package
Added poetry-core and tomlkit to pypi (separately as Bug 1845383, Bug 1844787)
Adds TOML test coverage
Adds tomlkit as a dependency of mozharness (in test_archive.py)
Added tomlkit to virtualenv_modules in testing/mozharness/configs/unittests
Removes dependency on six

testing/tools/mach_test_package_initialize.py
- Corrected SEARCH_PATHS

testing/mozharness/mozharness/mozilla/testing/per_test_base.py
- moved `from manifestparser import TestManifest` into function call
  to avoid harness inability to locate the internal artifact
- Removed linter warnings

testing/mozbase/manifestparser/manifestparser/manifestparser.py
- Removed linter warnings
- Updated logger usage pattern
- Simplifed _read logic, refactored get_fp_filename()
- Improve context for `include:` logging message
- Defer `import mozlog` until the point of use

testing/mozbase/manifestparser/manifestparser/toml.py
- Removed linter warnings
- Removed unused logger
- Improved readability of read_toml()

testing/mozbase/manifestparser/manifestparser/ini.py
- Removed linter warnings
- Removed unused logger

testing/mozbase/manifestparser/manifestparser/filters.py
- Removed linter warnings

testing/mozbase/manifestparser/tests/test_chunking.py
- Removed linter warnings

Bumped manifestparser version to 2.2.31

Differential Revision: https://phabricator.services.mozilla.com/D184020
2023-07-27 20:16:19 +00:00
Harshit Sohaney b2e460c833 Bug 1827252 - updating aioquic version to 0.9.21. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D184421
2023-07-27 14:05:48 +00:00
Jan-Erik Rediger 1c2fbc9d73 Bug 1840044 - Update to Glean 53.1.0, UniFFI 0.24.1 and latest application-services. r=TravisLong,nika,markh,supply-chain-reviewers
Update:
  - Glean to v53.1.0
  - UniFFI to v0.24.1
  - application-services to a recent nightly that uses the above
    versions

- Updated `rusqlite` in toolkit/library/rust/shared/Cargo.toml
- Updated `uniffi-bindgen-gecko-js` to work with the new UniFFI.  Also
  updated it's askama version.
- Vetted new cargo dependencies

Ran `mach uniffi generate` to regenerate the code.

Differential Revision: https://phabricator.services.mozilla.com/D181872
2023-07-26 15:34:27 +00:00
ahochheiden d8ef20cc4f Bug 1845365 - Fixed logical error causing arguments without a `-` prefix to be checked as a sub_command, and then causing the actual command's virtualenv not to be selected r=ahal
Also added missing module `redo` to the `wpt` site.

Differential Revision: https://phabricator.services.mozilla.com/D184519
2023-07-25 23:09:11 +00:00
ahochheiden 624f7efa66 Bug 1845272 - Add missing module 'redo' to `repackage-deb` site r=ahal
This was missed in the dependency rework in D180501.

Differential Revision: https://phabricator.services.mozilla.com/D184493
2023-07-25 16:25:20 +00:00
ahochheiden c798320975 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
Now that we selectively load command modules, and activate the command
virtualenv much earlier in the mach process, a lot of the module
dependencies specified in `mach.txt` are no longer necessary there. With
their removal from `mach.txt` they will no longer be automatically
inherited by every site, which reduces potential dependency conflicts
for specific sites.

The `common` site still effectively has the same set of dependencies.
This is the default site that all commands use unless otherwise
specified. Most commands use this site, and going through every command
and seeing if a dependency is or isn't needed, then deciding if or if
not to create a new site for that command made sense was too time
consuming to do here.

Essentially the idea here going forward is that if you're trying to
add/update a new dependency to a command that is currently defaulting to
the `common` site and there is a conflict with one of the dependencies
in `common` you can move your command to a new site specifically for
your command, and you will have the minimal possible set of dependencies
a mach command can have, improving the odds that you can add the
module(s) you need for your command.

Depends on D180500

Differential Revision: https://phabricator.services.mozilla.com/D180501
2023-07-25 00:24:53 +00:00
Sandor Molnar fb1981e4cf Backed out changeset 93b5aead9fb9 (bug 1840044) for causing multiple failures, incl. build bustages CLOSED TREE 2023-07-20 22:00:20 +03:00
Jan-Erik Rediger f74614d6b0 Bug 1840044 - Update to Glean 53.1.0, UniFFI 0.24.1 and latest application-services. r=TravisLong,nika,markh,supply-chain-reviewers
Update:
  - Glean to v53.1.0
  - UniFFI to v0.24.1
  - application-services to a recent nightly that uses the above
    versions

- Updated `rusqlite` in toolkit/library/rust/shared/Cargo.toml
- Updated `uniffi-bindgen-gecko-js` to work with the new UniFFI.  Also
  updated it's askama version.
- Vetted new cargo dependencies

Ran `mach uniffi generate` to regenerate the code.

Differential Revision: https://phabricator.services.mozilla.com/D181872
2023-07-20 17:22:56 +00:00
Andrew Halberstadt 255ffbe3a2 Bug 1844592 - Update vendored taskcluster-taskgraph to 5.7.0, r=taskgraph-reviewers,gbrown,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D181899
2023-07-20 16:20:45 +00:00
Natalia Csoregi c10938a86a Backed out changeset 49a85b3b07e0 (bug 1808732) as per request. a=backout 2023-07-19 17:29:41 +03:00
ahochheiden 4537bb2abc 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
Now that we selectively load command modules, and activate the command
virtualenv much earlier in the mach process, a lot of the module
dependencies specified in `mach.txt` are no longer necessary there. With
their removal from `mach.txt` they will no longer be automatically
inherited by every site, which reduces potential dependency conflicts
for specific sites.

The `common` site still effectively has the same set of dependencies.
This is the default site that all commands use unless otherwise
specified. Most commands use this site, and going through every command
and seeing if a dependency is or isn't needed, then deciding if or if
not to create a new site for that command made sense was too time
consuming to do here.

Essentially the idea here going forward is that if you're trying to
add/update a new dependency to a command that is currently defaulting to
the `common` site and there is a conflict with one of the dependencies
in `common` you can move your command to a new site specifically for
your command, and you will have the minimal possible set of dependencies
a mach command can have, improving the odds that you can add the
module(s) you need for your command.

Depends on D180500

Differential Revision: https://phabricator.services.mozilla.com/D180501
2023-07-19 05:09:01 +00:00