Commit Graph

8128 Commits

Author SHA1 Message Date
Eemeli Aro
2c47f765da Bug 1793572 - Convert webrtcIndicator.properties to Fluent. r=mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D158760
2022-10-08 07:35:28 +00:00
pmcmanis
b3d8c6d5d8 Bug 1793786 - Update Glean version to 51.4.0 r=chutten,supply-chain-reviewers,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158759
2022-10-07 20:19:49 +00:00
Eemeli Aro
45a8fe66c1 Bug 1734217 - Merge all about:neterror front-end handling under toolkit. r=mkmelin,smaug,nalexander,flod,Gijs
Following a suggestion from :mkmelin, this seems like an optimal solution: the overriding/duplication in m-c is removed, and all users get a more powerful default choice that they're still able to override with their own, should they so wish.

For clarity and to match other `about:` pages, the shared code is placed under `toolkit/content/`, and all content under `docshell/resources/` is removed.

Differential Revision: https://phabricator.services.mozilla.com/D156478
2022-10-07 18:40:27 +00:00
Eemeli Aro
ed0c600d94 Bug 1734217 - Migrate aboutNetError from DTD to Fluent. r=fluent-reviewers,prathiksha,flod
To support and enable the migration, quite a bit of refactoring is needed.

Many of the localised error messages are in fact fragments of HTML, including messages with nesting not supported by Fluent. In the FTL, these have each been split up into multiple messages using a custom migration transform (included directly in the script). This allows for localisers to work with the messages without HTML syntax, but does require the messages' structures to be maintained elsewhere. To that effect, the JS file represents messages as arrays of `[tagName, l10nId, l10nArgs]` tuples from which it builds the messages' elements. This fixex bug 1621895.

Though extensive, the refactoring done here is for the most part limited to what's required by the Fluent migration. For instance, not all issues raised in bug 1722896 are resolved here. Places where the structure was sufficiently messy to have introduced bugs or dead code have been cleaned up a bit, though.

This variant of netError that's used by the browser is not itself overridden by anyone else, which allows for it to be tackled first and independently of the docshell and mobile variants. As a part of its content is still passed in as a query parameter, it's possible that later refactors of the rest of the netError system will allow for further clean-up here.

Differential Revision: https://phabricator.services.mozilla.com/D155951
2022-10-07 18:40:27 +00:00
Butkovits Atila
1bed1fd6e7 Backed out changeset a5df97f61fec (bug 1793786) for causing build bustages. CLOSED TREE 2022-10-07 16:35:21 +03:00
pmcmanis
5d43825505 Bug 1793786 - Update Glean version to 51.4.0 r=chutten,supply-chain-reviewers,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158759
2022-10-07 13:05:21 +00:00
Eemeli Aro
b30456f337 Bug 1792464 - Convert findbar.properties to Fluent. r=NeilDeakin,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D158768
2022-10-07 08:23:50 +00:00
ahochheiden
1c53d1d491 Bug 1793828 - Always print the reason why the site is not 'up-to-date' r=firefox-build-system-reviewers,nalexander
Previously most 'reasons' could only be seen if using a debugger, which
was not helpful when there was a problem in CI.

Depends on D158703

Differential Revision: https://phabricator.services.mozilla.com/D158704
2022-10-06 18:18:32 +00:00
ahochheiden
6507ca73e7 Bug 1793828 - Also use normcase in addition to normpath for site_package_dirs r=firefox-build-system-reviewers,nalexander
This will resolve issues of drive letter uppercase/lowercase mismatch
causing the venv/site to be considered 'out-of'date'.

Differential Revision: https://phabricator.services.mozilla.com/D158703
2022-10-06 18:02:00 +00:00
Eemeli Aro
54dedbc0c2 Bug 1793581 - Convert ContentCrashHandlers.jsm strings to Fluent. r=gsvelto,fluent-reviewers,flod
Relevant strings from both browser.ftl and browser.properties are collected into a new contentCrash.ftl, which is only loaded when needed.

Differential Revision: https://phabricator.services.mozilla.com/D158649
2022-10-06 12:07:11 +00:00
Eemeli Aro
5ea595e0de Bug 1793570 - Convert AndNMoreFiles string from HtmlForm.properties to Fluent. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D158581
2022-10-05 11:21:34 +00:00
Eemeli Aro
f4e7a47db3 Bug 1793548 - Report error rather than fail in fluent-migration-test for missing bug identifier. r=flod
Differential Revision: https://phabricator.services.mozilla.com/D158545
2022-10-05 11:04:34 +00:00
Malte Jürgens
de658cd08f Bug 1779931 - Make installing gconf2-devel during openSUSE bootstrap optional r=ahochheiden
- Added the variable `OPTIONAL_BROWSER_PACKAGES`, which contains
  a list of packages which should, if possible, be installed with
  zypper. If that isn't possible because the package can't be
  found, just display a warning and continue.
- Add `gconf2-devel` to `OPTIONAL_BROWSER_PACKAGES`, since
  gconf2-devel is not available in Tumbleweed repos and also
  not required to build Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D152217
2022-10-04 16:38:55 +00:00
Emilio Cobos Álvarez
d71d3c19ed Bug 1792809 - Make library and other windows keep stretching after bug 1665476. r=eemeli
Much like the dialog changes in bug 1792730.

Differential Revision: https://phabricator.services.mozilla.com/D158351
2022-10-04 10:21:05 +00:00
Emilio Cobos Álvarez
789b0bc2c6 Bug 1792730 - Keep dialogs stretching over their preferred width after bug 1665476. r=Gijs,preferences-reviewers,eemeli
width gets honored properly now. What these want is really a min-width.

Differential Revision: https://phabricator.services.mozilla.com/D158286
2022-10-02 01:40:13 +00:00
Sebastian Hengst
e25fe23e90 Bug 1741379 - set 'Mach Vendor & Updatebot' as Bugzilla component for related files. r=tjr
Bugzilla component got added in bug 1740779.

Differential Revision: https://phabricator.services.mozilla.com/D131230
2022-09-30 02:04:59 +00:00
Mike Hommey
ff425ddcf1 Bug 1792666 - Use -isysroot instead of --sysroot on mac. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D158302
2022-09-29 07:50:27 +00:00
Alex Ionescu
e5da1f325e Bug 1789229 - Add side-by-side docs r=perftest-reviewers,sparky
Add docs and fix a local bug that prevents the command from running.

Differential Revision: https://phabricator.services.mozilla.com/D157920
2022-09-23 14:33:21 +00:00
Olivier Tilloy
1bf47c9302 Bug 1789310 - Add an "Ubuntu" token to the UA string when running as a snap on an Ubuntu host r=mkaply,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156492
2022-09-22 18:52:44 +00:00
Mike Hommey
3ddbde0457 Bug 1791952 - Show suppressed warnings before warning summary. r=firefox-build-system-reviewers,andi
This makes the warning summary more visible at the end of the
build log.

Differential Revision: https://phabricator.services.mozilla.com/D157899
2022-09-22 08:03:02 +00:00
Mike Hommey
e019e65008 Bug 1790540 - Gracefully handle when topobjdir is not set in MozbuildObject.mozconfig. r=firefox-build-system-reviewers,nalexander
This is a condition that happens when going through the js/src code path
in build/moz.configure/init.configure:mozconfig.

