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

6675 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 6f9a7abe9b Bug 1692416 - Allow toolchain-alias to be a list. r=taskgraph-reviewers,firefox-build-system-reviewers,jmaher,mhentges
Original patch by Rob Lemley [:rjl], with a small simplification, and an
additional change to make `mach artifact toolchain` happy.

Original discussion in https://phabricator.services.mozilla.com/D66837

Differential Revision: https://phabricator.services.mozilla.com/D104976
2021-02-12 22:28:01 +00:00
Kagami Sascha Rosylight 30ec71696c Bug 1692300 - Disable symlinking in dist/bin r=firefox-build-system-reviewers,andi,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104873
2021-02-12 21:50:15 +00:00
Mike Hommey ecfbd1076c Bug 1692390 - Skip the creation of a python2 virtualenv on arm64 mac. r=firefox-build-system-reviewers,andi,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104950
2021-02-12 21:31:10 +00:00
Tom Ritter 2f17e8f817 Bug 1689454 - Reenable moz_yaml python tests; r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D103374
2021-02-12 21:04:07 +00:00
Mike Hommey 5f86b697af Bug 1692137 - Allow local linux builds to use a bootstrapped sysroot. r=firefox-build-system-reviewers,andi,mhentges
Bug 1690930 added sysroots that can be bootstrapped. With this change,
we allow --enable-bootstrap=install to pull the right sysroot for the
configured target, and --enable-bootstrap to update it if it was already
there.

Differential Revision: https://phabricator.services.mozilla.com/D104797
2021-02-12 20:31:49 +00:00
Mike Hommey 2f408c9631 Bug 1692137 - Properly handle env=None passed to subprocess functions in configure. r=firefox-build-system-reviewers,andi,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104796
2021-02-12 20:31:49 +00:00
Mike Hommey 35f65167bd Bug 1692103 - When getting mozconfig info for MozbuildObject, log separately. r=firefox-build-system-reviewers,mhentges
The code in MozbuildObject.get_mozconfig_and_target relies on the
configure sandbox to find mozconfig (and target). With
--enable-bootstrap, configure itself ends up calling into taskgraph code
that, eventually ends in in MozbuildObject.get_mozconfig_and_target,
which, because it currently logs to the same place, has at least the
following two effects:
- MOZ_CONFIGURE_TRACE logging breaks. I'm not sure exactly why, but the
log level is lost.
- the output from the configure code that runs for
MozbuildObject.get_mozconfig_and_target ends up mixed with the output
from configure itself, and it appears to the user as if things happened
twice (which it did, actually, but that's not something that should be
shown to the user).

So, we redirect to a separate logger.

Differential Revision: https://phabricator.services.mozilla.com/D104776
2021-02-11 03:37:15 +00:00
Sebastian Hengst 95efea0752 Bug 1691508 - label messages about missing mappings of files to Bugzilla tasks as error. r=jmaher
This lets Treeherder pick up the line as failure line and show it to Try users
and code sheriffs.
Rule used: "^[A-Za-z.]+Error: "

It also adds an instruction how to fix the reported issue.

Differential Revision: https://phabricator.services.mozilla.com/D104452
2021-02-08 21:38:47 +00:00
Akshat Dixit ad11827401 Bug 1591991 Add lint Fixed count support to linters r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D102082
2021-02-08 19:00:10 +00:00
Emilio Cobos Álvarez 34a6457e63 Bug 1690898 - Add a mozinfo entry for nnt, and update WPT test expectations. r=jgraham
Other platforms are going to need more annotations, so this allows us to
update one line while rolling out the feature, rather than updating a
bunch of test expectations. Also should be clearer.

Let me know if there are better ways to do this.

Differential Revision: https://phabricator.services.mozilla.com/D104102
2021-02-05 14:27:47 +00:00
Bogdan Tara b3d9616178 Backed out changeset e21ae6fdc524 (bug 1690898) for Event-dispatch-redispatch.html failures CLOSED TREE 2021-02-05 16:12:09 +02:00
Emilio Cobos Álvarez 874b18c2d3 Bug 1690898 - Add a mozinfo entry for nnt, and update WPT test expectations. r=jgraham
Other platforms are going to need more annotations, so this allows us to
update one line while rolling out the feature, rather than updating a
bunch of test expectations. Also should be clearer.

Let me know if there are better ways to do this.

Differential Revision: https://phabricator.services.mozilla.com/D104102
2021-02-05 08:59:34 +00:00
Akshat Dixit 43b65bee68 Bug 1646433 ./mach lint -l foobar handles the error correctly r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D102806
2021-02-04 22:04:11 +00:00
Emma Malysz d2e6a106ee Bug 1690359 - Move task manager to help menu r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D103843
2021-02-03 16:46:57 +00:00
Emma Malysz e7e6abb53d Bug 1689366, simplify bookmark panel r=fluent-reviewers,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D103402
2021-02-02 18:56:19 +00:00
Mike Hommey 4030da2448 Bug 1689494 - Don't include gmp-clearkey in test archives. r=releng-reviewers,jmaher
It's already part of Firefox, and makes the gtest initialization print
an error message because the one already in Firefox can't be
overwritten.

