Commit Graph

4103 Commits

Author SHA1 Message Date
Andrew Halberstadt
244690e1b9 Bug 1485454 - [mozlint] Fix stylish formatter, issues without a column aren't indented enough, r=sylvestre
After fixing the absolute path issue in codespell, I noticed that the stylish
formatter doesn't indent lint issues that don't have a column properly. This
was never noticed before since most other linters have a column attribute.

Depends on D4012

Differential Revision: https://phabricator.services.mozilla.com/D4013

--HG--
extra : moz-landing-system : lando
2018-08-27 13:40:34 +00:00
Andi-Bogdan Postelnicu
64682f8e84 Bug 1486729 - [Static-Analysis][Clang-Tidy] As default, a checker should be publish by default. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D4436

--HG--
extra : moz-landing-system : lando
2018-08-29 10:10:54 +00:00
Ciure Andrei
c7bd3f7ba5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-29 01:06:58 +03:00
Ciure Andrei
d716a04e20 Merge inbound to mozilla-central. a=merge 2018-08-29 00:58:21 +03:00
Andrew Halberstadt
bbd3ba0a18 Bug 1460856 - [mozlint] Encapsulate all result state in a ResultSummary class r=sylvestre
Currently there are 3 things that can impact the result of a lint run:

1. The list of lint issues found
2. The set of failures that happened during the setup phase
3. The set of failures that happened during the execution phase

All three of these things are stored as instance variables on the LintRoller
object, and then passed into a formatter when it comes time to print the
results. I'd like to add even more things that can impact the result, and it
became clear that the current scenario does not scale well.

This patch moves all data that could impact the end result of a lint run off of
the LintRoller object and onto a new 'result.ResultSummary' class. To avoid
confusion, this patch also renames the 'result.ResultContainer' class to
'result.Issue'.

With this new nomenclature:

result  -> overall state of an entire lint run (can comprise multiple linters)
issue   -> one specific lint infraction (at either 'warning' or 'error' level)
failure -> a non-recoverable error in the linter implementation itself

A "result" is comprised of 0 or more "issues" and 0 or more "failures".

Differential Revision: https://phabricator.services.mozilla.com/D3819

--HG--
extra : moz-landing-system : lando
2018-08-28 13:51:04 +00:00
Andrew Halberstadt
c9cfb100eb Bug 1460856 - [mozlint] Display suppressed warnings count in the summary and stylish formatters r=Standard8
Depends on D3821

Differential Revision: https://phabricator.services.mozilla.com/D3992

--HG--
extra : moz-landing-system : lando
2018-08-27 13:37:28 +00:00
Andrew Halberstadt
787fff6a51 Bug 1460856 - [mozlint] Suppress warnings by default r=Standard8,sylvestre
As of this patch, any lint issue at the "warning" level will *only* be displayed
if --warnings is passed in. This gives us some flexibility to track issues that
are "recommended to fix" but that aren't required (aka don't cause a backout).
I think it would be ideal if the reviewbot ran with warnings enabled, and CI
ran without warnings. This way these issues will be surfaced to developers
(and hopefully get fixed prior to landing), but developers will always be able
to ignore them if the situation warrants it.

Since the last change converted everything to use errors, this patch should
be a no-op for now. However as we move forward (and potentially decide that
certain types of lint issues should result in a backout), this feature will
start seeing more and more use.

Depends on D3820

Differential Revision: https://phabricator.services.mozilla.com/D3821

--HG--
extra : moz-landing-system : lando
2018-08-27 13:39:46 +00:00
arthur.iakab
83d1441dfa Merge mozilla-central to autoland 2018-08-25 01:09:11 +03:00
arthur.iakab
5527acb8d8 Merge inbound to mozilla-central a=merge 2018-08-25 01:08:22 +03:00
Chris Manchester
986a8ae47f Bug 1485174 - Prevent using an objdir to build with tup that was previously used to build with make. r=firefox-build-system-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D4154

--HG--
extra : moz-landing-system : lando
2018-08-24 18:13:20 +00:00
Chris Manchester
df7ed3aa22 Bug 1485168 - Provide a tier for the "tup" portion of the build to prevent confusion. r=gps,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D3927

