Граф коммитов

6140 Коммитов

Автор SHA1 Сообщение Дата
Karl Dubost c6ae17ea64 Bug 1482675 - Adds no-system-changes option to bootstrap. r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D78855
2020-07-01 00:11:55 +00:00
Dorel Luca 675da38265 Backed out 4 changesets (bug 1648858) for Browser-chrome failures on content/test/static/browser_all_files_referenced.js. CLOSED TREE
Backed out changeset 2a107eabe00c (bug 1648858)
Backed out changeset 1622eb497b04 (bug 1648858)
Backed out changeset f5770886187d (bug 1648858)
Backed out changeset 3a9ae16f63c9 (bug 1648858)
2020-07-01 12:27:26 +03:00
Matthew Noorenberghe 9f586f2740 Bug 1648858 - Allow BSD-3-Clause, CC0-1.0, Unlicense, WTFPL, & Zlib licenses in moz.yaml. r=mhoye
Remove GPL-3.0 since it-alone isn't allowed.

Licensing runbook: https://docs.google.com/document/d/1Oguqp43W4_ChyroJ9AJAzG1jSwkUWfKvBKVvrDxVsMg/edit

Differential Revision: https://phabricator.services.mozilla.com/D81436
2020-07-01 00:50:58 +00:00
Mike Hommey 9c264b7cf2 Bug 1240930 - Move jar_maker to the misc tier. r=firefox-build-system-reviewers,geckoview-reviewers,rstewart,agi
Because jar_maker is not in the libs tier, we also rename the libs-%
targets for l10n repacks to l10n-%, which make it clearer what they are
for.

And because multilocale.txt is both a GeneratedFile and a file that is
generated (and installed) via manual build rules, keeping it in the misc
target actually breaks building in toolkit/locales during l10n repacks,
so move it to libs for now.

Differential Revision: https://phabricator.services.mozilla.com/D81766
2020-06-30 21:34:32 +00:00
Cosmin Sabou 0df4966212 Backed out changeset 5653dc323bc1 (bug 1646363) for SM bustages. CLOSED TREE 2020-07-01 00:30:23 +03:00
Mitchell Hentges df42c40571 Bug 1646363: "mach build" should be resilient to drive letter capitalization r=rstewart
Depending on how MozillaBuild is invoked, python may think that the drive letter is a different case.
Since some paths are saved between builds in "config.status", this inconsistency can cause issues.

Though this patch doesn't solve the underlying inconsistency, it resolves the crash that was occurring.

Differential Revision: https://phabricator.services.mozilla.com/D81738
2020-06-30 19:31:51 +00:00
Mitchell Hentges 73be855175 Bug 1646832: Use objects to represent availability of Sentry r=rstewart
Sentry is initialized globally, but it's not clear to consumers when this actually happens.
For example, an unwary developer may call report_exception() within check_and_get_mach(),
not knowing that Sentry hasn't been initialized yet.

Using a class should make the dependency on register_sentry() more verbose.

Depends on D80913

Differential Revision: https://phabricator.services.mozilla.com/D80918
2020-06-29 17:58:14 +00:00
Mitchell Hentges 018693001f Bug 1646832: Don't report Sentry issues for build team members r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D80913
2020-06-29 17:58:06 +00:00
Ricky Stewart 01f005d7d7 Bug 1647830 - Users trying to build Firefox for Android on Windows should get a warning in `bootstrap` and `configure` r=nalexander
We get a lot of bugs about building Firefox for Android not working, and there's been ongoing confusion about whether this is something that does work or who has ever worked. The warning should hopefully clarify the current situation for people.

Differential Revision: https://phabricator.services.mozilla.com/D81585
2020-06-29 22:36:02 +00:00
Yue Zhang 765e406782 Bug 1643469 - Swap NotebookLogger for MachLogger. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D81156
2020-06-30 13:14:38 +00:00
Andi-Bogdan Postelnicu 779d955fee Bug 1645948 - for `clang-tidy` static-analysis escape some paths that have special chars. r=sylvestre
The patch that has been applied to our `clang-tidy` artifact has also been pushed upstead https://reviews.llvm.org/D81917