Differential Revision: https://phabricator.services.mozilla.com/D103475
2021-01-29 13:31:07 +00:00
june wilde 44072640b0 Bug 1689449 - Add libpng to mach vendor's valid licenses; r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D103372
2021-01-28 21:09:43 +00:00
Mike Hommey 5d9084e8a0 Bug 1689058 - Rename clang-cl toolchains to clang. r=firefox-build-system-reviewers,dmajor
Bug 1553230 made configure automatically get toolchain artifacts in some
cases. The artifacts for clang-cl builds are clang.tar.zst, and extract to
clang/. Configure derives the task name from that knowledge, and fails
to find clang-cl tasks because of that.

For consistency, these tasks should be called clang. They are clang
builds anyways, and like any other clang builds, they also contain
clang-cl.

Differential Revision: https://phabricator.services.mozilla.com/D103150
2021-01-28 00:30:56 +00:00
Kershaw Chang 0d82c1d0d8 Bug 1684041 - Add ODoH test r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102629
2021-01-27 22:04:25 +00:00
Dan Minor fd50ec0311 Bug 1510797 - Migrate about:webrtc to Fluent; r=ng,flod
Differential Revision: https://phabricator.services.mozilla.com/D102931
2021-01-27 12:11:47 +00:00
Nick Alexander dc4f42262e Bug 1675848 - Part 1: Add "backgroundtask" filter to chrome manifest parsing. r=mossop,kmag
This allows to filter chrome manifest registration by the current
background task(s, in the future).  Filtration behaves just like
filtering by "application":

* filter with `backgroundtask=` means disable for all background
  tasks, since no background task will match ""

* filter with `backgroundtask!=` means enable for all background task,
  since every background task will not match ""

Differential Revision: https://phabricator.services.mozilla.com/D96482
2021-01-25 23:44:46 +00:00
Erica Wright d5c15eaf57 Bug 1686331 - Library menu should not have a scroll bar. r=prathiksha,flod
Differential Revision: https://phabricator.services.mozilla.com/D102471
2021-01-21 06:20:55 +00:00
Mike Hommey 49a9eeaf91 Bug 1687594 - Don't take path@task-id arguments on `mach artifact toolchain`. r=firefox-build-system-reviewers,mhentges
This form hasn't been used since bug 1573435.

Differential Revision: https://phabricator.services.mozilla.com/D102375
2021-01-20 15:04:49 +00:00
Mike Hommey 32ec3e64de Bug 1687594 - Remove the --authentication-file option to `mach artifact toolchain`. r=firefox-build-system-reviewers,mhentges
It has been a no-op since bug 1595368.

Differential Revision: https://phabricator.services.mozilla.com/D102374
2021-01-20 15:03:45 +00:00
Mike Conley c6ce5fa932 Bug 1683419 - Fork Help menu strings for use in the AppMenu. r=Gijs,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D100957
2021-01-20 18:12:33 +00:00
Dana Keeler b20d3edb85 Bug 1682989 - remove CertBlocklist implementation and MOZ_NEW_CERT_STORAGE build variable r=rmf
Differential Revision: https://phabricator.services.mozilla.com/D100034
2021-01-19 22:11:25 +00:00
Mike Conley 161d8c6503 Bug 1568133 - Migrate the rest of the menubar to Fluent. r=fluent-reviewers,flod,Gijs
Original patch by Brendan Dahl <bdahl@mozilla.com>.

Differential Revision: https://phabricator.services.mozilla.com/D46203
2021-01-18 18:23:18 +00:00
Mike Hommey 66a79a59fe Bug 1553230 - Allow to opt-in to automatically update some bootstrapped toolchains. r=firefox-build-system-reviewers,nalexander,mhentges
This adds a --enable-bootstrap build flag that will automatically update
cbindgen, node, clang, sccache, nasm, wine, lucetc, dump_syms, pdbstr,
and winchecksec if they are already installed in ~/.mozbuild.

Eventually, we'll want to allow to install toolchains that weren't
already install, but one step at a time.

This explicitly doesn't cover rustc, which is its own can of worms, or
android-{ndk,sdk}, which are not installed via toolchain artifacts
currently.

Differential Revision: https://phabricator.services.mozilla.com/D101723
2021-01-15 22:15:51 +00:00
Mike Hommey e4bf32e4f8 Bug 1686888 - Stop building dump_syms. r=gsvelto
Now that we use an external dump_syms, we don't need to build
breakpad's.

