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

7438 Коммитов

Автор SHA1 Сообщение Дата
Iulian Moraru 7d17fd1fe9 Merge autoland to mozilla-central. a=merge 2021-12-19 23:48:35 +02:00
Csoregi Natalia b7f8199d2d Backed out changeset de9e103ffea4 (bug 1732946) for causing mach issues. a=backout 2021-12-19 23:02:13 +02:00
Geoff Brown 2b9342ed34 Bug 1744091 - [mach run] Run with fission enabled by default on desktop; r=releng-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D134215
2021-12-18 22:33:51 +00:00
Mike Hommey e6e627c61f Bug 1746299 - Remove broken support for --enable-project=extensions and --enable-extensions. r=Gijs,firefox-build-system-reviewers,mhentges
The former is broken because of a lack of a app.mozbuild file and has
been broken for years.

The latter doesn't do anything useful outside --enable-project=extensions
because all the subdirectories of extensions/ are already covered by
other flags (or always used):
- auth, via --enable-negotiateauth (default on)
- permissions, always
- pref, via --enable-pref-extensions (default on)
- spellcheck, always
- universalchardet, via --enable-universalchardet (default on)

Also, nothing sets MOZ_EXTENSIONS_DEFAULT anymore.

Differential Revision: https://phabricator.services.mozilla.com/D133970
2021-12-18 00:32:34 +00:00
Sandor Molnar eac95b4a93 Backed out 6 changesets (bug 1746539, bug 1746541, bug 1746544, bug 1746540, bug 1746542, bug 1746299) for causing android build bustages in cutils/properties. CLOSED TREE
Backed out changeset 9352292fa327 (bug 1746544)
Backed out changeset 3cc761d90071 (bug 1746542)
Backed out changeset 8d8fc11e8012 (bug 1746541)
Backed out changeset 5f53612aad1b (bug 1746540)
Backed out changeset afb601202b24 (bug 1746539)
Backed out changeset 90027c44c9af (bug 1746299)
2021-12-18 01:28:06 +02:00
Mitchell Hentges 11fc69125a Bug 1732946: Adjust sdist-vendored detection to be more aligned with pip r=ahal
Pip is able to detect unpacked sdists because they have a `.egg-info`
directory, *not* because they have a top-level `PKG-INFO` file.

This is confirmed by the `MarkupSafe` case, where pip can see the
package in `third_party/python/MarkupSafe/src`, even though there's no
`PKG-INFO` at that depth.

Differential Revision: https://phabricator.services.mozilla.com/D126924
2021-12-17 23:00:25 +00:00
Mike Hommey 26b16bad6e Bug 1746299 - Remove broken support for --enable-project=extensions and --enable-extensions. r=Gijs,firefox-build-system-reviewers,mhentges
The former is broken because of a lack of a app.mozbuild file and has
been broken for years.

The latter doesn't do anything useful outside --enable-project=extensions
because all the subdirectories of extensions/ are already covered by
other flags (or always used):
- auth, via --enable-negotiateauth (default on)
- permissions, always
- pref, via --enable-pref-extensions (default on)
- spellcheck, always
- universalchardet, via --enable-universalchardet (default on)

Also, nothing sets MOZ_EXTENSIONS_DEFAULT anymore.

Differential Revision: https://phabricator.services.mozilla.com/D133970
2021-12-17 22:52:09 +00:00
Nicolas Chevobbe 4a5cfe7c65 Bug 1745932 - [devtools] Move highlighters.properties to fluent. r=fluent-reviewers,flod,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D133741
2021-12-17 16:19:04 +00:00
Mike Hommey 73230b8c3e Bug 1744234 - Bump minimum Rust version to 1.57. r=firefox-build-system-reviewers,andi
Also update the table of Firefox requirements. It's worth noting that I
actually upgraded to 1.57 earlier than I should have (too close to
freeze), but what is done is done.

Differential Revision: https://phabricator.services.mozilla.com/D134124
2021-12-17 08:37:39 +00:00
Mike Hommey d94d03bafc Bug 1744886 - Forbid `mach vendor rust` vendoring some crates. r=firefox-build-system-reviewers,andi
Also fail when Cargo.toml patches end up unused.

