Commit Graph
2317 Commits
Author SHA1 Message Date
Mike Hommey 1970d12ac0 Bug 1386149 - Add mach artifact toolchain support for toolchain aliases. r=gps 2017-08-01 14:58:14 +09:00
Robert Strong e4c5c9d765 Bug 1385780 - Update mar file generation scripts for lzma. r=bhearsum, r=rail, a=app_update_lzma
Update scripts to support both lzma and bzip2
Update unused python script to support lzma. This also adds python 3.0 support to the script while still supporting pythin 2.7
Update test scripts to support lzma
2017-07-31 10:34:22 -07:00
Gregory Szorc 297824907d Bug 1376306 - Update tests to reflect new Java version requirement; r=me
f497b6194e9f bumped the minimum Java version requirement in configure
from 1.7 to 1.8. It forgot to update tests that were pinning the
Java version at 1.7. The tests then failed.

We bump the versions in tests to restore order.

CLOSED TREE

MozReview-Commit-ID: 1zm5L1QQy7a
2017-07-28 17:40:00 -07:00
Nick Alexander e90b735207 Bug 1384241 - Add |mach watch|: pywatchman based incremental |mach build faster| shell. r=gps
There's a natural follow-on that I haven't time to explore right now:
I want the faster make backend to also write a "unified chrome
manifest" that maps outputs
(browser/chrome/browser/content/browser/ext-utils.js) to chrome:// or
resource:// URLs (chrome://content/browser/ext-utils.js or similar).

MozReview-Commit-ID: LDQmm8KD57I
2017-07-26 20:34:09 -07:00
Nick Alexander e781b4478a Bug 1384241 - Pre: Extract acdefines() helper function. r=gps
MozReview-Commit-ID: 6TstvuluvH3
2017-07-26 19:31:18 -07:00
Brian Grinstead abb23f6691 Bug 1172574 - Prevent the default browser check and the about:config warning by default for the scratch_user;r=mossop
MozReview-Commit-ID: KNQyCrZo41O
2017-07-28 15:38:30 -07:00
Brian Grinstead e3a8bf0d84 Bug 1172574 - Allow for setting prefs in mach run for scratch_user;r=gps
Prefs can be set with `./mach run --setpref foo=bar` or in the ~/.mozbuild/machrc file as:

  [runprefs]
  foo=bar

MozReview-Commit-ID: HO3tdFi9ffi
2017-07-28 15:38:22 -07:00
Chris Manchester 270a1dea6d Bug 1385391 - Update artifact names for artifact builds to reflect Taskcluster package names on windows. r=nalexander
MozReview-Commit-ID: kC09UUfAsN
2017-07-28 18:47:23 -07:00
Swapnesh Kumar Sahoo 771b55361e Bug 1347582 - Use File object to obtain normalized file mode; r=dustin,gps
MozReview-Commit-ID: HeDq4EwAfVS
2017-07-26 11:51:37 +05:30
Ted Mielczarek 1a4902e620 bug 1384568 - Write a generated-sources.json. r=gps
Capture the list of generated source files derived from moz.build data
and save it in a generated-sources.json in the objdir so that we can upload
generated source files for use in crash reports and when debugging release
builds.

MozReview-Commit-ID: FrHcyFo0rBF
2017-07-26 07:34:38 -04:00
maliu c72bb6f3d9 Bug 1316462 - Increase minsdk to 16 and remove EOL notification. r=sebastian, r=snorp, r=rnewman
MozReview-Commit-ID: 7o1xqIqVWC6
2017-07-27 08:27:08 -04:00
Nick Alexander d35cc34abe Bug 1384400 - Add input to output mappings to mozpack.FileRegistry. r=gps
This is necessary because the existing manifests don't expose full
dependency information.  I needed to avoid the existing dependency
files because those code paths need to know the output destination of
the manifest in order to parse the Make dependency files; trying to
adapt this system is more complicated than just preprocessing each
file to extract dependency information directly.

MozReview-Commit-ID: 5m0SEqmhJMM
2017-07-25 12:28:31 -07:00
Alex Gaynor 816eb46859 Bug 1384224 - Add support for hardlinks to InstallManifest; r=gps
Also removes InstallManifestNoSymlinks which can be more simply expressed by
passing link_policy='copy' to InstallManifest.populate_registry.

