Commit Graph
3213 Commits
Author SHA1 Message Date
Sebastian Hengst fbca931db2 merge mozilla-central to autoland. r=merge a=merge 2017-10-10 23:57:56 +02:00
Zibi Braniecki 0689712607 Bug 1407395 - Guard against empty defines entry when generating langpack manifest. r=Pike
MozReview-Commit-ID: t4Oc1tqbxE
2017-10-10 13:16:29 -07:00
André Reinald 9456c325e3 Bug 1405389 - Change port name from py27-readline to py27-gnureadline to enable mach bootstrap on current macports. r=nfroyd
MozReview-Commit-ID: E9AlS8RCSp9
2017-10-10 11:17:24 +02:00
Mike Hommey 9c814a6249 Bug 1319332 - Derive the rust targets from the build host/target. r=froydnj 2017-10-05 16:10:45 +09:00
Joel Maher 236ebecec3 Bug 1395247 - copy speedometer into talos package. r=rwood 2017-10-09 11:10:34 -04:00
Andi-Bogdan Postelnicu cf75f4f510 Bug 1405602 - add clang-apply-replacements to path used by mach static-analysis. r=sylvestre
MozReview-Commit-ID: CiJ8sckSXNw
2017-10-04 17:02:50 +03:00
Andi-Bogdan Postelnicu 8efc204e23 Bug 1405654 - set default value for header-filter the same as source. r=sylvestre
MozReview-Commit-ID: 705as3mM1dA
2017-10-05 16:26:53 +03:00
Andi-Bogdan Postelnicu 088cafa3a2 Bug 1405607 - do not pass to run-clang-tidy files that are going to be scanned. r=sylvestre
MozReview-Commit-ID: BPyk9v7vzLr
2017-10-04 12:41:31 +03:00
Andreas Tolfsen 440d933e70 Bug 1405304 - Add Unix formatter for mozlint. r=ahal
This patch introduces a new report formatter for the mozlint
framework used by "./mach lint" that respects Unix output conventions,
popularised by grep(1), compilers, and preprocessors.

The output format looks like this:

	testing/marionette/driver.js:1153:48: no-unused-vars error: 'resp' is defined but never used.

Many editors (ed, Emacs, vi, Acme) recognise this format, allowing
users to interact with the output like a hyperlink to jump to the
specified location in a file.

MozReview-Commit-ID: 3IyiFmNbtMY
2017-10-03 14:45:17 +01:00
Andrew Halberstadt 9d85bdcbc9 Bug 1403222 - Add test suite families to SCHEDULES.exclusive r=dustin
MozReview-Commit-ID: JWKB7eOgfWc
2017-09-26 10:47:22 -04:00
Andi-Bogdan Postelnicu e60efc9020 Bug 1403846 - add "header-filter" option argument to static-analysis from mach. r=sylvestre
MozReview-Commit-ID: GulGPCCi9U4
2017-09-28 11:21:34 +03:00
Wes Kocher faa6e08cb7 Merge inbound to central, a=merge
MozReview-Commit-ID: CvJ9hmTQBcR
2017-10-02 16:22:37 -07:00
Nathan Froyd 145280abfb Bug 1373878 - part 2 - build system support for Rust tests; r=rillian 2017-10-02 09:21:22 -04:00
Sebastian Hengst 95c011a9f0 Backed out changeset ddfc127526b2 (bug 1403222) for failing python/mozbuild/mozbuild/test/frontend/test_reader.py::TestBuildReader::test_schedules, at least for Linux asan opt builds. r=backout on a CLOSED TREE 2017-10-02 16:03:12 +02:00
Andrew Halberstadt 5c9a4c3849 Bug 1403222 - Add test suite families to SCHEDULES.exclusive r=dustin
MozReview-Commit-ID: JWKB7eOgfWc
2017-09-26 10:47:22 -04:00
Andrew Halberstadt 38330494a3 Bug 1401199 - [mozversioncontrol] Add property to get hash of HEAD revision, r=mshal
MozReview-Commit-ID: 9XWlLeGcPeQ
2017-09-29 11:10:59 -04:00
Andi-Bogdan Postelnicu a5aa003329 Bug 1402302 - sync checkers for static-analysis with the mozreview bot. r=sylvestre
MozReview-Commit-ID: I5rn4DEXGOK
2017-09-30 14:54:58 +03:00
Wes Kocher 087ea69c08 Backed out changeset 048af66f7711 (bug 1402302) for lint issues in config.yaml a=backout
MozReview-Commit-ID: 8vkN5D8YVks
2017-09-29 14:23:59 -07:00
Andi-Bogdan Postelnicu 26af4b1aed Bug 1402302 - sync checkers for static-analysis with the mozreview bot. r=sylvestre
MozReview-Commit-ID: I5rn4DEXGOK
2017-09-29 23:48:19 +03:00
Mike Shal 3383b336e3 Bug 1402012 - Update buildconfig.py to use PartialConfigEnvironment; r=glandium
By using the PartialConfigEnvironment, the clients of buildconfig will
depend on config.statusd/ files instead of config.status directly.
Clients can access substs and defines using buildconfig.substs['FOO'] or
buildconfig.defines['BAR'], and then collect file-level dependencies for
make using buildconfig.get_dependencies(). All GENERATED_FILES rules
already make use of this because file_generate.py automatically includes
these dependencies (along with all python modules loaded).