Differential Revision: https://phabricator.services.mozilla.com/D79799
2020-06-27 14:10:20 +00:00
Tarek Ziadé 9294a5bfc1 Bug 1649176 - add batch attribute to add --test-date r=sparky
Right now setup_perftest_test_date adds --test-date yesterday to all perftest
runs. we want that only for the ones doing batches

Differential Revision: https://phabricator.services.mozilla.com/D81562
2020-06-29 20:12:42 +00:00
David Major b6eec29461 Bug 1649039 - Update bootstrap's rustc to match bug 1648343 r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D81565
2020-06-29 17:44:52 +00:00
Francesco Lodolo (:flod) 97ea589052 Bug 1647687 - Remove Fluent migration recipes for Firefox 77, r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D80636
2020-06-29 09:59:50 +00:00
Mitchell Hentges 721fbf4e8e Bug 1646155: Changes most artifact-build logs from INFO to DEBUG r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D81194
2020-06-26 18:42:47 +00:00
Geoff Brown 6612d6856b Bug 1648506 - Disable some python tests on py2 on mac; r=mhentges
These tests fail on py2 on osx when 'mach python-test' runs with python 3, blocking
bug 1594914.

Differential Revision: https://phabricator.services.mozilla.com/D81247
2020-06-25 23:47:38 +00:00
Jon Bauman e4bc88f3e9 Bug 1648278 - Document how DEFINES works with the assembler. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D80977
2020-06-25 17:57:02 +00:00
Ben Hearsum 8be667a9ad Bug 1631409: run multi-l10n step for artifact builds to fix test failures on try r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D80701
2020-06-24 20:54:28 +00:00
Ricky Stewart d44b1b67a3 Bug 1647873 - Remove "`mach bootstrap` is not fully implemented in MozillaBuild" message r=nalexander
This message dates from bug 1177128, the commit where this bootstrapper was added. At the time of writing that was certainly true, but today it doesn't appear to be true in any meaningful way. There's certainly an expectation that installing MozillaBuild and running `mach bootstrap` will get your machine ready to build Firefox; or at least, if it doesn't, it prints out some error messages telling you to do extra stuff, like we see in bug 1644794 for example. Therefore, I don't see how this message is relevant at all any more.

Differential Revision: https://phabricator.services.mozilla.com/D80730
2020-06-24 02:47:43 +00:00
Francesco Lodolo (:flod) a4b5e4d9bd Bug 1647692 - Add language packs and dictionaries to about:support, r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80808
2020-06-24 13:30:22 +00:00
Mike Hommey a87a1c3b54 Bug 1645986 - Move most GeneratedFile generation to top-level backend.mk. r=firefox-build-system-reviewers,rstewart
While ideally we'd just move all of them at the top-level, there are
other things that depend on them that wouldn't then get the right
dependencies. One of them is install steps in dist/something, but there
are others, and that's a rather long pole of things requiring many
changes along with chances to break things.

So instead, we go with a simpler and more limited approach, where we
still recurse into directories to run their export tier (to run whatever
else than GeneratedFiles they have), but ensure the GeneratedFiles we
moved at the top-level are built before recursing by making
directory/export depend on them.

Differential Revision: https://phabricator.services.mozilla.com/D80608
2020-06-24 04:23:02 +00:00
Mike Hommey 0636209ca5 Bug 1645986 - Properly mark generated files required during compile as such. r=firefox-build-system-reviewers,rstewart
Ideally, this kind of manual work wouldn't be required, but the frontend
doesn't provide enough information and while backend could correlate the
information, they currently don't.