--HG--
extra : moz-landing-system : lando
2018-08-24 16:12:31 +00:00
Tom Prince
695b12f9f2 No bug: Add a default retry setting for mach artifact toolchain; r=gps
Differential Revision: https://phabricator.services.mozilla.com/D4039

--HG--
extra : moz-landing-system : lando
2018-08-24 16:04:22 +00:00
Benjamin Bouvier
1948bdb6bc Bug 1485396: Handle non-unified builds for CompileDB too; r=froydnj
--HG--
extra : rebase_source : 98c4d0c6a4f6137ba05c7e13b7a69ba07bd30bf6
extra : amend_source : 863740c6e5e7e24d6ba77c1a107ac1281549ef47
2018-08-23 11:55:50 +02:00
Lifan Zeng
5eecd79002 Bug 1446923 - Remove Some Old References to Chrome-Metro r=jlund
Differential Revision: https://phabricator.services.mozilla.com/D3223

--HG--
extra : moz-landing-system : lando
2018-08-23 23:24:44 +00:00
Bas Schouten
efa3734e21 Bug 1485485 - Followup: Fix which function definition in derrived classes. r=froydnj 2018-08-28 18:24:50 +02:00
Nathan Froyd
5ba4a13346 Bug 1485485 - make bootstrap accept rustc/cargo in known-good locations; r=chmanchester
moz.configure looks for rustc/cargo on PATH and in ~/.cargo/bin.
Bootstrap only looks on PATH and not in ~/.cargo/bin, though it is smart
enough to complain if rustc/cargo can't be found on PATH and you have
them in ~/.cargo/bin.  Bootstrap should look in both places by default,
and be content if it finds them wherever they are, so long as
moz.configure can find them.
2018-08-28 09:31:48 -04:00
Panos Astithas
312fdae0eb Bug 1484243 - Detect vcs automatically in |mach vcs-setup|. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D3942

--HG--
extra : moz-landing-system : lando
2018-08-22 17:26:58 +00:00
Emilio Cobos Álvarez
fd187833dd Bug 1484485: Create state dir and install node / stylo stuff in bootstrap's non-interactive mode. r=ted
The state directory is in $HOME by default, so should be fine to just create it
if we get --no-interactive I think.

Differential Revision: https://phabricator.services.mozilla.com/D3838
2018-08-22 11:17:51 +02:00
Aaron Klotz
3267ae6d9f Bug 1458386: Modify mach's RunProgram command provider to be aware of launcher process; r=gps
By default, when the launcher process is enabled, it does not wait for the
browser process to complete before terminating. mach run expects its child
process to keep running until the browser is terminated.

If we pass -wait-for-browser to the launcher process, the launcher will not
terminate until the browser process has finished, thus preserving the existing
semantics.

--HG--
extra : amend_source : cc848f955e14d7a97c1c506247fa2788261912f2
2018-08-14 12:09:32 -06:00
David Major
21d5693bdb Bug 1482272 - Don't set -DEBUG twice on Windows links. r=ted
We already append MOZ_DEBUG_LDFLAGS when MOZ_DEBUG_SYMBOLS is set.

--HG--
extra : rebase_source : ce9471ab366d88e929f2602e49f27d50cce65d8a
2018-08-21 11:35:52 -04:00
David Major
842bd5aed8 Bug 1413728: Windows DMD builds don't need special LDFLAGS behavior. r=ted
--HG--
extra : rebase_source : 338596d5c0e716e990ab669151fac2a9b43953eb
2018-08-21 11:34:48 -04:00
David Major
e57877cd63 Bug 1483835: Default to clang-cl and lld-link in local Windows builds. r=glandium 2018-08-21 11:30:16 -04:00
Nathan Froyd
f5fc3571db Bug 1480558 - part 2 - don't add MOZ_DEBUG_FLAGS to ASFLAGS on aarch64 windows; r=mshal
armasm64 doesn't accept the same options as its x86-ish counterparts,
and passing options it doesn't understand causes assembly to fail.  So
let's just not pass any flags to the assembler for the moment.
2018-08-21 11:00:35 -04:00
Mike Hommey
25e0f32c43 Bug 1341222 - Allow !- and %-prefixed paths in include paths processed by gyp. r=froydnj 2018-08-21 07:24:53 +09:00
Masatoshi Kimura
20bf6de031 Bug 1484190 - Unblock MSVC 2017 15.8. r=dmajor
--HG--
extra : rebase_source : 9d43a9cec951deabcb224efcc6bea2be0e772394
extra : source : 36e41ebefc3512f840f646be3fc14f0f3b5b538d
2018-08-17 20:41:49 +09:00
James Graham
f57f21b51d Bug 1484659 - Handle wpt version number changes, r=ato
If the wpt manifest format changes we bump the version number, causing
loading the old manifest to throw an error. We weren't correctly
handling this error when trying to update the manifest (by creating a
new empty manifest) so updates after the version number changed broke.

