Commit Graph
8932 Commits
Author SHA1 Message Date
Greg Mierzwinski 2e4628dcf9 Bug 1865869 - Allow toml files to be used in perfdocs generation. r=jmarshall,perftest-reviewers,afinder DONTBUILD
This patch fixes an issue where only `perftest.ini` manifests were being parsed for mozperftest tests in perfdocs. It's temporary as we will move all ini manifests to toml in the future. At the same time, this patch adds missing documentation for some new mozperftest tests that use a toml manifest to define the tests.

Differential Revision: https://phabricator.services.mozilla.com/D194251
2023-12-06 13:01:24 +00:00
Narcis Beleuzu 49e6a6d3dc 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 870b3b7ccc 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
Jonathan Watt 52aed64b06 Bug 1411212. Use HOST_OPTIMIZE_FLAGS to compile host tools, even when not cross-compiling. r=glandium
Prior to this change, --disable-optimize clobber builds on macOS took 50%
longer. Build telemetry shows over 80% of developer builds on macOS use
--disable-optimize.

The defaults for HOST_OPTIMIZE_FLAGS that are set in old-configure.in can be
overriden by setting the variable in your mozconfig. For example, setting:

HOST_OPTIMIZE_FLAGS=-O1

Differential Revision: https://phabricator.services.mozilla.com/D195459
2023-12-05 10:30:50 +00:00
Cosmin Sabou 69789fab4c Backed out changeset 975c80dda5fe (bug 1411212) for py3 failures on test_emitter.py. CLOSED TREE 2023-12-05 12:09:26 +02:00
Jonathan Watt 6d98087ce7 Bug 1411212. Use HOST_OPTIMIZE_FLAGS to compile host tools, even when not cross-compiling. r=glandium
Prior to this change, --disable-optimize clobber builds on macOS took 50%
longer. Build telemetry shows over 80% of developer builds on macOS use
--disable-optimize.

The defaults for HOST_OPTIMIZE_FLAGS that are set in old-configure.in can be
overriden by setting the variable in your mozconfig. For example, setting:

HOST_OPTIMIZE_FLAGS=-O1

Differential Revision: https://phabricator.services.mozilla.com/D195459
2023-12-05 09:35:54 +00:00
Jonathan Watt 8c33b11120 Bug 1867968. Remove some unused build telemetry code. r=firefox-build-system-reviewers,glandium
Some time after bug 1237610 originally added telemetry gathering to the build
process, the code changed to gather it via Glean in bug 1651424. Later, bug
1867968 removed some of the old code, but it missed the removal of
get_build_opts. This change removes that function and a few other functions in
the same file that appear to be unused.

Differential Revision: https://phabricator.services.mozilla.com/D195354
2023-12-05 09:21:00 +00:00
Andrew Halberstadt 8d7924010f 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 ada279d7cb 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
Ray Kraesig 29050fe320 Bug 1866176 - normalize paths in FileFinder r=ahal,firefox-build-system-reviewers,glandium
On Windows, paths provided to FileFinder may contain backslashes, which
will cause uses of `mozpath.match` later on to fail when they try to
compare mixed-path values. To avoid this, normalize those paths on
receipt.

(Also, silence a lint by pulling the global `args` variable into a
function, so that it is no longer occluded by the various function
parameters named `args`.)

Differential Revision: https://phabricator.services.mozilla.com/D194448
2023-12-04 17:14:29 +00:00
Andrew Halberstadt 255518ea5c Bug 1867990 - Fix black formatting errors that snuck in due to regression, r=linter-reviewers,taskgraph-reviewers,releng-reviewers,bhearsum,sylvestre
These were not caught due to bug 1865672.

Depends on D195431

Differential Revision: https://phabricator.services.mozilla.com/D195432
2023-12-04 14:51:39 +00:00
Eemeli Aro 07145792f8 Bug 1814969: Migrate ContextualIdentityService strings to Fluent r=geckoview-reviewers,fluent-reviewers,mconley,owlish,flod
This includes a containers.json version increment and the necessary migration,
as the StringBundle identifiers are replaced with a Fluent reference.

As it's not possible to filter the attributes that are applied with DOM localization,
the code in utilityOverlay.js is a little clumsy. The non-acceskey versions are needed
due to bug 1297738, i.e. the long-press menu available from the tab bar down arrow.

Previously, the "Manage containers" menu item and its accesskey were defined in two places.
These are here combined into one.

Differential Revision: https://phabricator.services.mozilla.com/D194510
2023-12-04 13:09:15 +00:00
Makoto Kato 95035ce86e Bug 1854031 - Part 2. Allow Unicode License V3 to vendor rust for ICU4X 1.4. r=glandium
See https://phabricator.services.mozilla.com/D193036#6423271 for Unicode License V3.

Depends on D192902

