Commit Graph
3961 Commits
Author SHA1 Message Date
Gregory Szorc aca0c6ba55 Bug 1475649 - Always use --untracked-files; r=ahal
a35b188d0e44 inadvertently regressed behavior in the case where
the Git status.showUntrackedFiles config option was set and
we want to purge untracked files.

Differential Revision: https://phabricator.services.mozilla.com/D2141
2018-07-16 13:19:09 +00:00
Chris Manchester 3b0a2b4d1f Bug 1472490 - Make adding a source to SOURCES, UNIFIED_SOURCES, or HOST_SOURCES multiple times an error in moz.build. r=gps
MozReview-Commit-ID: FtPF3dxUxb5
2018-07-13 15:55:45 -07:00
Andrew Halberstadt aac1f94bb3 Bug 1475649 - [mozversioncontrol] Make vcs.working_directory_clean() ignore untracked files by default r=jgraham
The doc string for the "working_directory_clean" function states:
> By default, untracked and ignored files are not considered.

But the git implementation for this function used to run:
git status --porcelain

Which *does* consider untracked files by default. Instead, we need to run:
git status --porcelain --untracked-files=no

Differential Revision: https://phabricator.services.mozilla.com/D2134
2018-07-13 20:54:08 +00:00
Chris Manchester 7512cec7a5 Bug 1475058 - Send SIGINT when interrupting interactive in mach before sending SIGKILL. r=mshal
MozReview-Commit-ID: 2XxLyNi1ZuS
2018-07-12 11:50:48 -07:00
Gurzau Raul 8a06c38829 Merge inbound to mozilla-central. a=merge 2018-07-12 01:04:09 +03:00
Dan Minor 7bf9d2f738 Bug 1371485 - Use updated version of gyp; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

Differential Revision: https://phabricator.services.mozilla.com/D1801
2018-06-21 14:39:34 -04:00
Dave Hunt e711382424 Bug 1473727 - Avoid recreating virtual environment every time by using a unique environment for each Python version; r=ahal,dustin
This patch uses the PIPENV_PYTHON environment variable to append a suffix to the created virtual environment path according to the version specified. It also uses the PIPENV_DEFAULT_PYTHON_VERSION environment variable to avoid recreating the virtual environment every time. With these changes we are able to switch back and forth between Python versions without the expense of recreating environments, however there is a risk of these environments becoming stale. In this scenario it may be necessary to clobber the virtual environment root within the obj dir.

MozReview-Commit-ID: C4vuwNh04CP
2018-07-09 14:57:38 +01:00
Andrew Halberstadt f14303b175 Bug 1413922 - [tryselect] Merge vcs.py into mozversioncontrol r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1808
2018-07-10 19:22:00 +00:00
Andrew Halberstadt 8794c5fb58 Bug 1413922 - [mozversioncontrol] Always use hglib.client if available and fall back to subprocesses if not, r=gps
Most HG commands use subprocesses, even if a context manager (and therefore an
hglib client) has been created. There are only two commands that make use of
the client, but they *only* work inside a context manager. I don't think
there are any technical reason these two commands *need* to use the context
manager.

This patch merges the HgRepository._run_in_client function with
HgRepository._run(). If a client exists, that will be used, otherwise a
subprocess will be used.

Differential Revision: https://phabricator.services.mozilla.com/D1809
2018-07-10 20:41:49 +00:00
Jacek Caban 2d1400014f Bug 1443471 - Use correct rust target for mingw clang. r=glandium
MozReview-Commit-ID: G40IanxGWXv
2018-06-25 19:57:43 +02:00
assiya f27ab81cba Bug 1474531 - Replace iteritems with viewitems in lcov_rewriter.py. r=marco
MozReview-Commit-ID: FKEHK8dyQSC
2018-07-10 09:20:42 -07:00
Andreea Pavel 42453fcd8b Backed out changeset d75218b99a04 (bug 1473727) for build bustages on a CLOSED TREE 2018-07-10 18:17:47 +03:00
Dave Hunt f6c0ba59b9 Bug 1473727 - Avoid recreating virtual environment every time by using a unique environment for each Python version; r=ahal,dustin
This patch uses the PIPENV_PYTHON environment variable to append a suffix to the created virtual environment path according to the version specified. It also uses the PIPENV_DEFAULT_PYTHON_VERSION environment variable to avoid recreating the virtual environment every time. With these changes we are able to switch back and forth between Python versions without the expense of recreating environments, however there is a risk of these environments becoming stale. In this scenario it may be necessary to clobber the virtual environment root within the obj dir.