MozReview-Commit-ID: 4H1nMtRI9PZ

Differential Revision: https://phabricator.services.mozilla.com/D3771

--HG--
extra : moz-landing-system : lando
2018-08-20 12:05:22 +00:00
Chris Manchester
df1c9fe032 Bug 1481590 - generating report with |mach analyze all| and modifying |mach summarize| to become |mach analyze files| r=gps,mshal,chmanchester 2018-08-17 14:20:07 -07:00
Tom Prince
f5f9b5f0ac Bug 1481178: Retry downloading chainOfTrust.json.asc in mach artifact toolchain; r=gps a=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D3661

--HG--
extra : rebase_source : 1476805171a838a80d4220dafcadcc175344efa1
2018-08-17 15:20:37 -06:00
Andrew Halberstadt
32103f1e70 Bug 1483539 - [mozlint] Log a success message from the treeherder formatter when all lints succeed, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D3415

--HG--
extra : moz-landing-system : lando
2018-08-15 14:17:06 +00:00
Margareta Eliza Balazs
a42d1c158f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-16 12:33:23 +03:00
Ted Mielczarek
f5bd95d64f bug 1461992 - Add a script to output build system telemetry schema in json-schema format. r=gps
External systems such as the generic ingestion service will want to work with
the more standard json-schema format. This commit adds a script to convert the
voluptuous schema to json-schema format using the `luscious` Python module.
Since that module has not been updated recently, we install and use a fork with
some changes.

Since this is a single-purpose command that's unlikely to be used by many
people it's not implemented as a mach command, but simply a standalone script
that can be invoked via `mach python`.

Differential Revision: https://phabricator.services.mozilla.com/D2841

--HG--
extra : rebase_source : d35ed221d05d1d56b96604b931c22b700c10e476
2018-08-06 13:54:58 -04:00
Ted Mielczarek
233bc083f6 bug 1461992 - add a voluptuous schema for build system telemetry. r=gps
This change adds a voluptuous schema for build system telemetry, replacing
the existing json schema file. Using voluptuous will make it easier to work
with the schema from Python code in the build system. A future commit will
use a Python module to provide a mach command to convert the voluptuous
schema to json schema format for consumption by other systems.

Differential Revision: https://phabricator.services.mozilla.com/D2840

--HG--
extra : rebase_source : 067995385334d1dbc123f2db4245ef4e69d076c3
2018-08-03 15:41:20 -04:00
Ting-Yu Lin
1199851701 Bug 1476147 - Use path.isfile() instead of patch.exists() in which(). r=glandium
This excludes directories, and returns true only if it's an executable file.

Differential Revision: https://phabricator.services.mozilla.com/D3366

--HG--
extra : moz-landing-system : lando
2018-08-15 06:15:57 +00:00
Noemi Erli
3516dcf033 Backed out changeset ac5d5dec618e (bug 1481590) for Gecko decision task failure 2018-08-15 06:13:37 +03:00
Sofia Carrillo
80dafc6927 Bug 1481590 - generating report with |mach analyze all| and modifying |mach summarize| to become |mach analyze files| r=gps,mshal,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D2981

--HG--
extra : moz-landing-system : lando
2018-08-15 01:12:03 +00:00
Cosmin Sabou
ba5b2095eb Merge mozilla-central to autoland. a=merge 2018-08-15 04:56:53 +03:00
Panos Astithas
6a01b19a19 Bug 1257478 - Turn mercurial-setup into vcs-setup and add git support. r=gps
MozReview-Commit-ID: AD6gLqFm8Nn

--HG--
extra : rebase_source : 0214cdc6f6acaaf0621e25f30cb0a2c81849063e
2018-07-04 21:48:42 +03:00
Kris Maglione
30986431c7 Bug 1472491: Part 5a - Add BrowserTabChild actor. r=felipe
MozReview-Commit-ID: 38Y1xwkgxCx