Differential Revision: https://phabricator.services.mozilla.com/D133849
2021-12-17 01:16:06 +00:00
Meg Viar edc048fafa Bug 1735456 - about:welcome: Theme radio buttons have no text in NVDA browse mode r=emcminn,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D133347
2021-12-16 19:01:55 +00:00
Mike Hommey 382aa3d467 Bug 1415595 - Remove support for different hardening flags in js/. r=firefox-build-system-reviewers,andi
They don't differ anymore.

Differential Revision: https://phabricator.services.mozilla.com/D133859
2021-12-15 23:56:33 +00:00
Marian-Vasile Laza 18ee06e0b2 Backed out 2 changesets (bug 1744886) for causing build bustages. CLOSED TREE
Backed out changeset 6453423359d0 (bug 1744886)
Backed out changeset 7383efc30b77 (bug 1744886)
2021-12-16 02:13:41 +02:00
Mike Hommey 54014d3daf Bug 1744886 - Forbid `mach vendor rust` vendoring some crates. r=firefox-build-system-reviewers,andi
Also fail when Cargo.toml patches end up unused.

Differential Revision: https://phabricator.services.mozilla.com/D133849
2021-12-15 21:40:23 +00:00
Mitchell Hentges 513d1cda6a Bug 1745508: Update reference to checkout-specific mach venv r=ahal
The regressing bug 1739067 forgot to update this reference to the
Mach venv. As part of this, the logic for resolving the
"checkout-specific state_dir" was updated to be smarter with
Windows case-insensitive paths.

Differential Revision: https://phabricator.services.mozilla.com/D133547
2021-12-15 16:45:42 +00:00
Mitchell Hentges 7836ac8a11 Bug 1744713: Manually add "xpcshell" to the sys.path for perftests r=sparky
Though _most_ of the old paths that used to be defined in
`mozperftest/runner.py` exist in `common_virtualenv_packages.txt`,
"xpcshell" was not because it's put in a different location depending on
whether the source directory is sourced from the "target.xpcshell.tests"
artifact or from VCS directly.

As part of this change, I've verified that all of the other
path changes in D132503 are fulfilled by the "mach" site.

Differential Revision: https://phabricator.services.mozilla.com/D133215
2021-12-15 16:29:00 +00:00
Mitchell Hentges a119b062da Bug 1744713: Don't resolve external site-packages dirs multiple times r=ahal
I originally thought that the result of `all_site_packages_dirs()` would
be reused while building the new `sys.path` list, but some local
debugging on Windows was affected by brutally slow start-times - which
was caused by these lines.

Looking back, it makes sense now: Python doesn't know that the value can
be reused, so it's recalculating the entire
predicate (`path not in $dirs_fn()`) every time.

Differential Revision: https://phabricator.services.mozilla.com/D133214
2021-12-15 16:28:59 +00:00
Eemeli Aro 18caf861b1 Bug 1733490 - Migrate CSP error messages from extensions.properties to Fluent. r=zbraniecki,mixedpuppy,flod
The actual messages were migrated using https://github.com/mozilla/properties-to-ftl,
while C++ changes use patterns established by https://bugzilla.mozilla.org/show_bug.cgi?id=1742106.

Differential Revision: https://phabricator.services.mozilla.com/D131594
2021-12-15 16:09:03 +00:00
Norisz Fay 204b961c4e Backed out changeset f5bcc7acaf26 (bug 1733490) for causing mochitest failures on browser_all_files_referenced.js 2021-12-14 13:21:21 +02:00
Eemeli Aro 3b836d5a27 Bug 1733490 - Migrate CSP error messages from extensions.properties to Fluent. r=zbraniecki,mixedpuppy,flod
The actual messages were migrated using https://github.com/mozilla/properties-to-ftl,
while C++ changes use patterns established by https://bugzilla.mozilla.org/show_bug.cgi?id=1742106.