MozReview-Commit-ID: Bkjc2hIub4A
2017-07-25 14:06:15 -04:00
Carsten "Tomcat" Book afc8a0096e Merge mozilla-central to autoland 2017-07-26 11:18:21 +02:00
Carsten "Tomcat" Book d81e194db5 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Mike Hommey b8d056b408 Bug 1382571 - Remove support for tooltool manifest filtering in mach artifact toolchain. r=gps 2017-07-26 14:41:53 +09:00
Mike Hommey 95e9dcc514 Bug 1382569 - Make mach artifact toolchain --from-build use the toolchain-artifact info from bug 1374940. r=gps 2017-07-26 14:15:33 +09:00
Philip Chimento 844f7715a8 Bug 1379537 - Fix InstallManifestNoSymlinks to not install symlinks. r=glandium 2017-07-21 20:13:34 -07:00
Mike Hommey 42e363bc1c Bug 1382502 - Remove ${var}_IS_SET variables. r=ted
In bug 1181040, we added ${var}_IS_SET variables for
mk_add_options-defined variables. In the two years since, that has never
been used for anything else than MOZ_PGO_IS_SET, and the only use for
that has now been removed, so remove those ${var}_IS_SET variables.
2017-07-20 14:22:11 +09:00
Mike Hommey 4ad2f218c9 Bug 1383996 - Add an argument to mach artifact toolchain to store a manifest for chain-of-trust validation. r=gps
Chain of trust validation will require to know what the inputs for a
given build are, and mach artifact toolchain fetches such inputs.

So we make it output a manifest that the chain of trust validation
process will be able to use and correlate with other information, such
as the one from bug 1383993.

At the same time, we make the produced manifest contain information
about tooltool-downloaded packages, which will allow to track the
progress in the migration from tooltool to TC artifacts.
2017-07-20 17:52:56 +09:00
Alex Gaynor 7a0ed42fba Bug 1382739 - Added support for hardlinks to mozbuild; r=gps
MozReview-Commit-ID: 7DcOAVNsr3c
2017-07-20 14:04:05 -04:00
Mike Hommey 3e2fbffd22 Bug 1382564 - Use the information from bug 1374940 with mach artifact toolchain. r=gps
Bug 1374940 adds a MOZ_TOOLCHAINS environment variable with a list of
path@task-id strings, where task-id is corresponding to the (possibly
optimized) toolchain job, and path corresponding to the
toolchain-artifact defined for that toolchain job.

We want to use that to pull artifacts instead of tooltool packages.
2017-06-21 15:18:33 +09:00
Gregory Szorc 88e6e2b83e Bug 1377216 - Use substs for resolving path to Mercurial and Git; r=glandium
We now store HG or GIT in substs. We don't need to search for
binary paths.

MozReview-Commit-ID: 8sSgPNLok9M
2017-07-14 17:23:34 -07:00
Gregory Szorc 3633c8f4d9 Bug 1377216 - Use substs for determining checkout type; r=glandium
We now have a variable in config.status for recording the checkout
type. These helper functions for determining if we're Mercurial or Git
can now be one-liners.

As a bonus, we no longer do I/O as part of this function.

MozReview-Commit-ID: HT9sbOhDEkf
2017-07-14 17:22:14 -07:00
Ryan VanderMeulen a97112e33f Backed out 6 changesets (bug 1377216) for SM(pkg) bustage on a CLOSED TREE.
Backed out changeset b5701f3ce506 (bug 1377216)
Backed out changeset 1f37aebe0f43 (bug 1377216)
Backed out changeset c8931588f674 (bug 1377216)
Backed out changeset ded5328ba74c (bug 1377216)
Backed out changeset 6cb234539746 (bug 1377216)
Backed out changeset ce836965fd58 (bug 1377216)
2017-07-19 22:14:03 -04:00
Gregory Szorc af2c611ac8 Bug 1377216 - Use substs for resolving path to Mercurial and Git; r=glandium
We now store HG or GIT in substs. We don't need to search for
binary paths.

