Commit graph

9214 commits

Author SHA1 Message Date
Iulian Moraru
b341993f71 Backed out changeset 78c755371e44 (bug 1776255) for causing artifact build bustages related to Necko WiFi scanning. CLOSED TREE 2024-05-23 04:50:13 +03:00
Mike Hommey
38a03e2836 Bug 1870059 - Add a moz.build hook. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D211105
2024-05-23 01:13:55 +00:00
ahochheiden
15589ca635 Bug 1776255 - Add the appropriate 'when' to all 'option' that end up calling 'pkg_check_modules' later r=firefox-build-system-reviewers,glandium
We don't check for pkg-config on some platforms (Windows, OSX, Android).
On those platforms, calling 'pkg_check_modules' will not work. Adding
the same 'when' used for the 'pkg_config' check to all the options that
end up calling 'pkg_check_modules' effectively disables them, and prevents
'pkg_check_modules' from being called.

Differential Revision: https://phabricator.services.mozilla.com/D150649
2024-05-22 23:38:25 +00:00
Emilio Cobos Álvarez
8fa7c1f7cf Bug 1898258 - Add and document mach gen-uuid. r=smaug
The website in our docs no longer works for $reasons, this is a direct
port to python.

Differential Revision: https://phabricator.services.mozilla.com/D211219
2024-05-22 14:52:20 +00:00
serge-sans-paille
6d437ba43e Bug 1895511 - Move MOZ_DEBUGGING_OPTS to moz.configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D209734
2024-05-22 06:01:37 +00:00
Kershaw Chang
6ae3c284a1 Bug 1895319 - refactor http3server to use neqo-bin for I/O, timers, event-loop etc. r=necko-reviewers,valentin,glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209574
2024-05-21 09:34:48 +00:00
ahochheiden
2366f9e588 Bug 1896688 - Prevent unnecessary os.stat call in jar.py r=sergesanspaille
If the destination file doesn't exist, we don't need to check the
current file's time, and we can just write or symlink regardless.

Differential Revision: https://phabricator.services.mozilla.com/D210330
2024-05-17 21:35:05 +00:00
Chris H-C
96db3322cd Bug 1896732 - Introducing mach gifft to generate Glean metric definitions for named Legacy probes r=TravisLong
Currently only supports events.

Differential Revision: https://phabricator.services.mozilla.com/D210690
2024-05-17 13:24:50 +00:00
Mike Hommey
0166b77500 Bug 1897317 - Rename MOZ_ANDROID_HISTORY to MOZ_GECKOVIEW_HISTORY. r=firefox-build-system-reviewers,geckoview-reviewers,nalexander,owlish
Differential Revision: https://phabricator.services.mozilla.com/D210743
2024-05-17 00:29:35 +00:00
Tamas Szentpeteri
a0fd2ca353 Backed out changeset 0a1f42ba0143 (bug 1896732) for causing fatal errors while processing mozzbuild file. CLOSED TREE 2024-05-16 23:32:08 +03:00
Chris H-C
4204463ce6 Bug 1896732 - Introducing mach gifft to generate Glean metric definitions for named Legacy probes r=TravisLong
Currently only supports events.

Differential Revision: https://phabricator.services.mozilla.com/D210690
2024-05-16 20:08:15 +00:00
Bryan Olsson
31d9b2c36f Bug 1897003 - Remove Fluent migration recipes for Firefox 120-123 and others, r=flod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D210580
2024-05-16 05:50:09 +00:00
Ting-Yu Lin
fb92ee5f64 Bug 1824877 Part 2 - Rename nsHTMLScrollFrame to mozilla::ScrollContainerFrame. r=dholbert
Also, change the ScrollContainerFrame::GetFrameName() to return
"ScrollContainer" instead of "HTMLScroll".

Differential Revision: https://phabricator.services.mozilla.com/D210233
2024-05-15 17:50:48 +00:00
ahochheiden
004a78a943 Bug 1866711 - On Windows, check that topsrcdir is on a ReFS drive (Dev Drive) during bootstrap r=firefox-build-system-reviewers,nalexander
The use of input() to pause the text scrolling is intentional. Users
might otherwise not see the message. It ensures the user makes an
informed decision and either switches to a Dev Drive, or hides the
recommendation.

Differential Revision: https://phabricator.services.mozilla.com/D194716
2024-05-15 17:32:29 +00:00
ahochheiden
55089cab2f Bug 1872242 - Change how the last segment of milestone_winversion is generated to improve uniqueness r=firefox-build-system-reviewers,glandium
The previous implementation used days since Jan 1 2000 for the last
16-bit segment. This was not unique enough and caused issues with
Antivirus software if two different channels were built on the same day.