Differential Revision: https://phabricator.services.mozilla.com/D131594
2021-12-14 10:10:32 +00:00
Nika Layzell 78ff1150a5 Bug 1715144 - Part 2: Stop adding /ipc/glue to LOCAL_INCLUDES in gn-generated files, r=firefox-build-system-reviewers,nalexander,jib
Differential Revision: https://phabricator.services.mozilla.com/D117104
2021-12-13 21:57:21 +00:00
Nika Layzell 490e62e602 Bug 1732358 - Part 2: Add the ability to force-disable fission with an environment variable, r=ahal,fluent-reviewers,flod,mccr8
This is required to replace the existing MOZ_FORCE_ENABLE_FISSION environment
variables in environments which use that. In the future we'll want to stop
passing any environment variable when not passing a flag to `./mach run`
however that will require changes to the default test behaviour in bug 1744091.

Differential Revision: https://phabricator.services.mozilla.com/D133006
2021-12-13 20:28:33 +00:00
ahochheiden fb9e1a5730 Bug 1740566 - Remove unused class member r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D133333
2021-12-10 21:28:07 +00:00
ahochheiden bd83977be1 Bug 1740566 - Update string paths to Pathlib objects in Mach module r=mhentges,firefox-build-system-reviewers
mach/mach/virtualenv.py was not updated because Mitch is in the process of a
major refactor on it. It will get a Pathlib migration pass at a later time

Differential Revision: https://phabricator.services.mozilla.com/D131811
2021-12-10 21:28:07 +00:00
ahochheiden b4dbe1681d Bug 1740566 - Make cwd in mach/CommandContext not optional r=firefox-build-system-reviewers,mhentges
Provide dummy empty string value in test.

Differential Revision: https://phabricator.services.mozilla.com/D133136
2021-12-10 21:28:06 +00:00
Marian-Vasile Laza 8e3619bfcb Backed out 3 changesets (bug 1740566) for causing python test failures on test_site_compatibility.py. CLOSED TREE
Backed out changeset cab9de0087ae (bug 1740566)
Backed out changeset a2cc045d0216 (bug 1740566)
Backed out changeset 8f95096b3ddc (bug 1740566)
2021-12-10 23:57:10 +02:00
ahochheiden b58d13e0da Bug 1740566 - Remove unused class member r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D133333
2021-12-10 21:28:07 +00:00
ahochheiden afc6033058 Bug 1740566 - Update string paths to Pathlib objects in Mach module r=mhentges,firefox-build-system-reviewers
mach/mach/virtualenv.py was not updated because Mitch is in the process of a
major refactor on it. It will get a Pathlib migration pass at a later time

Differential Revision: https://phabricator.services.mozilla.com/D131811
2021-12-10 21:28:07 +00:00
ahochheiden c871a08833 Bug 1740566 - Make cwd in mach/CommandContext not optional r=firefox-build-system-reviewers,mhentges
Provide dummy empty string value in test.

Differential Revision: https://phabricator.services.mozilla.com/D133136
2021-12-10 21:28:06 +00:00
Nick Alexander dc28c12fdd Bug 1744325 - Remove outdated `update-packaging` cruft. r=bhearsum,firefox-build-system-reviewers,glandium
None of this is used now that `funsize` generates update MARs.  It
might have even been possible to remove this in Bug 1173459, years
ago.

