Commit Graph
4326 Commits
Author SHA1 Message Date
Tom Prince 5bb62dfe1e Bug 1492128: [mozrelease] Import buglist_creator from build-tools; r=mtabara
This is imported from https://hg.mozilla.org/build/tools/file/482c0f6537d47f7cbf1326066ecd1d3efbbd53a7

Differential Revision: https://phabricator.services.mozilla.com/D10150
2018-10-30 18:21:32 +00:00
Chris Manchester 9112add385 Bug 1497638 - Gather telemetry for mach commands other than build. r=ted,firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D10177
2018-10-31 20:03:56 +00:00
Ted Mielczarek 007e4be03f bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander
This change adds a prompt to enable build system telemetry as part of
bootstrap. The prompt will only be shown if the build.telemetry config value
is not present, so users will not be prompted again if they have already
opted-in. However, if a user answers 'no' we don't save that value to
the config file because the default is to not send telemetry, so unless
they manually add `telemetry = false` to their config file they will be
prompted again the next time they run bootstrap.

The config value is always written to `~/.mozbuild/machrc` where we store
other Firefox build-related state. A standalone function is used to write
the config file so that we can do so even when running from bootstrap.py
outside of the context of a mach command.

As part of this change a `prompt_yesno` method is added to `BaseBootstrapper`.

Differential Revision: https://phabricator.services.mozilla.com/D9781
2018-10-31 20:03:53 +00:00
Qinghao_Jack_Song 8f15bcba8a Bug 1497694 - Migrate Update History in Update section of Preferences to use Fluent for localization r=Gijs,flod,zbraniecki,jaws
Differential Revision: https://phabricator.services.mozilla.com/D8045
2018-10-31 16:11:30 +00:00
Ciure Andrei 5eaa0f28a8 Merge inbound to mozilla-central. a=merge 2018-10-31 07:08:22 +02:00
Ciure Andrei 69ef29c978 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-31 00:16:17 +02:00
Connor Sheehan 274240802e Bug 1481425: remove git-mozreview commit message hook during mach vcs-setup r=mcote,gps
During the MozReview days, users of git-cinnabar would install a
commit message hook to include `MozReview-Commit-Id` in their
commit messages. MozReview has seen been retired, yet there
are still a few users with the hook in their configs who now
have both a MozReview commit ID and a Phabricator Differential
link in their commits. This commit makes `mach vcs-setup` (and
`mach bootstrap`, since the former is called during the latter)
remove the commit hook on git checkouts of a Firefox repo. We
check the `commit-msg` hook file for "mozreview" anywhere in
the hook and remove if it is found.

Differential Revision: https://phabricator.services.mozilla.com/D10229
2018-10-30 17:52:52 +00:00
Emilio Cobos Álvarez 6c46a2990b Bug 1503401 - Update cbindgen due to breaking change. r=boris
https://github.com/eqrion/cbindgen/pull/233 changed the way one of the options
we use work.

I think the new behavior is better, but we should do this sooner rather than
later, and fix broken builds.

Differential Revision: https://phabricator.services.mozilla.com/D10301
2018-10-30 21:25:17 +00:00
Chris Manchester 3c953ae15f Bug 1501178 - Prioritize directories containing rust compilation in the make backend. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D10268
2018-10-30 18:12:30 +00:00
Gurzau Raul 0e720ae17e Merge autoland to mozilla-central. a=merge 2018-10-29 23:59:38 +02:00
Margareta Eliza Balazs eccdc3f640 Backed out 4 changesets (bug 1499196) for regression author didn't respond on time, depends on 1501178, requested by igoldan. a=backout
Backed out changeset c43c91d2b97b (bug 1499196)
Backed out changeset caaad097961a (bug 1499196)
Backed out changeset 98fad0b05551 (bug 1499196)
Backed out changeset 470e06d78a7b (bug 1499196)
2018-10-29 10:30:22 +02:00
Raphael Pierzina 253a79621f Bug 1501973 - Add telemetry marionette files to tests archive; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D9769
2018-10-26 15:56:54 +00:00
Emilio Cobos Álvarez ed84ae3bac Bug 1496619 - Update min cbindgen version in osx.py. a=emilio
I mentioned it on the review but it slipped through it seems.
2018-10-27 13:07:10 +02:00
Andrew Halberstadt e16b8b30c7 Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