Differential Revision: https://phabricator.services.mozilla.com/D157769
2022-09-21 03:29:55 +00:00
Eemeli Aro
90bc1261e7 Bug 1786186 - Migrate mobile about:config to Fluent. r=geckoview-reviewers,fluent-reviewers,flod,owlish
This migration creates the first 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 about:config view's strings are available from its 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/D155450
2022-09-20 11:53:37 +00:00
Johan Lorenzo
0e57af4969 Bug 1784232 - Bump taskgraph to v3.2.0 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D155978
2022-09-20 09:11:45 +00:00
Mike Hommey
35f28283e0 Bug 1791470 - Remove stale webrtc moz.build files. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D157682
2022-09-20 09:11:36 +00:00
Johan Lorenzo
b984b3449b Bug 1786291 - Remove esr91 references r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D156972
2022-09-19 13:23:03 +00:00
Jan-Erik Rediger
f6a6e37ef5 Bug 1788040 - Update to Glean v51.2.0. r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156937
2022-09-13 12:57:58 +00:00
Eemeli Aro
5992582cb9 Bug 1786185 - Migrate XMLPrettyPrint from DTD to FTL. r=gregtatum,smaug,fluent-reviewers,flod
The synchronous DocumentL10n instance that's created here is not exposed on the root document, as that is the user-defined XML document. The localization root that's connected to it is in a closed shadow root.

This localization won't update on locale changes, but that matches what this view was previously doing.

Differential Revision: https://phabricator.services.mozilla.com/D156544
2022-09-10 08:24:25 +00:00
Valentin Rigal
b5432c9812 Bug 1790000 - On Automation mozlint output file handler should be closed. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D156664
2022-09-09 12:02:13 +00:00
criss
52bd999f86 Bug 1789687 - Fix lint failure , r=fix . CLOSED TREE 2022-09-07 22:39:24 +03:00
Tom Ritter
32188211aa Bug 1789687: Fix the replace-regex action for moz.yaml r=jewilde
We accidently passed True when we want a non-regex replacement.
This works for those, but not for the regex ones.

Differential Revision: https://phabricator.services.mozilla.com/D156715
2022-09-07 19:18:33 +00:00
ahochheiden
01d4bb1480 Bug 1789311 - Only attempt to add Microsoft Defender Antivirus Exclusion on Windows r=firefox-build-system-reviewers,nalexander
Since PowerShell is also available on Linux, checking for that is not
sufficient. We must first check if we're on Windows, and if we're not,
return early.

Differential Revision: https://phabricator.services.mozilla.com/D156602
2022-09-06 22:15:14 +00:00
Mike Hommey
ef98b71931 Bug 1788854 - Require MacOSX 11.3 SDK. r=firefox-build-system-reviewers,andi
Because the relevant SDK is not installed on the mac workers, we pull it
via fetches and adjust the plain build mozconfig as well as mozconfigs
for rusttest, grouping most things in build/macosx/mozconfig.common.

And because the SDK itself now has all the relevant headers, we don't
need the old check for system C++ headers (which also happens to have
outdated instructions)

Differential Revision: https://phabricator.services.mozilla.com/D156280
2022-09-04 21:07:02 +00:00
Francesco Lodolo (:flod)
bcead1dfc0 Bug 1789063 - Remove Fluent migration recipes for Firefox 96-104, r=eemeli DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D156364
2022-09-03 19:04:02 +00:00
Alex Ionescu
6f2827d689 Bug 1774181 - Provide a mozperftest command to generate a side-by-side comparison r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D149230
2022-09-02 15:52:42 +00:00
Eemeli Aro
656bd06683 Bug 1734220 - Migrate translation-notification.js to Fluent. r=jaws,fluent-reviewers,flod
The strings from the translation.dtd and translation.properties files are all
merged into a single translationNotification.ftl file.

The string concatenation used in the original is maintained here, as DOM
Localization does not allow for using a <menulist> as a localized element.

Differential Revision: https://phabricator.services.mozilla.com/D155110
2022-09-02 11:03:31 +00:00
Eemeli Aro
4ce19437ce Bug 1785216 - Migrate notification.dtd to Fluent. r=jaws,fluent-reviewers,flod,mconley
Except for the close-notification-message, all of the notification.dtd
strings are only used by popupnotification.js. Accordingly, the strings
are migrated to two different FTL files.

Differential Revision: https://phabricator.services.mozilla.com/D154890
2022-09-02 11:03:31 +00:00
Eemeli Aro
9e7ffeb5e0 Bug 1446164 - Migrate formautofill edit dialogs to Fluent. r=sgalich,fluent-reviewers,flod
Migrating the strings used by the edit dialogs also allows/requires for their migration elsewhere.

Some streamlining is applied to how autofillEditForms.js gets access to e.g. FormFillUtils methods, so that they are no longer routed via the XHTML files' script tags. The prior independence of this file from internal dependencies appears to have been in place to support its use as a part of the Payments API's UI, but that was dropped in bug 1721229.

The Fluent migration script included in this patch also covers changes from the immediately preceding patch.

The intl documentation change is a typo correction that was noticed while working on this patch.

Differential Revision: https://phabricator.services.mozilla.com/D155705
2022-09-01 20:35:37 +00:00
Norisz Fay
e1a0b90205 Backed out 2 changesets (bug 1786708, bug 1446164) for causing multiple failures CLOSED TREE
Backed out changeset 469e2500f00e (bug 1446164)
Backed out changeset 0d298c6f7475 (bug 1786708)
2022-09-01 15:34:56 +03:00
Eemeli Aro
5475c4b139 Bug 1446164 - Migrate formautofill edit dialogs to Fluent. r=sgalich,fluent-reviewers,flod
Migrating the strings used by the edit dialogs also allows/requires for their migration elsewhere.

Some streamlining is applied to how autofillEditForms.js gets access to e.g. FormFillUtils methods, so that they are no longer routed via the XHTML files' script tags. The prior independence of this file from internal dependencies appears to have been in place to support its use as a part of the Payments API's UI, but that was dropped in bug 1721229.

The Fluent migration script included in this patch also covers changes from the immediately preceding patch.

The intl documentation change is a typo correction that was noticed while working on this patch.

Depends on D155478

Differential Revision: https://phabricator.services.mozilla.com/D155705
2022-09-01 08:26:47 +00:00
Ryan VanderMeulen
3d5d730c15 Bug 1785920 - Bump JDK to 17.0.4.1+1. r=geckoview-reviewers,jonalmeida
Depends on D154988

Differential Revision: https://phabricator.services.mozilla.com/D155024
2022-08-31 22:10:38 +00:00
Mike Hommey
0c8fa4d1b1 Bug 1785002 - Update unicode-ident to 1.0.3. r=emilio,supply-chain-reviewers,dnazer
Differential Revision: https://phabricator.services.mozilla.com/D154758
2022-08-31 21:07:19 +00:00
Basix
629076aa17 Bug 1787280 - Always use UTF-8 for reading mozconfig. r=ahochheiden
This prevents certain Windows Python installations from using the locale encoding.

Differential Revision: https://phabricator.services.mozilla.com/D156078
2022-08-31 18:43:07 +00:00
andrej
2afa39dd24 Bug 1786092 - Resolve a few miscalleanous WPT bugs. r=sparky,perftest-reviewers
What are we doing:
- Resolving a few bugs/user requests

Issues being addressed:
- Resolved issue where if the WPT_key.txt file is not available locally it does not affect running ./mach perftest-test
- Added section to WPT where we display the amount of tests we have remaining
- Altered the request_with_timeout function, to better handle requests

Differential Revision: https://phabricator.services.mozilla.com/D155268
2022-08-31 14:06:26 +00:00
Byoungchan Lee
19b528dd85 Bug 1785953 - Ignore another ccache stats output. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D155762
2022-08-30 00:05:38 +00:00
Eemeli Aro
dd06d4be67 Bug 1786027 - Migrate appPicker.dtd to Fluent. r=jaws,fluent-reviewers,flod
I was not able to test this manually as it's a Windows-only component,
but it's at least somewhat covered by the tests in
    browser/components/preferences/tests/browser_change_app_handler.js
which pass in CI.

Differential Revision: https://phabricator.services.mozilla.com/D155105
2022-08-27 07:58:29 +00:00
ahochheiden
700d2d5ffb Bug 1777414 - Replace all uses of distutils.version.LooseVersion with looseversion.LooseVersion r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D151064
2022-08-26 23:05:25 +00:00
ahochheiden
934d2e7234 Bug 1777414 - Remove Python2 specific code from our Version subclass r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D151063
2022-08-26 19:11:12 +00:00
Eemeli Aro
fc7b79586e Bug 1786055 - Migrate styleeditor DTD localization to Fluent. r=nchevobbe,fluent-reviewers,flod
After the preceding change, the editMenuOverlay strings are only used by the styleeditor.
Therefore it makes sense to migrate them here specifically to its localization file.