The new approach uses hours since the last milestone bump and uses the
VCS to determine how long ago that was relative to the build time. This
means it will always reset when a new cycle begins, but still be unique
since the digits in the first 3 segments have incremented.

We also now use two of the 16-bits to encode the channel (nightly, beta,
ESR, and release). So two channels built within the same hour will still
be unique.

Using only 14-bits to store the 'hours since version bump', we have
about ~682 days from a version bump before we reach the maximum value we
can store. If a build is done after that point, the segment value will
always be the maximum value for that channel.

Differential Revision: https://phabricator.services.mozilla.com/D200989
2024-05-15 16:00:33 +00:00
KS
644e33da0a Bug 1887998 - Have mozperftest and raptor use the same browsertime. r=perftest-reviewers,sparky
Currently, the browsertime used by mozperftest is outdated and
maintained separately from the browsertime used in raptor tests.

This patch upgrades the browsertime used in mozperftest by now sharing
the same browsertime that is used with raptors (in `src/tools/browsertime`).

Going forward we now only have to maintain one browsertime version. This
introduces the potential of more infra changes (because previously when
upgrading raptor's browsertime we only checked raptor tests, but now we
will have to verify mozperftest) but this should be worth it to stay up
to date.

Differential Revision: https://phabricator.services.mozilla.com/D208944
2024-05-14 14:59:05 +00:00
Chris H-C
9f4b4ab30a Bug 1895786 - Vendor Glean SDK v60.1.0 r=TravisLong,supply-chain-reviewers,mach-reviewers,android-reviewers,Roger
The biggest thing for m-c is the addition of a single-duration API for
timing_distribution that was previously papered over in the FOG-specific impl
using the SDK's multi-duration API.

This ought to drop unnecessary `vec![]`-caused allocations for some fairly-
high-frequency calls to AccumulateRawDuration.

Differential Revision: https://phabricator.services.mozilla.com/D209864
2024-05-14 14:42:14 +00:00
Rob Lemley
d691a9d3db Bug 1888243 - Allow mach cargo vet to work with Thunderbird's cargo config. r=firefox-build-system-reviewers,glandium
Thunderbird has a separate config.toml.in file at comm/rust/.cargo/config.in that
cargo vet needs to use. It's set in the config variable MOZ_OVERRIDE_CARGO_CONFIG.
Before running cargo vet for Thunderbird, mach configure must run first.

Additionally, cargo vet's working directory needs to be `comm/rust`.
This change has no effect on how `mach cargo vet` works for Firefox.
To verify, `mach cargo vet suggest --verbose debug` shows the supply-chain path
in use.

Differential Revision: https://phabricator.services.mozilla.com/D205896
2024-05-14 14:21:39 +00:00
Ryan VanderMeulen
ded46257b8 Bug 1895621 - Update Android bundletool to version 1.16.0. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D209763
2024-05-13 20:37:00 +00:00
andrej
34cd136d5c Bug 1884930 - Use per-commit fenix and geckoview builds instead of downloading daily build. r=perftest-reviewers,taskgraph-reviewers,sparky,bhearsum
As a result of the mono-repo change we have a very easy way to run the startup tests on each commit vs on a nightly build.
This change allows us to push a try job, build the fenix/focus/geckoview_example apk and test the startup impact!

Differential Revision: https://phabricator.services.mozilla.com/D208240
2024-05-13 16:50:03 +00:00
Eemeli Aro
8a8a7a3b0e Bug 1877104 - Default to git source repo for fluent migration tests. r=flod,bolsson
Now that we've switched Pontoon to read from git, tools should do so as well.

Differential Revision: https://phabricator.services.mozilla.com/D209636
2024-05-13 10:41:21 +00:00
Iulian Moraru
cf1e4ee639 Backed out changeset d4ef5f3b9858 (bug 1884930) for causing Bug 1896049. CLOSED TREE 2024-05-10 17:38:49 +03:00
andrej
b801b8e482 Bug 1884930 - Use per-commit fenix and geckoview builds instead of downloading daily build. r=perftest-reviewers,taskgraph-reviewers,sparky,bhearsum
As a result of the mono-repo change we have a very easy way to run the startup tests on each commit vs on a nightly build.
This change allows us to push a try job, build the fenix/focus/geckoview_example apk and test the startup impact!

Differential Revision: https://phabricator.services.mozilla.com/D208240
2024-05-09 15:05:05 +00:00
Mike Hommey
c97e990fff Bug 1894645 - Adjust non-default-target case after bug 1459764. r=firefox-build-system-reviewers,nalexander
We changed the SHARED_LIBRARY, so we need to adjust the non-default-target
associated with it.