MozReview-Commit-ID: 8sSgPNLok9M
2017-07-14 17:23:34 -07:00
Gregory Szorc f17e6fbbab Bug 1377216 - Use substs for determining checkout type; r=glandium
We now have a variable in config.status for recording the checkout
type. These helper functions for determining if we're Mercurial or Git
can now be one-liners.

As a bonus, we no longer do I/O as part of this function.

MozReview-Commit-ID: HT9sbOhDEkf
2017-07-14 17:22:14 -07:00
Rok Garbas 9206e4afbe Bug 1364650 - retry on ChunkedEncodingError; r=gps DONTBUILD CLOSED TREE
MozReview-Commit-ID: 5F9ZwOvFG2V
2017-07-18 23:02:29 +01:00
Gregory Szorc f046054d08 Bug 1381353 - Set RUST_BACKTRACE=1 during mach run; r=ted
Having Rust dump a stack on panic seems like a useful on-by-default
feature.

MozReview-Commit-ID: ABYTArsMTFh
2017-07-17 13:57:50 -07:00
Haik Aftandilian e850ae58e6 Bug 1380132 - Part 2 - Set MOZ_DEVELOPER_OBJ_DIR before launching Firefox. r=gps
MozReview-Commit-ID: CvSUt2KueHr
2017-07-12 17:01:56 -07:00
Greg Mierzwinski bda0009d8c Bug 1378533 - Make the keys for linked-map-files.json entries absolute paths. r=marco
This patch changes the name of the keys that are in the 'linked-files-map.json' that is produced in the code coverage build and are used to map symbolic links to their source files. The new key names (which are the paths to the symbolic links) are now the entire absolute path to each of the files.

MozReview-Commit-ID: 4x1dfk9h2Ov
2017-07-06 10:14:00 -04:00
Mike Shal 98eee724f7 Bug 1380381 - Set rust debuginfo=1 for cross-OSX builds; r=glandium a=kwierso to reopen this CLOSED TREE
This is similar to bug 1301751, where something in rust seems to trigger errors
running dsymutil to generate debug symbols in OSX. We can set debuginfo=1 for
these builds as a temporary workaround for now, while we work on a more
permanent solution in rust and/or dsymutil. debuginfo=1 still gives us enough
info for stack traces, although without line info. debuginfo=2 would be useful
for debugging, but is irrelevant to crash reports.

MozReview-Commit-ID: DdA00GzVfWg
2017-07-13 18:49:10 -04:00
Rail Aliiev 6db69bbd2e Bug 1380297 - Mac nightly repackage fails trying to read CodeName r=mshal
MozReview-Commit-ID: LauJRihWxJ0
2017-07-12 09:30:41 -04:00
Sebastian Hengst 43668ac013 Backed out changeset ad2fdd0912ed (bug 1347582) for breaking taskcluster jobs, or not scheduling them. r=backout on a CLOSED TREE 2017-07-12 21:45:30 +02:00
Swapnesh Kumar Sahoo 431dfdb859 Bug 1347582 - Add option to force file mode during tar creation; r=dustin
MozReview-Commit-ID: HeDq4EwAfVS
2017-07-12 22:59:26 +05:30
Marco Castelluccio eb252e7b7f Bug 1379955 - Use longest prefix match when rewriting lcov entries. r=chmanchester 2017-07-11 16:22:43 +02:00
Carsten "Tomcat" Book 02761c38b4 merge mozilla-inbound to mozilla-central a=merge 2017-07-11 12:51:59 +02:00
Andi-Bogdan Postelnicu 062202bae7 Bug 1328454 - add footer for static analysis job. r=gps
MozReview-Commit-ID: GqGSPDccHDU
2017-07-11 10:37:49 +03:00
Gregory Szorc e9d4797b2a Bug 1379298 - Relax __eq__ for empty OptionValue; r=nalexander,rillian
The rigid type comparison added in 51a92a22d6d1 (bug 1375231) was
too rigid. This broke at least one consumer that was comparing an
empty PositiveOptionValue/NegativeOptionValue against a string.

Since comparisons against empty OptionValue are convenient and
don't violate the spirit of the type checking previously added,
this commit relaxes the type equivalence check in cases where the
OptionValue is empty.