Differential Revision: https://phabricator.services.mozilla.com/D132836
2021-12-10 17:31:08 +00:00
Kimberly Sereduck 52dc2b318b Bug 1744563: Add option to disable inject-deterministic script when recording page load r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D133100
2021-12-10 15:52:26 +00:00
Barret Rennie 023a32e855 Bug 1742480 - Don't anger watchman r=mhentges
If watchman is invoked (as part of hg's fsmonitor) with a path whose case does
not match the on-disk case (e.g., for case-insensitive file systems like NTFS),
it will get angry and throw a RootResolveError (although it will still work).
When doing `./mach try`, we end up invoking watchman several times which leads
to it getting very angry and throwing lots of errors.

This is all due to how we compute virtualenv paths -- by normcase()-ing them in
`mach.pth` -- which results in `push.py` having a lowercase path *even if* your
mozilla-central checkout has a non-lowercase on-disk path.

Calling Path.resolve() on the resulting path returns it to its on-disk
representation and no longer angers watchman.

Differential Revision: https://phabricator.services.mozilla.com/D133397
2021-12-10 06:04:46 +00:00
Noemi Erli 88ea88a467 Backed out 2 changesets (bug 1724480) for causing Bug 1745152 and Bug 1745153 CLOSED TREE
Backed out changeset f988b79d58f4 (bug 1724480)
Backed out changeset 8a2fb9a2a3db (bug 1724480)
2021-12-09 18:58:02 +02:00
Alexandre Lissy 073ffe9321 Bug 1742849 - Parsing CCache 4.4+ stats output r=mhentges
Statistics output changed after 4.4 and requires different parsing, as
well as an extra --verbose to get the same informations as before.

See 8892814e8a

Differential Revision: https://phabricator.services.mozilla.com/D133086
2021-12-09 10:47:13 +00:00
Mike Hommey 17888a7d71 Bug 1745092 - Remove optional XZ compression of executables during packaging. r=firefox-build-system-reviewers,nalexander
Its use was removed in bug 1486524.

Differential Revision: https://phabricator.services.mozilla.com/D133305
2021-12-09 06:35:18 +00:00
Agi Sferro 49ed81f7e0 Bug 1724480 - Upgrade JDK to Java 17. r=glandium,ahal,calu
Differential Revision: https://phabricator.services.mozilla.com/D131972
2021-12-08 23:55:53 +00:00
Jonathan Watt d73bd9dd8c Bug 1744910 - For now, don't use --cacheonly with dnf. r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D133190
2021-12-08 15:18:15 +00:00
Gijs Kruitbosch 1df7d0e899 Bug 1744665 - un-bust local builds failing with rv being undefined in mach logging code, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D133062
2021-12-07 08:35:13 +00:00
Jonathan Watt 1a2fd33312 Bug 1744277 - Avoid having dnf install packages and groups that are already installed. r=mhentges
Without this change, on systems that use `dnf` (such as Fedora),
`mach bootstrap` will prompt for the sudo password to install packages and
groups that have already been installed. Making this change will help get
`mach bootstrap` to a point where it can be run without prompting for user
input when we can avoid doing that.

Differential Revision: https://phabricator.services.mozilla.com/D132816
2021-12-06 21:23:08 +00:00
Alex Hochheiden b372b43e3c Bug 1721471 - Added stack traces to Mach logs r=mhentges, g?firefox-build-system-reviewers
The custom logging formatting functions that override the defaults were not
adding stack traces to the output. The logic for formatting the stack trace
output is pulled directly from the default, as noted by the function doc. The
only difference is prefixing the elapsed time to each line.

Test case in TestStructuredHumanFormatter::test_non_ascii_logging
was updated to exclude newly added elapsed time from the comparison.

Differential Revision: https://phabricator.services.mozilla.com/D130236
2021-12-06 20:18:47 +00:00
Jonathan Watt f90e432899 Bug 1744279 - On Fedora, have `mach bootstrap` install python3-devel, not python-devel. r=mhentges
Fedora 33 is now EOL. Fedora 34 and 35 now both use the package name
'python3-devel', not 'python-devel'. Although 'python-devel' is aliased to
'python3-devel' for `dnf install`, it is not aliased for other commands such as
`dnf info`. That defeats the purpose of fixing bug 1744277 unless we also fix
this issue.

Differential Revision: https://phabricator.services.mozilla.com/D132815
2021-12-04 00:13:17 +00:00
Mitchell Hentges 0fb9e1cb04 Bug 1743592: Don't resolve/create scoped state_dir in CI r=ahal
We only need a workdir-scoped state_dir when an on-disk virtualenv will
be created for the Mach site.

This change defers the resolution of the state_dir until we know that a
VENV will be created.

Also modify "telemetry.py" so that it isn't creating a
scoped state-dir to compare "sys.executable" against.

Differential Revision: https://phabricator.services.mozilla.com/D132706
2021-12-03 16:26:45 +00:00
Mitchell Hentges 545e9115c5 Bug 1743544: Improve "missing requirements file" error r=ahal
There's an intermittent assertion failure, but there isn't enough
information to diagnose. By having the "requirements_path" printed, we
will have additional information to resolve the underlying intermittent.

Differential Revision: https://phabricator.services.mozilla.com/D132502
2021-12-02 19:35:48 +00:00
Nicolas Chevobbe 6773640c8e Bug 1743347 - [devtools] Move whyPaused.* string to a ftl file in devtools/shared. r=bomsy,jdescottes,fluent-reviewers,flod
Since those strings can be consumed by the PausedDebuggerOverlay, on the server,
we need to put them in devtools/shared.
As this will create some work for the l10n team, we migrate them to Fluent so we're
feeding 2 birds with 1 scone.
The `<LocalizationProvider>` is added directly in `<WhyPaused>` (and not in `<App>`,
as it's messing up with the React context (See Bug 1743155).
Some snapshots are updated. It's unfortunate that we don't see the translated
strings there anymore, but we can't have nice things in Jest.

Differential Revision: https://phabricator.services.mozilla.com/D132260
2021-12-02 07:10:27 +00:00
criss d4d26fc3cc Backed out 3 changesets (bug 1743347, bug 1591025) for causing mochitest failures on browser_metrics_debugger.js. CLOSED TREE
Backed out changeset 48c568e6d4d4 (bug 1591025)
Backed out changeset cf7717dfbd7c (bug 1743347)
Backed out changeset fd097d484cfb (bug 1743347)
2021-12-02 08:53:06 +02:00
Nicolas Chevobbe a559921b50 Bug 1743347 - [devtools] Move whyPaused.* string to a ftl file in devtools/shared. r=bomsy,jdescottes,fluent-reviewers,flod
Since those strings can be consumed by the PausedDebuggerOverlay, on the server,
we need to put them in devtools/shared.
As this will create some work for the l10n team, we migrate them to Fluent so we're
feeding 2 birds with 1 scone.
The `<LocalizationProvider>` is added directly in `<WhyPaused>` (and not in `<App>`,
as it's messing up with the React context (See Bug 1743155).
Some snapshots are updated. It's unfortunate that we don't see the translated
strings there anymore, but we can't have nice things in Jest.

Differential Revision: https://phabricator.services.mozilla.com/D132260
2021-12-02 05:57:55 +00:00
Makoto Kato 79947c1fa7 Bug 1743804 - Fix OpenJDK filename on Windows. r=agi
No tarball for OpenJDK archives for Windows. Windows version is zip or msi.

Differential Revision: https://phabricator.services.mozilla.com/D132565
2021-12-02 01:41:46 +00:00
Mitchell Hentges 59ed9dbf06 Bug 1743578: Activate Mach site in mozperftest/runner.py r=sparky
When activating a command virtualenv, it rightfully complains if it
isn't already running within an active Mach site - the abstraction has
restrictions to act as guardrails around the risky business that is
`sys.path` patching.

Replace `mozperftest/runner.py`'s ad-hoc `sys.path` initializing with
`MachSiteManager`'s `activate()` instead.

Removes the calls to `_setup_path()` where the `sys.path` should
already be set-up.

Differential Revision: https://phabricator.services.mozilla.com/D132503
2021-12-01 15:51:32 +00:00
Sylvestre Ledru 6ce7d233c4 Bug 1743088 - Mozlint: add an option to run the linter on third party code r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D132234
2021-12-01 15:12:31 +00:00
Ben Hearsum cd0f2dc3dc Bug 1743233: ./mach repackage fails to infer parameters. r=mhentges
`command_context.bindir` appears to be guaranteed to exist in `mozbuild`, so this should be perfectly safe.

Differential Revision: https://phabricator.services.mozilla.com/D132404
2021-11-30 17:51:49 +00:00