This means we also don't need the dump_syms_rust_demangle crate anymore.

Differential Revision: https://phabricator.services.mozilla.com/D101865
2021-01-15 10:31:48 +00:00
june wilde 6c0883d216 Bug 1686629 - Remove extra / from mach vendor's github url construction; r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D101696
2021-01-14 14:48:12 +00:00
Aaron Klotz 8892b9c2f6 Bug 1611554: Part 1 - Add capability for build system to generate files during pre-export tier when building GeckoView; r=nalexander,rstewart
These are the minimum changes that we need to make to common build system code
to allow us to generate files during pre-export.

We add a `required_before_export` flag to `GeneratedFile` to indicate when a
particular file must be generated in `pre-export`. We set that flag when there
are `.jinja` input files and we're configured for a GeckoView build, otherwise
it is set to `False`.

Then the recursive `make` backend assigns any `GeneratedFile`s that have
`required_before_export` set to run in the `pre-export` tier.

Differential Revision: https://phabricator.services.mozilla.com/D82576
2021-01-13 01:19:20 +00:00
Butkovits Atila bcdf48f6d6 Backed out 3 changesets (bug 1611554) for causing bustage on recurse.mk. CLOSED TREE
Backed out changeset bb1ce63d73ec (bug 1611554)
Backed out changeset 0d4317da1006 (bug 1611554)
Backed out changeset dc905e5db0cc (bug 1611554)
2021-01-13 03:16:17 +02:00
Aaron Klotz a0981d658b Bug 1611554: Part 1 - Add capability for build system to generate files during pre-export tier when building GeckoView; r=nalexander,rstewart
These are the minimum changes that we need to make to common build system code
to allow us to generate files during pre-export.

We add a `required_before_export` flag to `GeneratedFile` to indicate when a
particular file must be generated in `pre-export`. We set that flag when there
are `.jinja` input files and we're configured for a GeckoView build, otherwise
it is set to `False`.

Then the recursive `make` backend assigns any `GeneratedFile`s that have
`required_before_export` set to run in the `pre-export` tier.

