Commit Graph
3330 Commits
Author SHA1 Message Date
Dustin J. Mitchell 256f5ffad0 Bug 1410911 - back out bug 1403322; r=gbrown
Backed out changesets 37db725b2308 ccc4f12edef0 e3a310b6b896 547109f6eb1d 5c50f100460d

MozReview-Commit-ID: 5M6Mevz6LZV
2017-11-10 18:19:47 +00:00
Mike Shal f3498f61ac Bug 1407432 - Move stl wrapper generation into moz.build; r=froydnj
This is fairly straightforward to represent as a GENERATED_FILES, though
we have to take some care to construct the outputs tuple correctly. This
script needs to run during export, and unfortunately none of the STL
headers have proper file extensions, so the 'new' header is
special-cased in the recursive make backend to serve as a marker for
running it in the correct tier.

We can't remove the stl-headers file yet because it is still used for
the system header generation.

MozReview-Commit-ID: 3tQTOY0LAsQ
2017-11-08 17:42:27 -05:00
Mike Shal 0a3d829764 Bug 1407432 - Remove unused builtins arg from Sandbox; r=froydnj
MozReview-Commit-ID: JVukxIg04AT
2017-11-08 19:58:28 -05:00
Gregory Szorc b0c5a42e2e Bug 1411462 - Abort when I/O error seen; r=glandium
Before, I/O errors writing to stdout/stderr (e.g. due to broken pipe)
would result in handleError() being called and execution would
keep running. This would potentially result in an error message for
every log/line failure being printed to stderr.

We change the behavior so I/O failures are fatal and abort
execution.

We test the new behavior by changing a test to pipe to `head`
directly. Since `head` exits once it has seen sufficient output,
this results in an EPIPE which now results in immediate program
termination.