Differential Revision: https://phabricator.services.mozilla.com/D155449
2022-08-26 16:31:40 +00:00
Tom Ritter
8c11e2117e Bug 1786948: Remove dead code from the moz.yaml schema validation r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D155596
2022-08-25 19:37:49 +00:00
Ted Campbell
12c4c6324a Bug 1786142 - Use actual git clone when bootstrapping git-cinnabar in mozboot r=firefox-build-system-reviewers,andi
The upstream git-cinnabar repo no longer has the `git-cinnabar` scripts which
breaks the logic in mozboot. We no longer need to worry about making those files
executable and can simply use the download.py script to do the work. For the
current versions of download.py to work correctly, we need the git metadata to
exist, so use a --depth=1 clone instead.

Differential Revision: https://phabricator.services.mozilla.com/D155502
2022-08-24 19:33:53 +00:00
Nika Layzell
7bf48df86c Bug 1786062 - Part 2: Fix pylint failure in vendor_rust.py CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D155474
2022-08-24 14:04:48 +00:00
Nika Layzell
b9da521e9e Bug 1786062 - Stop discarding non-vet errors from cargo vet in ./mach vendor rust, r=tjr,glandium
This should make handling errors more reliable in this situation.

Unfortunately I was unable to test this change, as on my local machine,
`./mach vendor rust` fails with an error even on a fresh checkout of
mozilla-central due to what appears to be an issue with loading
jsparagus sources.

Differential Revision: https://phabricator.services.mozilla.com/D155090
2022-08-24 13:40:03 +00:00
Eemeli Aro
0b78e9e392 Bug 1734221 - Migrate datetimebox strings from DTD to FTL. r=emilio,fluent-reviewers,flod
As the widget requires the individual fields' placeholder values to
be known during their build, the DOMLocalization instance used here
needs to have sync methods enabled. For the same reason, the
placeholder strings need to be separate messages, rather than
attributes on the same message as the corresponding label.

Differential Revision: https://phabricator.services.mozilla.com/D154448
2022-08-24 08:32:13 +00:00
Tom Ritter
05eb26435b Bug 1785139 - linting fixup for vendor_manifest. r=lint-fix CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D155109
2022-08-19 19:49:26 +00:00
Tom Ritter
1931664d08 Bug 1785139: Try the shorthash when running ./mach vendor on a rust create r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D154827
2022-08-19 19:36:52 +00:00
Butkovits Atila
22480aa8be Backed out changeset d937f31a99c1 (bug 1785139) for causing linting failures. CLOSED TREE 2022-08-18 17:36:14 +03:00
Tom Ritter
696b99e059 Bug 1785139: Try the shorthash when running ./mach vendor on a rust create r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D154827
2022-08-18 14:19:35 +00:00
Sean Pedigo
c8c055c4f4 Bug 1752202 - Updated documentation to better inform contributers how to debug Mach. r=ahal
Depends on D137058

Differential Revision: https://phabricator.services.mozilla.com/D137066
2022-08-17 21:18:08 +00:00
Marian-Vasile Laza
2dac282ab0 Backed out changeset a36fe75347a1 (bug 1785174) for causing linting failures. 2022-08-17 20:51:11 +03:00
Ryan VanderMeulen
e2fec65aa0 Bug 1785174 - Bump JDK to 18.0.2+9. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D154858
2022-08-17 15:20:24 +00:00
Ryan VanderMeulen
f4b6916589 Bug 1785174 - Update bundletool to 1.11.0. r=geckoview-reviewers,calu
Depends on D154848

Differential Revision: https://phabricator.services.mozilla.com/D154849
2022-08-17 15:20:23 +00:00
Ryan VanderMeulen
229bea0e22 Bug 1785174 - Update cmdline-tools to 7.0. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D154848
2022-08-17 15:20:23 +00:00
Eemeli Aro
c48445143e Bug 1731351 - Move restoreColumnOrder.label from DTD to FTL. r=fluent-reviewers,flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D154517
2022-08-17 08:06:41 +00:00
Makoto Kato
32efa4b16e Bug 1783959 - Add --profile argument when using custom profile. r=firefox-build-system-reviewers,glandium
This is regression by bug 1581971.

When using custom profile to run GVE via `./mach run --profile <directory>`,
we add "--profile" argument on `adb`. But, after landing bug 1581971, we
don't pass any profile arguments unfortunately.

So we should add it to use custom profile.

Also, This fixes that `./mach run --enable-fission` is broken. We don't need
`--profile` argument to run GVE with fission.

Differential Revision: https://phabricator.services.mozilla.com/D154772
2022-08-17 03:13:55 +00:00
Eemeli Aro
28bccea7aa Bug 1771752 - Migrate notification alert DTD strings to Fluent. r=fluent-reviewers,flod,jaws
The alert.properties file is not migrated here, as its contents are
also used by OS-specific alert notifications:
- widget/cocoa/OSXNotificationCenter.mm
- widget/windows/ToastNotificationHandler.cpp

Differential Revision: https://phabricator.services.mozilla.com/D154380
2022-08-16 16:24:23 +00:00
Kershaw Chang
35d82ae8cc Bug 1783822 - Add node 'ws' library for xpcshell test, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D154097
2022-08-16 07:39:34 +00:00
Mike Hommey
656eca9622 Bug 1783985 - Bump MSRV to 1.61.0. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D154340
2022-08-16 00:56:23 +00:00
Sylvestre Ledru
e9eade44dc Bug 1784857 - ride along: fix some 'line too long' r=linter-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D154641
2022-08-15 20:09:05 +00:00
Tom Ritter
ec23b10cb4 Bug 1783494: Keep moz.build files within the full directory tree; not just the top level directory r=andi
Differential Revision: https://phabricator.services.mozilla.com/D154002
2022-08-15 18:54:47 +00:00
Eemeli Aro
eda109bfb2 Bug 1771126 - Migrate resetProfileProgress strings from DTD to FTL. r=fluent-reviewers,flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D154523
2022-08-15 13:54:19 +00:00
Eemeli Aro
ad69671da6 Bug 1731353 - Migrate TabModalPrompt strings from DTD to FTL. r=fluent-reviewers,mossop,flod
This migrates the remaining strings from both commonDialog.dtd and
dialogOverlay.dtd into a single new tabprompts.ftl file, as they are
only used by TabModalPrompt.

Differential Revision: https://phabricator.services.mozilla.com/D154423
2022-08-15 11:45:04 +00:00
Eemeli Aro
a23d23117d Bug 1731353 - Migrate commonDialog strings from DTD to FTL. r=fluent-reviewers,mossop,flod
This migrates only the strings used by commonDialog.xhtml

Differential Revision: https://phabricator.services.mozilla.com/D154422
2022-08-15 11:45:03 +00:00
Marian-Vasile Laza
64e5059d3d Backed out 2 changesets (bug 1731353) for causing mochitest failures on test_ui_modalprompt.html and multiple bc failures. CLOSED TREE
Backed out changeset 50a6a70d01fd (bug 1731353)
Backed out changeset 123d9498cd15 (bug 1731353)
2022-08-15 10:10:54 +03:00
Eemeli Aro
bff9e7482d Bug 1731353 - Migrate TabModalPrompt strings from DTD to FTL. r=fluent-reviewers,mossop,flod
This migrates the remaining strings from both commonDialog.dtd and
dialogOverlay.dtd into a single new tabprompts.ftl file, as they are
only used by TabModalPrompt.

Differential Revision: https://phabricator.services.mozilla.com/D154423
2022-08-15 06:07:33 +00:00
Eemeli Aro
efbe90cdd8 Bug 1731353 - Migrate commonDialog strings from DTD to FTL. r=fluent-reviewers,mossop,flod
This migrates only the strings used by commonDialog.xhtml