As a result of this commit, re-running configure will no longer cause
the world to be rebuilt. Although config.status is updated, no build
steps use config.status directly and instead depend on values in
config.statusd/, which are written with FileAvoidWrite. Since those
files are not official targets according to the make backend, make won't
try to continually rebuild the backend when those files are out of date.
And since they are FileAvoidWrite, make will only re-run dependent steps
if the actual configure value has changed.

As a result of using JSON to load data from the config.statusd
directory, substs can be unicode (instead of a bare string type).
generate_certdata.py converts the subst manually to a string so the
value can be exported to the environment without issue on Windows.

Additionally, patching the buildconfig.substs dict no longer works, so
the unit-symbolstore.py test was modified to patch the underlying
buildconfig.substs._dict instead.

The other files that needed to be modified make use of all the defines
for the preprocessor. Those that are used during 'mach build' now use
buildconfig.defines['ALLDEFINES'], which maps to a special
FileAvoidWrite file generated for the PartialConfigEnvironment.

MozReview-Commit-ID: 2pJ4s3TVeS8
2017-08-24 22:52:01 -04:00
Mike Shal 66c656a6a3 Bug 1402012 - Use PartialConfigEnvironment in process_define_files.py; r=glandium
This removes the dependency on config.status for CONFIGURE_DEFINE_FILES.
Instead, each file depends on the specific configure values that it
uses.

MozReview-Commit-ID: H4oLmJei1KR
2017-08-21 15:34:07 -04:00
Mike Shal 07426254c6 Bug 1402012 - Create config.statusd directory; r=glandium
The config.statusd directory is created alongside config.status, which
contains the same information but is split across many files instead of
all in a single file. This allows the build system to track dependencies
on individual configure values.

MozReview-Commit-ID: 2DbwKCJuNSX
2017-08-18 10:41:50 -04:00
Andrew Halberstadt c12a2cb5ee Bug 1401309 - [mozlint] Remove vcs.py and use mozversioncontrol instead, r=gps
This also migrates the vcs.py test to mozversioncontrol and adds a new task for
it.

MozReview-Commit-ID: 9jTRkjNupVA
2017-09-25 16:30:27 -04:00
Andrew Halberstadt c7c63a9fb4 Bug 1401309 - [mozversioncontrol] Add an option to make failed subprocess commands non-fatal, r=gps
Sometimes commands return non-zero even though everything is ok. For example,
'hg outgoing' returns 1 if there are no outgoing files. This adds a way for
specific function calls not to abort if something goes wrong. Instead, stderr
will be printed (if any) and an empty string is returned.

MozReview-Commit-ID: E089djeHrmr
2017-09-25 16:30:13 -04:00
Andrew Halberstadt ebc0410d4e Bug 1401309 - [mozversioncontrol] Add ability to get outgoing files, r=gps
This adds 'get_outgoing_files'. First it automatically attempts to find the
upstream remote the current change is based on, then returns all files changed
in the local branch.

