Commit graph

8235 commits

Author SHA1 Message Date
William Durand
03c58d765c Bug 1810734 - Use browser_specific_settings instead of applications in generated langpacks. r=flod
Differential Revision: https://phabricator.services.mozilla.com/D167019
2023-01-17 13:58:02 +00:00
Mike Hommey
4e0c7ddead Bug 1810014 - Move macOS SDK toolchain task to linux workers. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D166724
2023-01-16 21:23:44 +00:00
Chris H-C
8f0cfe819b Bug 1805427 - Update Glean to 52.0.0 r=glandium,janerik,webdriver-reviewers,supply-chain-reviewers
Depends on D164603

Differential Revision: https://phabricator.services.mozilla.com/D164604
2023-01-16 18:51:18 +00:00
Geoff Brown
20db8cba01 Bug 1808968 - Update tooltool.py with changes from github r=bhearsum
Apply missing github commits to mozilla-central tooltool.py:

    868faf0a2c
    5f35be2b4f
    117e8c074e

This is the first part of a multi-part effort to bring all the tooltools in sync.

Differential Revision: https://phabricator.services.mozilla.com/D166210
2023-01-16 15:06:38 +00:00
andrej
f241d92237 Bug 1808032 - Change architecture to arm64 and add focus to mozperftest android startup for CVFF and CVNS. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D165748
2023-01-16 14:21:24 +00:00
Mike Hommey
8e5df06970 Bug 1782344 - Avoid getting ccache stats when ccache is not enabled. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166635
2023-01-13 00:47:57 +00:00
Mike Hommey
972d84c63d Bug 1782344 - With ccache 3.7+, process the output of --print-stats rather than -s. r=firefox-build-system-reviewers,ahochheiden
--print-stats outputs machine-parsable data, with all fields present
even when they are 0.

Differential Revision: https://phabricator.services.mozilla.com/D166634
2023-01-13 00:47:57 +00:00
Mike Hommey
48c0f7642b Bug 1782344 - Avoid the duplication of stats_zeroed in CCacheStats serialization. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166633
2023-01-13 00:47:57 +00:00
Mike Hommey
9d57967abf Bug 1782344 - Fix the handling of "called for link" data in ccache 4.4+. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166632
2023-01-13 00:47:56 +00:00
Mike Hommey
2cef595382 Bug 1782344 - Remove cache directory and configs from CCacheStats. r=firefox-build-system-reviewers,ahochheiden
The info is unused and not part of the ccache --print-stats output that
we're going to use shortly.

Differential Revision: https://phabricator.services.mozilla.com/D166631
2023-01-13 00:47:56 +00:00
Mike Hommey
708b0943a7 Bug 1782344 - Test the data CCacheStats gathers. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166630
2023-01-13 00:47:55 +00:00
alwu
0fd970dca3 Bug 1809983 - part1 : split media browser tests from mochitest-browser-chrome into mochitest-browser-media. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D166705
2023-01-13 00:04:13 +00:00
Mike Hommey
b2b34e7e24 Bug 1809588 - Use python3 for tooltool. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D166510
2023-01-11 23:10:50 +00:00
Arthur Carcano
0a7977a9f9 Bug 1804280 - Refactor cargo subcommands in rust.mk. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D163956
2023-01-11 04:12:41 +00:00
Gabriele Svelto
2075a2a0a9 Bug 1793784 - Replace the minidump_writer_linux crate with the minidump-writer crate r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158669
2023-01-10 22:14:30 +00:00
Sylvestre Ledru
62b73ca40c Bug 1750450 - Doc: use the new system for python deps r=firefox-source-docs-reviewers,ahal
Co-author: Andrew Halberstadt <ahal@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D153483
2023-01-05 14:32:11 +00:00
Makoto Kato
4ebfb48f7e Bug 1807522 - Upgrade build-tools to 33.0.1. r=geckoview-reviewers,calu
When upgrading SDK to 33, I cannot build GeckoView on Windows workstation
during processing AIDL due to https://issuetracker.google.com/issues/236167971
that is fixed by 33.0.1.

Differential Revision: https://phabricator.services.mozilla.com/D165514
2023-01-05 02:56:32 +00:00
Andrew Halberstadt
0800a44b72 Bug 1808609 - Ignore non .txt files in test_site_compatibility.py, r=ahochheiden
This ensures we aren't accidentally mistaking e.g, .rej files as valid sites.

Depends on D165998

Differential Revision: https://phabricator.services.mozilla.com/D165999
2023-01-05 01:39:00 +00:00
Andrew Halberstadt
3c786153bd Bug 1808609 - Improve error message in 'test_site_compatibility.py', r=ahochheiden
This should make it a little easier to understand what's happening.

Differential Revision: https://phabricator.services.mozilla.com/D165998
2023-01-05 01:38:59 +00:00
Lukáš Lipinský
b506899cc4 Bug 1802954 - Add bootstrap support for Oracle Linux. r=ahochheiden,firefox-build-system-reviewers
I’ve factored out Fedora-derived distros in a fashion similar to
how Debian-based distros are handled. [Orabug: 34636427]