MozReview-Commit-ID: UllTrzCjj
2017-07-10 11:21:37 -07:00
Gregory Szorc 5f157c1924 Bug 1375231 - Make OptionValue.__eq__ more type aware; r=glandium
OptionValue and its derived classes are exposed to moz.configure
files. As the previous bug fix showed, it is really easy to
accidentally assume the type is a simple string value and do a
string compare against it.

To prevent this class of bugs, this commit adds additional type
awareness to OptionValue.__eq__.

We first check that the argument is a tuple (including any OptionValue
types). If not, we raise a TypeError because the comparison is
invalid. This is arguably a violation of __eq__. But since OptionValue
is exposed to the moz.configure sandbox and typing '==' will invoke
__eq__, we have to do something to prevent this foot gun.

The change also changes the comparison logic.

If we compare against a non-derived tuple instance, we do a tuple
compare. Otherwise, we fall back to the previous logic of
requiring an identical type then doing a tuple compare.

MozReview-Commit-ID: 7IVSL2Asg9j
2017-07-06 17:53:45 -07:00
Nathan Froyd 51a8c2fa1f Bug 1378443 - add missing argument to forget_add_remove_files; r=rillian,f=jdm
Leaving off this argument makes `mach vendor rust` with large files fall
over with a Python error.  While the user still gets a semi-useful error
message prior to this failing, it would be better to not fail here at all.
2017-07-06 12:07:17 -04:00
Wes Kocher eb21014864 Merge inbound to m-c a=merge
MozReview-Commit-ID: LpxvieHR7VH
2017-07-05 17:10:43 -07:00
Nathan Froyd b37fb368ca Bug 1378440 - part 2 - add mach cargo check; r=rillian
Cargo recently introduced the `cargo check` command for shortening the
edit-compile cycle when working on large programs.  Since we don't
really support invoking `cargo` directly, let's wire up this command to
`mach`.  Gecko developers can then `mach cargo check` to ensure their
changes typecheck.
2017-07-05 14:19:31 -04:00
Nathan Froyd 951380fc5d Bug 1377971 - part 1 - make C++ linking for Linkable ignore shared libraries; r=glandium
We have a flag set on all Linkables, cxx_link, denoting whether there's
anything being linked into them that requires C++.  We do this even when
we link against shared libraries that required C++.  But if these
libraries don't export C++ interfaces, there's no reason that the things
linking against them should require C++.  Therefore, ignore shared
libraries when making the determination of whether an object requires
C++ or not.
2017-07-05 14:05:10 -04:00
Greg Mierzwinski fbe4e5d103 Bug 1378239 - Change mozinfo 'coverage' flag to 'ccov' to avoid ambiguity. r=ahal
This patch renames the mozinfo flag 'coverage' to 'ccov' to avoid ambiguity in whether a test is being skipped for linux64-ccov or for linux64-jsdcov. It also removes the 'runtests.py' mozinfo hack and renames all occurrences of 'coverage' that are used for skipping tests in linux64-ccov.

MozReview-Commit-ID: IF2640bDQP7
2017-07-04 21:18:19 -04:00
Phil Ringnalda a6eca69b20 Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
Carsten "Tomcat" Book f0524ee684 Merge mozilla-central to mozilla-inbound 2017-07-04 11:09:13 +02:00
Greg Mierzwinski 5051923f09 Bug 1377876 - Disable 'test_crash.py' when running on linux64-ccov. r=whimboo
This patch adds a flag to the 'mozinfo.json' that can be used to disable tests when they are running on linux64-ccov. Then, this flag is used to prevent the marionnette test 'test_crash.py' from running on linux64-ccov.

MozReview-Commit-ID: 9IHMiZHxcMK
2017-06-30 16:30:59 -04:00
Andi-Bogdan Postelnicu 1180f06555 Bug 1328454 - Add full file path to compilation database. r=glandium
MozReview-Commit-ID: 7H1HvYE9umf
2017-06-21 17:58:24 +03:00
Kartikaya Gupta 1a62cd9afa Bug 1336528 - Run cargo-vendor on all the lockfiles together. r=froydnj
MozReview-Commit-ID: BBuizrn3z5k
2017-07-04 11:16:40 -04:00