Commit Graph
4237 Commits
Author SHA1 Message Date
Mike Shal 6c6281630d Bug 1461714 - Run node in export; r=ochameau,nalexander
In bug 1461714 we run node.py to generate main.js in the objdir, and use
FINAL_TARGET_FILES to install it into dist. However, when both rules are
run in parallel in the misc tier, the install target may pick up the
main.js file from the srcdir via VPATH, so we end up with the wrong file
in dist. This causes some mochitests to fail with "uncaught exception -
SyntaxError: import declarations may only appear at top level of a
module at
@resource://devtools/client/debugger/new/src/main.js:7:undefined"

The workaround here is to run these node.py invocations (which always
write to node.stub) in the export tier, so that when the install target
in misc is processed, the objdir version of the file is always present
and takes precedence.

A better fix would probably be to remove our reliance on VPATH, and just
pass in the path to files in the srcdir when they are required. That
could potentially be a major overhaul, however.

MozReview-Commit-ID: JZ04C7zJPbX

Differential Revision: https://phabricator.services.mozilla.com/D7770
2018-10-05 08:17:39 +00:00
Adam Gashlin 787d367c0b Bug 1496610: Don't treat ~ (tilde) in paths as special. r=glandium
This fixes treatment of Windows paths, where tilde is not special,
particularly in short file names.
2018-10-04 18:55:07 -07:00
Mike Hommey bba5e8b9c1 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 09:51:07 +09:00
Mike Hommey afa83b2b78 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 81c9f7b288 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 4664295473 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 bb92bee0b5 Bug 1397263 - move ASOUTOPTION to moz.configure; r=mshal 2018-10-03 20:29:29 -04:00
Nathan Froyd 2e79d92575 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 8073f659d9 Backed out changeset 8660ad891a23 (bug 1495372) for causing win2012 bustages. a=backout 2018-10-04 02:25:45 +03:00
Cosmin Sabou f0fe3ab08a 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 43ebb896da Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-03 19:45:50 +03:00
Edwin Gao a72e9c8c8f 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
2018-10-03 15:40:48 +00:00
James Graham 4d64cd2003 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-03 15:43:44 +00:00
Raza Haider 59a178fc48 Bug 1488788 - Migrate about:restartrequired from DTD to Fluent. r=gijs,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D5495
2018-09-24 18:59:55 +01:00
Jay Kamat a415a40a98 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
2018-10-02 18:36:30 +00:00
Brindusan Cristian 50db4e557d Merge inbound to mozilla-central. a=merge 2018-10-02 07:01:43 +03:00
Edwin Gao d6ab174644 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
2018-10-01 22:06:54 +00:00
Chris Manchester a6f83cf5d9 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
2018-10-01 22:43:30 +00:00
Brindusan Cristian 3867375ace Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-02 01:04:29 +03:00
Brindusan Cristian 78b95951dd Merge inbound to mozilla-central. a=merge 2018-10-02 00:55:00 +03:00
shindli 50748e7ce0 Backed out changeset 05df95ba3a98 (bug 1305695) for ES lint failures CLOSED TREE 2018-10-02 00:00:23 +03:00
Aaron Klotz 4251677c8d Bug 1495481: Add launcher process -wait-for-browser support to Visual Studio backend; r=froydnj 2018-10-01 11:03:27 -06:00
Edwin Gao fae6ddae92 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
2018-10-01 18:03:06 +00:00
Chris Manchester 08166f3a49 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
2018-10-01 19:11:59 +00:00
Chris Manchester f5d250cea6 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
2018-10-01 16:13:46 +00:00
Haik Aftandilian 2029ce863c 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
2018-10-01 17:02:34 +00:00
Paul Adenot c20d192587 Bug 1472496 - Don't call out to readelf in check_binary.py. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D6892
2018-10-01 13:26:35 +00:00
Chris Manchester d0fb331726 Bug 1494791 - Build rust programs in the tup backend. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D7147
2018-09-28 21:49:06 +00:00
Dan Mosedale f0521bc12c 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 5ed6a05b39 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-28 11:58:15 +03:00
Chris Manchester af96d02a13 Bug 1494139 - Link rust libraries into programs in the tup backend. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D7136
2018-09-28 00:38:47 +00:00
Chris Manchester 13a97cbfc9 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
2018-09-28 00:39:44 +00:00
Chris Manchester 5f0e21ad6f 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
2018-09-28 00:31:56 +00:00
Edwin Gao e972c77a25 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
2018-09-26 20:07:25 +00:00
Jim ed0f483802 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
2018-09-26 04:33:22 +00:00
Andrew Halberstadt ca50f5f66c 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
2018-09-25 18:30:23 +00:00
Mark Banner 5ce775ff3d 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
2018-09-25 18:15:51 +00:00
Andi-Bogdan Postelnicu 8f9fd6cb4f 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
2018-09-25 12:37:45 +00:00
Aaron Klotz 522fe3adfa 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
2018-09-24 21:29:37 +00:00
Ted Mielczarek db1bbf1447 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
2018-09-24 16:13:34 +00:00
Bob Clary 6fcfc68a99 Bug 1492599 - [mozbuild] Add MachCommandCondition.is_firefox_or_android method, r=ahal,froydnj. 2018-09-23 15:08:56 -07:00
Collin Wing fe09402780 Bug 1486935 - Migrated aboutProfiles to fluent for localization r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D5283
2018-09-23 17:26:44 +00:00
Chris Manchester cd36dd5f45 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
2018-09-22 00:38:12 +00:00
Chris Manchester 8219198cc3 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
2018-09-21 20:20:49 +00:00
Brindusan Cristian c9cbc61466 Merge inbound to mozilla-central. a=merge 2018-09-21 20:29:29 +03:00
Andrew Halberstadt 87d9ea7f95 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
2018-09-20 20:45:04 +00:00
Andrew Halberstadt d3c4fde412 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
2018-09-20 20:27:45 +00:00
Ben Hearsum e7015dee7c 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
2018-09-21 10:07:27 +00:00
Coroiu Cristina c07a6509dc 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 ee42d88da1 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
2018-09-16 13:52:25 +00:00