Differential Revision: https://phabricator.services.mozilla.com/D9716
2018-10-26 17:46:03 +00:00
arthur.iakab 0043db55af Backed out 2 changesets (bug 1460914)for multiple failures on profile_data/base "CLOSED TREE"
Backed out changeset a2161aab4e4e (bug 1460914)
Backed out changeset 9e438c55a248 (bug 1460914)
2018-10-26 19:42:33 +03:00
Andrew Halberstadt 11786b0c1b Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

Differential Revision: https://phabricator.services.mozilla.com/D9716
2018-10-25 15:22:44 +00:00
Nick Alexander 486572fa16 Bug 1501053 - Drop minApi flavor dimension. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D9428
2018-10-25 20:29:49 +00:00
Ciure Andrei e282caf47d Backed out 2 changesets (bug 1501053, bug 1391551) for causing lint build bustages CLOSED TREE
Backed out changeset 91ab8acb16b2 (bug 1501053)
Backed out changeset 9397caac8090 (bug 1391551)
2018-10-25 22:34:21 +03:00
Nick Alexander 657fe25781 Bug 1501053 - Drop minApi flavor dimension. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D9428
2018-10-24 19:50:55 +00:00
Chris Manchester 5feb7fea26 Bug 1499196 - Use outputs as the key for rust commands in Tup once again. r=mshal
Now that we're outputing a stub file for each build script we can index these
commands by their output to de-duplicate them in the tup backend.

Differential Revision: https://phabricator.services.mozilla.com/D9042
2018-10-21 18:56:23 +00:00
Chris Manchester cbc31bcb06 Bug 1499196 - Always use the topobjdir to output rust library dependencies. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D9039
2018-10-18 10:40:32 +00:00
Robert Bartlensky 68f79fc19e Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander
Now autotest does not require java to be installed, but
it will let the user know that infer is not being tested if java
is missing.

Differential Revision: https://phabricator.services.mozilla.com/D7326
2018-10-24 21:54:34 +00:00
Mike Hommey 874f9e7a74 Bug 1499915 - Use elfhack from the build for Android xpcshell tests r=froydnj
Android xpcshell tests run `elfhack -r`, and do so by using an
elfhack binary from an archive downloaded via tooltool (which contains
other things).

Instead, we just put the elfhack binary in the
target.common.tests.tar.gz archive, and make the xpcshell harness
use it from there instead, allowing to pick in-tree changes to elfhack.

Depends on D9623

Differential Revision: https://phabricator.services.mozilla.com/D9624
2018-10-24 13:45:50 +00:00
Chris Manchester 90382a5926 Bug 1501712 - Write .mozconfig.json when running |./mach configure| r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D9675
2018-10-24 20:03:57 +00:00
Ting-Yu Lin aacab0af67 Bug 1501531 - Update ccache stats parser for ccache 3.5 release. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D9613
2018-10-24 17:33:39 +00:00
Narcis Beleuzu e7ece8bbe2 Backed out changeset e66bbfad641e (bug 1497694) for bc failures on browser_advanced_update.js. CLOSED TREE 2018-10-24 18:59:34 +03:00
Qinghao_Jack_Song b6ec3b1d31 Bug 1497694 - Migrate Update History in Update section of Preferences to use Fluent for localization r=Gijs,flod,zbraniecki,jaws
Differential Revision: https://phabricator.services.mozilla.com/D8045
2018-10-24 14:31:10 +00:00
Francesco Lodolo (:flod) 01c8ca73cf Bug 1501581 - r=Gijs,Pike
Add space before <label> in legacy-extensions-description