MozReview-Commit-ID: 1UecZJ56h4r
2017-11-09 20:44:10 -08:00
Gregory Szorc 226ca80b40 Bug 1411462 - Normalize when argument earlier in imply_option(); r=glandium
This makes `configure --help` work again (it stopped working due to
370a4a2a7898 (bug 1405982).

MozReview-Commit-ID: 2gCmAAsE0qW
2017-10-24 12:56:10 -07:00
Phil Ringnalda 32df571256 Backed out 6 changesets (bug 1407432) on (wild) suspicion of causing failures in browser_sanitize-timespans.js, somehow
CLOSED TREE

Backed out changeset 86302df0b38a (bug 1407432)
Backed out changeset 5a967cc85e28 (bug 1407432)
Backed out changeset 828d43ec1b16 (bug 1407432)
Backed out changeset bacf04be0a48 (bug 1407432)
Backed out changeset 8d770908a5b9 (bug 1407432)
Backed out changeset ffe9aed0944f (bug 1407432)

MozReview-Commit-ID: 7D50rKeXLrn
2017-11-09 22:07:46 -08:00
Gregory Szorc f04d339935 Bug 1415971 - Dedent warning printing code; r=nalexander
This doesn't need to run when the context manager is active.

MozReview-Commit-ID: DV3SZyUwxlM
2017-11-09 13:13:09 -08:00
Gregory Szorc 70999bf2c6 Bug 1415971 - Stop build output monitor earlier; r=nalexander
We currently print compiler warnings summary then stop the build
output manager, which basically stops resource monitoring.

A future commit will refactor this code a bit and it will be easier
to have the monitor.stop() call directly after the build finishes.

MozReview-Commit-ID: 3uWFWG6ELnH
2017-11-09 12:12:31 -08:00
Gregory Szorc 0faef56530 Bug 1415614 - Move configure invocation out of mach_commands.py; r=nalexander
While we're here, also move the low-level code to invoke configure
to a proper Python module.

MozReview-Commit-ID: 4rlCxOwcVu1
2017-11-09 12:19:16 -08:00
Gregory Szorc bc891eaae0 Bug 1415614 - Move code for invoking build system out of mach_commands.py; r=nalexander
The goal is to move this lower-level code somewhere where it can be
reused.

The only meaningful code change as part of the move was handling
of the mach context. Before, we could access self._mach_context.
After, we need to pass it as an argument. This also uncovered a bug
where "telemetry_handler" could be None but we called it
unconditionally. We now guard this call with an "if."

MozReview-Commit-ID: FWw4l6H1ayS
2017-11-08 15:52:17 -08:00
Gregory Szorc 15ccd5fd80 Bug 1415614 - Move build output processing code out of mach_commands.py; r=nalexander
In general, we shouldn't have so much business logic in mach_commands.py
files.

I'd like to move more of the low-level "perform a build" logic out of
mach_commands.py to facilitate some future work. That code makes use of
this output processing code. So as the first step in moving the build
code, we move its dependencies.

As part of this, I also cleaned up some random unused imports around
lines that were touched.

No meaningful code changes were performed as part of the code move.

MozReview-Commit-ID: 96mGWUJ7oLb
2017-11-08 14:45:07 -08:00
Gregory Szorc 48b46d8306 Bug 1415614 - Add an API to log all structured messages; r=mshal
Currently, marking a logger as a structured logger will require a
subsequent function call in order for the logger to be hooked up
to active handlers. This behavior is not intuitive and makes it
easy to not have handlers for newly-registered loggers. This means
messages may not be logged anywhere.

In addition, we have to manually specify which named loggers to
enable structured logging for. This can be annoying.

We change the behavior of register_structured_logger() to
automatically add existing terminal and json handlers to the
logger being marked as structured.

We also introduce an API to enable structured logging for all
loggers. Existing consumers of registered_structured_logger()
in mozbuild have been updated to use this API. A new consumer
has been added for the `mach configure` command because it should
have been there before.

We stop short of making enable_all_structured_loggers() the default.
This is because various commands interact with the log manager in
ways that will result in duplicate logging of messages and
dropping of structured messages. There is a bit of a rabbit hole
here and addressing it can be done as a follow-up.

MozReview-Commit-ID: 1aU6eJvTSMP
2017-11-09 15:09:52 -08:00
Gregory Szorc 25278dd898 Bug 1415614 - Don't assign mach logger to instance variable; r=nalexander
We don't use this attribute outside of this function. Besides, you can
easily obtain a handle on the logger by calling
``logging.getLogger('mach')``.

MozReview-Commit-ID: 41vdn6McowW
2017-11-08 14:28:19 -08:00
Mike Shal 7cc1c32eaf Bug 1407432 - Move stl wrapper generation into moz.build; r=froydnj
This is fairly straightforward to represent as a GENERATED_FILES, though
we have to take some care to construct the outputs tuple correctly. This
script needs to run during export, and unfortunately none of the STL
headers have proper file extensions, so the 'new' header is
special-cased in the recursive make backend to serve as a marker for
running it in the correct tier.

We can't remove the stl-headers file yet because it is still used for
the system header generation.

MozReview-Commit-ID: 3tQTOY0LAsQ
2017-11-08 17:42:27 -05:00
Mike Shal 59118f2b47 Bug 1407432 - Remove unused builtins arg from Sandbox; r=froydnj
MozReview-Commit-ID: JVukxIg04AT
2017-11-08 19:58:28 -05:00
dluca 935c41c8bf Backed out 1 changesets (bug 1393817) for failing to repackage the nightly build on Windows a=backout.
Backed out changeset 25f21f22a34b (bug 1393817)
2017-11-09 15:34:00 +02:00
Sebastian Hengst 52ea9f8769 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 00:00:16 +02:00
Zibi Braniecki 505ab04c54 Bug 1415432 - .ftl files repackaged multiple times. r=glandium 2017-11-07 22:16:16 -08:00
Andrew Halberstadt 2730a80a6b Bug 1414399 - [mozbuild/moztest] Move mozbuild.testing.TestResolver to moztest.resolve r=gps
The TestMetadata and TestResolver classes aren't technically part of the build
system. The only connection is that they consume some build system output.

The next patch in this series is going to be merging in a bunch of other test
resolving logic from other parts of the tree. Moving this out first allows us
to keep that extra logic out of mozbuild.

MozReview-Commit-ID: 1eq4SjFVCyW
2017-11-06 08:41:42 -05:00
Tom Ritter 1625276bf4 Bug 1393817 Use buildconfig to get the path for 7z rather than hardcoding it in exe_7z_archive.py r=ted
With that fixed, Re-enable MOZ_AUTOMATION_L10N_CHECK for MinGW

MozReview-Commit-ID: BDTtY1J7sBj
2017-10-27 20:13:21 -05:00
Jonathan Watt 096bcbef0b Bug 1413227 - Turn off Eclipse CDT's "Limit console output" option for debug output. r=botond
The default debug console line limit is far too short, especially when
debugging a debug build or a build with some logging turned on.  I've never
had any issues with turning off the limit, so hopefully this is fine for
everyone else too.

MozReview-Commit-ID: Krlo7XPEjE0
2017-10-16 11:53:26 +01:00
Jonathan Watt 679962db59 Bug 1413227 - Increase the line limit for Eclipse CDT's build console to 10,000. r=botond
By default the build console is limited to 500 lines.  This can be far too
short, especially when building using `mach build --verbose`.  I've run with
this value set to 1,000,000 before without issue, so 10,000 should be fine.

MozReview-Commit-ID: GxBUjW7nOYJ
2017-10-16 09:36:09 +01:00
Gregory Szorc cdf807962b Bug 1412932 - Switch to PGO build in Makefile.in; r=ted
Previously, client.mk made the decision of whether to perform a PGO
build. This required passing around MOZ_PGO and invoking a separate
make target if this variable was set.

In this commit, we move this logic to Makefile.in. We employ a special
mechanism in rules.mk to override the default make target so
`make` evaluates "profiledbuild" if MOZ_PGO is set. This also
required using an explicit target for $(MAKE) invocations inside
the "profiledbuild" rule to avoid infinite recursion.

MozReview-Commit-ID: 8sHiVspMisM
2017-11-07 16:38:39 -08:00
Marco Castelluccio 56a9cc11e1 Bug 1317041 - Calculate crc32 incrementally; r=gps 2017-11-07 15:34:20 -08:00
Chris Manchester 226e4b9e9a Bug 1414064 - Remove LD_VERSION_SCRIPT from the build system. r=mshal
MozReview-Commit-ID: 6KOLZh6aQmc
2017-11-07 14:35:05 -08:00
Tom Prince 5c1e459dac Bug 1415199: Move some logic for loading taskgraph kinds from mozbuild.mach_bootstrap to taskgraph. r=dustin
This fixes the fallout from the mach command not being updated for 69c60c8fc528d8d038e22a2ae62f5ff7b1131231.

MozReview-Commit-ID: 7WZ8wW4gnCY
2017-11-07 10:08:49 -07:00
Chris Manchester 4888eb56c9 Bug 1414370 - Emit ldflags in directories containing only rust programs for the benefit of cargo. r=froydnj
MozReview-Commit-ID: 6gD7kAIQbtB
2017-11-06 19:57:12 -08:00
Sebastian Hengst 3e4740d424 Backed out changeset ec6b9fda1868 (bug 1415199) for breaking gecko decision task. r=backout on a CLOSED TREE 2017-11-07 19:50:30 +02:00
Tom Prince b146a4c9e0 Bug 1415199: Move some logic for loading taskgraph kinds from mozbuild.mach_bootstrap to taskgraph. r=dustin
This fixes the fallout from the mach command not being updated for 69c60c8fc528d8d038e22a2ae62f5ff7b1131231.

MozReview-Commit-ID: 7WZ8wW4gnCY
2017-11-07 10:08:49 -07:00
Andreas Tolfsen 44220465d3 Bug 1413195 - Vendor webdriver's dependencies through geckodriver r=jgraham
The webdriver crate's dependencies are accounted for through geckodriver's
Cargo.lock file, because the webdriver dependency is given by path.

This commit reverts 540273e5cf22 made in bug 1412037.

MozReview-Commit-ID: F0q9bDN3pqd
2017-11-03 14:02:09 +00:00
Sylvestre Ledru 80acd52ec8 Bug 1414781 - Also install clang-format r=glandium
MozReview-Commit-ID: A6Jlc5RXVuP
2017-11-07 11:45:58 +01:00
Zibi Braniecki 5c0a86e2e7 Bug 1413985 - Package .ftl files on repackage for both, source and AB_CD locales. r=glandium
When repackaging, we want to take all localization resources from the source package,
and add all localization resources from the repackage target locale.

This patch makes packager.l10n scan for `localization` directories in l10n_finder and
add them.

MozReview-Commit-ID: CRLP3bOAyDx
2017-11-02 12:10:26 -07:00
Alex Gaynor e84c51c81f Bug 1414842 - remove reliance on a CPython implementation detail in mozbuild; r=gps
MozReview-Commit-ID: SGrqK6NpEY
2017-11-06 10:36:15 -05:00
Chris Manchester 29f24a04fd Bug 1414370 - Emit ldflags in directories containing only rust compilation for the benefit of cargo. r=froydnj
MozReview-Commit-ID: 9AuU3mjKR8V
2017-11-03 12:16:39 -07:00
Sebastian Hengst 6de3048253 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Ai6Y5GGfkfT
2017-11-04 10:58:24 +01:00
David Major a19b4ac9ef Bug 1412952 - Use VS2017 with clang-cl builds. r=froydnj 2017-11-03 12:29:58 -04:00
Chris Manchester a6454325e7 Bug 1411712 - Move LDFLAGS to mozbuild. r=mshal
MozReview-Commit-ID: A8cZ2FUveAf
2017-11-02 11:47:48 -07:00
Zibi Braniecki d436f04b61 Bug 1411951 - Use mozpack.path.normsep when generating chrome entry paths for langpack manifest.json. r=mshal
MozReview-Commit-ID: L8kVm1ISkzD
2017-10-28 21:40:12 -07:00
Gregory Szorc 2ef96dd47a Backed out changesets f47abc8062fc, 73df5a910488, 75807d1ab22e, and 53a93e195f91 (bug 1412460); a=bustage
CLOSED TREE
2017-11-01 15:49:04 -07:00
Gregory Szorc 40617a6b64 Bug 1412460 - Always evaluate config environment; r=mshal
I /think/ the only scenario where we wouldn't be able to evaluate
a config environment after configure was the case where
MOZ_BUILD_PROJECTS was in play. Since we removed support for that
feature, let's drop support for treating the config environment
as optional.

MozReview-Commit-ID: 4sz9dOwaA3y
2017-10-27 17:14:00 -07:00
Gregory Szorc 96f32f105d Bug 1412460 - Move configure invocation out of mach_commands.py; r=mshal
While we're here, also move the low-level code to invoke configure
to a proper Python module.

We needed to muck around with the log manager because the underlying
logger for output changed from "mach" (which is registered by default)
to something under the "mozbuild" hierarchy.

MozReview-Commit-ID: 4rlCxOwcVu1
2017-11-01 15:01:21 -07:00
Gregory Szorc 9198e068be Bug 1412460 - Move code for invoking build system out of mach_commands.py; r=mshal
The goal is to move this lower-level code somewhere where it can be
reused.

The only meaningful code change as part of the move was handling
of the mach context. Before, we could access self._mach_context.
After, we need to pass it as an argument. This also uncovered a bug
where "telemetry_handler" could be None but we called it
unconditionally. We now guard this call with an "if."

MozReview-Commit-ID: FWw4l6H1ayS
2017-10-27 10:58:30 -07:00
Gregory Szorc aa7cbc905d Bug 1412460 - Move build output processing code out of mach_commands.py; r=mshal
In general, we shouldn't have so much business logic in mach_commands.py
files.

I'd like to move more of the low-level "perform a build" logic out of
mach_commands.py to facilitate some future work. That code makes use of
this output processing code. So as the first step in moving the build
code, we move its dependencies.

As part of this, I also cleaned up some random unused imports around
lines that were touched.

No meaningful code changes were performed as part of the code move.

MozReview-Commit-ID: 96mGWUJ7oLb
2017-10-27 10:45:41 -07:00
Nathan Froyd b869ae1f4f Bug 1413232 - move the default value for FILES_PER_UNIFIED_FILE to a more logical location; r=nalexander
Putting it in emitter.py increases the obviousness of its default value
when searching for things.
2017-11-01 10:16:39 -04:00
Nick Fitzgerald e9c771c5d0 Bug 1414349 - Re-sync the list of top level crates for mach cargo check; r=mbrubeck
Because there isn't a single, canonical source of truth, the `mach cargo
check`'s list got out of date.

MozReview-Commit-ID: EGNc2eNSumT
2017-11-03 10:49:34 -07:00
Nick Fitzgerald 23264cab5f Bug 1414349 - Add mozjs_sys to the top level crate set; r=mbrubeck
This is necessary because it runs as its own taskcluster job, and therefore has
its own Cargo.lock file.

MozReview-Commit-ID: HjB60bQnMeO
2017-11-03 10:49:13 -07:00
J.C. Jones 50ba3c2a6a Bug 1409259 - Add xpcshell tests for the Symantec distrust r=keeler
This commit adds two new xpcshell tests, both of them testing whether the
security state in TransportSecurityInfo includes the new
STATE_CERT_DISTRUST_IMMINENT flag under the correct circumstances.

The first test, test_symantec_apple_google.js, tests the four combinations of
certs that chain to an affected Symantec root: with/without a whitelisted
intermediate, and before/after the notBefore cutoff date.

The second test, test_symantec_apple_google_unaffected.js, tests an unrelated
ca->intermediate->ee chain that does not chain to an affected root, and ensures
the flag is not set.

This patch adds SymantecSanctionsServer to the mozbuild and xpcshell test
infrastructure files to ensure it runs properly on TaskCluster, too.

MozReview-Commit-ID: GtUXH2VFFh
2017-11-01 11:12:11 -07:00
Gregory Szorc f8d0e741b3 Bug 1413254 - Write a JSON file with normalized data; r=jmaher
The new file contains changes that optimize for final file size:

* The components are stored as an integer index/key into a map
  instead of strings.
* Paths are stored in hierarchical dicts.
* No indentation is used.

These changes significantly redude redundancy in string data. For every
file in the repo, the raw JSON size is decreased from 27,074,607 to
7,643,529 bytes.

MozReview-Commit-ID: 58FWSct8W39
2017-10-31 10:57:14 -07:00
Gregory Szorc a8a9f360b0 Bug 1413254 - Fail Bugzilla CI task if file is missing component annotation; r=jmaher
We want all files in the repo to be annotated with a Bugzilla
component. This change will cause the CI task to fail if files are
missing annotations.

MozReview-Commit-ID: Kn6dheQqEsk
2017-10-31 10:37:18 -07:00
Gregory Szorc b4a5c368b3 Bug 1413254 - Establish dedicated mach command for Bugzilla metadata validation; r=jmaher
Previously, the CI task invoked 2 mach commands and performed manual
gzip compressed. This was sub-optimal for a few reasons:

* Redundant moz.build evaluation made execution slower
* Potential for shell expansion to interfere with wildcards
* Made it harder to change exit code

By moving all logic into a mach command, we eliminate all the issues
around using shell.

Behavior of the new command and the CI task should be backwards
compatible.

MozReview-Commit-ID: HUFvLteKLOO
2017-10-31 10:30:15 -07:00