Commit Graph

4234 Commits

Author SHA1 Message Date
Mike Hommey
d605a2bfd3 Backout changeset 3ff4a396300c (bug 1495641) to give time to toolchains to build without blocking other landings. 2018-10-05 07:46:52 +09:00
Mike Hommey
460d9b3318 Bug 1495641 - Make clang-tidy toolchains use a clang-tidy/ directory instead of clang/. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D7582
2018-10-05 07:41:27 +09:00
James Graham
8df230bb58 Bug 1495372 - Unify wpt manifest download and update, r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

Differential Revision: https://phabricator.services.mozilla.com/D7497
2018-10-04 14:19:38 +01:00
Nathan Froyd
e2773ad4fd Bug 1397263 - move ASOUTOPTION to moz.configure; r=mshal 2018-10-03 20:29:29 -04:00
Nathan Froyd
9a1e9149b8 Bug 1397263 - move AS checks to toolchain.configure; r=glandium
This is a fairly straightforward port of the AS tool checks from old-configure
to toolchain.configure. AS is a little quirky in that we currently do a
normal-looking check for it, but then override that value to be the C compiler
for non-Windows builds, and ml[64]/armasm64 for Windows builds.

After migrating those checks, the only things left in the MOZ_DEFAULT_COMPILER
macro in compiler-opts.m4 were some unused bits, so I removed them:
* Setting of CPP/CXXCPP, which are set in toolchain.configure now
* Setting HOST_LDFLAGS to empty, which doesn't seem particularly useful.

There was also a quirky old test that the assembler was ml[64] when js-ctypes
is enabled that I removed, I don't think it provides any value since this
patch will ensure that we're using the right assembler for Windows builds.
2018-10-03 20:29:29 -04:00
Cosmin Sabou
f34bdc7e4b Backed out changeset 8660ad891a23 (bug 1495372) for causing win2012 bustages. a=backout 2018-10-04 02:25:45 +03:00
Cosmin Sabou
7244d89e06 Backed out changeset dcba2a476ccf (bug 1305743) on request from jgraham for causing issues with mozinfo.json. a=backout 2018-10-04 01:05:44 +03:00
Ciure Andrei
9023b4cc72 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-03 19:45:50 +03:00
Edwin Gao
4c107f8236 Bug 1291335 - Check mozconfig for --disable-tests when running mach test commands r=gbrown
Behavior changes:

- instead of reading the mozconfig file, it now instantiates an instance of the build object.
- safe checking methods are used to access attributes to prevent errors on automation environment.
- better mach command parsing is performed with handler category instead of error-prone argv parsing.


Other changes:

- docstring for testing/xpcshell/runxpcshelltests.py::buildTestList() added and modernized.
- added clause that if length of tests gathered is 0, mach exits with an error code of 1.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 15:40:48 +00:00
James Graham
57c945674a Bug 1495372 - Unify wpt manifest download and update r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 15:43:44 +00:00
Raza Haider
ad72d8df61 Bug 1488788 - Migrate about:restartrequired from DTD to Fluent. r=gijs,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D5495

--HG--
extra : rebase_source : 0b96b28e314fabac2ce2eb2d0beb82854bd4aab0
2018-09-24 18:59:55 +01:00
Jay Kamat
245ac54f65 Bug 1493345 Fix improper usage of blessings.tigetstr r=ted,firefox-build-system-reviewers
blessings.tigetstr is not part of its API. It happens to work because
blessings imports curses using 'from curses import tigetstr'.

Instead, we can just use terminal.normal, which contains the string we were
going to get anyway.

See https://github.com/erikrose/blessings/pull/138 for more information.