If an upstream remote can't be detected, it raises MissingUpstreamRepo

MozReview-Commit-ID: 9zSB9EdwVU8
2017-09-20 10:15:09 -04:00
Andrew Halberstadt 8f4d1e4d6e Bug 1401309 - [mozversioncontrol] Merge get_modified_files and get_added_files into a single function, r=gps
There's currently a function for getting added files (A) and modified files
(M). We'll also eventually need the ability to get deleted files (D) and any
combination of the above, e.g (AM). Rather than creating a new function for
each possible case, let's have a single function where you can pass in which
modifiers you are interested in. With this patch, if you want all modified and
added files, you can do:

get_changed_files('AM')

By default 'ADM' is used.

This also adds a 'mode' option for git. This allows consumers to return staged
files, unstaged files or both. The default ('unstaged') keeps the current
behaviour in tact.

MozReview-Commit-ID: 9IA1bxaJS80
2017-09-20 10:06:11 -04:00
Andrew Halberstadt 8d00bb6a0b Bug 1401309 - Add python/mozversioncontrol to flake8 linter, r=gps
MozReview-Commit-ID: KuyEYa3Mbgd
2017-09-20 10:02:26 -04:00
Wes Kocher b8531e5f2d Bug 1402445 - Tweak the error message for errors processing mozbuild files r=gps
MozReview-Commit-ID: Js8F8OSgoWT
2017-09-22 12:44:24 -07:00
Zibi Braniecki c0d22b6a46 Bug 1395459 - Store the version of the locale data in a langpack based on HG push timestamp. r=gps
MozReview-Commit-ID: ELx9VW81s6Q
2017-09-10 19:57:34 -07:00
Tom Ritter 0fc2330f17 Bug 1392643 Turn on c++14 for MinGW globally r=bagder,froydnj
Technically this turns on gnu++14. I encountered a few errors when using c++14:
1) _USE_MATH_DEFINES needed to be defined for MinGW
2) MinGW did not define _finite under c++14
3) MinGW's float.h did not define Microsoft specific float functions under c++14

All of these were because c++14 defines _STRICT_ANSI_ which MinGW obeys and
avoids defining certain functions. The first two could be patched around, but
the third was a blocker, so we switched to gnu++14

MozReview-Commit-ID: 6Y7gEQgApYp
2017-09-22 12:26:42 -05:00
Philip Jenvey 84ba5df95a Bug 1401718: adapt to xcode's new non-ascii license error r=gps
avoid unicode conversion (since unicode_literals is in use)

MozReview-Commit-ID: AfgzAWsjRp
2017-09-22 14:58:28 -07:00
Dustin J. Mitchell 8ff3f5ff2e Bug 1383880: handle keyError from find_task_id; r=gps
MozReview-Commit-ID: F3mVgKcqZwA
2017-09-21 12:02:44 +00:00
Dustin J. Mitchell a1f463e914 Bug 1383880: --from-build is a dev tool, not for automation; r=glandium
MozReview-Commit-ID: EGs3Zy012JA
2017-09-15 12:26:14 +00:00
Dustin J. Mitchell d76c4ac56b Bug 1383880: adjust mach artifact toolchain --from-build; r=glandium
MozReview-Commit-ID: AhGS54jB8Wl
2017-09-19 12:55:37 +00:00
Dustin J. Mitchell 4e4bff2c8a Bug 1383880: add support for SCHEDULES in moz.build; r=gps
MozReview-Commit-ID: 2pfLr0VTy2J
2017-07-31 20:44:56 +00:00
Phil Ringnalda b76b48b887 Backed out 12 changesets (bug 1383880) for decision task bustage
CLOSED TREE