Differential Revision: https://phabricator.services.mozilla.com/D209226
2024-05-02 19:34:10 +00:00
Pierre-Yves David
cb9b39fc56 Bug 1894160: vendor-python: explicitly add the content of the .egg-info directory; r=ahochheiden
We are about to change the hgignore to remove the lookahead expression. This
means the "*.egg-info/" directories will be ignored everywhere again. To
prevent this causing issue with the vendoring logic, we add a new call to
add-remove explicitly listing file in ".egg-info" directories to override the
ignore pattern.

Once tracked, the ignore pattern will no longer affects these file and all will
be good.

Check the next commit for more information on the motivation.

Differential Revision: https://phabricator.services.mozilla.com/D208968
2024-05-01 14:54:58 +00:00
ahochheiden
dd1abfa37f Bug 1894157 - Remove Python2 compatibility code in Mach r=firefox-build-system-reviewers,glandium
Mach can currently only run on Python version 3.8 or higher, so it
doesn't make sense to continue having dead code that provides support
for Python2.

Differential Revision: https://phabricator.services.mozilla.com/D209030
2024-05-01 02:32:23 +00:00
ahochheiden
fe0d52d049 Bug 1894156 - Remove usage of six in mach/telemetry.py r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D209029
2024-05-01 02:32:23 +00:00
ahochheiden
7682a10da3 Bug 1894155 - Replace mhentges@mozilla.com with ahochheiden@mozilla.com from notification_emails section of pings.yaml and metrics.yaml r=sylvestre
Mitch has been inactive for ~2 years now. I don't necessarily needs to
add myself in his stead, but I think it makes sense to have me on there
as the current triage owner.

Differential Revision: https://phabricator.services.mozilla.com/D209031
2024-05-01 00:12:25 +00:00
Niklas Baumgardner
b3205338ac Bug 1892125 - Refactor screenshots preview. r=sfoster,fluent-reviewers,desktop-theme-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D207884
2024-04-30 23:55:55 +00:00
Mike Hommey
cf328a56ac Bug 1459764 - Build libraries in their FINAL_TARGET location rather than installing them during the build. r=firefox-build-system-reviewers,ahochheiden
Like bug 1255485, but for libraries.

Original patch by Chris Manchester.

Differential Revision: https://phabricator.services.mozilla.com/D63281
2024-04-30 23:29:46 +00:00
serge-sans-paille
c956aba4f0 Bug 1892198 - No longer support linkerscript style for moz_expand_libs r=glandium
@file are supported by gcc since gcc 7 and by clang since clang 3.x,
which removes the need for linker script to list input files.

We cannot directly use @file from the compiler driver (it would expand
to a large number of arguments and hit the linker limit) so pass
-Wl,@FILE instead, which is supported since binutils 2.17.

As a side effect this removes the LTO dependency from the check.

Differential Revision: https://phabricator.services.mozilla.com/D207839
2024-04-30 20:51:32 +00:00
serge-sans-paille
b1920088d7 Bug 1891787 - Remove usage of six in mozbuild/mozconfig.py r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D207607
2024-04-30 13:46:32 +00:00
serge-sans-paille
f87a5ea054 Bug 1891786 - Remove usage of six in mozbuild/makeutil.py r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D207606
2024-04-30 13:46:30 +00:00
serge-sans-paille
9f20b96dc2 Bug 1891785 - Remove usage of six in mozbuild/jar.py r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D207605
2024-04-30 13:46:29 +00:00
Florian Quèze
9118178e3b Bug 1892641 - include timestamps in BUILDSTATUS lines from gradle, r=glandium.
Differential Revision: https://phabricator.services.mozilla.com/D208531
2024-04-30 08:17:13 +00:00
Mike Hommey
2e05ea66d4 Bug 1890935 - Bump the minimum version of Rust to 1.76. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D207239
2024-04-30 07:29:43 +00:00
serge-sans-paille
62e2bfb60b Bug 1891665 - Restore generator evaluation in presence of multiple backends r=ahochheiden
Original bug introduced in 1888370.

Differential Revision: https://phabricator.services.mozilla.com/D208888
2024-04-29 19:08:27 +00:00
Cristian Tuns
4e2876c321 Backed out changeset b685d0db4248 (bug 1872242) for causing py3 failures in test_commit.py CLOSED TREE 2024-04-29 13:27:46 -04:00
ahochheiden
f55cd85614 Bug 1872242 - Change how the last segment of milestone_winversion is generated to improve uniqueness r=firefox-build-system-reviewers,glandium
The previous implementation used days since Jan 1 2000 for the last
16-bit segment. This was not unique enough and caused issues with
Antivirus software if two different channels were built on the same day.

