Commit Graph
3973 Commits
Author SHA1 Message Date
Nathan Froyd 679be90142 Bug 1476973 - part 3 - rationalize the backend's IDLManager; r=gps
The IDLManager in the moz.build backend is a bit weird.  It maintains a
bunch of per-IDL file information, some of which isn't used, and
attempts to map module names to information about what entities the
module needs to be built.  The former is done with Python dicts, and the
latter with Python tuples, both resulting in some contortions by the
clients of IDLManager to specify exactly what they need.

Let's clean this up, by making IDLManager to more clearly do two jobs:

1. Keep track of whether IDL files are globally unique; and
2. Map module names to the information needed to build them.

In the case of #2, we store everything as a straight Python object, so
we can use actual property accesses everywhere.  We also provide a
stems() function on IDLManager to make some client code more
straightforward.

Doing this makes IDLManager much more XPIDL module-centric, and paves
the way for the same change to be made in the frontend as well.
2018-07-24 14:30:53 -04:00
Nathan Froyd 7c41a94ef2 Bug 1476973 - part 2 - assert that XPIDL_SOURCES files all exist; r=gps
We should have been checking for this from the beginning.
2018-07-24 14:30:53 -04:00
Nathan Froyd 4f7dcff69b Bug 1476973 - part 1 - make XPIDL_SOURCES a list of SourcePath objects; r=gps
XPIDL_SOURCES would benefit from being more explicit about what sort of
values it contains; let's define it as a list of SourcePath objects, and
propagate those objects into XPIDLFile frontend objects as well.
2018-07-24 14:30:54 -04:00
Mike Shal 4fb390da04 Bug 1476802 - Make toolkit/library/rust/Tupfile work with --dry-run; r=cmanchester+432261
We shouldn't call _get_backend_file during TupBackend:_init() since
self.dry_run is not set yet. Instead we can just call it when we need to
add rust rules.

MozReview-Commit-ID: 5elqXGFMSuG
2018-07-18 17:20:13 -04:00
Chris Manchester c2513d85bd Bug 1475278 - Link a HostRustLibrary to a HostProgram where necessary in the Tup backend. r=mshal
MozReview-Commit-ID: qghHI02Bfs
2018-07-12 16:31:54 -07:00
Andrew Halberstadt ef5e8b1023 Bug 1476390 - [python-test] Default number of processes to multiprocessing.cpu_count() r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D2201
2018-07-18 16:15:48 +00:00
Tooru Fujisawa 2315509abb Bug 1475443 - Properly detect Xcode licence agreement issue in bootstrap.py; r=gps 2018-07-13 12:32:45 +09:00
Bogdan Tara d0c9078e52 Merge autoland to mozilla-central. a=merge 2018-07-17 00:58:15 +03:00
Simon Fraser 867700166b Bug 1476003 Update python virtual environment for |mach python-safety| r=davehunt
Following the lead from 1473727 and python-test.

Differential Revision: https://phabricator.services.mozilla.com/D2158
2018-07-16 15:36:50 +00:00
Masatoshi Kimura 4637a1969a Bug 1476000 - Support warnings format from clang-cl. r=dmajor 2018-07-17 01:08:04 +09:00
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