Differential Revision: https://phabricator.services.mozilla.com/D154422
2022-08-15 06:07:32 +00:00
Mike Hommey
78274e3bef Bug 1784178 - Set host compiler flags in directories with rust code. r=firefox-build-system-reviewers,andi
While here, square off the situation wrt compiler flags:
- target compiler flags used to be set conditionally but have been made
  unconditional in bug 1409276, while leaving a hack around that adds
  them under some conditions for host directories. We remove the hack
  but keep the corresponding comment that is still relevant and should
  be taken into account if target compiler flags are made conditional
  later on.
- host compiler flags were excluded for host rust libraries, but that
  was an oversight of bug 1409276, which should have applied the same
  logic for host compilations.
- host compiler flags are actually potentially necessary for target rust
  compilations because rust build scripts may build host C/C++ code
  (that's the case for GLSL). We have no idea when that may happen, so
  we always propagate them. config/makefiles/rust.mk then further
  propagates the flags to cargo, but they have to be set in the backend
  in the first place for that to happen.

Differential Revision: https://phabricator.services.mozilla.com/D154326
2022-08-12 20:16:11 +00:00
Jan-Erik Rediger
72b2c1829e Bug 1783754 - Update to Glean v51.1.0. r=TravisLong,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154088
2022-08-09 15:58:51 +00:00
Nika Layzell
665766a29c Bug 1759555 - Part 2: Partially configure rust-analyzer for ./mach ide vscode, r=glandium,andi
In order to allow rust-analyzer to be able to use the build script in
the mozbuild crate to discover the configuration information, this patch
adds new flags to the vscode config to tell rust-analyzer to invoke
cargo through `./mach cargo check`, and use the correct target directory
within the objdir rather than `$(topsrcdir)/target`.

Due to the virtual filesystem used by rust-analyzer not including files
in the object directory, this is not sufficient to get suggestions for
symbols from the included files, however it will accurately fetch
diagnostics upon save and run things like proc macros.

A new feature will likely need to be added to rust-analyzer to allow us
to specify additional paths to add to the source root for packages to
fix that issue.

Due to this change using `./mach cargo check`, rather than running it
independently, we don't run into issues caused by running `check`
against crates in the workspace which aren't being used, making the
diagnostics more useful.

An additional feature needed to be added to `./mach cargo check` to
allow specifying `--message-format=json`. I am open to suggestions for a
more elegant way to communicate this flag into the makefile.

Depends on D153269

Differential Revision: https://phabricator.services.mozilla.com/D153270
2022-08-09 14:12:12 +00:00
Nicholas Rishel
6e432b193e Bug 1782818 - Use COM notification server for toast notifications in MSIX packages. r=nalexander,Jamie
This converges Windows native notification behavior across all installers to use the COM notification server.

This also fixes an issue where interacting with an MSIX notification opened a new window with new tabs correlated to the toast notification launch arguments. MSIX by default calls the application sending a notification with the provided launch arugments, which was an problem as we use launch arguments in the COM server to reconstruct the origin of a notification.

Differential Revision: https://phabricator.services.mozilla.com/D153538
2022-08-04 21:46:15 +00:00
Tom Ritter
a0aee377f9 Bug 1778567: Add GECKO_PATH to any scripts or commands we run via run- action r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D151746
2022-08-04 14:09:39 +00:00
Butkovits Atila
c2863c1282 Bug 1782857 - Lint fix. a=fix. CLOSED TREE 2022-08-03 18:04:17 +03:00
Nick Alexander
78a085fbe8 Bug 1782857 - Ignore (drive letter, on Windows) case in Python path. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D153546
2022-08-03 14:29:52 +00:00
Mark Banner
a335851da6 Bug 1782523 - Update NodeJS to latest versions for the branches. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D153445
2022-08-03 07:29:08 +00:00
Jan-Erik Rediger
94b2463ce2 Bug 1781030 - Upgrade to Glean v51.0.1. r=perry.mcmanis,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152626
2022-08-01 10:50:47 +00:00
ahochheiden
18358a968b Bug 1777414 - Vendor standalone 'looseversion' at version 1.0.1 r=firefox-build-system-reviewers,glandium
This will be used to replace the `LooseVersion` within `distutils`.
`StrictVersion` from `distutils` will need something else, as swapping
usages of `StrictVersion` with `LooseVersion` does not result in the
desired behavior.

Differential Revision: https://phabricator.services.mozilla.com/D151062
2022-07-29 02:03:37 +00:00
Ryan Hunt
5b07c7d827 Bug 1781425 - wasm: Remove baldrdash. r=jseward,supply-chain-reviewers
The baldrdash integration of Cranelift is agreed between SM and CL
to be the wrong shape. Our import of the code base is also old and
causes difficulties for us when upgrading some crates (see bug
1774829). We should remove it for now to unblock bug 1774829.

Differential Revision: https://phabricator.services.mozilla.com/D152806
2022-07-27 22:30:17 +00:00
Jan-Erik Rediger
8dcad8e62e Bug 1781085 - Update to Glean v50.1.3 r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152770
2022-07-27 10:24:48 +00:00
criss
e3d5438abb Backed out changeset 581d7209c242 (bug 1781085) for causing build bustages. CLOSED TREE 2022-07-27 12:19:52 +03:00
Jan-Erik Rediger
a3f580ed1f Bug 1781085 - Update to Glean v50.1.3 r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152770
2022-07-27 08:58:11 +00:00
Marian-Vasile Laza
26bcf8de12 Merge mozilla-central to autoland. a=merge CLOSED TREE 2022-07-21 15:53:39 +03:00
Marian-Vasile Laza
007a92ab7e Backed out 3 changesets (bug 1776642) for Pip version update causes CI tasks to fail. CLOSED TREE
Backed out changeset 450e42238ace (bug 1776642)
Backed out changeset 40cfebba22ac (bug 1776642)
Backed out changeset c4534787d467 (bug 1776642)
2022-07-21 15:50:20 +03:00
Nicklas Boman
d99f46f0ad Bug 1780449 - If mercurial is not installed mach will not recognize your source folder as a hg checkout r=firefox-build-system-reviewers,ahochheiden
fix if mercurial is not installed when running mach bootstrap, it will return None and mach will be confused if you are in a hg or git directory at all.

Differential Revision: https://phabricator.services.mozilla.com/D152310
2022-07-21 09:12:21 +00:00
Jim Blandy
5528bb5fa6 Bug 1772635: Handle some new ccache categories. r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D151570
2022-07-20 23:38:16 +00:00
Mike Hommey
efc8fa87e0 Bug 1762037 - Bump numpy and scipy to latest versions. r=jmaher
The older versions don't have prebuilt wheels for python 3.9 and newer.
Unfortunately, the latest versions don't support python 3.7 and older,
so keep the older versions for those.

Differential Revision: https://phabricator.services.mozilla.com/D152246
2022-07-20 20:31:14 +00:00
Sylvestre Ledru
73d4a6ca57 no bug - Fix a few typo found by the next version of codespell r=marco
Differential Revision: https://phabricator.services.mozilla.com/D150321
2022-07-20 15:26:22 +00:00
Malte Jürgens
fbdee231ac Bug 1780220 - Prompt Mercurial installation on openSUSE like on Debian r=ahochheiden
- Removed `install_mercurial`, since it doesn't seem to be used.
- Rewrote `upgrade_mercurial` to act more like on Debian,
  meaning it will prompt the user if Mercurial should be
  installed via zypper or pip, and install via zypper if
  non-interactive. Everything is then installed system-
  wide.
- Moved `MERCURIAL_INSTALL_PROMPT` into `base.py`
- Added parantheses to `self.zypper_update()`.

Differential Revision: https://phabricator.services.mozilla.com/D152207
2022-07-19 19:30:38 +00:00
Andrew Halberstadt
816f3eeaca Bug 1780087 - [docs] Implement a 'searchfox' role, r=firefox-source-docs-reviewers,sylvestre
See the docstring in this patch for usage examples.

Differential Revision: https://phabricator.services.mozilla.com/D152124
2022-07-19 15:41:07 +00:00
Gijs Kruitbosch
90e2a23978 Bug 1780159 - add a default value for cmd_and_path in vscode detection for non-Windows/macOS/Linux OSes, r=andi,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152159
2022-07-19 13:53:54 +00:00
James Teow
8a0ddc1981 Bug 1780203 - Fix input error in bug_1737043_aboutNetError.py - r=flod
Differential Revision: https://phabricator.services.mozilla.com/D152168
2022-07-19 12:30:05 +00:00
Malte Jürgens
62c4db2c4b Bug 1779932 - Add "unzip" dependency to openSUSE bootstrap r=firefox-build-system-reviewers,ahochheiden. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D151978
2022-07-18 18:28:22 +00:00
Gijs Kruitbosch
92d44f3713 Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129156
2022-07-19 03:27:18 +00:00
Marian-Vasile Laza
882b3a429f Backed out changeset 3259605b1856 (bug 1779932) for causing bc failures. CLOSED TREE 2022-07-18 23:31:48 +03:00
Malte Jürgens
ede1de7091 Bug 1779933 - Fix non-interactive zypper bootstrap r=firefox-build-system-reviewers,ahochheiden
The `-n` flag should be located directly after
the zypper command, not after the subcommands.

Differential Revision: https://phabricator.services.mozilla.com/D151979
2022-07-18 18:32:11 +00:00
Malte Jürgens
071e0043a7 Bug 1779932 - Add "unzip" dependency to openSUSE bootstrap r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D151978
2022-07-18 18:28:22 +00:00
Gijs Kruitbosch
e00e722239 Bug 1773520 - add vscode build backend by default if vscode is installed, r=firefox-build-system-reviewers,nalexander,glandium
Differential Revision: https://phabricator.services.mozilla.com/D150147
2022-07-18 13:14:23 +00:00
Iulian Moraru
5e7070f988 Backed out changeset 89d291a9ee9b (bug 1737043) for causing xpcshell failures on test_URIFixup_check_host.js. CLOSED TREE 2022-07-17 20:47:23 +03:00
Gijs Kruitbosch
393bdf2f46 Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129156
2022-07-17 16:48:44 +00:00
Sebastian Hengst
5f5698c214 Bug 1765416 - disable test_vendor.py on all platforms. r=ahochheiden DONTBUILD
Test can be reenabled after the migration to Python 3.7+ (bug 1734402) because
the fixed Poetry version (1.2.0) has that as minimum requirement.

Differential Revision: https://phabricator.services.mozilla.com/D151913
2022-07-15 15:54:56 +00:00
Andi-Bogdan Postelnicu
3fe05b85d6 Bug 1778358 - add c++17 flag to the static analysis test. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151910
2022-07-15 08:26:25 +00:00
Travis Long
2855beea72 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-14 13:11:13 +00:00
Steve Fink
612f01dc0c Bug 1774698 - Add mach perftests --browsertime-existing-results flag r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D149581
2022-07-13 22:59:29 +00:00
Nick Alexander
cf7750a206 Bug 1775132 - Part 1: Make profile service select background task profile directory. r=mossop
This allows the profile service to handle `XRE_PROFILE_PATH`,
`--profile`, etc as normal before choosing a "default" background task
profile directory.

Differential Revision: https://phabricator.services.mozilla.com/D149918
2022-07-13 20:12:12 +00:00
Norisz Fay
31e76fd90f Backed out changeset ce93635100b6 (bug 1772132) for causing webrender build bustage CLOSED TREE 2022-07-13 22:08:19 +03:00
Travis Long
a285a07c6e Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 18:00:35 +00:00
Bogdan Szekely
6030807e22 Backed out changeset 1ff9bb6e4a8c (bug 1772132) for causing build bustage. CLOSED TREE 2022-07-13 16:17:53 +03:00
Travis Long
e826b78da5 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 12:59:16 +00:00
smolnar
36788ca992 Backed out changeset ab4790cd94eb (bug 1772132) for causing wrench bustage CLOSED TREE 2022-07-13 12:04:13 +03:00
Travis Long
86debe7916 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 08:43:41 +00:00
Tom Ritter
2b7db8ded5 Bug 1776492: Add support for a run-command action in moz.yaml r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D150279
2022-07-11 19:26:28 +00:00
Andreea Pavel
64bec9174f Bug 1765416 - disable test_vendor.py on opt builds r=ahochheiden DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151435
2022-07-11 17:29:50 +00:00
Johan Lorenzo
75e695f102 Bug 1776642 - part 2: Stop installing 'carrot' in mach tests and use a more recent package instead r=jcristau
carrot has been unmaintained since 2010[1]. setuptools>=58 cannot install it (same error as previous commit)

[1] https://pypi.org/project/carrot/#history

Differential Revision: https://phabricator.services.mozilla.com/D150969
2022-07-08 15:58:05 +00:00
Mark Banner
fbbe33b4ea Bug 1762571 - Upgrade NodeJS to v12 for the build system and v16 for tests. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D147173
2022-07-07 22:08:59 +00:00
Andi-Bogdan Postelnicu
dce3119e29 Bug 1650335 - for clang-tidy based analysis do not set cpp std option. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151101
2022-07-06 08:15:33 +00:00
Narcis Beleuzu
ea20959e2d Backed out 1 changesets (bug 1773520) for breaking the ./mach ide vscode
Backed out changeset d9571dde686f (bug 1773520)
2022-07-01 09:32:36 +03:00
Iulian Moraru
eaae7245b9 Backed out 3 changesets (bug 1762571) for causing xpcshell failures on test_trr_httpssvc_wrap.js. CLOSED TREE
Backed out changeset 9e6eb444acb4 (bug 1762571)
Backed out changeset f24051722cee (bug 1762571)
Backed out changeset 0ead2f6d0582 (bug 1762571)
2022-06-30 18:43:06 +03:00
Mark Banner
72f5384587 Bug 1762571 - Upgrade NodeJS to v12 for the build system and v16 for tests. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D147173
2022-06-30 13:23:24 +00:00
Gabriele Svelto
af54b91951 Bug 1776195 - Do not install watchman on openSUSE anymore because it's often broken r=andi
Differential Revision: https://phabricator.services.mozilla.com/D150110
2022-06-30 12:41:31 +00:00
Gijs Kruitbosch
e5852b6d8d Bug 1773520 - add vscode build backend by default if vscode is installed, r=firefox-build-system-reviewers,nalexander,glandium
Differential Revision: https://phabricator.services.mozilla.com/D150147
2022-06-30 08:38:02 +00:00
Alessio Placitelli
9fa5e395be Bug 1776219 - Gracefully handle psutils failures in mach telemetry. r=firefox-build-system-reviewers,ahochheiden
On OpenBSD/i386, psutils fails in the generator used to enumerate the
active processes, breaking the build.

Differential Revision: https://phabricator.services.mozilla.com/D150462
2022-06-29 09:03:28 +00:00
Ryan VanderMeulen
f9c1827b88 Bug 1776461 - Don't define the WIN32 and _WIN32_IE macros in mozilla-config.h if they're already defined. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D150268
2022-06-28 18:56:34 +00:00
Tom Ritter
8a1bfc40d7 Bug 1772198 - Add a new filetype lint job r=linter-reviewers,ahal
Depends on D149309

Differential Revision: https://phabricator.services.mozilla.com/D149306
2022-06-24 20:07:07 +00:00
Tom Ritter
a88546bae0 Bug 1772198 - Only require an origin revision if the vendoring section is present r=jewilde
Depends on D149308

Differential Revision: https://phabricator.services.mozilla.com/D149309
2022-06-24 20:07:07 +00:00
Gabriele Svelto
5778d59b9a Bug 1776184 - Handle Debian unstable when installing watchman during bootstrap r=andi
Differential Revision: https://phabricator.services.mozilla.com/D150233
2022-06-24 19:51:12 +00:00
Ryan VanderMeulen
b667d62420 Bug 1776344 - Properly strip newlines when reading path files. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D150257
2022-06-24 18:34:58 +00:00
Gabriele Svelto
7ad6cca012 Bug 1774298 - Install watchman only on Debian 11+ r=andi
Differential Revision: https://phabricator.services.mozilla.com/D149358
2022-06-22 10:08:23 +00:00
Mike Hommey
0985192f22 Bug 1760484 - Add webrtc configs for arm64 openbsd. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D149473
2022-06-21 20:03:56 +00:00
Mike Hommey
9b1024c681 Bug 1738845 - Add webrtc configs for arm and ppc64 linux. r=mjf
Adding arm alone breaks ppc64el.

Differential Revision: https://phabricator.services.mozilla.com/D134738
2022-06-21 20:03:56 +00:00
Mike Hommey
0317120cba Bug 1738845 - Add some missing combinations of conditions to GN processing. r=firefox-build-system-reviewers,andi
Ideally, the code would handle things in a more general way that doesn't
require manually dealing with these lists, but this would require more
testing than there is time left before 102 releases.

While here, remove HOST_CPU_ARCH, which is always the same and thus
never appears in a condition.

This changes none of the generated moz.builds for the current
configuration (but changes the outcome when adding new configurations)

Differential Revision: https://phabricator.services.mozilla.com/D149850
2022-06-21 20:03:55 +00:00
Mike Hommey
14fe89a8ed Bug 1775183 - Remove fork_interpose.py. r=firefox-build-system-reviewers,nalexander
Its use was removed in bug 1720591.

Differential Revision: https://phabricator.services.mozilla.com/D149840
2022-06-21 06:44:55 +00:00
Mike Hommey
602a4659ca Bug 1773223 - Remove now irrelevant gn processor tests.
Differential Revision: https://phabricator.services.mozilla.com/D149814
2022-06-21 02:30:46 +00:00
Mike Hommey
ff501ba00a Bug 1773223 - Filter-out _FORTIFY_SOURCE in GN processing. r=firefox-build-system-reviewers,andi
This is redundant with the build system setting it in
toolchain.configure.

Differential Revision: https://phabricator.services.mozilla.com/D149471
2022-06-21 02:30:46 +00:00
Mike Hommey
6bf54e3307 Bug 1773223 - Make the definition of MOZ_X11 independent of the OS. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D149474
2022-06-21 02:30:45 +00:00
Mike Hommey
217bd35159 Bug 1773223 - Make the GN processor an independent script. r=firefox-build-system-reviewers,mjf,ahochheiden
The way the processor works currently is that it relies on two different
build backends, one of which produces json files for specific
configurations, and the other which produces moz.build files from the
aggregate of all those configs.

Each of these json files is huge, and we actually don't have enough to
support all the platforms we're supposed to be supporting. Adding more
files is not enticing.

Now that we've made the first step described above work in a single pass
on a single machine (as opposed to multiple passes on multiple machines
previously), we can actually merge both steps and avoid producing the
intermediate json files altogether. This will allow to add more
configurations without having to worry about the weight of those files.

And because this all doesn't need to depend on having the first step
hooked up in the build system, we make the whole an independent script
rather than a build backend.

Differential Revision: https://phabricator.services.mozilla.com/D149210
2022-06-21 02:30:37 +00:00
Ryan VanderMeulen
78ab363cf5 Bug 1738054 - Remove obsolete "skip-if = python == 2" keys from testing manifests and re-enable some skipped tests which now pass. r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D149573
2022-06-21 01:46:44 +00:00
smolnar
feea9954b2 Backed out 6 changesets (bug 1738845, bug 1773223, bug 1760484) for causing multiple failures CLOSED TREE
Backed out changeset e759ac4fb646 (bug 1773223)
Backed out changeset 20c541be9a37 (bug 1760484)
Backed out changeset 653d2024a187 (bug 1738845)
Backed out changeset fd9540114bfd (bug 1773223)
Backed out changeset f24f3dfa49aa (bug 1773223)
Backed out changeset 11f3375a4a70 (bug 1773223)
2022-06-21 03:00:53 +03:00
Mike Hommey
7451720a4e Bug 1773223 - Remove now irrelevant gn processor tests.
Differential Revision: https://phabricator.services.mozilla.com/D149814
2022-06-20 22:04:22 +00:00
Mike Hommey
854b9ec966 Bug 1760484 - Add webrtc configs for arm64 openbsd. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D149473
2022-06-20 22:04:22 +00:00
Mike Hommey
0146508375 Bug 1738845 - Add webrtc configs for arm and ppc64 linux. r=mjf
Adding arm alone breaks ppc64el.

Differential Revision: https://phabricator.services.mozilla.com/D134738
2022-06-20 22:04:21 +00:00
Mike Hommey
1bec54f814 Bug 1773223 - Filter-out _FORTIFY_SOURCE in GN processing. r=firefox-build-system-reviewers,andi
This is redundant with the build system setting it in
toolchain.configure.

Differential Revision: https://phabricator.services.mozilla.com/D149471
2022-06-20 22:04:20 +00:00
Mike Hommey
ca6dabc47f Bug 1773223 - Make the definition of MOZ_X11 independent of the OS. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D149474
2022-06-20 22:04:20 +00:00
Mike Hommey
9b835365cc Bug 1773223 - Make the GN processor an independent script. r=firefox-build-system-reviewers,mjf,ahochheiden
The way the processor works currently is that it relies on two different
build backends, one of which produces json files for specific
configurations, and the other which produces moz.build files from the
aggregate of all those configs.

Each of these json files is huge, and we actually don't have enough to
support all the platforms we're supposed to be supporting. Adding more
files is not enticing.

Now that we've made the first step described above work in a single pass
on a single machine (as opposed to multiple passes on multiple machines
previously), we can actually merge both steps and avoid producing the
intermediate json files altogether. This will allow to add more
configurations without having to worry about the weight of those files.

And because this all doesn't need to depend on having the first step
hooked up in the build system, we make the whole an independent script
rather than a build backend.

Differential Revision: https://phabricator.services.mozilla.com/D149210
2022-06-20 22:04:12 +00:00
Mike Hommey
4df4a8ea7b Bug 1773223 - Move some json fixups into the GN processor. r=firefox-build-system-reviewers,andi
As we're shortly going to stop producing the intermediate json files,
we want the fixups to happen in the GN processor.

Ideally, we'd move them all, but cleaning up -isysroot is more involved,
while we won't need it once we don't use intermediate json files, so we
leave the -isysroot cleanup in fixup_json.py for now.

While here, `gn_out["targets"][target_fullname]` doesn't need to be set
on every iteration of the loop.

Differential Revision: https://phabricator.services.mozilla.com/D149209
2022-06-20 21:50:59 +00:00
Mike Hommey
a76a542e22 Bug 1773223 - Remove unused parameters. r=firefox-build-system-reviewers,andi
Also replace uses of config objects, which are only used for topsrcdir.

Differential Revision: https://phabricator.services.mozilla.com/D149208
2022-06-20 21:50:58 +00:00
Mike Hommey
1a668b3ceb Bug 1773223 - Use the GN binary path passed into generate_gn_config. r=firefox-build-system-reviewers,andi
The path is given to the function, there is no need to get it from
config.substs.

Differential Revision: https://phabricator.services.mozilla.com/D149207
2022-06-20 21:50:58 +00:00
Mike Hommey
2d53f2f5d7 Bug 1773223 - Remove variable expansion in the GN processor. r=firefox-build-system-reviewers,andi
This was cargo culted from the gyp processor, but is not used.

Differential Revision: https://phabricator.services.mozilla.com/D149206
2022-06-20 21:50:58 +00:00
Mike Hommey
9ed6ee8e5b Bug 1773223 - Generate webrtc moz.builds for all platforms at once. r=mjf,firefox-build-system-reviewers,ahochheiden
The current script requires to be run on 4 different host platforms each
of which would handle a subset of a total of 32 mozconfigs. That is not
sustainable, and there are already missing configs that break tier-3
platforms.

This replaces the current setup with one that handles all platforms in
one go, although we still keep the internal sequence of GcConfigGen ->
fixup_json -> GnMozbuildWriter.

The downside is that because this relies on the upstream webrtc build
system supporting cross-compilation, and that it actively rejects some
configurations, we need some local hacks to make it work on Linux and
Mac, but for now, we have to leave out Windows, which requires more
work.

For some reason, that removes some duplicated include directories in the
json files, which moves things a little in one moz.build file.

We also remove the mozconfigs we don't use anymore.

Differential Revision: https://phabricator.services.mozilla.com/D149205
2022-06-20 21:50:57 +00:00
Cosmin Sabou
18f908cae1 Backed out 11 changesets (bug 1738845, bug 1760484, bug 1773223) for causing build bustages and python failures. CLOSED TREE
Backed out changeset 2faea2e0af45 (bug 1773223)
Backed out changeset 85f0cccbd2a8 (bug 1760484)
Backed out changeset 67ee3490fe22 (bug 1738845)
Backed out changeset 2d0053357489 (bug 1773223)
Backed out changeset 7eccf21b04f2 (bug 1773223)
Backed out changeset 5e1c0d1d4018 (bug 1773223)
Backed out changeset c73d516d7d7f (bug 1773223)
Backed out changeset 05e201f82758 (bug 1773223)
Backed out changeset fe0095ad6576 (bug 1773223)
Backed out changeset 264adb57bb3c (bug 1773223)
Backed out changeset f349d4ad0088 (bug 1773223)
2022-06-21 00:22:01 +03:00
Mike Hommey
e426a9a864 Bug 1773223 - Remove now irrelevant gn processor tests.
Differential Revision: https://phabricator.services.mozilla.com/D149814
2022-06-20 21:16:52 +00:00
Mike Hommey
a118055664 Bug 1760484 - Add webrtc configs for arm64 openbsd. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D149473
2022-06-20 20:58:39 +00:00
Mike Hommey
9614f2583b Bug 1738845 - Add webrtc configs for arm and ppc64 linux. r=mjf
Adding arm alone breaks ppc64el.

Differential Revision: https://phabricator.services.mozilla.com/D134738
2022-06-20 20:58:39 +00:00
Mike Hommey
55bfe51945 Bug 1773223 - Filter-out _FORTIFY_SOURCE in GN processing. r=firefox-build-system-reviewers,andi
This is redundant with the build system setting it in
toolchain.configure.

Differential Revision: https://phabricator.services.mozilla.com/D149471
2022-06-20 20:58:38 +00:00
Mike Hommey
d975b31305 Bug 1773223 - Make the definition of MOZ_X11 independent of the OS. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D149474
2022-06-20 20:58:38 +00:00
Mike Hommey
cc1144c5b9 Bug 1773223 - Make the GN processor an independent script. r=firefox-build-system-reviewers,mjf,ahochheiden
The way the processor works currently is that it relies on two different
build backends, one of which produces json files for specific
configurations, and the other which produces moz.build files from the
aggregate of all those configs.

Each of these json files is huge, and we actually don't have enough to
support all the platforms we're supposed to be supporting. Adding more
files is not enticing.

Now that we've made the first step described above work in a single pass
on a single machine (as opposed to multiple passes on multiple machines
previously), we can actually merge both steps and avoid producing the
intermediate json files altogether. This will allow to add more
configurations without having to worry about the weight of those files.

And because this all doesn't need to depend on having the first step
hooked up in the build system, we make the whole an independent script
rather than a build backend.

Differential Revision: https://phabricator.services.mozilla.com/D149210
2022-06-20 20:58:30 +00:00
Mike Hommey
15773069c3 Bug 1773223 - Move some json fixups into the GN processor. r=firefox-build-system-reviewers,andi
As we're shortly going to stop producing the intermediate json files,
we want the fixups to happen in the GN processor.

Ideally, we'd move them all, but cleaning up -isysroot is more involved,
while we won't need it once we don't use intermediate json files, so we
leave the -isysroot cleanup in fixup_json.py for now.

While here, `gn_out["targets"][target_fullname]` doesn't need to be set
on every iteration of the loop.

Differential Revision: https://phabricator.services.mozilla.com/D149209
2022-06-20 20:58:29 +00:00
Mike Hommey
be1274bc3b Bug 1773223 - Remove unused parameters. r=firefox-build-system-reviewers,andi
Also replace uses of config objects, which are only used for topsrcdir.

Differential Revision: https://phabricator.services.mozilla.com/D149208
2022-06-20 20:58:29 +00:00
Mike Hommey
6e8d397004 Bug 1773223 - Use the GN binary path passed into generate_gn_config. r=firefox-build-system-reviewers,andi
The path is given to the function, there is no need to get it from
config.substs.

Differential Revision: https://phabricator.services.mozilla.com/D149207
2022-06-20 20:58:29 +00:00
Mike Hommey
9cb3379538 Bug 1773223 - Remove variable expansion in the GN processor. r=firefox-build-system-reviewers,andi
This was cargo culted from the gyp processor, but is not used.

Differential Revision: https://phabricator.services.mozilla.com/D149206
2022-06-20 20:58:28 +00:00
Mike Hommey
7e5d9b75ba Bug 1773223 - Generate webrtc moz.builds for all platforms at once. r=mjf,firefox-build-system-reviewers,ahochheiden
The current script requires to be run on 4 different host platforms each
of which would handle a subset of a total of 32 mozconfigs. That is not
sustainable, and there are already missing configs that break tier-3
platforms.

This replaces the current setup with one that handles all platforms in
one go, although we still keep the internal sequence of GcConfigGen ->
fixup_json -> GnMozbuildWriter.

The downside is that because this relies on the upstream webrtc build
system supporting cross-compilation, and that it actively rejects some
configurations, we need some local hacks to make it work on Linux and
Mac, but for now, we have to leave out Windows, which requires more
work.

For some reason, that removes some duplicated include directories in the
json files, which moves things a little in one moz.build file.

We also remove the mozconfigs we don't use anymore.

Differential Revision: https://phabricator.services.mozilla.com/D149205
2022-06-20 20:58:27 +00:00
andrej
b5f60d8890 Bug 1773621 - Remove panda.tv from list of sites tested on WebPageTest. r=perftest-reviewers,AlexandruIonescu
A week ago we received a notification that we had a test that the WPT chrome tests were perma failing on [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1773621 | bugzilla ]]
After going through the fail logs I realized it was because of website "panda.tv" directing to a unable to connect page message, after some digging it was not returning proper data because panda.tv has not been a company since March 2019(bankruptcy filing), why this only is causing an issue now I believe is because of some kind of update from WPT as I can see a noticeable UI difference on the test results page from before and after the failures started.