Differential Revision: https://phabricator.services.mozilla.com/D80606
2020-06-24 05:07:25 +00:00
Dorel Luca fdb71d7688 Backed out 4 changesets (bug 1645986) for Valgrid failure. CLOSED TREE
Backed out changeset 602ea804234f (bug 1645986)
Backed out changeset c43f9360b0a5 (bug 1645986)
Backed out changeset fe1142397e72 (bug 1645986)
Backed out changeset faf6de9409f9 (bug 1645986)
2020-06-24 07:16:13 +03:00
Mike Hommey 8a86310ac3 Bug 1645986 - Move most GeneratedFile generation to top-level backend.mk. r=firefox-build-system-reviewers,rstewart
While ideally we'd just move all of them at the top-level, there are
other things that depend on them that wouldn't then get the right
dependencies. One of them is install steps in dist/something, but there
are others, and that's a rather long pole of things requiring many
changes along with chances to break things.

So instead, we go with a simpler and more limited approach, where we
still recurse into directories to run their export tier (to run whatever
else than GeneratedFiles they have), but ensure the GeneratedFiles we
moved at the top-level are built before recursing by making
directory/export depend on them.

Differential Revision: https://phabricator.services.mozilla.com/D80608
2020-06-24 00:45:25 +00:00
Mike Hommey 94ff33a728 Bug 1645986 - Properly mark generated files required during compile as such. r=firefox-build-system-reviewers,rstewart
Ideally, this kind of manual work wouldn't be required, but the frontend
doesn't provide enough information and while backend could correlate the
information, they currently don't.

Differential Revision: https://phabricator.services.mozilla.com/D80606
2020-06-24 01:03:40 +00:00
Dorel Luca b159956383 Backed out 4 changesets (bug 1645986) for Build bustage
Backed out changeset ac871b2f34dc (bug 1645986)
Backed out changeset 07b14b6a0b91 (bug 1645986)
Backed out changeset fdd319bdbfa7 (bug 1645986)
Backed out changeset ce213e6bbc1f (bug 1645986)
2020-06-24 03:42:47 +03:00
Mike Hommey f6fcdd8d5c Bug 1645986 - Move most GeneratedFile generation to top-level backend.mk. r=firefox-build-system-reviewers,rstewart
While ideally we'd just move all of them at the top-level, there are
other things that depend on them that wouldn't then get the right
dependencies. One of them is install steps in dist/something, but there
are others, and that's a rather long pole of things requiring many
changes along with chances to break things.

So instead, we go with a simpler and more limited approach, where we
still recurse into directories to run their export tier (to run whatever
else than GeneratedFiles they have), but ensure the GeneratedFiles we
moved at the top-level are built before recursing by making
directory/export depend on them.

Differential Revision: https://phabricator.services.mozilla.com/D80608
2020-06-23 16:07:26 +00:00
Mike Hommey c54b26945c Bug 1645986 - Properly mark generated files required during compile as such. r=firefox-build-system-reviewers,rstewart
Ideally, this kind of manual work wouldn't be required, but the frontend
doesn't provide enough information and while backend could correlate the
information, they currently don't.

Differential Revision: https://phabricator.services.mozilla.com/D80606
2020-06-23 20:47:06 +00:00
Sylvestre Ledru 56fbafd822 Bug 1647265 - mozlint: when type is 'regex', add the capability to ignore the case r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80477
2020-06-23 21:45:16 +00:00
Mitchell Hentges 7914702f50 Bug 1647865: Bootstrap should stop if run with Python 2 r=rstewart
This uses sys.exit() instead of throwing an exception since:
1. It isn't an error, and bug 1646406 isn't finished yet
2. The output is more straightforward for the user

This verification happens separately from the other python-verification logic, but that's
because I wanted the validation to happen as soon as possible - before the user invests too
much time, and before too much of the script ran with the wrong interpreter.