Backed out changeset fd3615e7e0a3 (bug 1383880)
Backed out changeset 8cceb6a82bfb (bug 1383880)
Backed out changeset 571a6c9054a5 (bug 1383880)
Backed out changeset ec2b8ba5a949 (bug 1383880)
Backed out changeset 8e5847d9acda (bug 1383880)
Backed out changeset b354fdf6e233 (bug 1383880)
Backed out changeset ebdd6ccbcfca (bug 1383880)
Backed out changeset ebcc9d20981a (bug 1383880)
Backed out changeset 97eedc84d6e8 (bug 1383880)
Backed out changeset a3116da52b4e (bug 1383880)
Backed out changeset b3eb0c939720 (bug 1383880)
Backed out changeset 7c07cb798530 (bug 1383880)

MozReview-Commit-ID: EPDuQHr7w2y
2017-09-20 19:57:39 -07:00
Dustin J. Mitchell 11aa938e1d Bug 1383880: --from-build is a dev tool, not for automation; r=glandium
MozReview-Commit-ID: EGs3Zy012JA
2017-09-15 12:26:14 +00:00
Dustin J. Mitchell f3b34308ef Bug 1383880: adjust mach artifact toolchain --from-build; r=glandium
MozReview-Commit-ID: AhGS54jB8Wl
2017-09-19 12:55:37 +00:00
Dustin J. Mitchell 4df44dcc2c Bug 1383880: add support for SCHEDULES in moz.build; r=gps
MozReview-Commit-ID: 2pfLr0VTy2J
2017-07-31 20:44:56 +00:00
Chris Manchester dbecb1e573 Bug 1398897 - Move os includes to computed flags. r=glandium
MozReview-Commit-ID: Ef1wu5fQo7M
2017-09-20 12:43:24 -07:00
Chris Manchester 1a610ec778 Bug 1398897 - Move includes associated with CPP_UNIT_TESTS to the CppUnitTests template. r=glandium
MozReview-Commit-ID: DhjnzhAjoyy
2017-09-20 12:43:24 -07:00
Chris Manchester d6086e1e47 Bug 1398897 - Move breakpad include munging to moz.build r=glandium
Unfortunately this also needs to be kept in Makefile.in to handle
other consumers of INCLUDES while we transition them.

MozReview-Commit-ID: 9OYlu6Jv1XZ
2017-09-20 12:43:24 -07:00
Chris Manchester b6b63101f6 Bug 1398897 - Move includes to computed flags. r=glandium
MozReview-Commit-ID: Ec0wZfoV63B
2017-09-20 12:43:23 -07:00
Chris Manchester 6d38dc675e Bug 1398897 - Move defines to computed compile flags. r=glandium
MozReview-Commit-ID: CgQv79dYj7Y
2017-05-01 18:13:48 -07:00
Chris Manchester 30615a75d1 Bug 1398897 - Do not emit compile flags for directories only containing rust libraries. r=glandium
MozReview-Commit-ID: 94PFyi5VQux
2017-09-20 12:43:14 -07:00
Andi-Bogdan Postelnicu 4cd89a7421 Bug 1328454 - Run static analysis based on clang-tidy from mach. r=glandium
MozReview-Commit-ID: 7H1HvYE9umf
2017-05-04 14:41:34 +03:00
Andrew Halberstadt bab4de4d0f Bug 1392787 - [mozlint] Fix bugs in path filtering and add a test, r=jmaher
MozReview-Commit-ID: LG47ASBMA17
2017-08-23 06:33:06 -04:00
Jan Beich cf34c94218 Bug 1401166 - Skip Stylo dependency with ./mach bootstrap on OpenBSD. r=rillian f=gaston
MozReview-Commit-ID: E8FTcQkAI9M
2017-09-19 12:19:40 +00:00
Jan Beich 0ca798be2d Bug 1401166 - Simplify llvm40 dependency for ./mach bootstrap on FreeBSD. r=rillian
GCC isn't safe to use on architectures that switched to Clang because
libstdc++ and libc++ aren't very compatible. Newer LLVM and Clang are
often already installed as a dependency for Mesa packages. So, always
require llvm* package.

MozReview-Commit-ID: 8651mz5tiIp
2017-09-19 12:10:30 +00:00
Jan Beich 11c63064f0 Bug 1401166 - Drop obsolete cargo dependency from ./mach bootstrap on BSDs. r=rillian
MozReview-Commit-ID: LbbhRwXSEJN
2017-09-19 12:07:53 +00:00