My resolution was to remove Panda.tv from our test list and that seems to have resolved the issue.

I also updated the error message to display which website is causing the issue so that if this happens again I don't need to go through each and every webpagetest result to know which of the 40 websites are having an issue.

Differential Revision: https://phabricator.services.mozilla.com/D149642
2022-06-20 14:16:41 +00:00
Jan-Erik Rediger
51f960bd09 Bug 1773255 - Update to Glean v50.1.0 r=chutten,supply-chain-reviewers
Including glean_parser 6.1.1

Two important things in there:
* glean_parser: [data-review] Include extra keys' names and descriptions in data review template
* Glean: Derive `serde::{Deserialize, Serialize}` on `Lifetime` and `CommonMetricData`

Differential Revision: https://phabricator.services.mozilla.com/D149381
2022-06-15 15:39:33 +00:00
ahochheiden
66564fb0f0 Bug 1276019 - Add Microsoft Defender Antivirus exclusions automatically during source bootstrap r=glob
I also added `%USERPROFILE%/.mozbuild` to the exclusion list and updated the windows_build docs to reflect the changes made.

Differential Revision: https://phabricator.services.mozilla.com/D149199
2022-06-15 01:37:11 +00:00
Tooru Fujisawa
328ebe7e6b Bug 1769405 - Part 4: Detect mismatch between the default mozconfig and the selected build target. r=firefox-build-system-reviewers,glandium
When `./mach bootstrap` is called with the default mozconfig file,
verify the content matches the selected build target, and if not,
show a warning and ask whether to overwrite or not.