--HG--
extra : rebase_source : 61a85af58f9f16b8e39b716e3df2d09b788fcb1a
2018-07-29 19:42:46 -07:00
Mike Shal
b8cdd8565b Bug 1481441 - Honor MOZ_PARALLEL_BUILD in non-make backends; r=chmanchester
If you specify 'mk_add_options MOZ_PARALLEL_BUILD=X' in your mozconfig,
this variable ends up being passed into client.mk, which tells the make
backend to use that as the number of parallel jobs. However, there is no
equivalent in alternate backends aside from specifying '-jX' at the
commandline on each build invocation.

Rather than making a new mechanism to do this, we can check the
mozconfig for the MOZ_PARALLEL_BUILD flag and use that number for the
jobs parameter if no override was specified on the commandline.

MozReview-Commit-ID: 4YHG30N6tmi

Differential Revision: https://phabricator.services.mozilla.com/D3362

--HG--
extra : moz-landing-system : lando
2018-08-14 21:42:16 +00:00
Chris Manchester
8c2d7750a1 Bug 1474028 - Use output categories to exclude the gtest libxul from the default tup build. r=mshal
MozReview-Commit-ID: 2C9PmFziFqr

--HG--
extra : rebase_source : 68ed008c50dc2cb6c84ad30fe4b5d168373e535b
2018-08-10 12:07:36 -07:00
Chris Manchester
c346a68ae0 Bug 1474028 - Add a way to exclude libraries from the default build. r=ted
MozReview-Commit-ID: MVfplx9lN2

--HG--
extra : rebase_source : 10b4bd3dcc1386d782531206c84b66207297d00a
2018-08-10 12:07:29 -07:00
Chris Manchester
2a6ade919e Bug 1478798 - Handle the CLOBBER file optimistically in the Tup backend. r=mshal
MozReview-Commit-ID: DDIqlDwjKil

Differential Revision: https://phabricator.services.mozilla.com/D2799

--HG--
extra : moz-landing-system : lando
2018-08-13 17:07:41 +00:00
Emilio Cobos Álvarez
818db7603f Bug 1478813 - Add cbindgen toolchain job and install via bootstrap. r=ted
And require it for taskcluster build already, because it doesn't harm and lets
me put all the yml changes in the same commit.

I gave up cross-compiling for OSX after a few tries and after realizing it
wasn't enough with cctools and such, but that I also needed the Mac SDK, for
which I don't have permission...

Differential Revision: https://phabricator.services.mozilla.com/D2664

--HG--
extra : moz-landing-system : lando
2018-08-13 10:58:22 +00:00
Narcis Beleuzu
f4e5fb2d0f Backed out 2 changesets (bug 1474028) per chmanchester`s request. a=backout
Backed out changeset 52bd814d3589 (bug 1474028)
Backed out changeset 39a528147c34 (bug 1474028)
2018-08-12 21:22:45 +03:00
Andreea Pavel
308525ebcd Merge mozilla-inbound to mozilla-central. a=merge 2018-08-11 13:25:30 +03:00
Dan Mosedale
b7242c9e28 Bug 1481693 - Implement no_system_changes for moz_bootstrap, r=gps
MozReview-Commit-ID: CnS94verabV
2018-08-10 19:58:03 -07:00
Dan Mosedale
ee200cd836 Bug 1481693 - Factor out install_private_packages from moz_bootstrap, r=gps
MozReview-Commit-ID: It9IumV141L
2018-08-10 19:58:03 -07:00
Dan Mosedale
98be0c2bfe Bug 1481693 - Factor out try_to_create_state_dir from mach_bootstrap, r=gps
MozReview-Commit-ID: H6DhV56n3Cc
2018-08-10 19:58:02 -07:00
Dan Mosedale
58963c546b Bug 1481693 - Add --no-system-changes argument to 'mach bootstrap', r=gps
MozReview-Commit-ID: AMYM3rAPVcl
2018-08-10 19:58:01 -07:00
Dan Mosedale
e2e43a5c7a Bug 1481693 - Teach mach bootstrap to install NodeJS from toolchain artifact, r=gps
MozReview-Commit-ID: DBUCcGXxM0a
2018-08-10 19:58:00 -07:00