Commit Graph
9364 Commits
Author SHA1 Message Date
Chris H-C 682cb5dff9 Bug 1907991 - Require mach to use the vendored glean_parser r=TravisLong,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D217321
2024-07-22 20:21:30 +00:00
Mike Hommey ce446da747 Bug 1908637 - Allow configure options with at most 1 argument to contain commas. r=firefox-build-system-reviewers,ahochheiden
Comma is the separator for values in options. Like in --with-foo=bar,baz.
This is meant to be useful for options with nargs="*", "+", or a fixed
value greater than 1.

Currently, when an option with another nargs is passed a comma, we
reject the value as being multiple values, while one or less is
expected. This causes problems with options with nargs=1 that actually
CAN have legitimate values containing commas. Examples include:
  CFLAGS="-Wp,--preprocessor-flag -Wa,--assembler-flag"
  LDFLAGS=-Wl,--linker-flag"

Since options with multiple arguments are the exception, not the norm,
let's allow commas in cases where at most a single argument is expected.

An alternative would be to explicitly disable comma-splitting on the set
of options that can take values containing commas, but that's error-prone.

Differential Revision: https://phabricator.services.mozilla.com/D217021
2024-07-22 20:15:36 +00:00
Harveer Singh 5beca9de35 Bug 1889930: Remove source code corresponding to deprecated notification store.r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D217143
2024-07-22 16:14:46 +00:00
Ryan VanderMeulen a2fb932423 Bug 1908818 - Update JDK 17 to version 17.0.12+7. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D217051
2024-07-19 16:10:46 +00:00
serge-sans-paille a20d5495e4 Bug 1904589 - Remove MOZ_PGO_OPTIMIZE_FLAGS. r=glandium
Instead, position MOZ_OPTIMIZE_FLAGS to -O3 under PGO on Linux.

This creates a dependency on PGO from toolchain.configure, break it by
splitting moz_optimize in two functions, one for the optimization status
and one for the optimization flags.

Differential Revision: https://phabricator.services.mozilla.com/D214843
2024-07-19 01:22:00 +00:00
Sylvestre Ledru 2c73c90c3c Bug 1908672 - Update to sphinx 7.4.6 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D216954
2024-07-18 16:09:42 +00:00
Stanca Serban fe08f82751 Bug 190831 - Fix lint failure. 2024-07-18 02:12:32 +03:00
Mike Hommey 2c1983f012 Bug 1908311 - Fix GitRepository.branch with older versions of git. r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D216786
2024-07-17 22:05:11 +00:00
Narcis Beleuzu 1a849f28bc Backed out changeset 387a97f5aa42 (bug 1908311) for python failure on test_branch.py. CLOSED TREE 2024-07-18 00:37:35 +03:00
Mike Hommey 8693fe94ff Bug 1908311 - Fix GitRepository.branch with older versions of git. r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D216786
2024-07-17 21:06:48 +00:00
Sandor Molnar 14b3a353fc Backed out changeset 4f5fd55945a5 (bug 1907991) for causing build bustages. CLOSED TREE 2024-07-17 17:52:03 +03:00
Chris H-C ce48d48794 Bug 1907991 - Vendor glean_parser v14.2.0 r=janerik,mach-reviewers
Also instruct `mach` to use the vendored `glean_parser` instead of the one it
would otherwise pull down from `pip` as part of its `glean_sdk` dep.

This unfortunately ties updates of `mach`'s `glean_sdk` to any updates m-c gets
for its `glean_parser`. It's required to ensure `./mach build` always uses the
vendored `glean_parser` (see bug 1908020).

Differential Revision: https://phabricator.services.mozilla.com/D216717
2024-07-17 14:34:39 +00:00
Sylvestre Ledru 483a51ca63 Bug 1908322 - Update to sphinx 7.4.5 r=firefox-source-docs-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D216797
2024-07-17 11:10:40 +00:00
Mike Hommey 604b98edbf Bug 1906930 - Fix SrcRepository.get_files when the SrcRepository is given a path other than the current directory. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D216502
2024-07-13 22:48:22 +00:00
Mike Hommey 8a27038ff3 Bug 1906736 - Make IMPORT_LIBRARY a full path. r=firefox-build-system-reviewers,sergesanspaille
This makes IMPORT_LIBRARY a full path, to match the change to
SHARED_LIBRARY so that the IMPORT_LIBRARY target can be found in
js/src/build/Makefile.in. Fixes regression in js standalone build 'make
install'.