Differential Revision: https://phabricator.services.mozilla.com/D146384
2022-06-14 18:13:54 +00:00
Tooru Fujisawa
85a9db4f75 Bug 1769405 - Part 3: Return project and artifact-builds options from MozbuildObject.get_base_mozconfig_info. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D147012
2022-06-14 18:13:54 +00:00
Tooru Fujisawa
96d528ef46 Bug 1769405 - Part 2: Rename mozconfig_and_target to base_mozconfig_info and return dictionary. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D147272
2022-06-14 18:13:54 +00:00
Kash Shampur
f336da34d2 Bug 1754830 - Fix browsertime installation in mozperftest. r=perftest-reviewers,sparky
The patch aims to improve the `_should_install()` method for installing browsertime in mozperftest.
Here, the same approach used in `testing/raptor/mach_commands.py` is used to address potential issues (e.g. KeyError)
that one may encounter when trying to install from the `package.json` through this approach.

Differential Revision: https://phabricator.services.mozilla.com/D148565
2022-06-14 13:47:10 +00:00
Kash Shampur
fcc64e2807 Bug 1754830 - Extend the login-logic to pageload tests in mozperftest. r=perftest-reviewers,sparky
This next patch in the series utilizes the same login-logic in Mozperftest and makes it available to the `pageload_test` method so that we can now automate the logging into of accounts during perftest recordings.
Additional logic is also added to account for if the site requires login, if we are running on CI or locally (and if on CI, accounting for the SCM level), and removal of the verbose flags so secrets do not leak.