Differential Revision: https://phabricator.services.mozilla.com/D164218
2023-01-04 21:13:39 +00:00
Sylvestre Ledru
8c1ca7d7bc Bug 1808288 - ride along: lint: fix some windows CR r=linter-reviewers,marco
Depends on D165849

Differential Revision: https://phabricator.services.mozilla.com/D165850
2023-01-03 14:54:40 +00:00
Sylvestre Ledru
7b6a1139ad Bug 1807901 - Fix typos in some documentation directories r=linter-reviewers,andi DONTBUILD
Fix some typos in new directories

Differential Revision: https://phabricator.services.mozilla.com/D165660
2023-01-02 16:07:49 +00:00
Francesco Lodolo (:flod)
efec11c9bd Bug 1807794 - Add Friulian (fur) and Sardinian (sc) to language names in mozIntl and language pack metadata, r=eemeli
Differential Revision: https://phabricator.services.mozilla.com/D165601
2023-01-02 13:01:57 +00:00
Sylvestre Ledru
e2b52a1324 Bug 1807899 - Remove the trailing whitespace and Windows CR on md files r=linter-reviewers,necko-reviewers,marco,jesup
Differential Revision: https://phabricator.services.mozilla.com/D165662
2022-12-30 15:23:21 +00:00
Mike Hommey
4155b95657 Bug 1807872 - Make tarball generation more deterministic across versions of python. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D165647
2022-12-30 08:21:31 +00:00
ahochheiden
d9a1144d28 Bug 1806736 - Wrap .egg-info deletion in a try to handle the scenario where a VCS isn't installed r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D165576
2022-12-29 11:39:40 +00:00
Mike Hommey
c98d352787 Bug 1807761 - Bump minimum Rust version to 1.65. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D165580
2022-12-28 22:01:45 +00:00
Marco Castelluccio
d766c93a2a Bug 1801836 - Remove no longer necessary 'from __future__' imports under python/. r=linter-reviewers,glandium,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165398
2022-12-23 01:26:15 +00:00
Randell Jesup
00c1414f9c Bug 1806698: make --webtransport-h3 work in wpt tests r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D165181
2022-12-22 18:51:57 +00:00
Mike Hommey
58edb2e123 Bug 1790816 - Undo non-isort changes to vendor_rust.py r=rkraesig
For some reason, the landing of the isort changes undid the changes to
vendor_rust.py from bug 1804178.

Differential Revision: https://phabricator.services.mozilla.com/D165358
2022-12-22 01:42:39 +00:00
Mike Hommey
703a424db9 Bug 1806763 - Remove remaining dependency on nom 6. r=emilio,supply-chain-reviewers
The last use is glsl, waiting for a new release with
https://github.com/phaazon/glsl/pull/154 merged.

Differential Revision: https://phabricator.services.mozilla.com/D165250
2022-12-21 21:18:29 +00:00
Sebastian Hengst
4e86499272 Bug 1806642 - update in-tree references to 'Lint and Formatting' bugzilla component. r=Standard8
Move from 'Firefox Build System to 'Developer Infrastructure' was in
bug 1784867 on the server side.

Differential Revision: https://phabricator.services.mozilla.com/D165158
2022-12-21 14:38:47 +00:00
Norisz Fay
f0a6ea7c7e Bug 1790816 - Fix lint failures r=fix 2022-12-21 14:14:59 +02:00
Marco Castelluccio
54ee6457a1 Bug 1790816 - Reformat python/ with isort. r=#linter-reviewers CLOSED TREE
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162656
2022-12-21 09:56:15 +00:00
Otto Länd
447dbb75fa Bug 1804178, 1804178, 1804178, 1804178, 1804178, 1804178: apply code formatting via Lando
# ignore-this-changeset
2022-12-20 23:07:41 +00:00
Ray Kraesig
a3fb6515cf Bug 1804178 - [6/6] Switch from pytoml to toml in (almost) all other contexts r=firefox-build-system-reviewers,releng-reviewers,glandium,ahal
Convert all other imports of `pytoml` within mozilla-central to imports
of `toml`.

As both libraries patterned their API on that of the Python standard-
library module `json`, this is mostly a straight replace, with two
caveats:

  * pytoml's exception messages when loading a file provide the file
    name; toml's do not. Some additional machinery has been added or
    repurposed in a few places to ensure that the relevant filename is
    printed.

  * In `python_lockfile.py`, the order of arguments to `dump` needed to
    be reversed. (`toml` follows `json` in this; `pytoml` differs.)

This patchset does not remove pytoml from `requirements.in`, as `pytoml`
is still used by `compare-locales`.

Differential Revision: https://phabricator.services.mozilla.com/D164155
2022-12-20 23:01:26 +00:00
Ray Kraesig
b83ea311b7 Bug 1804178 - [5/6] Remove regex-based license-scraping hackery r=glandium
`pytoml` could not handle single-quoted keys in table names, as these
were added in TOML v0.5.0; but `toml` has no problem with them.

Remove regex-based scraping of Cargo.toml files to find a crate's
associated license, replacing it with `toml.load`.