Differential Revision: https://phabricator.services.mozilla.com/D192900
2023-12-04 09:02:27 +00:00
Noemi Erli 36ac1fc131 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
Eemeli Aro 3eceebb1fc Bug 1866268 - Migrate GeckoViewConsole strings to Fluent. r=geckoview-reviewers,fluent-reviewers,owlish,kpatenio
This migration creates a new FTL file under mobile/android/.
As GeckoView isn't actually localised (see bug 1605358), this file is not exposed to localisers.

A migration script is still included,
as previous localisations of the strings are available from their Fennec days.
Running the script will fail in an m-c checkout bootstrapped for desktop development;
it's possible to hack around this by manually setting
the `l10n_toml` value in `python/l10n/test_fluent_migrations/fmt.py`.

Differential Revision: https://phabricator.services.mozilla.com/D194541
2023-12-01 17:38:20 +00:00
Ben Dean-Kawamura e3f087b56c 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
Simon Farre f57c6f05fc Bug 1864675 - Add pretty printers for SyncedContext fields r=farre,nalexander
Makes debugging of synced context fields more palatable.

Differential Revision: https://phabricator.services.mozilla.com/D194969
2023-12-01 11:07:22 +00:00
Connor Sheehan 4db8d52a9b Bug 1866395: add get_mozilla_upstream_remote and use it to find Git base ref r=ahochheiden
Add a `get_mozilla_upstream_remote` method for `GitRepository` that
scans the output of `git remote -v` for an official Mozilla URL. Use
this URL in `base_ref` to limit the remotes considered for remote
branches, defaulting to `--remotes` without an argument if one can't
be found.

Differential Revision: https://phabricator.services.mozilla.com/D194881
2023-11-30 22:23:01 +00:00
Tom Marble 7a88122b46 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
Sandor Molnar ca122b3a4e Merge mozilla-central to autoland. CLOSED TREE 2023-11-30 14:42:30 +02:00
Sandor Molnar afcfb9aad7 Backed out changeset fec3dc168176 (bug 1866176) for causing bug 1867494 CLOSED TREE 2023-11-30 14:38:22 +02:00
Mike Hommey 095a6c2481 Bug 1867189 - Make watchman optional during bootstrap. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D194959
2023-11-30 08:56:53 +00:00
Sandor Molnar e5fc15722c Backed out changeset 45b26dd270e8 (bug 1866268) for causing wpt crashes at /console/console-label-conversion CLOSED TREE 2023-11-30 09:14:21 +02:00
Eemeli Aro 5396f6ace6 Bug 1866268 - Migrate GeckoViewConsole strings to Fluent. r=geckoview-reviewers,fluent-reviewers,owlish,kpatenio
This migration creates a new FTL file under mobile/android/.
As GeckoView isn't actually localised (see bug 1605358), this file is not exposed to localisers.

A migration script is still included,
as previous localisations of the strings are available from their Fennec days.
Running the script will fail in an m-c checkout bootstrapped for desktop development;
it's possible to hack around this by manually setting
the `l10n_toml` value in `python/l10n/test_fluent_migrations/fmt.py`.

Differential Revision: https://phabricator.services.mozilla.com/D194541
2023-11-29 23:14:12 +00:00
Mike Hommey df48973b07 Bug 1867217 - Change when we throw away old versions of git-cinnabar. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D194964
2023-11-29 21:34:25 +00:00
Mike Conley 81b1c031f1 Bug 1867346 - Tweak strings for ASRouter spotlight message to encourage users without FxA accounts to create one. r=fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D195013
2023-11-29 19:50:07 +00:00
Ray Kraesig 0c19f4087a Bug 1866176 - normalize paths in FileFinder r=ahal,firefox-build-system-reviewers,glandium
On Windows, paths provided to FileFinder may contain backslashes, which
will cause uses of `mozpath.match` later on to fail when they try to
compare mixed-path values. To avoid this, normalize those paths on
receipt.

(Also, silence a lint by pulling the global `args` variable into a
function, so that it is no longer occluded by the various function
parameters named `args`.)

Differential Revision: https://phabricator.services.mozilla.com/D194448
2023-11-29 17:45:31 +00:00
Connor Sheehan 4e254deb24 Bug 1867036: use --always to force headers for empty commits r=gerard-majax
Git versions before 2.41 don't display headers for empty commits
in `git format-patch`. Force headers to display with `--always`,
so Lando can properly apply the patch when pushing to try.

Differential Revision: https://phabricator.services.mozilla.com/D194911
2023-11-29 15:24:38 +00:00
Tom Marble 8514021d85 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
Joshua Marshall d65088640e Bug 1299271 - Service worker performance test r=asuth,sparky
These are a first-cut of service worker performance tests, just running as
vanilla mochitests for now.  Bug 1832059 tracks the integration work necessary.