Differential Revision: https://phabricator.services.mozilla.com/D147775
2022-06-14 13:47:09 +00:00
Mike Hommey
45696b71c9 Bug 1774059 - Try harder to find an appropriate macos SDK. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D149186
2022-06-14 04:32:29 +00:00
Mike Hommey
1527794ac9 Bug 1773642 - Adjust openbsd webrtc config after bug 1661450. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D148891
2022-06-14 04:19:03 +00:00
Marian-Vasile Laza
8d68418a04 Backed out 4 changesets (bug 1769405) for causing regression in Bug 1774100. CLOSED TREE
Backed out changeset 813147df341c (bug 1769405)
Backed out changeset 6de9495c467d (bug 1769405)
Backed out changeset 9099ba749b1f (bug 1769405)
Backed out changeset 5f8e0141a0ed (bug 1769405)
2022-06-14 01:36:48 +03:00
Stephen A Pohl
d777cdbc58 Bug 1696513: Require macOS 11 SDK at configure time and update docs. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D148933
2022-06-13 17:44:51 +00:00
criss
537f7f6e84 Backed out changeset e186162443a6 (bug 1696513) for causing bustages. CLOSED TREE 2022-06-11 05:31:53 +03:00
Stephen A Pohl
b40f4b0786 Bug 1696513: Require macOS 11 SDK at configure time and update docs. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D148933
2022-06-11 01:05:31 +00:00
Tooru Fujisawa
8c499b6eb5 Bug 1769405 - Part 4: Detect mismatch between the default mozconfig and the selected build target. r=firefox-build-system-reviewers,glandium
When `./mach bootstrap` is called with the default mozconfig file,
verify the content matches the selected build target, and if not,
show a warning and ask whether to overwrite or not.