Differential Revision: https://phabricator.services.mozilla.com/D9626
2018-10-24 09:00:56 +00:00
Collin Wing 900fb52cad Bug 1491677 Migrate localization of a subset of extensions.dtd to Fluent r=flod,Gijs,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D6203
2018-10-22 18:21:56 +00:00
Sebastian Hengst 2f1f8068ca merge mozilla-central to autoland 2018-10-22 20:34:24 +03:00
Emilio Cobos Álvarez 4768e2d8c7 Bug 1500849 - Update bindgen. r=heycam,bbouvier
This pulls a new nom version, which is slightly unfortunate, but I do want some
of the fixes upstream, and it's build-only, so I think it's not a huge deal.

Differential Revision: https://phabricator.services.mozilla.com/D9362
2018-10-22 13:20:01 +02:00
Chris Manchester fc58581595 Bug 1500269 - Upgrade to rustc 1.29.2 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D9170
2018-10-22 13:12:43 +00:00
Chris Manchester 7996379d4e Bug 1499196 - Use outputs as the key for rust commands in Tup once again. r=mshal
Now that we're outputing a stub file for each build script we can index these
commands by their output to de-duplicate them in the tup backend.

Differential Revision: https://phabricator.services.mozilla.com/D9042
2018-10-21 18:56:23 +00:00
Chris Manchester 063463b765 Bug 1499196 - Always use the topobjdir to output rust library dependencies. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D9039
2018-10-18 10:40:32 +00:00
Andrew Halberstadt e445ba56d5 Bug 1500447 - [mozlint] Make sure lineno and column are always int (if present), r=rwood
This also updates the test for string inputs.

Differential Revision: https://phabricator.services.mozilla.com/D9260
2018-10-19 15:54:32 +00:00
Andrew Halberstadt 77e04f4cd7 Bug 1375861 - [mozlint] Globally exclude paths listed in tools/rewriting/ThirdPartyPaths.txt from our linters, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D9126
2018-10-18 15:27:59 +00:00
Margareta Eliza Balazs 0f4440e668 Merge inbound to mozilla-central. a=merge 2018-10-18 13:20:43 +03:00
Ciure Andrei 1d152dc4af Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-18 10:19:03 +03:00
Dorel Luca 6ca488127e Merge autoland to mozilla-central. a=merge 2018-10-18 01:53:30 +03:00
Daniel Varga cad5b2b0e8 Backed out changeset f9cf33c52739 (bug 1498715) on request by nalexander for local developer failures. a=backout 2018-10-17 22:02:34 +03:00
Andrew Halberstadt 97d2a2dc1f Bug 1499510 - [mozlint] Fix regression to |mach lint --edit| when using vim, r=egao
Differential Revision: https://phabricator.services.mozilla.com/D8905
2018-10-17 20:19:37 +00:00
Nick Alexander d50f74e5f1 Bug 1489443 - Set GCC_USE_GNU_LD based on linker kind. r=froydnj
The desired outcome of this change is that we'll set
-Wl,--version-script based on linker kind and not on the output of
$LINKER -v.

This is a cheap way to address a simple problem that has a complicated
ideal solution. The underlying issue is that in some situations, when
targeting Android, a macOS system ld is interrogated to determine if
a cross-compiling linker "is GNU ld" and a particular linker feature
is set in that situation. The macOS system ld doesn't pass the "is
GNU ld" test, and the linker feature isn't set; that causes link
failures, even though the actual linker has nothing to do with the
system ld.

The ideal solution is to test for linker capabilities dynamically. We
do a lot of that in old-configure.in, and we don't do any of that in
toolchain.configure. Rather than start testing in
toolchain.configure, we hard-code: a cheap solution to the immediate
problem.

MinGW suffers somewhat from the opposite problem: the linker "is GNU
ld" (compatible), but the linker checks don't happen at all. We hard-code
for MinGW based on the C compiler instead.

