Commit Graph
8885 Commits
Author SHA1 Message Date
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
ahochheiden d2f27fced2 Bug 1857279 - Load @SettingsProvider settings early so that we can parse set aliases and load the correct virtualenv r=ahal
Aliased commands have not loaded the virtualenv associated with a
command/subcommand since bug 1695312. It has been defaulting to the
`common` virtualenv, which worked most of the time since most commands
use `common` and it also contains a large share of our dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D192376
2023-11-20 18:05:57 +00:00
ahochheiden 13c0c8057d Bug 1857279 - Consolidate all mach @SettingsProvider hooks in one file and class and have them execute very early during mach_initialize() r=ahal
The only remaining @SettingsProvider hooks should be in test files.

Differential Revision: https://phabricator.services.mozilla.com/D192375
2023-11-20 18:05:57 +00:00
Joel Maher e0c29ea803 Bug 1864755 - Adjust mozinfo names/values to be more streamlined and accurate. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D193928
2023-11-20 14:21:00 +00:00
Alexandra Borovova a436c61afa Bug 1863685 - Update pathes of h2, hpack, hyperframe packages and use vendored version of h2 for raptor and talos r=perftest-reviewers,mach-reviewers,jgraham,sparky
In the scope of the wptserve update (https://bugzilla.mozilla.org/show_bug.cgi?id=1862598), also h2, hpack, hyperframe packages got updated and changed their folder structure, which requires paths to be updated.

Differential Revision: https://phabricator.services.mozilla.com/D193908
2023-11-19 15:30:34 +00:00
Gabriel Bustamante bc2ba2695e Bug 1864958 - Fix devedition .deb package branding r=releng-reviewers,taskgraph-reviewers,jlorenzo,gbrown
Depends on D193953

Differential Revision: https://phabricator.services.mozilla.com/D193954
2023-11-17 22:00:35 +00:00
Narcis Beleuzu aeac4d77e1 Backed out 7 changesets (bug 1852098) for bustages on UseCounterMetrics.h . CLOSED TREE
Backed out changeset 3b87419a9eea (bug 1852098)
Backed out changeset d9c7c84c82df (bug 1852098)
Backed out changeset e594c7eebb91 (bug 1852098)
Backed out changeset 15e0b0bd3bfb (bug 1852098)
Backed out changeset 220e9ee63ec3 (bug 1852098)
Backed out changeset 9edef145d1c5 (bug 1852098)
Backed out changeset 920a798dbb8a (bug 1852098)
2023-11-16 01:00:42 +02:00
Chris H-C 6a8a5c1490 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-15 21:32:40 +00:00
Stanca Serban 7f8a3ccc5e Backed out 7 changesets (bug 1852098) for causing build bustages in UseCounterMetrics.cpp. CLOSED TREE
Backed out changeset 2caabd4bfe86 (bug 1852098)
Backed out changeset 5c174b0ee1ab (bug 1852098)
Backed out changeset 05ba23510b93 (bug 1852098)
Backed out changeset 256984effaa2 (bug 1852098)
Backed out changeset 8bed08cf2a68 (bug 1852098)
Backed out changeset 16b0698a239d (bug 1852098)
Backed out changeset 6e8d54a51fb7 (bug 1852098)
2023-11-15 23:02:32 +02:00
Chris H-C dd6bfdd958 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-15 17:01:28 +00:00
Jan-Erik Rediger 9b7567a12f Bug 1860506 - Update to Glean v55 and glean_parser v10. r=TravisLong,supply-chain-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D192960
2023-11-13 14:29:54 +00:00
DJ 9ad2936c0d Bug 1862982 - fix fluent schema for cookie banner blocker cancel button. r=fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D193235
2023-11-10 15:16:41 +00:00
Mike Hommey ce12458f4a Bug 1863850 - Fix mach vendor moz.yaml for rust code after bug 1835972. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D193152
2023-11-09 07:29:58 +00:00
Mike Hommey 6b84be05ec Bug 1861566 - Remove direct dependencies to non root-nodes in the compile graph in root-deps.mk. r=firefox-build-system-reviewers,ahochheiden
As the comment said, adding these dependencies was showing good results
back when it was done. 6~7 years later, things have changed, and
removing them makes the build faster across the board (tested from -j4
to -j48, they're up to 10% faster, with the biggest difference at -j16
and -j24)

Differential Revision: https://phabricator.services.mozilla.com/D192045
2023-11-08 23:47:33 +00:00
Mike Hommey 3bb424135b Bug 1861566 - Allow some missing generated source files. r=firefox-build-system-reviewers,sergesanspaille
When gtest is not linked as part of the build, the source files that are
generated for it are not necessarily created during the build, so we
won't be able to find them when packaging them. We make this an allowed
situation. Ideally, we'd "just" figure out which files these are, and
not emit them in the list of generated sources, but at the moment, it's
a lot of work to be able to do so.

Differential Revision: https://phabricator.services.mozilla.com/D193003
2023-11-08 23:47:32 +00:00
Mike Hommey ee16f37fc6 Bug 1863668 - Record a profile even when the build fails. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D193013
2023-11-08 23:44:52 +00:00
Rob Lemley 6a3ff837fb Bug 1862463 - Remove references to building Thunderbird with a mozilla/ subdirectory. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D192488
2023-11-07 14:58:59 +00:00
Greg Mierzwinski 76fd189c7f Bug 1860189 - Setup path for DMG extraction for Mac Mochitest mozperftest. r=perftest-reviewers,kshampur
This patch sets up the paths for DMG extraction for Mochitest mozperftest tests. It also adds some additional artifacts for the mac tests to pull and extract.

Differential Revision: https://phabricator.services.mozilla.com/D192071
2023-11-07 14:37:25 +00:00
serge-sans-paille ae64441194 Bug 1858062 - Remove reference to distutils in mozboot r=saschanaz
distutils is no longer available in Python 3.12, which means we cannot
require it on bootstrap, otherwise we cannot bootstrap from Py 3.12.

We already require setuptools as part of mach's requirements, so it's
fine to depend on setuptools elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D190537
2023-11-07 07:43:07 +00:00
Cristian Tuns 0a80141e7f Backed out 3 changesets (bug 1857279) for causing try failures with exit status 1 CLOSED TREE
Backed out changeset 4c1965a65011 (bug 1857279)
Backed out changeset b9885d1b6980 (bug 1857279)
Backed out changeset 76706ea52991 (bug 1857279)
2023-11-06 13:12:25 -05:00
ahochheiden 9ac56c969c Bug 1857279 - Load @SettingsProvider settings early so that we can parse set aliases and load the correct virtualenv r=ahal
Aliased commands have not loaded the virtualenv associated with a
command/subcommand since bug 1695312. It has been defaulting to the
`common` virtualenv, which worked most of the time since most commands
use `common` and it also contains a large share of our dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D192376
2023-11-06 17:08:32 +00:00
ahochheiden 6f6dff74e4 Bug 1857279 - Consolidate all mach @SettingsProvider hooks in one file and class and have them execute very early during mach_initialize() r=ahal
The only remaining @SettingsProvider hooks should be in test files.

Differential Revision: https://phabricator.services.mozilla.com/D192375
2023-11-06 17:08:31 +00:00
Nick Alexander 5a2079d68e Bug 1818418 - Use reg.exe to implement MSIX 1-click set-to-default. r=mhughes
This approach uses `reg.exe` to delete and recreate the relevant HKCU
registry key-value pairs.

Differential Revision: https://phabricator.services.mozilla.com/D170717
2023-11-04 22:58:30 +00:00
Noemi Erli 41830fefad Backed out changeset 45ab2db62a65 (bug 1818418) for causing bustages in WindowsUserChoice.h 2023-11-04 11:07:26 +02:00
Nick Alexander 028ad01c21 Bug 1818418 - Use reg.exe to implement MSIX 1-click set-to-default. r=mhughes
This approach uses `reg.exe` to delete and recreate the relevant HKCU
registry key-value pairs.

Differential Revision: https://phabricator.services.mozilla.com/D170717
2023-11-04 02:49:46 +00:00
Butkovits Atila 5ebcfd01ff Backed out changeset e0f1fa408c70 (bug 1818418) for causing bustages at WindowsUserChoice.cpp. CLOSED TREE 2023-11-04 02:00:16 +02:00
Nick Alexander 644f3b8048 Bug 1818418 - Use reg.exe to implement MSIX 1-click set-to-default. r=mhughes
This approach uses `reg.exe` to delete and recreate the relevant HKCU
registry key-value pairs.

Differential Revision: https://phabricator.services.mozilla.com/D170717
2023-11-03 22:48:57 +00:00
Mike Conley 1201221bf2 Bug 1860606 - Get rid of migration.ftl in favour of migrationWizard.ftl. r=kpatenio,fluent-reviewers,bolsson
migration.ftl was used by the old, legacy XUL migration dialog that was removed
in bug 1824851.

There were still a few strings being used by migration.ftl, but I've moved those
over to migrationWizard.ftl, and gone ahead and just removed the old file.

Differential Revision: https://phabricator.services.mozilla.com/D192509
2023-11-02 22:03:26 +00:00
Andrew Halberstadt b585192419 Bug 1862515 - Add 'nobara' to FEDORA_DISTROS in 'mach bootstrap', r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D192507
2023-11-02 14:02:27 +00:00
Mike Hommey 3af98465a5 Bug 1861772 - Remove unused usage data. r=firefox-build-system-reviewers,ahochheiden
As of bug 1272768, there are only two remaining uses of the usage data
that get_resource_data returns:
  - mozbuild.controller.building.BuildMonitor.log_resource_data, which
    only uses cpu_percent and io.
  - mozbuild.telemetry.get_build_attrs, which only uses cpu_percent.

All the aggregatation of data for other fields is lost, and, it turns
out, it is accidentally quadratic and sucks a lot of time since the
sample rate as been increased to 10Hz.

Differential Revision: https://phabricator.services.mozilla.com/D192142
2023-11-01 22:16:40 +00:00
Mike Hommey 30906f1c58 Bug 1861772 - Avoid calling get_resource_usage twice. r=firefox-build-system-reviewers,ahochheiden
Back when the code to log the resources in BuildMonitor.finish was
added in bug 883209, the condition to call log_resource_usage was
`status == 0`. It was later kind of accidentally changed in bug
1571636 (it just didn't matter). Anyways, bug 1526072 later added
another use of get_resource_usage for telemetry, with the condition
`status == 0`.

Also, back then, the usage data from get_resource_usage was used to
fill the json file, but that was changed in bug 1272768, so we don't
strictly need to keep that call to log_resource_usage where it is.

What we thus do is to move it at the same place usage is recorded for
telemetry, reducing the number of calls to get_resource_usage to one.

Differential Revision: https://phabricator.services.mozilla.com/D192141
2023-11-01 22:16:39 +00:00
Cristian Tuns 0a7a7ac9fa Bug 1861836 - Followup: properly fail on failure CLOSED TREE 2023-11-01 15:38:27 -04:00
Mike Hommey 347a8ae9da Bug 1861836 - Record the build profile as late as possible. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D192140
2023-11-01 09:20:43 +00:00
ChaseKnowlden 96b153b6e6 Bug 1858889 - [Linux] Remove dbus-glib from docs and CI. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D192088
2023-10-31 18:34:17 +00:00
Greg Stoll 4ff5cbd8ac Bug 1811076: Part 4 - Add gtests for correctly-behaving and misbehaving DLP agents
Unit tests for mozilla::contentanalysis::ContentAnalysis class.
ContentAnalysis must remain responsive, regardless of the behavior of the
agent.

Differential Revision: https://phabricator.services.mozilla.com/D189570
2023-10-31 16:38:55 +00:00
Sandor Molnar bb9baaf583 Backed out changeset 3c40605e3f9f (bug 1811076) for causing build bustages on toolkit/components/contentanalysis/tests/gtest/TestContentAnalysis.h CLOSED TREE 2023-10-31 17:45:37 +02:00
Greg Stoll 1614859d02 Bug 1811076: Part 4 - Add gtests for correctly-behaving and misbehaving DLP agents
Unit tests for mozilla::contentanalysis::ContentAnalysis class.
ContentAnalysis must remain responsive, regardless of the behavior of the
agent.

Differential Revision: https://phabricator.services.mozilla.com/D189570
2023-10-31 15:07:22 +00:00
Gijs Kruitbosch 6133efe282 Bug 747301 - remove about:plugins and some other unused plugin-related code, r=mossop,handyman,fluent-reviewers,extension-reviewers,desktop-theme-reviewers,bolsson,dao,geckoview-reviewers,owlish,robwu
Differential Revision: https://phabricator.services.mozilla.com/D189921
2023-10-31 09:11:30 +00:00
Francesco Lodolo (:flod) ec54a53c97 Bug 1861797 - Remove Fluent migration recipes for Firefox 116-119, r=bolsson DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D192125
2023-10-30 19:32:38 +00:00
DJ 5e121de832 Bug 1856014 - Fix fluent schema for strings in protections panel. r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D191997
2023-10-30 15:34:55 +00:00
Noemi Erli acde93f05e Backed out changeset 49997e56dea5 (bug 1861566) for causing build bustage CLOSED TREE 2023-10-28 02:12:09 +03:00
Mike Hommey 322feee59c Bug 1738684 - Avoid the warnings collector from eating build output. r=firefox-build-system-reviewers,ahochheiden
If for some reason the warning collector throws an exception, we ignore
it, which is fine, but we also end up not setting the message for the
BuildOutputResult, which means the line is not displayed.

It's better for the warning collector to miss a warning than for the
output to pretend the line wasn't there to begin with.

Differential Revision: https://phabricator.services.mozilla.com/D192046
2023-10-27 20:18:02 +00:00
Mike Hommey d2cdd9b9d0 Bug 1861566 - Remove direct dependencies to non root-nodes in the compile graph in root-deps.mk. r=firefox-build-system-reviewers,ahochheiden
As the comment said, adding these dependencies was showing good results
back when it was done. 6~7 years later, things have changed, and
removing them makes the build faster across the board (tested from -j4
to -j48, they're up to 10% faster, with the biggest difference at -j16
and -j24)

Differential Revision: https://phabricator.services.mozilla.com/D192045
2023-10-27 20:17:45 +00:00
Mike Hommey ee4104aaf6 Bug 1861564 - Disambiguate markers when tracking them. r=florian,releng-reviewers,jcristau
In the build, we have a few cases of things that have the same name,
but they happen in different directories. While disambiguating them
in the profile itself might not be super important (although it may turn
out to be, but let's assume it's not that important for now because I
also don't really want to add the directory everywhere), not
disambiguating them while tracking the markers makes it so that when it
happens that ambiguous things are running in parallel, the profile ends
up with wrong data for the corresponding markers.

Differential Revision: https://phabricator.services.mozilla.com/D192044
2023-10-27 20:13:53 +00:00
Kagami Sascha Rosylight 0c9a556309 Bug 1861659 - Update to mots 0.10.0 r=zeid,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D192076
2023-10-27 17:11:17 +00:00
Rob Lemley 6635dfd31d Bug 1861439 - Add artifact build support to comm-release. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D191981
2023-10-27 15:34:51 +00:00
Greg Mierzwinski 0820b59751 Bug 1861506 - Add docs on how to write mozperftest Mochitest tests. r=afinder,perftest-reviewers DONTBUILD
This patch adds some documentation on how to write Mochitest tests that are compatible with mozperftest. It also provides some additional information about running the tests, setting them up, and some common issues that people can hit.

Differential Revision: https://phabricator.services.mozilla.com/D192019
2023-10-27 14:39:48 +00:00
Gijs Kruitbosch 90a6c120f2 Bug 1845727 - move mozSupportLink.ftl into toolkit as that's where the component lives, r=reusable-components-reviewers,fluent-reviewers,tgiles,flod
Differential Revision: https://phabricator.services.mozilla.com/D191945
2023-10-27 10:18:23 +00:00