Differential Revision: https://phabricator.services.mozilla.com/D177427
2023-11-28 16:33:38 +00:00
Cosmin Sabou ef2484fe0d Backed out changeset 4c5b3ec73a9a (bug 1682371) for python related failures. CLOSED TREE 2023-11-28 01:20:46 +02:00
Tom Marble 023771f69a 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
Tooru Fujisawa 584473e514 Bug 1564553 - Part 2: Put all generated files except for cbindgen-metadata.json into the generated-files tarball. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D194173
2023-11-27 21:11:17 +00:00
ahochheiden 4815b23045 Bug 1865915 - Make the suggest_command code run before activating a virtualenv so that suggest command's venv is activated r=firefox-build-system-reviewers,sergesanspaille
I wasn't able to modify `sys.argv[1]` with the `suggested_command` and have
it propagate to `dispatcher.py`, so the code still has to run in both
places, otherwise there's crashes for trying to access invalid command
handlers.

Differential Revision: https://phabricator.services.mozilla.com/D194599
2023-11-27 07:50:18 +00:00
ahochheiden 495d72d453 Bug 1866382 - Properly get the aliased command name for dictionary lookup r=firefox-build-system-reviewers,sergesanspaille
The previous implementation had an error where only aliases that were 1:1 with the dictionary would work.

Differential Revision: https://phabricator.services.mozilla.com/D194591
2023-11-27 07:50:18 +00:00
Mathew Hodson 743a7abd68 Bug 1865492 - Enable Prettier with VS Code for more JSON files r=nalexander
VS Code detects most files as jsonc (JSON with Comments) by default.

Differential Revision: https://phabricator.services.mozilla.com/D193994
2023-11-24 16:54:59 +00:00
Paul Bone 85ad1f146f Bug 1866400 - Recognise Asahi Linux as a Fedora distro r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D194587
2023-11-24 06:57:44 +00:00
Makoto Kato 44bf6e65ab Bug 1814734 - Upgrade NDK to r25c. r=geckoview-reviewers,owlish,glandium
Differential Revision: https://phabricator.services.mozilla.com/D194045
2023-11-24 02:01:34 +00:00
Mike Conley fc841b829d Bug 1866295 - Land new strings for ASRouter spotlight message to encourage users without FxA accounts to create one. r=aminomancer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D194547
2023-11-23 17:30:08 +00:00
serge-sans-paille a2fd5b4397 Bug 1865878 - Document native third party sources vendoring r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D194250
2023-11-23 05:37:39 +00:00
Cosmin Sabou 4d28b93ff6 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
Sandor Molnar ca82695b2b Backed out changeset 6a14206eb5a9 (bug 1299271) for causing python taskgraph-tests failures at taskcluster/gecko_taskgraph/test/test_util_chunking.py CLOSED TREE 2023-11-22 22:50:30 +02:00
ahochheiden 6d5d8d77dd 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
ahochheiden 90004e9277 Bug 1843209 - Bump Mach's minimum Python version to 3.8 r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D183449
2023-11-22 20:07:41 +00:00
Joshua Marshall bb47d44e7b Bug 1299271 - Service worker performance test r=asuth,sparky
These are a first-cut of service worker performance tests, just running as
vanilla mochitests for now.  Bug 1832059 tracks the integration work necessary.

Differential Revision: https://phabricator.services.mozilla.com/D177427
2023-11-22 13:16:11 +00:00
Chris H-C 1892a9e1eb Bug 1852098 - mach command gen-use-counter-metrics r=emilio,firefox-build-system-reviewers,ahochheiden
Takes use counter definitions and generates a use_counter_metrics.yaml with
`counter` metric definitions for each use counter and denominator.

Total use counters at time of writing: 2271 (excludes denominators)

Differential Revision: https://phabricator.services.mozilla.com/D193246
2023-11-21 17:09:52 +00:00
Greg Mierzwinski a88fcbc65b Bug 1856681 - Use proper venv for perftest-tools, and accept output argument. r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D189962
2023-11-21 16:59:06 +00:00
James Graham ac02154157 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
Mike Hommey dec4335000 Bug 1865299 - Try harder to find candidate pushheads. r=firefox-build-system-reviewers,sergesanspaille
_get_recent_public_revisions is not reliably giving us revisions that
are available on the trees that artifacts are taken from. With both
mercurial and git, it is possible to end up in a situation where the
first few entries are only available on some private branch (but still
"public" in mercurial's or git-cinnabar's eye).

In that case, try parent revisions.

Differential Revision: https://phabricator.services.mozilla.com/D194175
2023-11-21 09:16:40 +00:00
serge-sans-paille 37e171f844 Bug 1865672 - Format mach with black r=ahochheiden
To do so we allow straight filenames in the include section and consider
them as automatically-included files.

Differential Revision: https://phabricator.services.mozilla.com/D194093
2023-11-21 08:10:29 +00:00