Commit graph

8208 commits

Author SHA1 Message Date
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
Sandor Molnar
c8085bc124 Backed out 4 changesets (bug 1805427) for causing xpc failures in toolkit/components/extensions/test/xpcshell/test_ext_scripting_persistAcrossSessions.js CLOSED TREE
Backed out changeset 9231b82f6a8b (bug 1805427)
Backed out changeset 9308ede8e265 (bug 1805427)
Backed out changeset b1c44a7274c5 (bug 1805427)
Backed out changeset 39a8c4bff42f (bug 1805427)
2022-12-15 18:43:29 +02:00
Chris H-C
37e15535e6 Bug 1805427 - Update Glean to 52.0.0, uuid to 1.0 r=glandium,janerik,webdriver-reviewers,supply-chain-reviewers
Depends on D164603

Differential Revision: https://phabricator.services.mozilla.com/D164604
2022-12-15 14:04:54 +00:00
Stanca Serban
404b6563bb Backed out changeset 311eb6a3a3ed (bug 1779822) for coverage related failures. CLOSED TREE 2022-12-15 16:25:29 +02:00
andrej
3bebb4742f 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 13:54:10 +00:00
Alex Ionescu
3288f620ff Bug 1805143 - Remove output kwarg before calling side by side r=perftest-reviewers,sparky,afinder
Differential Revision: https://phabricator.services.mozilla.com/D164437
2022-12-15 12:18:04 +00:00
Iulian Moraru
4a67cb0362 Backed out changeset 088a627e5772 (bug 1805143) as per Alexandru Ionescu's request. CLOSED TREE 2022-12-14 20:38:58 +02:00
Alex Ionescu
0eef028f67 Bug 1805143 - Remove output kwarg before calling side by side r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D164437
2022-12-13 13:30:05 +00:00
Francesco Lodolo (:flod)
ac2d5ca725 Bug 1805297 - Update name and description for language packs to fit within manifest.json limits, r=eemeli
manifest.json has character limits for name (45) and description (132).

Language packs now use:

name: Language: {native_name} ({english_name})
description: {app} Language Pack for {native_name} ({locale_code}) – {english_name}

The English name is omitted if identical to the native name, and it's omitted from the name if the resulting name exceeds the character limit.

Longer name or description are always truncated.

Differential Revision: https://phabricator.services.mozilla.com/D164535
2022-12-13 10:12:06 +00:00
Sylvestre Ledru
baca9eb94e Bug 1802689 - cargo.toml: more consistency in the author names
Differential Revision: https://phabricator.services.mozilla.com/D163769
2022-12-13 09:14:44 +00:00
Mike Hommey
5fd296e7b8 Bug 1804595 - Update osclientcerts to libloading 0.7. r=keeler,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164177
2022-12-13 00:37:50 +00:00
Mike Hommey
03ce56dee2 Bug 1804570 - Update alsa crate to 0.7. r=gsvelto,supply-chain-reviewers
We also artificially update nix to 0.25 in preparation for bug 1793784.

Differential Revision: https://phabricator.services.mozilla.com/D164165
2022-12-13 00:24:03 +00:00
Mike Hommey
22241fa811 Bug 1804588 - Add a dependency on symbols files for libraries that have one. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D164168
2022-12-08 04:37:39 +00:00
Alex Ionescu
821423400b Bug 1804487 - Update perftest_tools version r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D164122
2022-12-07 20:18:14 +00:00
Mark Banner
e52e50e446 Bug 1804479 - Add jsm and sjs extensions as associated with JavaScript for VSCode. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D164097
2022-12-07 18:45:09 +00:00
Otto Länd
511e314091 No bug: apply code formatting via Lando
# ignore-this-changeset
2022-12-07 18:10:55 +00:00
Tom Ritter
531fc4de6f Bug 1804298: mach vendor support for an alternate, more terse way of individual-files r=andi
If we want to use individual-files for a lot of files, all
of which are going the same place, it is very verbose and
repetitive.  Create an alternate, mutually-exclusive way of
specifying individual-files in a moz.yaml

Differential Revision: https://phabricator.services.mozilla.com/D163969
2022-12-07 18:08:13 +00:00
Tom Ritter
ef24f8ed54 Bug 1804298: mach vendor Fixes/Minor Improvements r=andi
- make sure the patch files are sorted before we apply them
 - strip trailing slashes from the repo url before we add more
 - Allow the individual-files action to be used by individual-files

Differential Revision: https://phabricator.services.mozilla.com/D163968
2022-12-07 18:08:12 +00:00
Tom Ritter
8efd64bdbf Bug 1700396: Bump Updatebot version for phabricator fixes r=andi
Correctly handle group phab reviewers and submit two separate
phabricator revisions for two patches

Differential Revision: https://phabricator.services.mozilla.com/D163872
2022-12-07 17:20:54 +00:00
Arthur Carcano
aac035a5dd Bug 1803557 - Refactor cargo subcommands in mach_commands.py. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D163588
2022-12-07 06:07:22 +00:00
Heitor Neiva
b71d7b535b Bug 1801381 - Disable run_configure for mac repackaging r=glandium
Switches from `buildconfig.substs` to `bootstrap_toolchain` for the repackage job
Refactors mozpack/dmg to not depend on the environment; Moves path resolution of tools up to `mozbuild.action.{make_dmg|unpack_dmg}`
Update syntax to python 3.7+

Differential Revision: https://phabricator.services.mozilla.com/D163129
2022-12-06 21:11:43 +00:00
Đăng Tú
dd3c001425 Bug 1803958 - Add bootstrap support for Tuxedo OS. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D163791
2022-12-05 23:19:42 +00:00
Gabriel Bustamante
929a011067 Bug 1799233 - Add tasks to repack Firefox nightly builds into Debian Packages r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D161743
2022-12-05 21:10:07 +00:00
Eemeli Aro
fc948aab17 Bug 1802128 - Refactor langpack names & descriptions. r=nalexander,fluent-reviewers,flod
The JSON data added here is derived from mozIntl.sys.mjs for the native names,
and Intl.DisplayNames for the English names. Once it becomes possible to
synchronously import JSON from JS code, this data should be merged with that
used by mozIntl.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D163049
2022-12-05 17:15:53 +00:00
Eemeli Aro
c790b3f054 Bug 1802128 - Migrate langpack defines.inc files to Fluent. r=nalexander,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D163048
2022-12-05 17:15:53 +00:00
Cristian Tuns
3ef28fd16c Backed out changeset 93a99f808df6 (bug 1799233) for causing endless exceptions 2022-12-01 18:39:18 -05:00
Gabriel Bustamante
4da6f3c01b Bug 1799233 - Add tasks to repack Firefox nightly builds into Debian Packages r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D161743
2022-12-01 21:26:53 +00:00
Norisz Fay
1235811770 Backed out changeset 632f9747a11e (bug 1801381) for causing build bustages on OSX. CLOSED TREE 2022-12-01 12:01:04 +02:00