(This has been manually tested to ensure that dependencies with
noncompliant licenses or unrecognized license files continue to be
rejected.)

Differential Revision: https://phabricator.services.mozilla.com/D164154
2022-12-20 23:01:26 +00:00
Ray Kraesig
665483f331 Bug 1804178 - [4/6] Remove pytoml output postprocessing r=glandium
The postprocessing phase that cleaned up `pytoml`'s output has little
effect on `toml`'s output, which is already largely clean. Remove the
additional code.

Differential Revision: https://phabricator.services.mozilla.com/D164153
2022-12-20 23:01:25 +00:00
Ray Kraesig
2ba26991d4 Bug 1804178 - [3/6] Remove explicit sorting of TOML output r=glandium
Remove explicit sorting, as this is no longer needed to guarantee
determinism as of Python 3.6 (our minimum-supported version).

(This is a separate commit solely to make it clear that the reordering
of `.cargo/config.in` is indeed merely a reordering and contains no
hidden functional changes.)

Differential Revision: https://phabricator.services.mozilla.com/D164152
2022-12-20 23:01:25 +00:00
Ray Kraesig
a6f024ad59 Bug 1804178 - [2/6] Convert use of pytoml to toml in vendor_rust.py r=glandium
Replace `pytoml` with `toml` in `vendor_rust.py`.

This is a minimal substitution that preserves existing behavior (along
with a flake8 lint pass). Further simplification will follow in upcoming
commits.

In particular, we temporarily alter `recursive_sort` to ensure that the
output of `pytoml` and `toml` are identical, rather than merely
equivalent. (`pytoml` would reverse the ordering of keys in some
contexts.)

Differential Revision: https://phabricator.services.mozilla.com/D164151
2022-12-20 23:01:25 +00:00
Ray Kraesig
5a08e0d0b1 Bug 1804178 - [1/6] Add toml to mach requirements r=firefox-build-system-reviewers,glandium
The `pytoml` library is abandoned, and does not support TOML v0.5.0,
which Cargo uses. This prevents mach from properly parsing many
Cargo.toml files.

Include the `toml` library as a slightly more modern and currently-
maintained alternative for use in mach.

Supply-chain notes:
  - toml v0.10.2 is MIT-licensed, which is an approved MPL-compatible
    license.
  - I have personally audited this version of `toml` and consider it
    "safe-to-run", as much as any Python code can be: other than opening
    and reading/writing a file when specifically requested via `load`/
    `dump` respectively, it performs only string manipulation and
    ordinary object creation.

Differential Revision: https://phabricator.services.mozilla.com/D164150
2022-12-20 23:01:24 +00:00
Cosmin Sabou
f4b3682389 Backed out changeset 65695f7ddf1d (bug 1750450) for causing python3 failures. 2022-12-20 17:03:20 +02:00
Sylvestre Ledru
3929f16a60 Bug 1750450 - Doc: use the new system for python deps r=firefox-source-docs-reviewers,ahal
+ update sphinx-js to 3.2.1

Differential Revision: https://phabricator.services.mozilla.com/D153483
2022-12-20 12:53:56 +00:00
Mike Hommey
d96f141e56 Bug 1806198 - Disambiguate gzip on gentoo. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D164956
2022-12-19 21:51:45 +00:00
Eemeli Aro
685f5b8677 Bug 1805319 - Fix typo in webrtc indicator message id. r=flod,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165004
2022-12-19 10:45:24 +00:00
Eemeli Aro
4db1f81ea9 Bug 1804425 - Drop python/devtools/migrate-l10n/ as unused. r=flod,devtools-reviewers,jdescottes
This utility script for l10n migrations was added six years ago in bug 1294186,
but is no longer necessary or used. For clarity, it should be removed.

Differential Revision: https://phabricator.services.mozilla.com/D164049
2022-12-19 09:10:07 +00:00
Emily McMinn
6974b9c7b1 Bug 1790387 - A11y improvements for the Feature Callout step indicator r=aminomancer,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D159629
2022-12-15 21:48:42 +00:00
Connor Sheehan
683e5819ed Bug 1805804: avoid linting the tree for support-files changes if --fix is passed r=marco
Changing a linter's `support-files` causes that linter to
run against the entire tree. This is to avoid introducing
a regression in files that weren't touched, which would
be confusing for developers who trusted `--outgoing` to
catch their regressions.

Turn this behaviour off when `--fix` is passed as a linter
argument so these regressions aren't also fixed tree-wide.
Move the logic for tree-wide linting into a function
`should_lint_entire_tree` and add tests for the behaviour
in `test_roller.py`.

Differential Revision: https://phabricator.services.mozilla.com/D164761
2022-12-15 16:40:09 +00:00
andrej
ef5d615597 Bug 1779822 - Create tests and CI for mozperftest later for Fenix and nightly startup benchmarks. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D164130
2022-12-15 15:51:56 +00:00
andrej
5a7a352559 Bug 1779822 - Create new mozperftest later for Fenix and nightly startup bechmarks. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D154126
2022-12-15 15:51:56 +00:00