Differential Revision: https://phabricator.services.mozilla.com/D80726
2020-06-23 21:40:55 +00:00
Mike Hommey f3c4e8c67a Bug 1644371 - Update the cargo version requirement for `mach vendor rust`. r=dmajor
1.38 changed the Cargo.lock format, and the current minimum (1.37) can't
read it, so the minimum version was already wrong.

1.41 has a problem vendoring nom for some reason, that appears to be
fixed in 1.42.

Differential Revision: https://phabricator.services.mozilla.com/D80593
2020-06-23 13:13:36 +00:00
Andi-Bogdan Postelnicu d0f21af448 Bug 1647629 - Make infer static-analysis compatible with python3. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D80633
2020-06-23 11:42:51 +00:00
James Graham 2ade9fa1fd Bug 1644395 - Add wpt print reftests to TC config, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D79082
2020-06-23 10:00:28 +00:00
Narcis Beleuzu a0c8ce672c Backed out 4 changesets (bug 1644395) for bc failures on browser_all_files_referenced.js . CLOSED TREE
Backed out changeset 582c1dd945ca (bug 1644395)
Backed out changeset 9dbba532a700 (bug 1644395)
Backed out changeset 59e998eb5e59 (bug 1644395)
Backed out changeset 035ddba4a4d9 (bug 1644395)
2020-06-23 00:56:49 +03:00
Andrew Halberstadt 15aaba2531 Bug 1646427 - [vendor] Exclude test and documentation dirs when vendoring Python packages, r=rstewart
This adds a way to exclude certain file patterns when extracting Python
packages in |mach vendor python|. For now I've excluded likely test and doc
dirs, though we may want to expand on the list in the future.

Differential Revision: https://phabricator.services.mozilla.com/D80209
2020-06-22 13:20:57 +00:00
James Graham 5706e82bce Bug 1644395 - Add wpt print reftests to TC config, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D79082
2020-06-22 13:44:13 +00:00
Ricky Stewart eb00073e1a Bug 1646840 - Ensure `mach vendor rust` writes out .cargo/config.in with LF newlines on Windows r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80474
2020-06-22 15:24:12 +00:00
John Paul Adrian Glaubitz 41f3e19379 Bug 1318905 - build: Add riscv64 as target architecture to mozbuild r=glandium
Adds the basic definitions for riscv64 to mozbuild, allowing to build Spidermonkey.

Differential Revision: https://phabricator.services.mozilla.com/D78623
2020-06-18 07:11:09 +00:00
Sylvestre Ledru c5d947b77f Bug 1646421 - flake8 followup, remove the noqa as it breaks the test
Instead, ignore this specific test for this file

Differential Revision: https://phabricator.services.mozilla.com/D80374
2020-06-20 12:21:27 +00:00
Sylvestre Ledru 46af48052b Bug 1646421 - flake8 Fix a bunch of actual errors r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80078
2020-06-20 09:46:45 +00:00
Geoff Brown dbfd31bcb6 Bug 1644876 - Add --enable-fission option to 'mach run'; r=kashav
Differential Revision: https://phabricator.services.mozilla.com/D80298
2020-06-19 16:20:00 +00:00
Mike Hommey 7fc03d8e13 Bug 1600530 - Consider MOZ_OBJDIR from the environment when there is no mozconfig. r=nalexander
We currently only deal with MOZ_OBJDIR in the environment when there is
a mozconfig.

Differential Revision: https://phabricator.services.mozilla.com/D80308
2020-06-19 03:31:11 +00:00
Mike Hommey eab19f0855 Bug 1643258 - Avoid the use of the __cxa_thread_atexit_impl symbol. r=froydnj
When linking a weak symbol in an object against a library where the
symbol is provided with a version, the final binary get a weak versioned
symbol reference.

It turns out weak versioned symbols still make the dynamic linker need
the symbol version, even if all symbols needed with that version are
weak.

Practically speaking, that means with bug 1634204, we now end up with
a weak versioned symbol reference to __cxa_thread_atexit_impl with
version GLIBC_2.18, and glibcs without the symbol can't fulfil that
version, even though the weak symbol is the only thing we need from that
version.