Differential Revision: https://phabricator.services.mozilla.com/D146384
2022-06-10 19:17:00 +00:00
Tooru Fujisawa
c9df923ba2 Bug 1769405 - Part 3: Return project and artifact-builds options from MozbuildObject.get_base_mozconfig_info. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D147012
2022-06-10 19:16:59 +00:00
Tooru Fujisawa
7dd33d0a6e Bug 1769405 - Part 2: Rename mozconfig_and_target to base_mozconfig_info and return dictionary. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D147272
2022-06-10 19:16:59 +00:00
Bobby Holley
5bdca3b88c Bug 1773592 - Pass --frozen to cargo-vet in CI. r=glandium
This is the new flag to ensure we don't hit the network.

Differential Revision: https://phabricator.services.mozilla.com/D148869
2022-06-10 02:11:07 +00:00
Dave Townsend
39c666e393 Bug 1772808: Install minidump-stackwalk binaries on arm64 macOS. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D148636
2022-06-09 08:54:22 +00:00
Mike Hommey
d889ccf504 Bug 1773189 - Reject windows and windows-sys crates when vendoring for now. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D148586
2022-06-08 22:41:53 +00:00
Bobby Holley
fed6fb8901 Bug 1773320 - Tweak error message displayed when cargo vet fails. r=glandium DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D148665
2022-06-08 22:41:06 +00:00
ahochheiden
dd6a7c90d3 Bug 1761849 - Consistently apply os.path.normpath to paths that end up in the same list r=firefox-build-system-reviewers,glandium
Depends on D148177

Differential Revision: https://phabricator.services.mozilla.com/D148204
2022-06-08 16:11:17 +00:00
Gabriele Svelto
1b76ade349 Bug 1773028 - Install watchman in all Linux & BSD variants that have it in the default package repository r=andi
Differential Revision: https://phabricator.services.mozilla.com/D148635
2022-06-08 11:02:11 +00:00
Mike Hommey
e94670dcc6 Bug 1773222 - Speed up gn config filtering. r=firefox-build-system-reviewers,andi
This brings down the operation from 12s to 8ms on my machine. Yes,
that's seconds versus milliseconds.

Differential Revision: https://phabricator.services.mozilla.com/D148624
2022-06-08 08:49:06 +00:00
Mike Hommey
2427ce6b93 Bug 1773187 - Turn cargo vet failures into errors instead of warnings. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D148580
2022-06-08 01:55:31 +00:00
Norisz Fay
b86a9a0782 Bug 1772036 - Fix python3 failures r=fix CLOSED TREE 2022-06-08 00:14:22 +03:00
Mike Hommey
6aed0d9685 Bug 1772459 - Ignore --help after -- in mach subcommand invocations. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D148229
2022-06-07 20:39:09 +00:00
Mike Hommey
96ebf0ece8 Bug 1772036 - Enable cargo vet when running mach vendor rust locally. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D148219
2022-06-07 20:37:12 +00:00
Mike Hommey
662b0ed7ec Bug 1772036 - Add a mach cargo vet command. r=firefox-build-system-reviewers,ahochheiden
The cargo-vet toolchain is auto-bootstrapped and setup for things to
work properly. We modify `mach vendor rust` to invoke `mach cargo vet`
instead of doing its own setup, but in a underhanded way to work around
bug 1772453.

Differential Revision: https://phabricator.services.mozilla.com/D148218
2022-06-07 20:37:11 +00:00
Mike Hommey
037099a13b Bug 1772036 - Avoid "configure" output from the bootstrap sandbox when using bootstrap_toolchain. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D148217
2022-06-07 20:37:11 +00:00
Mike Hommey
4956da1564 Bug 1772036 - Move toolchain bootstrapping code to some shared module. r=firefox-build-system-reviewers,ahochheiden
We're going to use it to auto-bootstrap cargo-vet in the upcoming `mach
cargo vet` command.

Differential Revision: https://phabricator.services.mozilla.com/D148216
2022-06-07 20:37:11 +00:00
Mike Hommey
1d1d4cc62a Bug 1772980 - Check for unused crates in build/rust. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D148473
2022-06-07 20:34:35 +00:00