Initial patch by Philip Chimento.

Differential Revision: https://phabricator.services.mozilla.com/D215992
2024-07-11 06:07:01 +00:00
Mike Hommey ce8ae0095a Bug 1906736 - Use RecursiveMakeBackend._pretty_path to output import_paths. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D216143
2024-07-11 06:07:01 +00:00
Mike Hommey ccd5f9fbb9 Bug 1906736 - Make Linkables' import_path an ObjDirPath. r=firefox-build-system-reviewers,sergesanspaille
This will allow to use better backend primitives to use it in a
subsequent change.

Differential Revision: https://phabricator.services.mozilla.com/D216142
2024-07-11 06:07:00 +00:00
Mike Hommey f1e4bacbec Bug 1906736 - Make BaseRustLibrary.import_name a name, not a path. r=firefox-build-system-reviewers,sergesanspaille
For consistency with other Library classes, import_name should be the
"import" library name, while import_path is the full path.

Differential Revision: https://phabricator.services.mozilla.com/D216141
2024-07-11 06:07:00 +00:00
Mike Hommey 7e467abcdd Bug 1906736 - Remove BaseRustLibrary.deps_path. r=firefox-build-system-reviewers,sergesanspaille
Its only use was removed in bug 1304815.

Differential Revision: https://phabricator.services.mozilla.com/D216140
2024-07-11 06:06:59 +00:00
Norisz Fay 02513c8820 Backed out 6 changesets (bug 1906736) for causing python failure on test_recursivemake.py::TestRecursiveMakeBackend CLOSED TREE
Backed out changeset 26b5993b476e (bug 1906736)
Backed out changeset 1b7f3d4ab195 (bug 1906736)
Backed out changeset 534d97cbb905 (bug 1906736)
Backed out changeset cfcd1e782c34 (bug 1906736)
Backed out changeset 0ee858291b82 (bug 1906736)
Backed out changeset 334aed124a54 (bug 1906736)
2024-07-11 07:59:15 +03:00
Mike Hommey 3cc83e493b Bug 1906736 - Make IMPORT_LIBRARY a full path. r=firefox-build-system-reviewers,sergesanspaille
This makes IMPORT_LIBRARY a full path, to match the change to
SHARED_LIBRARY so that the IMPORT_LIBRARY target can be found in
js/src/build/Makefile.in. Fixes regression in js standalone build 'make
install'.

Initial patch by Philip Chimento.

Differential Revision: https://phabricator.services.mozilla.com/D215992
2024-07-11 03:21:30 +00:00
Mike Hommey c71eacff9a Bug 1906736 - Use RecursiveMakeBackend._pretty_path to output import_paths. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D216143
2024-07-11 03:21:29 +00:00
Mike Hommey fb55a2c5cb Bug 1906736 - Make Linkables' import_path an ObjDirPath. r=firefox-build-system-reviewers,sergesanspaille
This will allow to use better backend primitives to use it in a
subsequent change.

Differential Revision: https://phabricator.services.mozilla.com/D216142
2024-07-11 03:21:29 +00:00
Mike Hommey ed6fd91f21 Bug 1906736 - Make BaseRustLibrary.import_name a name, not a path. r=firefox-build-system-reviewers,sergesanspaille
For consistency with other Library classes, import_name should be the
"import" library name, while import_path is the full path.

Differential Revision: https://phabricator.services.mozilla.com/D216141
2024-07-11 03:21:29 +00:00
Mike Hommey 940a636fa8 Bug 1906736 - Remove BaseRustLibrary.deps_path. r=firefox-build-system-reviewers,sergesanspaille
Its only use was removed in bug 1304815.

Differential Revision: https://phabricator.services.mozilla.com/D216140
2024-07-11 03:21:28 +00:00
ahochheiden 3ca4c07b58 Bug 1887885 - Collect the target architecture of a build r=firefox-build-system-reviewers,glandium
Added one field:
 - The `--target` of a build.

Re-added `python/mach/metrics.yaml` to `./mach doc mach-telemetry` generation (Not sure why it was missing).