Differential Revision: https://phabricator.services.mozilla.com/D82576
2021-01-13 00:24:03 +00:00
Nick Alexander e74edb8950 Bug 1686089 - Make `mach package-multi-locale` handle Desktop on macOS. r=zbraniecki
There's a macOS-specific wrinkle for browser/ that populates the
`.app` directory.  This makes that happen as part of `mach
package-multi-locale`.  It's the equivalent, I suppose, of `mach
android assemble-app` for Desktop.

Differential Revision: https://phabricator.services.mozilla.com/D101502
2021-01-12 23:12:40 +00:00
Connor Sheehan 57d304dec4 Bug 1686333: don't install `libpython2-dev` r=firefox-build-system-reviewers,mhentges
Seems it isn't always available. Since Py2 is optional anyways, it
shouldn't cause failures in `mach bootstrap`.

Differential Revision: https://phabricator.services.mozilla.com/D101499
2021-01-12 21:55:57 +00:00
Connor Sheehan 5f3ac9bc5b Bug 1684915: install Python development headers during bootstrap on Fedora/Debian flavors r=firefox-build-system-reviewers,mhentges
Since zstandard has native code that must be compiled, and that code
uses Python headers, we should be installing those headers as part
of bootstrap.

Most users will have these packages on their machines through various
other means (notably installing `pip`, ie `sudo apt install python3-pip`),
but since it is possible to avoid a pip installation (for example
by installing Mercurial through `yum` and then running bootstrap
immediately after cloning) we should specify these packages as required
by bootstrap.

Differential Revision: https://phabricator.services.mozilla.com/D101479
2021-01-12 20:35:24 +00:00
Dan Mosedale e91d8deeea Bug 1684936 - update NodeJS to 10.23.1 for latest sec fixes r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D100810
2021-01-07 17:06:42 +00:00
Connor Sheehan 44d4f310aa Bug 1685811: recommend saving `bootstrap.py` to disk instead of piping directly to `python` r=mhentges DONTBUILD
The current recommendation fails while waiting on user input. Instead, just
save the script to disk as an intermediate step, then invoke it.

Differential Revision: https://phabricator.services.mozilla.com/D101228
2021-01-11 16:53:32 +00:00
ankushduacodes fd084434a1 Bug 1684348 - Patching error occuring while running brew cask list as this method has been deprecated by homebrew r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D100496
2021-01-08 19:51:41 +00:00
Mitchell Hentges 633efc7476 Bug 1680630: Generate android mozconfig without pkg manager r=nalexander
Knowing whether `brew` or `macports` is available isn't necessary
to generate the android mozconfig.
This should fix the generation of android mozconfig when a package
manager isn't available.

Differential Revision: https://phabricator.services.mozilla.com/D99496
2021-01-05 20:30:56 +00:00
Mitchell Hentges f4a03e538f Bug 1680802: Install pylint requirements with legacy resolver r=firefox-build-system-reviewers,sheehan,glandium
pylint_requirements.txt fail to install with the new pip resolver due
to a conflict between astroid and lazy-object-proxy.
Rather than bumping those packages and handling the potential fallout,
the package-upgrade has been deferred and we will use the legacy
resolver in the interrim.

Differential Revision: https://phabricator.services.mozilla.com/D99940
2021-01-05 20:14:25 +00:00
Connor Sheehan 1266f6cfb7 Bug 1684584: move call to `_check_clobber` to `mach build` instead of running in `_run_client_mk` r=firefox-build-system-reviewers,mhentges
The `AUTOCLOBBER` mozconfig option is reliably causing builds to fail when
a clobber is triggered. When we auto-clobber a build we do so after running
`configure` but before running `make client.mk`. This means we destroy all
the gathered information from the `configure` step in the objdir and then
attempt to run `make` using the previously destroyed information.

This commit moves the call to `_check_clobber` to an earlier stage in the
build process, before `configure` is called, so any clobber that takes place
will happen before setting up the objdir via `configure`.

Since `_check_clobber` is only called once in the codebase, and both cases
are now adding clobber metrics one after another, we remove the metrics
gathering from `_check_clobber` and rely on callers to set metrics instead.

Also clean up some nested `if` statements that can be flattened.

Differential Revision: https://phabricator.services.mozilla.com/D100794
2021-01-06 17:19:34 +00:00
Connor Sheehan 3d9fb0766a Bug 1684584: add a comment describing what `_check_clobber` does r=firefox-build-system-reviewers,mhentges
This function has a few code paths and has a slightly confusing return value.
Add a comment describing what it does and what the return value actually
means.

Differential Revision: https://phabricator.services.mozilla.com/D100793
2021-01-06 17:07:51 +00:00
Connor Sheehan 0e3bf9f599 Bug 1684584: do not encode `topobjdir` before printing to screen during clobber r=firefox-build-system-reviewers,mhentges
Since the printed value is a `str` anyways, this causes the converted `bytes`
to be printed to the terminal as `b'/path/to/topobjdir'`. Just print the `str`
version to the screen instead.

Differential Revision: https://phabricator.services.mozilla.com/D100792
2021-01-06 01:53:13 +00:00
Mike Conley 1dcbb9ec4d Bug 1682022 - Fork strings from the context menu and browser.dtd for use in the AppMenu. r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D100832
2021-01-06 08:04:06 +00:00
Andi-Bogdan Postelnicu d7fb68e56d Bug 1683613 - For `non-unified` build have a task that runs checks when merging to mozilla-central r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D100796
2021-01-05 19:40:23 +00:00
Connor Sheehan 813445ccd8 Bug 1678668: print sentry error report number on mach command failure r=firefox-build-system-reviewers,mhentges
When mach errors out, an error report is sent to Sentry. This error
report contains information about the state of the interpreter during
the failure, details about the environment, installed packages and more.
Having this information available immediately when attempting to resolve
a bug report is generally desirable, instead of going through a back-and-forth
needinfo tag on Bugzilla or spending time asking the reporter questions on
Matrix.

This commit captures the Sentry ID returned from `sentry_sdk.capture_exception`
and prints it to the screen. If a user adds this line to their bug report (as
the error messages suggest) a build team member can enter this number into
Sentry to identify the exact report and debug the error. At minimum this will
reduce the amount of back-and-forth between the reporter and the assignee
required to resolve a bug. Optimally it should make bugs easier to spot and
reduce the time spent on end user support requests.

To use the Sentry ID to identify information about a specific bug report, the
bug assignee should open the Mozilla Sentry page for the `mach` project and
paste the ID into the search box, which will produce the full stack trace with
all submitted information.

Differential Revision: https://phabricator.services.mozilla.com/D100247
2021-01-05 16:39:22 +00:00
Sylvestre Ledru afb5a86375 no bug - doc: disable flake8 check on the long line. r=rmaries CLOSED TREE DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100795
2021-01-05 16:03:45 +00:00
Sylvestre Ledru 635ee5f1cd no bug - doc: replaces mdn links by in-tree docs r=marco,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100782
2021-01-05 15:46:00 +00:00
Cosmin Sabou 8a46d2e9d6 Backed out 3 changesets (bug 1680802, bug 1680630) for turning Bug 1521378 into permafail. CLOSED TREE
Backed out changeset 3464c8f10994 (bug 1680630)
Backed out changeset 591d32364c0f (bug 1680802)
Backed out changeset 3e9350fd509d (bug 1680802)
2021-01-04 18:47:44 +02:00