The new approach uses hours since the last milestone bump and uses the
VCS to determine how long ago that was relative to the build time. This
means it will always reset when a new cycle begins, but still be unique
since the digits in the first 3 segments have incremented.

We also now use two of the 16-bits to encode the channel (nightly, beta,
ESR, and release). So two channels built within the same hour will still
be unique.

Using only 14-bits to store the 'hours since version bump', we have
about ~682 days from a version bump before we reach the maximum value we
can store. If a build is done after that point, the segment value will
always be the maximum value for that channel.

Differential Revision: https://phabricator.services.mozilla.com/D200989
2024-04-29 16:48:10 +00:00
Nick Alexander
dc4c630d0d Bug 1893365 - Part 2: Ignore packaged update frameworks. r=bytesized
We don't want the packaged update frameworks, we only want the
localbuild variants fetched from the `update_framework_artifacts`
extra archive.  These don't impact builds, but they clutter the object
directory and are misleading.

Differential Revision: https://phabricator.services.mozilla.com/D208662
2024-04-25 20:31:12 +00:00
Erik Nordin
c8c19a8bb3 Bug 1893022 - Move Select Translations Fluent Strings out of Preview r=fluent-reviewers,flod
Moves the Fluent strings for Select Translations out of
locales preview and into the en-US locale to mark them
to be translated by localizers for release.

Differential Revision: https://phabricator.services.mozilla.com/D208383
2024-04-25 07:03:31 +00:00
Tooru Fujisawa
062a816962 Bug 1893252 - Skip MozillaBuild version check outside of MozillaBuild. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D208561
2024-04-25 01:19:51 +00:00
Nick Alexander
33e359481d Bug 1885985 - Produce and consume macOS frameworks for artifact builds. r=spohl,application-update-reviewers,bytesized,firefox-build-system-reviewers,glandium
This patch:

1. Produces additional frameworks as part of every build.  In compile
   builds, the frameworks are built; in artifact builds, the frameworks
   binaries are taken from fetched artifacts.  It's not easy to compile a
   single framework with the same name twice in the `moz.build` DSL, so
   some file shuffling is done in `Makefile.in` files to arrange the
   correct layout.

2. Packages and uploads a new `update_framework_artifacts` extra
   archive for artifact builds to consume.

3. Consumes the new extra archive in artifact builds.

Produced frameworks live in
`dist/macos_framework_artifacts/xyz.framework/**`.

Consumed frameworks are made availabe to artifact builds in
`dist/macos_framework_artifacts`.

Bug 1885985 - Part 2:

Differential Revision: https://phabricator.services.mozilla.com/D205936
2024-04-24 20:51:25 +00:00
Jan-Erik Rediger
d23d51f602 Bug 1891745 - Update to Glean v60 and glean_parser v14 r=TravisLong,supply-chain-reviewers,mach-reviewers,android-reviewers,firefox-desktop-core-reviewers ,mconley,ahal,kaya
Differential Revision: https://phabricator.services.mozilla.com/D207869
2024-04-24 19:14:16 +00:00
Ryan VanderMeulen
d49f4481b3 Bug 1892371 - Update to JDK 17.0.11. r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D208279
2024-04-23 21:19:48 +00:00
Sylvestre Ledru
4613809d59 Bug 1892670 - Upgrade some mach doc dependencies r=firefox-source-docs-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D208109
2024-04-22 18:57:20 +00:00
Cristian Tuns
f1d454ad58 Backed out changeset 390c5748d868 (bug 1892198) for causing Bug 1892493. CLOSED TREE 2024-04-19 15:46:42 -04:00
Cristina Horotan
efafc0cd7b Backed out changeset a6309c1903e7 (bug 1885985) for busted artifact builds a=backout 2024-04-19 18:21:33 +03:00
serge-sans-paille
074aeb56b5 Bug 1892198 - No longer support linkerscript style for moz_expand_libs r=glandium
@file are supported by gcc since gcc 7 and by clang since clang 3.x,
which removes the need for linker script to list input files.

We cannot directly use @file from the compiler driver (it would expand
to a large number of arguments and hit the linker limit) so pass
-Wl,@FILE instead, which is supported since binutils 2.17.

As a side effect this removes the LTO dependency from the check.

Differential Revision: https://phabricator.services.mozilla.com/D207839
2024-04-19 09:31:13 +00:00
serge-sans-paille
e003bc34c6 Bug 1891778 - Move mozilla_build_version out of mozbuild/util.py r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D207594
2024-04-19 09:08:57 +00:00