Re-generated the associated docs. (It looks like this was not done for previously when other fields were added.

Differential Revision: https://phabricator.services.mozilla.com/D208811
2024-07-09 19:57:45 +00:00
ahochheiden f625e0fbea Bug 1894154 - Enable telemetry in CI r=firefox-build-system-reviewers,glandium
Also collect boolean flag `moz_automation` to allow filtering between
CI/Automation telemetry and the rest.

Differential Revision: https://phabricator.services.mozilla.com/D209272
2024-07-09 19:57:45 +00:00
ahochheiden c3c547130c Bug 1894153 - Collect build tier durations r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D209079
2024-07-09 19:57:45 +00:00
serge-sans-paille d92a167915 Bug 1904776 - Allow dangling symlinks when unpacking upstream tarball with mach vendor r=glandium
As a side effect, also propagate dangling symlink option when called
recursively.

Differential Revision: https://phabricator.services.mozilla.com/D214924
2024-07-03 07:22:27 +00:00
Cristian Tuns 49bd8e8edd Backed out changeset 6ac47dbd939c (bug 1884970) for causing bc failures in browser_tab_tooltips.js CLOSED TREE 2024-06-28 15:23:44 -04:00
Anna Yeddi f0d91c0df0 Bug 1884970 - Close current tab button is missing an accessible name and role. r=tabbrowser-reviewers,fluent-reviewers,dao,bolsson,flod
The [tab-close-button](https://searchfox.org/mozilla-central/rev/f9157a03835653cd3ece8d2dc713a782b7e4374e/browser/base/content/tabbrowser-tab.js#40) is not labeled and is missing an interactive role of button, while it is functioning as one.

Note: we do not want this control to be keyboard focusable, because keyboard-only user could close the tab via the context menu and we don't want to create an additional tab stop for the navigation as well, but making sure the control is marked up as a button with an accessible name would allow it to be actionable with speech-to-text software, with touch devices, with switch controls in scan mode, and for screen readers via their navigation shortcuts as well.

Differential Revision: https://phabricator.services.mozilla.com/D204413
2024-06-28 18:23:45 +00:00
Cristian Tuns 29b9dc4717 Backed out changeset 87d3cf2b45b2 (bug 1884970) for causing bc failures in browser_multiselect_tabs_close.js CLOSED TREE 2024-06-28 14:15:24 -04:00
Anna Yeddi 9bcc35ccaa Bug 1884970 - Close current tab button is missing an accessible name and role. r=tabbrowser-reviewers,fluent-reviewers,dao,bolsson,flod
The [tab-close-button](https://searchfox.org/mozilla-central/rev/f9157a03835653cd3ece8d2dc713a782b7e4374e/browser/base/content/tabbrowser-tab.js#40) is not labeled and is missing an interactive role of button, while it is functioning as one.

Note: we do not want this control to be keyboard focusable, because keyboard-only user could close the tab via the context menu and we don't want to create an additional tab stop for the navigation as well, but making sure the control is marked up as a button with an accessible name would allow it to be actionable with speech-to-text software, with touch devices, with switch controls in scan mode, and for screen readers via their navigation shortcuts as well.

Differential Revision: https://phabricator.services.mozilla.com/D204413
2024-06-28 17:19:31 +00:00
Mike Hommey c84a1c44b8 Bug 1904903 - Don't let subprocess.check_output munge line endings. r=sheehan
It turns out subprocess functions have the annoying behavior of changing
line endings in `input` when using `text=True` or `universal_newlines=True`,
or even `encoding="utf-8"`. And git fast-import doesn't like `\r\n`.

Differential Revision: https://phabricator.services.mozilla.com/D215158
2024-06-28 02:51:13 +00:00
Alexandre Lissy dea067ecad Bug 1904824 - Allow different upstream repo/branch for Snap flows r=releng-reviewers,jcristau
Differential Revision: https://phabricator.services.mozilla.com/D214961
2024-06-27 11:49:53 +00:00
Jesse Schwartzentruber 2452dd969a Bug 1904755 - Avoid using mozbuild in mozpack.macpkg r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D214971
2024-06-26 18:08:07 +00:00
Jesse Schwartzentruber 301ec15a92 Bug 1903620 - Calculate jobs using CPU affinity in mach. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D214289
2024-06-25 13:53:13 +00:00
Mike Hommey 10356e831a Bug 1500188 - Don't modify working tree, index or HEAD when pushing to try with git. r=releng-reviewers,sheehan,ahal
Differential Revision: https://phabricator.services.mozilla.com/D214215
2024-06-24 23:07:29 +00:00
Mike Hommey 6a29083f11 Bug 1500188 - Change the API to create a try commit. r=releng-reviewers,sheehan,ahal
Currently, the caller potentially prepares files, add them to the VCS,
and then calls the function to create the commit, does whatever it wants
to do with it, then undoes it.

With the ultimate goal of not doing local changes to the work tree to
act on that try commit (for a push), this change in API makes it so
that everything except what do do with the commit is handled by one
function, that now takes paths and file contents for the files that were
previously created by the caller.

Differential Revision: https://phabricator.services.mozilla.com/D214214
2024-06-24 23:07:29 +00:00
ahochheiden 07ac67fc82 Bug 1898817 - Add custom copy_tree_update to replace distutils.dir_util.copy_tree r=mozperftest-reviewers,sparky
We can't use `shutil.copy_tree` here, since we need the `update=True`
functionality implemented by the `distutils` variant, but not by the
`shutil` one. This looks like the only place in the repo we use this
functionality, so it seems fine to implement an equivalent ourselves
here directly.

Differential Revision: https://phabricator.services.mozilla.com/D211632
2024-06-21 17:30:04 +00:00
ahochheiden ddd1d0e6a4 Bug 1898817 - Replace distutils.spawn.find_executable with shutil.which within mozperftest r=mozperftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D211631
2024-06-21 17:30:04 +00:00
ahochheiden d0a30e9392 Bug 1898817 - Replace distutils.spawn.find_executable with shutil.which within mozlint r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D211630
2024-06-21 17:30:03 +00:00
Gabriel Bustamante 644166118a Bug 1882556 - Use official branding on ESR .deb packages r=releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D214466
2024-06-21 17:03:47 +00:00
Mike Hommey 71696adbcc Bug 1903661 - Automatically stage a package when running mach run --packaged. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D214327
2024-06-20 20:16:31 +00:00
André Bargull e042ed2cf4 Bug 1899177 - Part 1: Enable "icu_calendar" feature from ICU4X. r=spidermonkey-reviewers,supply-chain-reviewers,glandium,sylvestre,mgaudet
Enable the "icu_calendar" feature from ICU4X for use in Temporal.

Differential Revision: https://phabricator.services.mozilla.com/D211762
2024-06-20 17:42:11 +00:00
serge-sans-paille b1bf45b852 Bug 1903061 - Move objective-C flags settings from old-configure to moz.configure r=glandium
Also get rid of host_* version which got dismissed in bug 1069556.

Differential Revision: https://phabricator.services.mozilla.com/D213978
2024-06-20 14:12:26 +00:00
andrej aa24226bf3 Bug 1900807 - Remove alerting for standard deviation for android startup tests. r=perftest-reviewers,sparky
Alerting on standard deviation is not needed for us, and so it is being removed.

Differential Revision: https://phabricator.services.mozilla.com/D214244
2024-06-20 12:32:47 +00:00
Stanca Serban cac4fbb1ff Backed out changeset d61e206198fe (bug 1903061) for causing python failures. CLOSED TREE 2024-06-20 09:57:23 +03:00
serge-sans-paille 8fd7dcaa02 Bug 1903061 - Move objective-C flags settings from old-configure to moz.configure r=glandium
Also get rid of host_* version which got dismissed in bug 1069556.

Differential Revision: https://phabricator.services.mozilla.com/D213978
2024-06-20 06:31:44 +00:00
Max Inden db7bd2c55e Bug 1903621 - allow getsock* syscall in Rust binary r=kershaw
As per the discussion in [Bug
1901295](https://bugzilla.mozilla.org/show_bug.cgi?id=1901295), we are removing
the `getsockopt` and `getsockname` calls from `check_binary.py`. These
functions, while suggesting networking code, do not perform actual networking.
Their removal resolves the test failures caused by the disallowance of
networking functions in Rust, unblocking [Bug
1901295](https://bugzilla.mozilla.org/show_bug.cgi?id=1901295).

Differential Revision: https://phabricator.services.mozilla.com/D214291
2024-06-19 18:02:20 +00:00