Differential Revision: https://phabricator.services.mozilla.com/D8471
2018-10-17 19:46:03 +00:00
Andrew McCreight 316a5f140d Bug 1499153 - Remove obsolete manifest check and NO_JS_MANIFEST r=glandium
Bug 1438688 made it so that XPT information is compiled directly into
the binary instead of being shipped separately in interface
files. This means that manifests are no longer necessary for JS
components, which means the manifest check in emitter.py can be
removed.

That check is the only use of NO_JS_MANIFEST, so that can in turn be
removed entirely.

Differential Revision: https://phabricator.services.mozilla.com/D8885
2018-10-16 22:35:15 +00:00
Chris Manchester e0ed055f2b Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal
This addresses a related issue along the way: a build that results in running
configure would not update the value of self.config_environment (and therefore
self.substs) as seen from the build driver, so out of date values would have
been used.

The changes to Makefile.in and client.mk made exploit the assumption that by
he time anything in the Make build is running, config.status is up to date.
Users running "make" without the benefit of "mach" will need to manually run
configure when necessary in order to take this into account.

Differential Revision: https://phabricator.services.mozilla.com/D8473
2018-10-16 22:21:36 +00:00
Andrew Halberstadt a25471e756 Bug 1494069 - [mozlint] Make sure exclude paths always get discarded when necessary, r=rwood
We were currently adding exclude paths to the "discard" set if the path contains
the include, but we weren't adding them if the include contains the path.

Depends on D5863

Differential Revision: https://phabricator.services.mozilla.com/D8845
2018-10-16 21:04:14 +00:00
Andrew Halberstadt 660bcef222 Bug 1494069 - [mozlint] Verify the expected_exclude paths in test_filterpaths, r=rwood
Depends on D8844

Differential Revision: https://phabricator.services.mozilla.com/D5863
2018-10-16 21:04:15 +00:00
Andrew Halberstadt 5561c0c778 Bug 1494069 - [mozlint] Append global 'excludes' to each linter at parse time, r=rwood
Right now there are excludes defined in the linter definition (via the .yml
files), as well as excludes defined in lintargs (via the mach_commands.py).

This is a minor simplification that extends each linter definition's local
excludes with the global ones right off the bat. This just makes it a bit
easier to keep track of.

Depends on D5863

Differential Revision: https://phabricator.services.mozilla.com/D8844
2018-10-16 21:04:14 +00:00
Andrew Halberstadt 7643e5e99b Bug 1494069 - [mozlint] Return extra 'excludes' directly from pathutils.filterpaths, r=rwood
Currently pathutils.filterpaths computes some extra paths that the underlying linter
should try to exclude if it can. It sets these on lintargs['exclude'], and relies on
the fact that it was passed by reference to work.

However, it seems like pytest does some magic under the hood that prevents this value
from being propagated back. It will also fail if 'filterpaths' was invoked in a
subprocess.

It's much simpler and cleaner to pass this value back directly, rather than rely on a
reference.

Differential Revision: https://phabricator.services.mozilla.com/D8850
2018-10-16 21:04:15 +00:00
Andrew Halberstadt 66b6c8ad03 Bug 1494069 - [mozlint] Properly exclude files in LineType linters, r=rwood
This fixes a latent bug that is currently not being hit (by sheer luck). Basically
the 'ignore' argument of a FileFinder object needs all paths to be relative to the
base. As luck would have it, most of the time it worked out that way if you were
running |mach lint| from the root of the repo.

However there are edge cases where this will cause an 'exclude' directive to get
missed. Plus this bug is about to be exposed 100% of the time in the next commit :).

Depends on D8842

Differential Revision: https://phabricator.services.mozilla.com/D8843
2018-10-16 21:04:14 +00:00
Andrew Halberstadt 1d0ae1d5c1 Bug 1494069 - [mozlint] Fix edge case in pathutils.collapse, r=rwood
I missed an edge case where the computed base itself was specified in the
paths input.

Differential Revision: https://phabricator.services.mozilla.com/D8842
2018-10-17 13:52:21 +00:00