MozReview-Commit-ID: C4vuwNh04CP
2018-07-09 14:57:38 +01:00
Tiberius Oros 3265829189 Merge inbound to mozilla-central. a=merge 2018-07-10 12:45:13 +03:00
Coroiu Cristina ed04d36b2a Merge mozilla-central to inbound a=merge 2018-07-10 03:15:56 +03:00
Coroiu Cristina eed0be1805 Backed out 2 changesets (bug 1413922) for breaking Nightly L10n a=backout
Backed out changeset e7a1d749ff9a (bug 1413922)
Backed out changeset b3bead1f5729 (bug 1413922)
2018-07-10 03:11:28 +03:00
Nathan Froyd d14ad3dd19 Bug 1444171 - Add pgo-generate-only source functionality; r=glandium
For clang-cl, we want to add code to libxul that only exists during the
PGO generation phase, so we can collect data.  The most expedient way to
do that is to enable certain files in SOURCES to be marked as to only be
compiled during the PGO generation step.
2018-07-09 18:35:49 -04:00
Nathan Froyd 71042cc244 Bug 1444171: Generate profiling instrumentation for clang-cl in PGO builds; r=glandium 2018-07-09 18:26:24 -04:00
Coroiu Cristina 5346a2ab41 Merge mozilla-central to autoland a=merge 2018-07-10 03:15:02 +03:00
Chris Manchester 61765867f6 Bug 1468547 - Re-factor gtest mach command to not invoke make when not necessary. r=mshal
MozReview-Commit-ID: 6j7t0YIZc8n
2018-07-09 14:28:59 -07:00
Chris Manchester 428b766ed1 Bug 1468547 - Build the gtest libxul in the tup backend. r=mshal
MozReview-Commit-ID: 8EISyDauwgD
2018-07-09 14:28:58 -07:00
Chris Manchester 164154c4c4 Bug 1468547 - Add a default output group to the Tup backend. r=mshal
This adds everything to a default output group so we can run `tup upd $objdir/<default>`
during `mach build` and `tup upd $objdir/<gtest>` for instance when running `mach gtest`
as a way to conditionally build parts of the tree.

MozReview-Commit-ID: 8jpkru1EgAC
2018-07-09 14:28:58 -07:00
Chris Manchester 6b75a9f2fc Bug 1472857 - Require rustc 1.27 to build. r=glandium
MozReview-Commit-ID: 5WsP4EQxSil
2018-07-03 15:27:20 -07:00
Andrew Halberstadt 7c0ca56b2a Bug 1413922 - [tryselect] Merge vcs.py into mozversioncontrol r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1808
2018-07-07 00:32:11 +00:00
Andrew Halberstadt 7fdc5bfb32 Bug 1413922 - [mozversioncontrol] Always use hglib.client if available and fall back to subprocesses if not, r=gps
Most HG commands use subprocesses, even if a context manager (and therefore an
hglib client) has been created. There are only two commands that make use of
the client, but they *only* work inside a context manager. I don't think
there are any technical reason these two commands *need* to use the context
manager.

This patch merges the HgRepository._run_in_client function with
HgRepository._run(). If a client exists, that will be used, otherwise a
subprocess will be used.

Differential Revision: https://phabricator.services.mozilla.com/D1809
2018-06-26 00:13:58 +00:00
Mike Hommey 8925ceae94 Bug 1469091 - Build the clang plugin as a host shared library. r=ted
This adds just enough host shared library support for this one use case,
but also takes shortcuts, because fully supporting host shared library
is a deep rabbit hole I'm not ready to take just to fix --enable-lto
--enable-clang-plugin on mac builds.

One downside is that one my machine the plugin now takes > 80s to build,
instead of 15s before, thanks to the lack of unified sources.
2018-07-05 14:58:09 +09:00
Dave Hunt db02b606db Bug 1472199 - [mozbuild] Remove unittest dependency from test_pythonutil.py and narrow to tests module; r=ahal
The test checks the modules imported, which means it will fail if we import mozbuild.base to determine the topsrcdir. Rather than include the additional modules, which may change in the future, I have narrowed the scope of the test to the mozbuild/tests module.