This means the check_binary changes in bug 1634204 are too
relaxed, so we revert them (although we keep the easier to read
conditions in check_dep_versions).

We also introduce a hack in stdc++compat.cpp (although it's not
technically entirely about libstdc++ compat) so that we avoid the weak
symbol reference while keeping the intended baseline for libstdc++ and
glibc.

Differential Revision: https://phabricator.services.mozilla.com/D79773
2020-06-18 23:45:41 +00:00
Gregory Mierzwinski 91291fe122 Bug 1646697 - Modify how the multi-commit tasks work. r=mozperftest-reviewers,tarek
This patch adds a `--test-date` option to mozperftest that lets us specify the date that we are testing on. This lets us trigger multi-commit tests on past dates, and also ensures that retriggers of the multi-commit tests use the same day that they were pushed on (giving us reproducibility).

Differential Revision: https://phabricator.services.mozilla.com/D80173
2020-06-18 22:37:35 +00:00
Gregory Mierzwinski b1676248ea Bug 1646368 - Add performance tuning feature to android layer. r=mozperftest-reviewers,tarek
This patch ports the performance tuning functionality from Raptor to mozperftest and adds a small test for it.

Differential Revision: https://phabricator.services.mozilla.com/D80168
2020-06-18 22:37:27 +00:00
Mitchell Hentges f3b96a236f Bug 1645913: show mach command in Sentry breadcrumbs r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D80124
2020-06-18 21:31:46 +00:00
Dorel Luca f7cdd7d12e Backed out changeset b707f591bef5 (bug 1643258) for build bustage. CLOSED TREE 2020-06-19 00:26:24 +03:00
Mike Hommey 39efc5bc7b Bug 1646653 - Remove dependencies on xpcom/xpidl/export. r=froydnj
They were necessary some time ago, but:
- there is no js/xpconnect/src/export target anymore,
- accessibility/xpcom/export had a dependency on xpcom/xpidl/export for
  the ply cache files, but they're not used as of bug 1633156.
- the recursive make backend was adding automatic dependencies on
  xpcom/xpidl/export for the ply cache files.

Differential Revision: https://phabricator.services.mozilla.com/D80150
2020-06-18 11:02:46 +00:00
Mike Hommey 9d26424253 Bug 1643258 - Avoid the use of the __cxa_thread_atexit_impl symbol. r=froydnj
When linking a weak symbol in an object against a library where the
symbol is provided with a version, the final binary get a weak versioned
symbol reference.

It turns out weak versioned symbols still make the dynamic linker need
the symbol version, even if all symbols needed with that version are
weak.

Practically speaking, that means with bug 1634204, we now end up with
a weak versioned symbol reference to __cxa_thread_atexit_impl with
version GLIBC_2.18, and glibcs without the symbol can't fulfil that
version, even though the weak symbol is the only thing we need from that
version.

This means the check_binary changes in bug 1634204 are too
relaxed, so we revert them (although we keep the easier to read
conditions in check_dep_versions).

We also introduce a hack in stdc++compat.cpp (although it's not
technically entirely about libstdc++ compat) so that we avoid the weak
symbol reference while keeping the intended baseline for libstdc++ and
glibc.

Differential Revision: https://phabricator.services.mozilla.com/D79773
2020-06-18 11:02:43 +00:00
Mitchell Hentges c9ee95076b Bug 1645438: Sentry no longer patches <topobjdir> path r=rstewart
Sentry needs to be able to send data in a minimal environment, and intelligently determining
the "topobjdir" (without leaning on Mach) is tough.

Instead, since the "topobjdir" usually falls under the "topsrcdir", just leaning on <topsrcdir>
patching should be sufficient.

Differential Revision: https://phabricator.services.mozilla.com/D80122
2020-06-18 13:47:21 +00:00