Let me know if there's a better way of resolving this. Hopefully with this +
the patch I submitted to blessings (https://github.com/erikrose/blessings/pull/137)
firefox will build fine with TERM improperly set.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 18:36:30 +00:00
Brindusan Cristian
fc5031a446 Merge inbound to mozilla-central. a=merge 2018-10-02 07:01:43 +03:00
Edwin Gao
d7986ad99a Bug 1305695 - ./mach test --debugger=<debugger> doesn't fail if <debugger> isn't available r=gbrown
- added checkers in python/mach/mach/main.py prior to calling registrar.py.
- added internal function to check if specified debugger is installed.
- support both ./mach test <test_name> and ./mach <test_category> styles.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 22:06:54 +00:00
Chris Manchester
153d3ceb4a Bug 1495108 - Skip symlinking $objdir/dist/bin/js to $objdir/js/src/js in the tup backend in browser builds. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7348

--HG--
extra : moz-landing-system : lando
2018-10-01 22:43:30 +00:00
Brindusan Cristian
9b5034705f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-02 01:04:29 +03:00
Brindusan Cristian
f8087305eb Merge inbound to mozilla-central. a=merge 2018-10-02 00:55:00 +03:00
shindli
6ba91671cb Backed out changeset 05df95ba3a98 (bug 1305695) for ES lint failures CLOSED TREE 2018-10-02 00:00:23 +03:00
Aaron Klotz
624a2f533e Bug 1495481: Add launcher process -wait-for-browser support to Visual Studio backend; r=froydnj
--HG--
extra : amend_source : fd60284645e3dda2f17935da906ac361c8d05e0c
2018-10-01 11:03:27 -06:00
Edwin Gao
63180f5b60 Bug 1305695 - ./mach test --debugger=<debugger> doesn't fail if <debugger> isn't available r=gbrown
- added checkers in python/mach/mach/main.py prior to calling registrar.py.
- added internal function to check if specified debugger is installed.
- support both ./mach test <test_name> and ./mach <test_category> styles.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 18:03:06 +00:00
Chris Manchester
86497c51a6 Bug 1493272 - Run a top level build in the tup backend when "faster" or "binaries" is passed to |./mach build| r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D7319

--HG--
extra : moz-landing-system : lando
2018-10-01 19:11:59 +00:00
Chris Manchester
553a814a35 Bug 1495314 - Use the value of MOZ_DEBUG_RUST from individual objects in the Tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D7261

--HG--
extra : moz-landing-system : lando
2018-10-01 16:13:46 +00:00
Haik Aftandilian
128b20bd14 Bug 1494326 - Provide a mach run option to launch the browser using the macOS open(1) command r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D6909

--HG--
extra : moz-landing-system : lando
2018-10-01 17:02:34 +00:00
Paul Adenot
086c0861a3 Bug 1472496 - Don't call out to readelf in check_binary.py. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D6892

--HG--
extra : moz-landing-system : lando
2018-10-01 13:26:35 +00:00
Chris Manchester
de039f476a Bug 1494791 - Build rust programs in the tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D7147

--HG--
extra : moz-landing-system : lando
2018-09-28 21:49:06 +00:00
Dan Mosedale
424eb90de9 Bug 1485081 - Add node.py action for use by moz.build files, r=gps
MozReview-Commit-ID: F5iPctcvn9h
2018-10-01 15:12:40 -07:00
Ciure Andrei
a8953550a3 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-28 11:58:15 +03:00
Chris Manchester
68771b058d Bug 1494139 - Link rust libraries into programs in the tup backend. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7136

--HG--
extra : moz-landing-system : lando
2018-09-28 00:38:47 +00:00
Chris Manchester
66aa31a499 Bug 1494139 - Add rust build script outputs to the tup backend for upcoming cranelift crates. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7137

--HG--
extra : moz-landing-system : lando
2018-09-28 00:39:44 +00:00
Chris Manchester
07ba5749ea Bug 1494139 - Place build script outputs in each package's output directory in the tup backend. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7135

--HG--
extra : moz-landing-system : lando
2018-09-28 00:31:56 +00:00
Edwin Gao
b8a91d1cf9 Bug 1305743 - Make failure to find mozinfo.json a fatal error r=gbrown,ahal
- moved placement of the raise_exception computation to be after the initial objdir path computation.
- original implementation was missing detection for cases where user may pass in a False flag to explicitly suppress errors.
- added unit tests to check for scenarios where raise_exception flag is passed in as part of positional argument.
- changed argument to include a **kwargs argument for caller to modify default exception behavior.
- default behavior is to raise exceptions if mozinfo.json cannot be found.
- disabled TreeMetadataEmitter from calling mozinfo.find_and_update_from_json and setting the self.info variable since it was not referenced anywhere else after the initial setup.

Depends on D6859

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

--HG--
extra : moz-landing-system : lando
2018-09-26 20:07:25 +00:00
Jim
a917f4d962 Bug 1486936. Migrated about:config to Fluent for localization. r=Gijs,flod,jaws
Bug 1486936 - Migrated about:config to Fluent for localization.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 04:33:22 +00:00
Andrew Halberstadt
9d5e499a90 Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao
There is only a single linter (test-disable.yml) that uses a glob in any
include path, and that usage is easily replaced by using the 'extensions' key
instead.

Since globs in include directives aren't very useful, let's disallow them. This
will allow us to simplify the 'filterpaths' logic quite substantially and make
future refactorings in this area easier.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 18:30:23 +00:00
Mark Banner
3043f2a053 Bug 1482435 - Separate out nodejs finding logic from configure and use it for ESLint. r=firefox-build-system-reviewers,gps
This extracts the current logic for finding nodejs into its own module in mozbuild. Configure and ESLint then use it.

For ESLint, this will change the first location it looks for nodejs to be the .mozbuild directory.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 18:15:51 +00:00
Andi-Bogdan Postelnicu
8648acbeb0 Bug 1493922 - [Static-Analysis][Clang-Tidy] Add more return codes to mach static-analysis autotest. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D6759

--HG--
extra : moz-landing-system : lando
2018-09-25 12:37:45 +00:00
Aaron Klotz
5dc8e2a672 Bug 1493000: Ensure that mach gtest passes --wait-for-browser to firefox when launcher process is enabled; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D6440

--HG--
extra : moz-landing-system : lando
2018-09-24 21:29:37 +00:00
Ted Mielczarek
9a113c8914 bug 1493623 - don't try to collect compiler type for build telemetry in artifact builds. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D6669

--HG--
extra : moz-landing-system : lando
2018-09-24 16:13:34 +00:00
Bob Clary
60b6e1c8f0 Bug 1492599 - [mozbuild] Add MachCommandCondition.is_firefox_or_android method, r=ahal,froydnj. 2018-09-23 15:08:56 -07:00
Collin Wing
1e54660e25 Bug 1486935 - Migrated aboutProfiles to fluent for localization r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D5283

--HG--
extra : moz-landing-system : lando
2018-09-23 17:26:44 +00:00
Chris Manchester
461bf6e5f4 Bug 1492291 - Wrap rustc invocations in the tup backend to forward relevant info from cargo build script outputs. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D6422

--HG--
extra : moz-landing-system : lando
2018-09-22 00:38:12 +00:00
Chris Manchester
2ca27f0e2a Bug 1491967 - Translate arguments to |./mach build| to objdir paths when possible in the tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D6084

--HG--
extra : moz-landing-system : lando
2018-09-21 20:20:49 +00:00
Brindusan Cristian
e48cea756e Merge inbound to mozilla-central. a=merge
--HG--
rename : toolkit/themes/shared/in-content/check-partial.svg => toolkit/themes/shared/icons/check-partial.svg
rename : browser/themes/shared/icons/check.svg => toolkit/themes/shared/icons/check.svg
2018-09-21 20:29:29 +03:00
Andrew Halberstadt
2aba2689ec Bug 1448417 - [mozlint] Be explicit about which linters are used for functions in test_roller.py, r=rwood
This makes things more explicit. Previously we were relying on those magic
global "linters" variables, and it turned out that one of the tests was
actually linting a completely different set of linters than I was expecting.

This changes things so each test needs to explicitly define which linters it
wants to use.

Depends on D6410

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

--HG--
extra : moz-landing-system : lando
2018-09-20 20:45:04 +00:00
Andrew Halberstadt
a7af481576 Bug 1448417 - [mozlint] Rename test_filterpaths.py to test_pathutils.py, r=rwood
This makes this test match all the other tests (which are named after the module
they are testing).

Also rename the test function to 'test_filterpaths'.

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

--HG--
rename : python/mozlint/test/test_filterpaths.py => python/mozlint/test/test_pathutils.py
extra : moz-landing-system : lando
2018-09-20 20:27:45 +00:00
Ben Hearsum
648d8a8775 bug 1490119: Build separate updater that always embeds dep certificates. r=ted,firefox-build-system-reviewers
This patch gets us building an updater binary that always embeds the dep certificates (instead of release or nightly), and builds a new tests package that includes it.

This was originally D5900, but that was backed out due to busting artifact builds. I've fixed that by removing the Makefile that Ted pointed out is unnecessary.

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

--HG--
extra : moz-landing-system : lando
2018-09-21 10:07:27 +00:00
Coroiu Cristina
b51e5a983e Backed out changeset 494efc7d8c29 (bug 1486934) for build bustage at chrome/global/aboutAbout.dtd on a CLOSED TREE 2018-09-20 18:45:28 +03:00
Jack Smith
3670974038 Bug 1486937 - Migrates about:url-classifier to use fluent for localization r=Gijs,flod,zbraniecki,jaws
Migrates strings from aboutUrlClassifier.dtd and aboutUrlClassifier.properties files to aboutUrlClassifier.ftl

Modifies aboutUrlClassifier.xhtml and aboutUrlClassifier.js to use fluent.

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

--HG--
extra : moz-landing-system : lando
2018-09-16 13:52:25 +00:00
Qinghao_Jack_Song
4c06855cb5 Bug 1486934 - Modify about:about to use fluent for localization r=Gijs,flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D5311

--HG--
extra : moz-landing-system : lando
2018-09-19 19:02:37 +00:00
Ahilya Sinha
8f5e322404 Bug 1473915 - Set up infra so we can move the wpt-manifest out of tree r=gps
Changes the wpt manifest path to the topobjdir instead so it can be moved out of tree.
Other changes so that the manifest download and update, and |mach wpt| and |mach test <wpt-test>| work with the new path.
The manifest is also downloaded and updated when creating the tests-archive to ensure that it exists when we run tests on TC.

MozReview-Commit-ID: Fp6UsKJjhTU

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

--HG--
extra : moz-landing-system : lando
2018-09-20 12:07:58 +00:00
Andi-Bogdan Postelnicu
fb4dc15757 Bug 1480089 - pass all of the test files to to our static-analysis pipeline. r=janx
Differential Revision: https://phabricator.services.mozilla.com/D4659

--HG--
extra : moz-landing-system : lando
2018-09-20 07:38:27 +00:00