MozReview-Commit-ID: GiaPzp19adE
2018-07-05 14:27:29 +01:00
Mike Hommey 6393f5cba6 Bug 1457168 - Make configure tests use LINKER_LDFLAGS. r=chmanchester
Because we have no linking configure test in python configure (yet), we
just make old-configure tests use LINKER_LDFLAGS, and make those flags
added to LDFLAGS by old-configure at the same time.
2018-07-04 16:18:48 +09:00
Nathan Froyd 28eef3222f Bug 1473291 - handle valueless dynamic section entries; r=glandium
Some dynamic entry types, like DT_BIND_NOW, are printed without a value
by readelf.  Handle such types gracefully.
2018-07-04 20:51:25 -04:00
Bogdan Tara 8245a830c3 Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Gurzau Raul a18af34c88 Merge inbound to mozilla-central. a=merge 2018-07-04 12:58:33 +03:00
Rok Garbas 3caac7c92c Bug 1471541 - switch to new tooltool url, r=jlund 2018-07-03 15:35:58 -07:00
Chris AtLee 49625724f4 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-07-03 18:33:02 +00:00
Francesco Lodolo (:flod) b9bb001130 Bug 1472972 - Remove Fluent migration recipes for Firefox 61 r=Pike
MozReview-Commit-ID: DnhDlFPf070
2018-07-03 13:58:05 +02:00
Andi-Bogdan Postelnicu 1a9c3d0afc Bug 1472721 - mach static-analysis - use header_filter regex expression in order to better filter files. r=janx
MozReview-Commit-ID: JXzs46L23rM
2018-07-03 14:37:46 +03:00
Myk Melez 06b975545c Bug 1467148 - exclude .DS_Store file from list of subdirs to check for license info, r=ted
vendor_rust.py checks all dirs in third_party/rust/ for license information, but it wasn't distinguishing between subdirs and files when listing the contents of that directory, and the script earlier causes macOS to create a .DS_Store file in the directory, which the script then treats as a subdir, causing an IOError "not a directory". This change excludes the .DS_Store file (and other non-dirs) from the list of subdirs of third_party/rust/ to check for license info.

MozReview-Commit-ID: 4CrJH9tZLnG
2018-07-02 14:27:22 -07:00
Andi-Bogdan Postelnicu 5353db2ccf Bug 1472502 - fix mach static-analysis clear-cache. r=sylvestre
MozReview-Commit-ID: AUlYNnEAtbS
2018-07-02 12:05:07 +03:00
Dave Hunt 9cee4fd02b Bug 1471171 - Indicate that mozterm is universal and works on any version of Python; r=emorley
MozReview-Commit-ID: FZwCHyEh2vS
2018-07-02 12:03:10 +01:00
Dave Hunt 89ba424db5 Bug 1471171 - Bump mozterm to 1.0.0; r=emorley
MozReview-Commit-ID: IMfAOiFCHST
2018-07-02 11:57:33 +01:00
Simon Fraser d64be18286 Bug 1468394 mach python-safety command for checking requirements files r=mtabara,tomprince
Added `./mach python-safety`, distinct from python-test so it doesn't have
to be run on every CI job - its errors may not depend on the area the push has changed.

Added the python/safety directory to ensure a different Pipfile is used, avoiding
conflicts with python-test.

Differential Revision: https://phabricator.services.mozilla.com/D1825
2018-06-29 16:56:51 +00:00
Mike Hommey e75d208e28 Bug 1447116 - Require rust 1.26. r=froydnj
We're well overdue for an upgrade of the rust compiler requirements.
Now that we're building with 1.28 (albeit a beta, due to be bumped when
it's released), we can bump the requirement away from 1.24 which is now
old. 1.27 is too new, though, so settle for the older 1.26.
2018-06-26 18:05:23 +09:00
Kris Maglione 0081137796 Bug 1459004: Generate built_in_addons.json from moz.build definitions. r=mshal
MozReview-Commit-ID: 1HRLG5tSlFr
2018-06-06 16:43:00 -07:00
Andrew Halberstadt 66db90f18e Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt
This will make sure that when running |mach python-test --python 3| locally,
we only run the tests that also run in CI with python 3 (and therefore pass
presumably).

MozReview-Commit-ID: 3OBr9yLSlSq
2018-06-27 11:10:02 -04:00
Mike Hommey 34db6f251f Bug 1471685 - Work around MSVC linker adding padding during incremental builds. r=froydnj 2018-06-28 15:53:25 +09:00
Cosmin Sabou bb987de702 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-28 13:04:23 +03:00
Tiberius Oros 0997271a68 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-28 01:12:18 +03:00
Chris Manchester c7690cce95 Bug 1471425 - Print output of cargo if it fails when run as a part of the Tup backend. r=mshal
MozReview-Commit-ID: BRVSLE83WMH
2018-06-26 18:17:45 -07:00
Joel Maher 6d64a9838d Bug 1468198 - remove tests that only run on b2g. r=smaug,mcmanus,whimboo 2018-06-27 09:52:19 -04:00
Bogdan Tara 31ad3dcc04 Backed out 2 changesets (bug 1447116) for debug reftests failures CLOSED TREE
Backed out changeset 0c8c7b025aee (bug 1447116)
Backed out changeset 82dc9159f28d (bug 1447116)
2018-06-27 05:17:03 +03:00
Gregory Szorc f84086a760 Bug 1469441 - Support fetching bootstrap files from an arbitrary revision; r=glandium
By making the archive URL dynamic, we can fetch an old version of the
bootstrap files. This will make it easier to test the bootstrapper in
CI.

Differential Revision: https://phabricator.services.mozilla.com/D1698
2018-06-27 12:15:44 -07:00