Commit Graph

3839 Commits

Author SHA1 Message Date
Justin Wood
8127e912fb Bug 1542963 - use print_function for mozbuild and mozpack. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26644

--HG--
extra : moz-landing-system : lando
2019-05-28 14:23:00 +00:00
Justin Wood
a0d8057603 Bug 1542963 - Add absolute_imports to mozbuild and mozpack. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Add 'from __future__ import absolute_import' to all missing files in python/mozbuild/{mozbuild,mozpack}/**/*.py

Differential Revision: https://phabricator.services.mozilla.com/D26643

--HG--
extra : moz-landing-system : lando
2019-05-28 14:22:45 +00:00
Justin Wood
f86dd03c23 Bug 1542963 - Fix undefined var 'defines' when use_defines_in_asflags is set. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26642

--HG--
extra : moz-landing-system : lando
2019-05-28 14:22:30 +00:00
Justin Wood
05822ea753 Bug 1542963 - Fix most flake8 issues in python/mozbuild/mozbuild/* r=firefox-build-system-reviewers,chmanchester
Leaving one fix for an explicit review.

Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Differential Revision: https://phabricator.services.mozilla.com/D26641

--HG--
extra : moz-landing-system : lando
2019-05-28 14:22:20 +00:00
Justin Wood
4a12eb86b4 Bug 1542963 - run './mach lint ... --fix' on mozbuild/mozbuild, undoes some black changes. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

ran './mach lint -l py2 -l flake8 -l shellcheck -l codespell -l yaml python/mozbuild/{mozbuild,mozpack}/  --fix' in order
to undo some black changes and get closer to  making this folder able to be validated on every lint run

Differential Revision: https://phabricator.services.mozilla.com/D26640

--HG--
extra : moz-landing-system : lando
2019-05-28 14:22:00 +00:00
Rok Garbas
a320ac850f Bug 1548204 - fixing test for raptor-tp6-8 r=rail
Differential Revision: https://phabricator.services.mozilla.com/D30479

--HG--
extra : moz-landing-system : lando
2019-05-28 07:44:41 +00:00
Nathan Froyd
0839a1bd24 Bug 1542746 - remove code for frontend-based PGO instrumentation; r=dmajor
We're moving to IR-level PGO instrumentation for clang-cl.  We've also
moved to using static linker ordering files, which was the primary
application of the previous style of PGO instrumentation.  We therefore
we no longer need this code.

Differential Revision: https://phabricator.services.mozilla.com/D31134

--HG--
extra : moz-landing-system : lando
2019-05-24 20:00:38 +00:00
Myk Melez
d51f3ab18c Bug 1543829 - include LMDB license in about:license r=mossop,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D30122

--HG--
extra : moz-landing-system : lando
2019-05-24 01:25:44 +00:00
Dzmitry Malyshau
d3f4d3cc1c Bug 1552549 - Update rand dependency to 0.6 r=kats,froydnj,nika,jkt,jcj
Update rand version in u2fhid and xpcom

Differential Revision: https://phabricator.services.mozilla.com/D31669

--HG--
rename : third_party/rust/scopeguard/.cargo-checksum.json => third_party/rust/scopeguard-0.3.2/.cargo-checksum.json
rename : third_party/rust/scopeguard/Cargo.toml => third_party/rust/scopeguard-0.3.2/Cargo.toml
rename : third_party/rust/scopeguard/README.rst => third_party/rust/scopeguard-0.3.2/README.rst
rename : third_party/rust/scopeguard/examples/readme.rs => third_party/rust/scopeguard-0.3.2/examples/readme.rs
rename : third_party/rust/scopeguard/src/lib.rs => third_party/rust/scopeguard-0.3.2/src/lib.rs
extra : moz-landing-system : lando
2019-05-23 19:54:25 +00:00
Nathan Froyd
0fadcd4cfd Bug 1553810 - remove RSSRCS support from the build system; r=nalexander
We used to support specifying single Rust files for compilation,
emphasis on "used to".

Differential Revision: https://phabricator.services.mozilla.com/D32314

--HG--
extra : moz-landing-system : lando
2019-05-23 15:20:26 +00:00
Nick Alexander
0f10c34f1d Bug 1533051 - Package greprefs.js and geckoview-prefs.js at architecture-specific paths for Android fat AAR/GeckoView multi-architecture builds. r=glandium
Bug 1533425 makes Gecko try to load from $ARCH/greprefs.js, etc on
Android.  This patch teaches the packager to put certain preferences
into those architecture-specific locations for that code to find.

Differential Revision: https://phabricator.services.mozilla.com/D24984

--HG--
extra : moz-landing-system : lando
2019-05-22 18:27:11 +00:00
Nathan Froyd
3a05468aa4 Bug 1548563 - move symbol file logic into the moz.build frontend; r=firefox-build-system-reviewers,chmanchester
This way compilation backends don't all have to figure out the right way
to handle symbol files.

Differential Revision: https://phabricator.services.mozilla.com/D29673

--HG--
extra : moz-landing-system : lando
2019-05-22 13:25:06 +00:00
Cosmin Sabou
bdf1d2a559 Backed out changeset a10cdf32fb5a (bug 1552549) for causing a spike in xpcshell failures. CLOSED TREE 2019-05-22 02:05:22 +03:00
Dzmitry Malyshau
1298c14a90 Bug 1552549 - Update rand dependency to 0.6 r=kats,froydnj,nika,jkt,jcj
Update rand version in u2fhid and xpcom

Differential Revision: https://phabricator.services.mozilla.com/D31669

--HG--
rename : third_party/rust/scopeguard/.cargo-checksum.json => third_party/rust/scopeguard-0.3.2/.cargo-checksum.json
rename : third_party/rust/scopeguard/Cargo.toml => third_party/rust/scopeguard-0.3.2/Cargo.toml
rename : third_party/rust/scopeguard/README.rst => third_party/rust/scopeguard-0.3.2/README.rst
rename : third_party/rust/scopeguard/examples/readme.rs => third_party/rust/scopeguard-0.3.2/examples/readme.rs
rename : third_party/rust/scopeguard/src/lib.rs => third_party/rust/scopeguard-0.3.2/src/lib.rs
extra : moz-landing-system : lando
2019-05-21 19:36:56 +00:00
Nathan Froyd
37d0db29a9 Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

Differential Revision: https://phabricator.services.mozilla.com/D31128

--HG--
extra : moz-landing-system : lando
2019-05-21 17:53:44 +00:00
Andreea Pavel
58566309c2 Backed out changeset ae7096d1add7 (bug 1551690) for toolchain bustages on a CLOSED TREE 2019-05-21 17:05:24 +03:00
Nathan Froyd
d49bc5f0ef Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

Differential Revision: https://phabricator.services.mozilla.com/D31128

--HG--
extra : moz-landing-system : lando
2019-05-21 13:48:23 +00:00
Coroiu Cristina
c4361da40f Backed out changeset 2e560a9e4bcf (bug 1551690) for build bustages 2019-05-21 03:51:56 +03:00
Mike Shal
4e71ffdf9d Bug 1552672 - Use is_tarfile() rather than is_zipfile() in mar repackaging; r=Callek
The zipfile.is_zipfile() function is overly lenient, in that non-zip
files that contain the four bytes "PK\005\006" near the end of the file
are reported as zip files even if the zip structure is not valid.
Occasionally, our target.tar.bz2 files randomly contain those 4 bytes at
the expected location, which causes the mar repackaging code to try to
process the package as a zip file instead of a tar file.

The tarfile.is_tarfile() logic looks a little more robust in that it
actually tries to open the file, so if we try tar first before falling
back to zip we should be a little more resilient.

Differential Revision: https://phabricator.services.mozilla.com/D31908

--HG--
extra : moz-landing-system : lando
2019-05-21 00:19:47 +00:00
Nathan Froyd
dc2ad25275 Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

Differential Revision: https://phabricator.services.mozilla.com/D31128

--HG--
extra : moz-landing-system : lando
2019-05-15 21:13:17 +00:00
b4hand
09aeeca068 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663

--HG--
extra : moz-landing-system : lando
2019-05-20 08:59:56 +00:00
Bastien Orivel
8a3f3e785c Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj
It was unhappy about the new LICENSE (fuchsia-cprng) but it's the same
as the other fuschia crates. Since I don't think this is used at build
time but has the same license as the other fuschia crates, I put it in
the RUNTIME_LICENSE_PACKAGE_WHITELIST list. I also removed sha1 from
that list as it's not used anymore

Differential Revision: https://phabricator.services.mozilla.com/D30746

--HG--
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/autocfg/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/autocfg/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/autocfg/LICENSE-MIT
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/cloudabi/Cargo.toml
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/fuchsia-cprng/Cargo.toml
rename : third_party/rust/sha1/LICENSE => third_party/rust/fuchsia-cprng/LICENSE
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/mio-extras/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/mio-extras/LICENSE-MIT
rename : third_party/rust/rand/.cargo-checksum.json => third_party/rust/rand-0.4.3/.cargo-checksum.json
rename : third_party/rust/rand/CHANGELOG.md => third_party/rust/rand-0.4.3/CHANGELOG.md
rename : third_party/rust/rand/Cargo.toml => third_party/rust/rand-0.4.3/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand-0.4.3/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand-0.4.3/LICENSE-MIT
rename : third_party/rust/rand/README.md => third_party/rust/rand-0.4.3/README.md
rename : third_party/rust/rand/appveyor.yml => third_party/rust/rand-0.4.3/appveyor.yml
rename : third_party/rust/rand/benches/bench.rs => third_party/rust/rand-0.4.3/benches/bench.rs
rename : third_party/rust/rand/benches/distributions/exponential.rs => third_party/rust/rand-0.4.3/benches/distributions/exponential.rs
rename : third_party/rust/rand/benches/distributions/gamma.rs => third_party/rust/rand-0.4.3/benches/distributions/gamma.rs
rename : third_party/rust/rand/benches/distributions/mod.rs => third_party/rust/rand-0.4.3/benches/distributions/mod.rs
rename : third_party/rust/rand/benches/distributions/normal.rs => third_party/rust/rand-0.4.3/benches/distributions/normal.rs
rename : third_party/rust/rand/benches/generators.rs => third_party/rust/rand-0.4.3/benches/generators.rs
rename : third_party/rust/rand/benches/misc.rs => third_party/rust/rand-0.4.3/benches/misc.rs
rename : third_party/rust/rand/src/distributions/exponential.rs => third_party/rust/rand-0.4.3/src/distributions/exponential.rs
rename : third_party/rust/rand/src/distributions/gamma.rs => third_party/rust/rand-0.4.3/src/distributions/gamma.rs
rename : third_party/rust/rand/src/distributions/mod.rs => third_party/rust/rand-0.4.3/src/distributions/mod.rs
rename : third_party/rust/rand/src/distributions/normal.rs => third_party/rust/rand-0.4.3/src/distributions/normal.rs
rename : third_party/rust/rand/src/distributions/range.rs => third_party/rust/rand-0.4.3/src/distributions/range.rs
rename : third_party/rust/rand/src/distributions/ziggurat_tables.rs => third_party/rust/rand-0.4.3/src/distributions/ziggurat_tables.rs
rename : third_party/rust/rand/src/jitter.rs => third_party/rust/rand-0.4.3/src/jitter.rs
rename : third_party/rust/rand/src/lib.rs => third_party/rust/rand-0.4.3/src/lib.rs
rename : third_party/rust/rand/src/os.rs => third_party/rust/rand-0.4.3/src/os.rs
rename : third_party/rust/rand/src/prng/chacha.rs => third_party/rust/rand-0.4.3/src/prng/chacha.rs
rename : third_party/rust/rand/src/prng/isaac.rs => third_party/rust/rand-0.4.3/src/prng/isaac.rs
rename : third_party/rust/rand/src/prng/isaac64.rs => third_party/rust/rand-0.4.3/src/prng/isaac64.rs
rename : third_party/rust/rand/src/prng/mod.rs => third_party/rust/rand-0.4.3/src/prng/mod.rs
rename : third_party/rust/rand/src/prng/xorshift.rs => third_party/rust/rand-0.4.3/src/prng/xorshift.rs
rename : third_party/rust/rand/src/rand_impls.rs => third_party/rust/rand-0.4.3/src/rand_impls.rs
rename : third_party/rust/rand/src/read.rs => third_party/rust/rand-0.4.3/src/read.rs
rename : third_party/rust/rand/src/reseeding.rs => third_party/rust/rand-0.4.3/src/reseeding.rs
rename : third_party/rust/rand/src/seq.rs => third_party/rust/rand-0.4.3/src/seq.rs
rename : third_party/rust/rand/utils/ziggurat_tables.py => third_party/rust/rand-0.4.3/utils/ziggurat_tables.py
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_chacha/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_chacha/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_core-0.3.1/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_core-0.3.1/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_core/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_core/LICENSE-MIT
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/rand_hc/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_hc/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_hc/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_isaac/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_isaac/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_jitter/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_jitter/LICENSE-MIT
rename : third_party/rust/rand/src/jitter.rs => third_party/rust/rand_jitter/src/lib.rs
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_os/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_os/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_pcg/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_pcg/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_xorshift/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_xorshift/LICENSE-MIT
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/rdrand/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/sha-1/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/sha-1/LICENSE-MIT
extra : moz-landing-system : lando
2019-05-18 13:39:31 +00:00
Nick Alexander
3dd3a36ec4 Bug 1521996 - Part 2: Specialize mach {run,install} for Android. r=ahal,gbrown
This just separates out the Android definitions into
mobile/android/mach_commands.py.  There was vestigial support for
running on Android with debuggers, but it was for wiring up JimDB,
which is no longer supported and in fact hasn't worked on actual
devices for a very long time.  (The new flow for running on Android
under a debugger goes through the Android Studio hybrid debugger.)

Differential Revision: https://phabricator.services.mozilla.com/D18291

--HG--
extra : moz-landing-system : lando
2019-05-17 21:40:15 +00:00
Narcis Beleuzu
65e97bc31e Backed out 6 changesets (bug 1542963) for causing Bug 1552400. a=backout
Backed out changeset 70fbe1a158ae (bug 1542963)
Backed out changeset a1a84e0feabb (bug 1542963)
Backed out changeset 14aa1bd254a4 (bug 1542963)
Backed out changeset 11a714f491d5 (bug 1542963)
Backed out changeset 2715bac40d2f (bug 1542963)
Backed out changeset 8f69c7eeb6fd (bug 1542963)

--HG--
extra : histedit_source : 5903adc5313d6af4fdafb40ae55aaa79856f3726
2019-05-17 11:30:27 +03:00
Narcis Beleuzu
1aace747e3 Backed out changeset 0883716b330e (bug 1532607) for conflicting with the backout of Bug 1542963. a=backout
--HG--
extra : histedit_source : 7f0a46319ac36c899d3f57b1ee6efcedf443992c
2019-05-17 11:27:16 +03:00
Narcis Beleuzu
b8c6715246 Backed out changeset 3d88030030a1 (bug 1542963) for conflicts on backing out Bug 1542963 . a=backout
--HG--
extra : histedit_source : 7f383db395fa34b77572bc2465fbe8e8286aee11
2019-05-17 11:26:44 +03:00
Csoregi Natalia
a0887ef80e Bug 1542963 - Fix linting f8 failure. r=tomprince a=fix
Reviewers: tomprince

Reviewed By: tomprince

Bug #: 1542963

Differential Revision: https://phabricator.services.mozilla.com/D31551

--HG--
extra : histedit_source : 513e9766409facda97caffbd761597a38727d653
2019-05-17 02:06:57 +03:00
Csoregi Natalia
8ef3142853 Merge inbound to mozilla-central. a=merge 2019-05-17 00:55:45 +03:00
Csoregi Natalia
f243adfc89 Backed out 27 changesets (bug 1542963, bug 1547730) on request from Callek for DWE fails. CLOSED TREE
Backed out changeset 9e9c2e06d0fb (bug 1547730)
Backed out changeset d282ddabcb3d (bug 1547730)
Backed out changeset 3df19a96f8ac (bug 1547730)
Backed out changeset 27ff9602d80a (bug 1547730)
Backed out changeset 48f2c4980ad0 (bug 1547730)
Backed out changeset cef492de6a7f (bug 1547730)
Backed out changeset 59a1393697e0 (bug 1547730)
Backed out changeset 61b8fcc639e0 (bug 1547730)
Backed out changeset 2d6ba80390c8 (bug 1547730)
Backed out changeset 75879e53727c (bug 1547730)
Backed out changeset 03bdcaab1623 (bug 1547730)
Backed out changeset 6c9f98dacbde (bug 1547730)
Backed out changeset 3037f5bf1019 (bug 1547730)
Backed out changeset 3df74540bde3 (bug 1547730)
Backed out changeset 1891cfbb55d1 (bug 1547730)
Backed out changeset 16b1c53aba9d (bug 1547730)
Backed out changeset b7b1062d0aad (bug 1547730)
Backed out changeset aa2acfd554fc (bug 1547730)
Backed out changeset fa39fb43fd12 (bug 1547730)
Backed out changeset 35e2dc6ad347 (bug 1547730)
Backed out changeset 1b766ee6bf23 (bug 1547730)
Backed out changeset c846bf431b5c (bug 1547730)
Backed out changeset 042cdcc4e103 (bug 1547730)
Backed out changeset 81bc9014907e (bug 1547730)
Backed out changeset afa5801534e4 (bug 1547730)
Backed out changeset b4e024474194 (bug 1547730)
Backed out changeset 5f3c10562df3 (bug 1542963)
2019-05-16 20:17:46 +03:00
b4hand
906a369fe2 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663

--HG--
extra : moz-landing-system : lando
2019-05-16 14:40:13 +00:00
Valentin Gosu
cc95fd19b6 Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671

--HG--
extra : moz-landing-system : lando
2019-05-16 06:22:06 +00:00
Mark Banner
b0b66a87fd Bug 1551551 - Fix tooltool.py use of print in its dump function. r=ahal
Depends on D31075

Differential Revision: https://phabricator.services.mozilla.com/D31076

--HG--
extra : moz-landing-system : lando
2019-05-15 14:34:53 +00:00
Emilio Cobos Álvarez
c74f3a885b Bug 1549762 - Don't build mozglue linker tests if building with icecream. r=glandium
As icecream doesn't deal well with .incbin.

Differential Revision: https://phabricator.services.mozilla.com/D30951

--HG--
extra : moz-landing-system : lando
2019-05-15 13:40:23 +00:00
Nathan Froyd
85925b5be6 Bug 1547196 - remove rustup wrapper from rustc as well as cargo; r=glandium
Having `rustc` be `rustup`'s wrapper for `rustc` means that we may
silently honor `rustup`'s override mechanisms.  We noticed this first on
OS X, where we use the "real" `cargo` but `rustup`'s `rustc` wrapper,
and problems ensued when `cargo` thought it was using one version of
`rustc`, but actually wound up using something different.

It seems better to avoid silently interposing `rustup`'s toolchain
override mechanisms everywhere, rather than having to special-case OS
X.  So let's factor out a general mechanism for removing the wrappers
`rustup` provides and use that for both `rustc` and `cargo`.  The tests
need adjusting because we weren't triggering the unwrapping cases
before; we don't yet test the case where we really do need to unwrap.
That test can be left for a future patch.

Differential Revision: https://phabricator.services.mozilla.com/D29531

--HG--
extra : moz-landing-system : lando
2019-05-14 05:43:19 +00:00
Nathan Froyd
1396262e0e Bug 1550868 - enforce a minimum version of clang-cl; r=glandium
We've not been checking the clang-cl version in use.  This lack of
checking is bad, for a couple of reasons:

* Released versions of clang-cl differ drastically in their robustness;
* Only the most recent version of clang-cl supports aarch64.

We should check for a minimum version of clang-cl, just like our other
supported compilers.  As a bonus, we can then start depending on
features that we know appear in the particular minimum clang-cl
version.  (The current patch is motivated by `/clang:` command-line
support, but one could pick other things.)

Differential Revision: https://phabricator.services.mozilla.com/D30723

--HG--
extra : moz-landing-system : lando
2019-05-14 14:22:55 +00:00
Andi-Bogdan Postelnicu
7be18f3d26 Bug 1503453 - re-enable static-analysis autotest on win64 platform after migrating to clang-tidy 8. r=sylvestre
Also for checker `modernize-avoid-bind` export the respective reliability index from config.yaml

Differential Revision: https://phabricator.services.mozilla.com/D30904

--HG--
extra : moz-landing-system : lando
2019-05-14 13:00:13 +00:00
Cosmin Sabou
530b9c7e9c Backed out 2 changesets (bug 1550903) for webrender bustages. a=backout
Backed out changeset fe8d48740511 (bug 1550903)
Backed out changeset cc187a665ccf (bug 1550903)

--HG--
rename : third_party/rust/rand-0.4.3/appveyor.yml => third_party/rust/rand/appveyor.yml
rename : third_party/rust/rand-0.4.3/benches/bench.rs => third_party/rust/rand/benches/bench.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/exponential.rs => third_party/rust/rand/benches/distributions/exponential.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/gamma.rs => third_party/rust/rand/benches/distributions/gamma.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/mod.rs => third_party/rust/rand/benches/distributions/mod.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/normal.rs => third_party/rust/rand/benches/distributions/normal.rs
rename : third_party/rust/rand-0.4.3/src/distributions/range.rs => third_party/rust/rand/src/distributions/range.rs
rename : third_party/rust/rand_jitter/src/lib.rs => third_party/rust/rand/src/jitter.rs
rename : third_party/rust/rand-0.4.3/src/os.rs => third_party/rust/rand/src/os.rs
rename : third_party/rust/rand-0.4.3/src/prng/chacha.rs => third_party/rust/rand/src/prng/chacha.rs
rename : third_party/rust/rand-0.4.3/src/prng/isaac.rs => third_party/rust/rand/src/prng/isaac.rs
rename : third_party/rust/rand-0.4.3/src/prng/isaac64.rs => third_party/rust/rand/src/prng/isaac64.rs
rename : third_party/rust/rand-0.4.3/src/prng/xorshift.rs => third_party/rust/rand/src/prng/xorshift.rs
rename : third_party/rust/rand-0.4.3/src/rand_impls.rs => third_party/rust/rand/src/rand_impls.rs
rename : third_party/rust/rand-0.4.3/src/read.rs => third_party/rust/rand/src/read.rs
rename : third_party/rust/rand-0.4.3/src/reseeding.rs => third_party/rust/rand/src/reseeding.rs
rename : third_party/rust/rand-0.4.3/src/seq.rs => third_party/rust/rand/src/seq.rs
rename : third_party/rust/rand-0.4.3/utils/ziggurat_tables.py => third_party/rust/rand/utils/ziggurat_tables.py
rename : third_party/rust/fuchsia-cprng/LICENSE => third_party/rust/sha1/LICENSE
2019-05-14 08:16:26 +03:00
Bastien Orivel
f4f6bd32a7 Bug 1550903 - Part 2: Revendor dependencies. r=emilio,kats,froydnj
It was unhappy about the new LICENSE (fuchsia-cprng) but it's the same
as the other fuschia crates. Since I don't think this is used at build
time but has the same license as the other fuschia crates, I put it in
the RUNTIME_LICENSE_PACKAGE_WHITELIST list. I also removed sha1 from
that list as it's not used anymore

Differential Revision: https://phabricator.services.mozilla.com/D30746

--HG--
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/autocfg/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/autocfg/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/autocfg/LICENSE-MIT
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/cloudabi/Cargo.toml
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/fuchsia-cprng/Cargo.toml
rename : third_party/rust/sha1/LICENSE => third_party/rust/fuchsia-cprng/LICENSE
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/mio-extras/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/mio-extras/LICENSE-MIT
rename : third_party/rust/rand/.cargo-checksum.json => third_party/rust/rand-0.4.3/.cargo-checksum.json
rename : third_party/rust/rand/CHANGELOG.md => third_party/rust/rand-0.4.3/CHANGELOG.md
rename : third_party/rust/rand/Cargo.toml => third_party/rust/rand-0.4.3/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand-0.4.3/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand-0.4.3/LICENSE-MIT
rename : third_party/rust/rand/README.md => third_party/rust/rand-0.4.3/README.md
rename : third_party/rust/rand/appveyor.yml => third_party/rust/rand-0.4.3/appveyor.yml
rename : third_party/rust/rand/benches/bench.rs => third_party/rust/rand-0.4.3/benches/bench.rs
rename : third_party/rust/rand/benches/distributions/exponential.rs => third_party/rust/rand-0.4.3/benches/distributions/exponential.rs
rename : third_party/rust/rand/benches/distributions/gamma.rs => third_party/rust/rand-0.4.3/benches/distributions/gamma.rs
rename : third_party/rust/rand/benches/distributions/mod.rs => third_party/rust/rand-0.4.3/benches/distributions/mod.rs
rename : third_party/rust/rand/benches/distributions/normal.rs => third_party/rust/rand-0.4.3/benches/distributions/normal.rs
rename : third_party/rust/rand/benches/generators.rs => third_party/rust/rand-0.4.3/benches/generators.rs
rename : third_party/rust/rand/benches/misc.rs => third_party/rust/rand-0.4.3/benches/misc.rs
rename : third_party/rust/rand/src/distributions/exponential.rs => third_party/rust/rand-0.4.3/src/distributions/exponential.rs
rename : third_party/rust/rand/src/distributions/gamma.rs => third_party/rust/rand-0.4.3/src/distributions/gamma.rs
rename : third_party/rust/rand/src/distributions/mod.rs => third_party/rust/rand-0.4.3/src/distributions/mod.rs
rename : third_party/rust/rand/src/distributions/normal.rs => third_party/rust/rand-0.4.3/src/distributions/normal.rs
rename : third_party/rust/rand/src/distributions/range.rs => third_party/rust/rand-0.4.3/src/distributions/range.rs
rename : third_party/rust/rand/src/distributions/ziggurat_tables.rs => third_party/rust/rand-0.4.3/src/distributions/ziggurat_tables.rs
rename : third_party/rust/rand/src/jitter.rs => third_party/rust/rand-0.4.3/src/jitter.rs
rename : third_party/rust/rand/src/lib.rs => third_party/rust/rand-0.4.3/src/lib.rs
rename : third_party/rust/rand/src/os.rs => third_party/rust/rand-0.4.3/src/os.rs
rename : third_party/rust/rand/src/prng/chacha.rs => third_party/rust/rand-0.4.3/src/prng/chacha.rs
rename : third_party/rust/rand/src/prng/isaac.rs => third_party/rust/rand-0.4.3/src/prng/isaac.rs
rename : third_party/rust/rand/src/prng/isaac64.rs => third_party/rust/rand-0.4.3/src/prng/isaac64.rs
rename : third_party/rust/rand/src/prng/mod.rs => third_party/rust/rand-0.4.3/src/prng/mod.rs
rename : third_party/rust/rand/src/prng/xorshift.rs => third_party/rust/rand-0.4.3/src/prng/xorshift.rs
rename : third_party/rust/rand/src/rand_impls.rs => third_party/rust/rand-0.4.3/src/rand_impls.rs
rename : third_party/rust/rand/src/read.rs => third_party/rust/rand-0.4.3/src/read.rs
rename : third_party/rust/rand/src/reseeding.rs => third_party/rust/rand-0.4.3/src/reseeding.rs
rename : third_party/rust/rand/src/seq.rs => third_party/rust/rand-0.4.3/src/seq.rs
rename : third_party/rust/rand/utils/ziggurat_tables.py => third_party/rust/rand-0.4.3/utils/ziggurat_tables.py
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_chacha/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_chacha/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_core-0.3.1/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_core-0.3.1/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_core/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_core/LICENSE-MIT
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/rand_hc/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_hc/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_hc/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_isaac/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_isaac/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_jitter/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_jitter/LICENSE-MIT
rename : third_party/rust/rand/src/jitter.rs => third_party/rust/rand_jitter/src/lib.rs
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_os/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_os/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_pcg/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_pcg/LICENSE-MIT
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/rand_xorshift/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/rand_xorshift/LICENSE-MIT
rename : third_party/rust/httparse/Cargo.toml => third_party/rust/rdrand/Cargo.toml
rename : third_party/rust/rand/LICENSE-APACHE => third_party/rust/sha-1/LICENSE-APACHE
rename : third_party/rust/rand/LICENSE-MIT => third_party/rust/sha-1/LICENSE-MIT
extra : moz-landing-system : lando
2019-05-13 16:07:04 +00:00
Andi-Bogdan Postelnicu
5577fedb71 Bug 1551089 - prevent runnning static analysis on the entire repo when using --fix option. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D30829

--HG--
extra : moz-landing-system : lando
2019-05-12 19:39:56 +00:00
Justin Wood
b5e0d26baa Bug 1547730 - don't fail on an unsupported .seek() needed to support adding from compressed zipfile.ZipFile entries. r=#build
Differential Revision: https://phabricator.services.mozilla.com/D29216

--HG--
extra : rebase_source : 0914a7e444c05fe47a3d8a548b8286c9efc8165e
extra : intermediate-source : 27cd72dde2f6cf98745cc8fde674a6914c2117e4
extra : source : bcb5ec04f07e879f964350b838831e4900b66e3d
2019-04-24 22:07:53 -04:00
Jonathan Watt
05e535ab68 Bug 1549206. Fix the Eclipse CDT index deletion glob pattern to only match the project name. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D30281

--HG--
extra : rebase_source : 8b7f18d872e7fd0728a469397b133830de949d2b
extra : amend_source : 754e23d04c1a729e6b3312eb0818c7144cd803d4
2019-04-23 09:37:09 +01:00
Justin Wood
0b152cd77c Bug 1547730 - Set python test annotations to correspond to currently-passing py3 tests r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28122

--HG--
rename : python/mozbuild/mozbuild/test/python.ini => python/mozbuild/mozbuild/test/python2.ini
rename : python/mozbuild/mozpack/test/python.ini => python/mozbuild/mozpack/test/python2.ini
extra : rebase_source : 686aa2def352c014bb2335e8f455204e3341b06b
extra : intermediate-source : 9adf517f4f79f071bc01526d3c9fe5545eeeda2f
extra : source : 31c6b4aca02221a3a173262ca02bc9cb9857da77
2019-04-18 15:52:34 -04:00
Justin Wood
6af7d5e25b Bug 1547730 - Finish up some final py3-izing in getting mozjar.py to work in py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28120

--HG--
extra : rebase_source : d0561578250ee77b4d14907cdaf83e69c60b42ff
extra : intermediate-source : 3dce2de9ddc1c36a4564337ecdfc5f4d5ed751c5
extra : source : 6dac07ac6e344d3f034cefeedead4642c2d69949
2019-04-18 15:21:31 -04:00
Justin Wood
a143ae4aca Bug 1547730 - Make more of configure/__init__ work in py3 r=#build
(adds __build_class__ to the builtin sandbox and allow CombinedDependsFunction to be hashed)

Differential Revision: https://phabricator.services.mozilla.com/D28114

--HG--
extra : rebase_source : 967a394d10d41e3da322005c84757c001a3b74cb
extra : intermediate-source : 2be63fc923997e6865ab9abc4fa7fb728e55d532
extra : source : aed41a0c652ae3f8e4b4f76bfaa0c56130515a75
2019-04-16 12:02:18 -04:00
Justin Wood
c441276556 Bug 1547730 - Use six.moves.builtins in the sandbox for configure r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28113

--HG--
extra : rebase_source : 7d7c89903f77fef369ffac46e270062538064325
extra : intermediate-source : c3200ca88bd9101dfbb7412241b215422860f9e4
extra : source : cc5ca4802a37bfa4d0fa5cd455f19d5f9e7e3ed1
2019-04-15 22:53:41 -04:00
Justin Wood
8253fe8c06 Bug 1547730 - Use new inspection methods introduced in py3 but work in py2.7 for functions r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28112

--HG--
extra : rebase_source : bf24427996ad79357c4cf6214f80ea1c3a39f124
extra : intermediate-source : b066211fcb63cf31ea74da0a841f38c1dfbf5676
extra : source : 591fc8f07d19a2f05565cf56f2dc9b3af526e298
2019-04-15 22:53:10 -04:00
Justin Wood
23eb9233a8 Bug 1547730 - Define __hash__ for SandboxDependsFunction and CombinedDependsFunction so we can reference it as a dictionary key in py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28111

--HG--
extra : rebase_source : 7d000f29bc3223e778364e16b4ef0d11c646b8f3
extra : intermediate-source : 5848c6841aa71187fb726172b4bbe2553ba87efc
extra : source : 1b31ed5f96344e5f794b4aee6aa8edda4aa3bf2d
2019-04-15 22:09:07 -04:00
Justin Wood
d6720a8be2 Bug 1547730 - Stop using some cases of types.NoneType. r=#build
Differential Revision: https://phabricator.services.mozilla.com/D30966

--HG--
extra : rebase_source : f17544d38e19f0a26922111136d5f5d08c0fd72f
extra : source : 38ee1d2f1c4cc11a373509a549cb340443a21c3c
2019-05-13 15:29:30 -04:00
Justin Wood
f2e598c580 Bug 1547730 - Recognize StreamWriter exceptions for fileno() in py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28110

--HG--
extra : rebase_source : 6ffd3d2098c1832809422c97feed8a5c62142deb
extra : intermediate-source : 3b1dd2a2fe4e4e1fa9ad551c457f87f9a36f4db0
extra : source : f4a2c2e1f221e645603ed046bf44786e8c60da8a
2019-04-15 20:57:34 -04:00
Justin Wood
d184f587d9 Bug 1547730 - Use six.moves.reduce for reduce() r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28109

--HG--
extra : rebase_source : 2424c40ab3eb265fe648fe180efd54a2662a2cc6
extra : intermediate-source : b59641f0aedeb489ec278108ff93739c2584264d
extra : source : 45791a6aa570cd11fc426a565eb4fffad250319e
2019-04-15 20:39:47 -04:00
Justin Wood
7c638ba8b3 Bug 1547730 - Use six.moves for urllib.urlparse r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28108

--HG--
extra : rebase_source : 33c707a33e478fb558e58c5b878f6da63b14927b
extra : intermediate-source : aa83f8790d9b9b16c756bc8311e7d57028abf487
extra : source : 8421e3222f669eae250a3b3facf8afa989ccc2c4
2019-04-15 16:57:21 -04:00
Justin Wood
b294b5deaf Bug 1547730 - Fix b''.join(rand.choice(bytestring)..) to use bytes() constructor instead r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28107

--HG--
extra : rebase_source : b630c75e57f967d70704dcffbbac0fa1aeb4e627
extra : intermediate-source : 59159c8d965b9f1fe7a8d7ac498f1e56489e578a
extra : source : 915a3ded66d8f598a8c6541dbbf842e5f12fc7e2
2019-04-15 15:26:30 -04:00
Justin Wood
d7b09050eb Bug 1547730 - Use six.moves.xrange() instead of xrange() r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28106

--HG--
extra : rebase_source : acdaa3f79f373904856940fa2df7475b941ffb20
extra : intermediate-source : a81b134559b396b811246e619e4d44b6c466e4c3
extra : source : 9ddfc1afd4255d67288111b41ea94371e3308a48
2019-04-15 14:50:56 -04:00
Justin Wood
b84cb353ab Bug 1547730 - Compensate for __builtin__ use in files accessed by py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28105

--HG--
extra : rebase_source : 75f3990149a321d344a3e0fb1729480113a1483e
extra : intermediate-source : a64c5048c6a77fd7f5effb43a74c21af374ce10c
extra : source : bd2ce60bb8159bc3ecb615a9e13658a3a62a8d99
2019-04-15 14:11:33 -04:00
Justin Wood
588f2cd51c Bug 1547730 - Don't try to py3-ize indented_repr yet. r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28103

--HG--
extra : rebase_source : 24becfbcc9f81dbe69dda1d70323cdda7cfb14b6
extra : intermediate-source : c5a11615d8c9fcc88ce13af85c744a1a8a615f03
extra : source : 66be9d18d40334332e8f6a45798701e440bc6b0a
2019-04-15 11:34:35 -04:00
Justin Wood
8d0a1c56b3 Bug 1547730 - don't use py2 builtin 'unicode' in mozpack and deps r=#build
Also adjust 'basestring' usage in some places.

Differential Revision: https://phabricator.services.mozilla.com/D28102

--HG--
extra : rebase_source : f0fecd6b040336b0cf2f055e266fe37eea5a9a48
extra : intermediate-source : 712718250f0ba5c286c1fb6b6c7f370b713c7225
extra : source : 6b24ce2da518d8158e13627adb11c9fcad19c92a
2019-04-16 17:07:08 -04:00
Justin Wood
76d0c8183b Bug 1547730 - do s/StringIO.StringIO/six.StringIO/ to support py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28101

--HG--
extra : rebase_source : 25292a350368f109b22350fedc066f2cd257b697
extra : intermediate-source : 284a97f47d5027b4d24c76f56bb133fea477555f
extra : source : 7e0974046e5680b87e4510df0dc3279be453ef9c
2019-04-14 22:18:34 -04:00
Justin Wood
68e0b22686 Bug 1547730 - do py3 for cStringIO r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28100

--HG--
extra : rebase_source : 419048b9789f19654bd6ceecc03f49e59fcf892d
extra : intermediate-source : ee3331ee87251ff67a9b55621d46efe655d58688
extra : source : ab5251d098f1f8bf9a6e258d26a6ab6b970421bf
2019-04-14 21:54:36 -04:00
Justin Wood
b871665e95 Bug 1547730 - Do s/StandardError/Exception/ to support py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28099

--HG--
extra : rebase_source : 6dde06b7421aa644944064bd92f6325fd12a2e53
extra : intermediate-source : e2faee3261fd7339508b05e0357e10f6665671b8
extra : source : 95f5775581b78a52a3772608d7ff29a8ff2568bb
2019-04-14 21:37:56 -04:00
Justin Wood
9c17b8dc2e Bug 1547730 - Switch to six.string_types instead of types.StringTypes for py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28098

--HG--
extra : rebase_source : 401f405bf69c0dc5c555f17496432f6b630561a3
extra : intermediate-source : 6b9bac92416d47aa1197308e44f8700380043d51
extra : source : 9c9b5e6ebcafffdbf3a57c2117d37b63181df0d4
2019-04-14 21:27:36 -04:00
Justin Wood
1ee18bb7cd Bug 1547730 - Allow testing of mozpack on py3 r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28097

--HG--
extra : rebase_source : b144cfa0bf39dcc2b83b9835d3bff78fc584ff4a
extra : intermediate-source : 0e6ee14716921960659543fa96b4a77b6a94ad1d
extra : source : 67f44c65a566f23a61cd1d9060598c82308e873b
2019-04-14 21:19:18 -04:00
Justin Wood
8ddab33e40 Bug 1547730 - use six.iterkeys() r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28119

--HG--
extra : rebase_source : 9cfc9144d3ce93399b61ccb995969eec41077da0
extra : intermediate-source : bdda365cb339d564d04b0e272760c079027d9d52
extra : source : 4e80dff16232c3331e5c5eb70120e4e66b4b354a
2019-04-16 17:11:42 -04:00
Justin Wood
6dbc4a2979 Bug 1547730 - Do six.itervalues instead of dict.itervalues r=#build
Differential Revision: https://phabricator.services.mozilla.com/D28104

--HG--
extra : rebase_source : e1537e9276e7253e97fac83c08fa0c1553dce7b9
extra : intermediate-source : 0415061eb0785b51d8003028dff21108d88cd86a
extra : source : 2ddb030c673d7d643d3b8151472d35d9d9c55ccd
2019-04-15 13:47:38 -04:00
Justin Wood
91e37fa7ff Bug 1547730 - Do dict.iteritems() via six to support py3. r=#build
shellutil.py needed special handling since it is invoked earlier than the
vendor directory adding we do, so it does not have six available.

Differential Revision: https://phabricator.services.mozilla.com/D28096

--HG--
extra : rebase_source : c5c611d280dc821747c9db736e4943c2cc421557
extra : intermediate-source : 30fb268b41fdc45937a22ab446a8805fb099c1f0
extra : source : d102292b6b5b812e7df165116410488d18042bd3
2019-04-15 11:48:03 -04:00
shindli
99a2a5a955 Merge inbound to mozilla-central. a=merge 2019-05-07 12:46:42 +03:00
Alexis Beingessner
52bd6c3025 Bug 1525402 - Bump cargo-vendor to 0.1.23. r=kats
0.1.21 mishandles cargo package renames, which are a required
feature for Rust 2018 support. The latest version fixes this.

Differential Revision: https://phabricator.services.mozilla.com/D29946

--HG--
extra : moz-landing-system : lando
2019-05-07 01:40:17 +00:00
Nick Alexander
730a0a46f2 Bug 1543247 - Part 2: Install visualmetrics.py prerequisites. r=ahal
Under the hood, browsertime invokes a certain `visualmetrics.py`
script.  That script depends on `ffmpeg` and ImageMagick's `convert`,
`compare`, and `mogrify` commands.  It also depends on certain Python
packages.

So this installs those dependencies, and then wires up the evaluation
environment such that `./mach browsertime` can find the dependencies.
It also adds a `./mach visualmetrics` command for processing a
captured MP4 file in the same way that browsertime processes such a
file.

In order to avoid downloading dependencies multiple time, the existing
artifact cache is extracted.  This is a small first step towards [Bug
1526021](https://bugzilla.mozilla.org/show_bug.cgi?id=1526021), which
might want to use this artifact cache as well.

At this time, hashes and filesizes are not verified.  During
development, the upstream files changed multiple times, and it's not
worth being completely locked down while experimenting with this
functionality.  If we start running this code in automation or in more
sensitive environments, we can build fetch tasks and TC indexes to
streamline the artifact gathering process.

It is expected that a future mach command will want to invoke
browsertime without suffering the overhead of invoking Python (and
mach, which is itself bulky) so a nod is given to exposing the
relevant environment pieces.

During testing, it was discovered that [MozillaBuild doesn't ship
git](https://bugzilla.mozilla.org/show_bug.cgi?id=1503028), so that
git repositories can't be used out-of-the-box on Windows.  So instead
we use a [tarball link from github.com/$USER/$REPO/tarball/$COMMIT-LIKE](https://github.blog/2008-03-03-tarball-downloads/).

Differential Revision: https://phabricator.services.mozilla.com/D29442

--HG--
rename : python/mozbuild/mozbuild/test/test_artifacts.py => python/mozbuild/mozbuild/test/test_artifact_cache.py
extra : moz-landing-system : lando
2019-05-06 23:56:59 +00:00
Chris Manchester
22b5c49e92 Bug 1549538 - Fix win64 artifact builds based on inbound. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D30115

--HG--
extra : moz-landing-system : lando
2019-05-06 21:05:52 +00:00
Geoff Lankow
ec9e479e0c Bug 1444220 - Extend artifact builds to include Thunderbird. r=glandium 2019-05-02 15:14:25 +12:00
Jonathan Watt
433a77a4a7 Bug 1549206. Fix Eclipse CDT project generation to automatically run the indexer on first run. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D29965

--HG--
extra : rebase_source : 6f6cbc5a0f0766146be8bb931a2e319452f1fede
2019-04-21 15:59:31 +01:00
Geoff Brown
51f5d3a884 Bug 1548555 - For android gtest, push support files to device; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D29837

--HG--
extra : moz-landing-system : lando
2019-05-03 17:45:21 +00:00
Dan Minor
e2aee8c88f Bug 1540760 - Make it possible to use clang-cl as an assembler; r=firefox-build-system-reviewers,mshal
Some media libraries use gas syntax in their assembly files. Rather than
converting these arm assembly syntax files for aarch64, we can use clang-cl
to build them directly.

Differential Revision: https://phabricator.services.mozilla.com/D27785

--HG--
extra : moz-landing-system : lando
2019-05-01 15:04:48 +00:00
Bastien Abadie
fd94f413de Bug 1548502 - Export clang-format diff in source-test-clang-format, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D29662

--HG--
extra : moz-landing-system : lando
2019-05-02 15:19:13 +00:00
Justin Wood
f611290984 Bug 1542963 - Insert unicode_literals into python/mozbuild/mozpack and called mozbuild/* files. r=#build
Lint python/mozbuild/{mozbuild,mozpack}.

This makes sure we use byte strings (type(b'')) in many places.
This also has a few places where we know we want unicode, by enforcing it.

This code also has a few places where we call into windows API's which expect either all args to be unicode,
or all args to be bytestrings (not-unicode) so make sure those calls align.

This is the most risky of the stack, since there are some mach commands and codepaths that are neither excercised in automation
nor excercised in tests.

Differential Revision: https://phabricator.services.mozilla.com/D26645

--HG--
extra : rebase_source : 1ee367576bede0318a2db05644693d4f440a250a
extra : intermediate-source : 2516c350cba6f27eb204f0087728721abbb0e085
extra : source : 6351a29c5765c13c39ef6186f9e5e911e00420e7
2019-04-08 15:20:45 -04:00
Justin Wood
4ae90fc11e Bug 1542963 - use print_function for mozbuild and mozpack. r=#build
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26644

--HG--
extra : rebase_source : 88e4d271be1f66eec21fbe87f8d96091f5312c45
extra : intermediate-source : a1f27db92c238b7f7e6e482100c30ec1318e8c57
extra : source : d023be4d80e16601df1b9b9fba994e6b42d9a2e0
2019-04-08 10:29:43 -04:00
Justin Wood
ae27d4484d Bug 1542963 - Add absolute_imports to mozbuild and mozpack. r=#build
Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Add 'from __future__ import absolute_import' to all missing files in python/mozbuild/{mozbuild,mozpack}/**/*.py

Differential Revision: https://phabricator.services.mozilla.com/D26643

--HG--
extra : rebase_source : 8c20011c7d1e9557bcc419d4fa3cb95e637d7d15
extra : intermediate-source : 473edf9f9a5378b3e1f944e231121455e3446c5b
extra : source : 2aedcd6517225dacfc45ca58d8ae2217cf67398e
2019-04-08 09:29:44 -04:00
Justin Wood
d8f887ccec Bug 1542963 - Fix undefined var 'defines' when use_defines_in_asflags is set. r=#build
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26642

--HG--
extra : rebase_source : cba723bb8184975f139edbc8853eec8941608600
extra : intermediate-source : 6919113c2e39cc77aa72416ce5702ad221c845ee
extra : source : 6628db09105db9bc09903459b089e5f1e3533fa6
2019-04-07 15:40:55 -04:00
Justin Wood
9a54c524f0 Bug 1542963 - Fix most flake8 issues in python/mozbuild/mozbuild/* r=#build
Leaving one fix for an explicit review.

Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Differential Revision: https://phabricator.services.mozilla.com/D26641

--HG--
extra : rebase_source : e14d7762c7802d98e24ee8f86b0167d96666d288
extra : intermediate-source : 79b0d1678dd2f6aadf60f480d902ddeca4a52c3a
extra : source : faadf440e7d7b0a8c473e2dee3fc90b27023814a
2019-04-07 15:39:24 -04:00
Justin Wood
c078e63bbc Bug 1542963 - run './mach lint ... --fix' on mozbuild/mozbuild, undoes some black changes. r=#build
Lint python/mozbuild/{mozbuild,mozpack}.

ran './mach lint -l py2 -l flake8 -l shellcheck -l codespell -l yaml python/mozbuild/{mozbuild,mozpack}/  --fix' in order
to undo some black changes and get closer to  making this folder able to be validated on every lint run

Differential Revision: https://phabricator.services.mozilla.com/D26640

--HG--
extra : rebase_source : 6b69b6ebcac73835b752607f7b5b4429de7f95cf
extra : intermediate-source : 114355f83d36188fac592c8c6497242c71b27ad6
extra : source : 51fbdf63bbce8f75fac407de305f826dc775fcb5
2019-04-24 22:12:09 -04:00
Chris Manchester
caa48376ad Bug 1547380 - Reject attempts to run the rusttests command from artifact builds. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D29436

--HG--
extra : moz-landing-system : lando
2019-04-30 23:03:14 +00:00
Mike Hommey
e958e4adc0 Bug 1536543 - Require rust 1.34. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D25896

--HG--
extra : moz-landing-system : lando
2019-04-30 22:16:11 +00:00
Rok Garbas
c3b5a7c6d6 Bug 1533330 - Update tooltool.py with optional support of taskcluster auth tokens r=rail
With this change tooltool.py also supports taskcluster credentials to be passed
(in json format) to --authentication-file option. RelengAPI tokens are still
working with this patch, just additional authentication is added.

Differential Revision: https://phabricator.services.mozilla.com/D27881

--HG--
extra : moz-landing-system : lando
2019-04-24 13:41:46 +00:00
Mike Shal
64d89508cd Bug 1541818 - Remove atime check on mac; r=froydnj
The noatime option doesn't appear to have a significant impact on no-op
build times, even though the build system does a significant number of
file reads. Since macs have atime enabled by default, we should just
disable this check rather than give developers unhelpful error messages.

Differential Revision: https://phabricator.services.mozilla.com/D28906

--HG--
extra : moz-landing-system : lando
2019-04-26 13:47:33 +00:00
Mike Hommey
53b22118b5 Bug 1546870 - Make extracting .tar.xz work with mach artifact toolchain. r=froydnj
For some reason, using `tar -Jxf` with Windows paths fails, and that makes
`mach artifact toolchain` unable to pull .tar.xz archives on Windows.

However, executing `xz -d -c` works, and we can feed its output to
python's tarfile.

Differential Revision: https://phabricator.services.mozilla.com/D28779

--HG--
extra : moz-landing-system : lando
2019-04-27 21:56:47 +00:00
Kartikaya Gupta
1e9c5710b7 Bug 1542826 - Add BSD-3-Clause license to about:license and whitelist sha1 which uses it. r=froydnj,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D28355

--HG--
extra : moz-landing-system : lando
2019-04-25 19:29:07 +00:00
Andi-Bogdan Postelnicu
2bfb55c4d7 Bug 1545778 - Consume all translation units when doing coverity integration. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D28468

--HG--
extra : moz-landing-system : lando
2019-04-24 15:51:32 +00:00
Cosmin Sabou
706f99c3db Backed out changeset d99a232c3dd4 (bug 1533330) for causing build bustages. CLOSED TREE 2019-04-24 13:20:12 +03:00
Rok Garbas
f922d69f22 Bug 1533330 - Update tooltool.py with optional support of taskcluster auth tokens r=rail
With this change tooltool.py also supports taskcluster credentials to be passed
(in json format) to --authentication-file option. RelengAPI tokens are still
working with this patch, just additional authentication is added.

Differential Revision: https://phabricator.services.mozilla.com/D27881

--HG--
extra : moz-landing-system : lando
2019-04-24 09:16:27 +00:00
Razvan Maries
5f610a07b3 Backed out 8 changesets (bug 1542826) for build bustages. CLOSED TREE
Backed out changeset f3516e1416f0 (bug 1542826)
Backed out changeset 1dba743761b7 (bug 1542826)
Backed out changeset a02e469be7b3 (bug 1542826)
Backed out changeset 5118d628ec89 (bug 1542826)
Backed out changeset 5744891efeef (bug 1542826)
Backed out changeset e5af8cd01080 (bug 1542826)
Backed out changeset 314f9bc7dafe (bug 1542826)
Backed out changeset 7df230ea5122 (bug 1542826)
2019-04-23 23:14:06 +03:00
Kartikaya Gupta
80e9ccefb1 Bug 1542826 - Add BSD-3-Clause license to about:license and whitelist sha1 which uses it. r=froydnj,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D28355

--HG--
extra : moz-landing-system : lando
2019-04-23 19:56:09 +00:00
Andi-Bogdan Postelnicu
8d5f50af08 Bug 1544208 - inform the user who tries to use mach static-analysis check ... of when there are no files eligible for analysis. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D28032

--HG--
extra : moz-landing-system : lando
2019-04-23 10:01:12 +00:00
Geoff Brown
069f6587db Bug 1318091 - Support |mach gtest| for android; r=bc
Add basic support for 'mach gtest' on Android.
Handling of Android-only and desktop-only options is awkward; I hope to
re-visit this after bug 1519369.

Differential Revision: https://phabricator.services.mozilla.com/D28129

--HG--
extra : moz-landing-system : lando
2019-04-22 15:55:23 +00:00
Andi-Bogdan Postelnicu
32fe00ed34 Bug 1544764 - Add description at review phase about defects found - clang-tidy. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D27669

--HG--
extra : moz-landing-system : lando
2019-04-18 08:49:52 +00:00
Andi-Bogdan Postelnicu
7f77f4efdf Bug 1544767 - Add description at review phase about defects found - coverity. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D27876

--HG--
extra : moz-landing-system : lando
2019-04-18 08:52:31 +00:00
Csoregi Natalia
feb0789249 Backed out changeset 7cefdbb63711 (bug 1544764) for static-analysis bustage on clang-analyzer-deadcode.DeadStores.cpp. CLOSED TREE 2019-04-18 00:33:29 +03:00
Andi-Bogdan Postelnicu
bbedccc1b9 Bug 1544764 - Add description at review phase about defects found - clang-tidy. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D27669

--HG--
extra : moz-landing-system : lando
2019-04-17 16:16:42 +00:00
Sylvestre Ledru
bca2543ffa Bug 1544797 - clang-format: Use the topsrcdir to generate the paths instead of the pwd r=andi
If the user runs mach clang-format from the builddir, it was finding and using
unified files.

Differential Revision: https://phabricator.services.mozilla.com/D27750

--HG--
extra : moz-landing-system : lando
2019-04-16 17:38:24 +00:00
Mike Shal
e01aaa0155 Bug 1543663 - Create an empty config.status for TestManifestBackend; r=chmanchester
The TestManifestBackend always has a dependency on config.status, even
if configure hasn't been run yet. If configure is run later, this is
intended to cause the TestManifestBackend to be regenerated so that it
can use the configured values instead of a potentially incomplete setup.

Mozbuild's backend_out_of_date() logic treats a missing file as always
being out of date, which means if configure hasn't run, the
TestManifestBackend will always be regenerated.

Instead we can create a stub config.status file that will fix the
out-of-date check, and can be treated as a
BuildEnvironmentNotFoundException as if the file didn't exist at all.

Differential Revision: https://phabricator.services.mozilla.com/D27195

--HG--
extra : moz-landing-system : lando
2019-04-12 23:02:56 +00:00
Mike Shal
22b6784b84 Bug 1543663 - Add missing 'import errno' to fix some python-tests; r=ahal
Bug 1537574 moved some code that uses errno from building.py to base.py,
but the latter didn't already import errno.

Differential Revision: https://phabricator.services.mozilla.com/D27125

--HG--
extra : moz-landing-system : lando
2019-04-12 22:48:29 +00:00
Andi-Bogdan Postelnicu
c9b234eafc Bug 1543492 - for clang based static-analysis and formating add a package version that represents a baseline if we continue the analysis or prompt for an update. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D27042

--HG--
extra : moz-landing-system : lando
2019-04-11 09:58:59 +00:00
Mike Shal
e28f6db31f Bug 1537574 - Use mozbuild's backend-out-of-date logic for RecursiveMake; r=firefox-build-system-reviewers,chmanchester
If mozbuild parsing fails due to a missing file (eg: a file not existing
in UNIFIED_SOURCES), then no Makefiles are written out, but
config.status exists. This would cause mozbuild to think that configure
doesn't need to run, and rely on make to perform the backend-out-of-date
check in rebuild-backend.mk. Unfortunately since no Makefiles were
written, the make command fails immediately and no attempt is made to
re-create the backend. Note that this is only a problem if the first
mozbuild parsing from a clobber build fails, otherwise there is
typically a top-level Makefile from a previous build to call into (at
which point make can determine it is out-of-date, and re-invoke itself).

The fix is to have the RecursiveMake backend re-use the same logic that
was introduced into mozbuild for alternate backends, and remove
rebuild-backend.mk. This way, mozbuild can always determine if the
backend needs to be regenerated, even if the initial parsing failed.

Test code was also relying on rebuild-backend.mk to generate the
TestBackend, but moving backend_out_of_date() into MozbuildObject allows
this code to be shared.

Differential Revision: https://phabricator.services.mozilla.com/D26262

--HG--
rename : build/gen_test_backend.py => python/mozbuild/mozbuild/gen_test_backend.py
extra : moz-landing-system : lando
2019-04-10 22:14:27 +00:00
Chris Manchester
bfada6ed16 Bug 1542042 - Convert arguments to unicode explicitly in |./mach run|. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D26832

--HG--
extra : moz-landing-system : lando
2019-04-09 23:13:07 +00:00
Bastien Abadie
a474eff8dd Bug 1541412 - Add static-analysis check-java to source-test tasks, r=ahal,andi
Differential Revision: https://phabricator.services.mozilla.com/D25929

--HG--
rename : taskcluster/scripts/misc/source-test-clang-setup.sh => taskcluster/scripts/misc/source-test-common.sh
extra : moz-landing-system : lando
2019-04-08 15:41:30 +00:00
Andi-Bogdan Postelnicu
034e5a3f5c Bug 1542871 - prevent data loss for clang-format when using incompatible/old clang-format binary. r=sylvestre
This issue has been detected and reproduced by :klotz and :jorendorff.

Differential Revision: https://phabricator.services.mozilla.com/D26872

--HG--
extra : moz-landing-system : lando
2019-04-10 09:32:07 +00:00
Andi-Bogdan Postelnicu
595caf7d7c Bug 1543024 - [Coverity] Add more information to the exported artifact that is generated by Coverity. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D26682

--HG--
extra : moz-landing-system : lando
2019-04-10 07:19:26 +00:00
Petr Sumbera
41916af393 Bug 1405345 - ldflags as defined in gypi shouldn't be ignored at least on Solaris for now r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D26287

--HG--
extra : moz-landing-system : lando
2019-04-09 13:22:16 +00:00
Mike Hommey
071a2fe984 Bug 1541792 - Replace linker magic with manual component registration. r=froydnj
Before bug 938437, we had a rather large and error-prone
nsStaticXULComponents.cpp used to register all modules. That was
replaced with clever use of the linker, which allowed to avoid the mess
that maintaining that file was.

Fast forward to now, where after bug 1524687 and other work that
preceded it, we have a much smaller number of remaining static xpcom
components, registered via this linker hack, and don't expect to add
any new ones. The list should eventually go down to zero.

Within that context, it seems to be the right time to get rid of the
magic, and with it the problems it causes on its own.

Some of those components could probably be trivially be converted to
static registration via .conf files, but I didn't want to deal with the
possible need to increase the number of dummy modules in XPCOMInit.cpp.
They can still be converted as a followup.

Differential Revision: https://phabricator.services.mozilla.com/D26076

--HG--
extra : moz-landing-system : lando
2019-04-05 02:30:56 +00:00
Andreea Pavel
a7f868ac25 Backed out changeset 95b3298fd2d4 (bug 1537574) for windows task timeouts a=backout
--HG--
rename : python/mozbuild/mozbuild/gen_test_backend.py => build/gen_test_backend.py
2019-04-08 22:23:03 +03:00
Mike Shal
96425af79a Bug 1537574 - Use mozbuild's backend-out-of-date logic for RecursiveMake; r=firefox-build-system-reviewers,chmanchester
If mozbuild parsing fails due to a missing file (eg: a file not existing
in UNIFIED_SOURCES), then no Makefiles are written out, but
config.status exists. This would cause mozbuild to think that configure
doesn't need to run, and rely on make to perform the backend-out-of-date
check in rebuild-backend.mk. Unfortunately since no Makefiles were
written, the make command fails immediately and no attempt is made to
re-create the backend. Note that this is only a problem if the first
mozbuild parsing from a clobber build fails, otherwise there is
typically a top-level Makefile from a previous build to call into (at
which point make can determine it is out-of-date, and re-invoke itself).

The fix is to have the RecursiveMake backend re-use the same logic that
was introduced into mozbuild for alternate backends, and remove
rebuild-backend.mk. This way, mozbuild can always determine if the
backend needs to be regenerated, even if the initial parsing failed.

Test code was also relying on rebuild-backend.mk to generate the
TestBackend, but moving backend_out_of_date() into MozbuildObject allows
this code to be shared.

Differential Revision: https://phabricator.services.mozilla.com/D26262

--HG--
rename : build/gen_test_backend.py => python/mozbuild/mozbuild/gen_test_backend.py
extra : moz-landing-system : lando
2019-04-08 16:37:56 +00:00
Dorel Luca
7783e898b4 Backed out changeset 471b2063c817 (bug 1540656) for XPCShell failures in dom/push/test/xpcshell/test_register_success_http2.js 2019-04-08 15:49:10 +03:00
Andi-Bogdan Postelnicu
706b294e8b Bug 1541147 - [Coverity] Create a try job that performs coverity static-analysis for patches. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D26145

--HG--
extra : moz-landing-system : lando
2019-04-08 10:42:37 +00:00
Valentin Gosu
de5f594f79 Bug 1540656 - Use dns-packet node module in test_trr.js r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D25671

--HG--
extra : moz-landing-system : lando
2019-04-08 10:42:34 +00:00
Coroiu Cristina
ce554d423a Backed out changeset 7e2aef09165a (bug 1541147) on request by Andy 2019-04-08 13:24:38 +03:00
Andi-Bogdan Postelnicu
7d35667207 Bug 1541147 - [Coverity] Create a try job that performs coverity static-analysis for patches. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D26145

--HG--
extra : moz-landing-system : lando
2019-04-08 10:16:13 +00:00
Razvan Maries
782c1800ed Backed out changeset ac130652ae81 (bug 1541147) for Gecko Decision Task bustages. CLOSED TREE 2019-04-06 10:23:16 +03:00
Andi-Bogdan Postelnicu
b8099454fc Bug 1541147 - [Coverity] Create a try job that performs coverity static-analysis for patches. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D26145

--HG--
extra : moz-landing-system : lando
2019-04-06 06:32:16 +00:00
Andrew Halberstadt
36f246059f Bug 1195299 - [mozharness] Remove copies of mozbase from testing/mozharness r=catlee
Differential Revision: https://phabricator.services.mozilla.com/D22185

--HG--
extra : moz-landing-system : lando
2019-04-05 15:39:50 +00:00
Csoregi Natalia
327990d881 Backed out changeset e2a6e9aafcf6 (bug 1541147) for gecko decision task failure. CLOSED TREE 2019-04-05 16:19:58 +03:00
Andi-Bogdan Postelnicu
831dab5548 Bug 1541147 - [Coverity] Create a try job that performs coverity static-analysis for patches. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D26145

--HG--
extra : source : 3779175a4d7fdd3eb5b6fd380342d41c22764690
2019-04-05 12:26:54 +00:00
Csoregi Natalia
7fc8245165 Backed out changeset 3779175a4d7f (bug 1541147) for gecko decision bustage. CLOSED TREE 2019-04-05 15:53:56 +03:00
Andi-Bogdan Postelnicu
c8538c029f Bug 1541147 - [Coverity] Create a try job that performs coverity static-analysis for patches. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D26145

--HG--
extra : moz-landing-system : lando
2019-04-05 12:26:54 +00:00
Bogdan Tara
c39c82922d Backed out 2 changesets (bug 1195299) for l10n bustages a=backout
Backed out changeset 9645ac1a9851 (bug 1195299)
Backed out changeset 4de7f94119fd (bug 1195299)
2019-04-05 14:11:45 +03:00
Andrew Halberstadt
372e239037 Bug 1195299 - [mozharness] Remove copies of mozbase from testing/mozharness r=catlee
Differential Revision: https://phabricator.services.mozilla.com/D22185

--HG--
extra : moz-landing-system : lando
2019-04-04 12:34:56 +00:00
Emilio Cobos Álvarez
ef1802df7b Bug 1541660 - Fix clang-format subcommands that don't take a path. r=bastien
We do need some test for this stuff...

Differential Revision: https://phabricator.services.mozilla.com/D26039

--HG--
extra : moz-landing-system : lando
2019-04-04 07:14:34 +00:00
Chris Manchester
d442e40c5e Bug 1540941 - Update artifact build routes for shippable builds. r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D26014

--HG--
extra : moz-landing-system : lando
2019-04-03 22:14:27 +00:00
Ciure Andrei
58c8915ecd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-04 00:57:38 +03:00
Dave Townsend
8a2398e023 Bug 1541086: Remove the embedding code and update the bug components for widget::headless. r=myk r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D25800

--HG--
extra : rebase_source : c3ec2eec85909de82e9e2d4ef8ee77b19d4295df
2019-04-02 09:07:54 -07:00
Tarek Ziadé
fbf4fdacfb Bug 1527620 - Add youtube streaming tests - r=whimboo
This patch introduces a new marionette media test along
with a Youtube test.

To run the Youtube streaming test locally:

./mach marionette-test dom/media/test/marionette/test_youtube.py -vv --gecko-log -

Differential Revision: https://phabricator.services.mozilla.com/D23644

--HG--
extra : moz-landing-system : lando
2019-04-02 15:09:47 +00:00
Bastien Abadie
566eb8e960 Bug 1538770 - Remove _conv_to_abspath from mach static analysis, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D25769

--HG--
extra : moz-landing-system : lando
2019-04-02 14:11:33 +00:00
Emilio Cobos Álvarez
306bfb3d57 Bug 1541332 - Remove unused setup feature for file records. r=glandium
Seems unused since bug 1426785, looks like.

Differential Revision: https://phabricator.services.mozilla.com/D25904

--HG--
extra : moz-landing-system : lando
2019-04-03 07:31:05 +00:00
Emilio Cobos Álvarez
36759e604c Bug 1540540 - Do not unconditionally re-extract stuff from mach bootstrap. r=glandium
Keep a checksum to avoid re-extracting artifacts over and over.

In the future we can also check the checksum to avoid downloading the artifact
altogether, maybe.

Differential Revision: https://phabricator.services.mozilla.com/D25542

--HG--
extra : moz-landing-system : lando
2019-04-03 07:08:12 +00:00
Bastien Abadie
502ea8a095 Bug 1538770 - Replace TRY_MODIFIED_FILES by mozversioncontrol usage, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D24876

--HG--
extra : moz-landing-system : lando
2019-04-02 14:00:30 +00:00
Narcis Beleuzu
36a6694a8b Backed out changeset 304b957afe29 (bug 1527620) for marionette-media failures on test_youtube.py. CLOSED TREE 2019-04-02 11:19:26 +03:00
Tarek Ziadé
0d09d08c72 Bug 1527620 - Add youtube streaming tests - r=whimboo
This patch introduces a new marionette media test along
with a Youtube test.

To run the Youtube streaming test locally:

./mach marionette-test dom/media/test/marionette/test_youtube.py -vv --gecko-log -

Differential Revision: https://phabricator.services.mozilla.com/D23644

--HG--
extra : moz-landing-system : lando
2019-04-02 07:38:41 +00:00
Nick Alexander
fbb2df205f Bug 1525968 - Make local development artifact builds on Android download full build symbols. r=froydnj
We produce two types of build symbol archives in automation:

- "crashreporter-symbols.zip" contains Breakpad-format .sym files
- "crashreporter-symbols-full.zip" contains Breakpad-format .sym files
  and compressed ELF debug symbol .dbg.gz files

Right now, `--enable-artifact-build-symbols` from Bug 1305502
downloads only "crashreporter-symbols.zip".

The Android Studio version of lldb, currently 7.0.0, doesn't support
Breakpad-format .sym files. It does support (uncompressed) ELF debug
symbols.  (Note that gdb isn't supported on Android and hasn't been for
some time.)

This makes ` --enable-artifact-build-symbols` download the full
symbols for Android builds that aren't in automation, to be useful for
debugging Android builds with lldb locally.

Differential Revision: https://phabricator.services.mozilla.com/D19091

--HG--
extra : moz-landing-system : lando
2019-03-27 22:37:40 +00:00
Nick Alexander
a06dbe603f Bug 1525968 - Pre: Log more with ./mach artifact install -v. r=froydnj
It's not helpful to have a DEBUG log level, 'cuz the -v flag to
`./mach artifact install` doesn't turn on DEBUG logging.

Differential Revision: https://phabricator.services.mozilla.com/D19090

--HG--
extra : moz-landing-system : lando
2019-03-27 22:37:30 +00:00
Mike Hommey
f535e6cec9 Followup for bug 1539355: Make it work for the root directory. r=me
When an added file is not under an app or addon directory, its base
directory is ''. The code added in bug 1539355 would skip doing its
thing in that case, which it shouldn't.

Also revert the workaround from bug 1525762.
2019-03-31 07:27:43 +09:00
Kris Maglione
6dbe6f1959 Bug 1525762: Part 1j - Work around XPI omni.jar packaging issues. r=bustage CLOSED TREE
We have some convoluted packaging logic to automatically package any directory
with a manifest.json file as an XPI. Unfortunately, that logic also applies to
extensions that are supposed to be part of omni.ja.

It would be nice to have a cleaner way to filter out any resources which we've
already flagged to be part of omni.ja, but this patch takes the simpler
approach of just including anything that's in a modules/ directory, which is
whitelisted for omni.ja elsewhere.

--HG--
extra : source : d30967b60a03f8f4286c26f14342d50e03a59f9d
extra : amend_source : 2ddab7bd7ce2fb666d5335bf9941328d9dd7d66f
2019-03-22 17:29:21 -07:00
Coroiu Cristina
a21690048b Merge mozilla-central to inbound a=merge 2019-03-29 11:50:07 +02:00
Mike Hommey
ee64e5bdec Bug 1510897 - Separate Android C++ flags from the other Android toolchain flags. r=nalexander
We shouldn't pass those flags when building C. It doesn't matter /too/
much currently, but will in a subsequent change, which will introduce
a C++-only flag in stlport_cppflags.

Differential Revision: https://phabricator.services.mozilla.com/D25018

--HG--
extra : moz-landing-system : lando
2019-03-27 22:05:04 +00:00
Chris Manchester
5c005e476e Bug 1526072 - Record cpu utilization and clobber/full builds in build telemetry. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22630

--HG--
extra : moz-landing-system : lando
2019-03-27 22:42:48 +00:00
Chris Manchester
584f26283b Bug 1526072 - Add cpu utilization and clobber fields to build telemetry schema. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22629

--HG--
extra : moz-landing-system : lando
2019-03-27 22:47:58 +00:00
Chris Manchester
ed4fd3fd3a Bug 1526072 - Avoid trailing spaces when generating the schema for build telemetry. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22628

--HG--
extra : moz-landing-system : lando
2019-03-27 22:46:22 +00:00
Mike Hommey
2a363e7418 Bug 1539355 - Don't package addons in resource directories as XPI in OmnijarFormatter. r=nalexander
The addons manager is going to support this usecase.

Depends on D25036

Differential Revision: https://phabricator.services.mozilla.com/D25037

--HG--
extra : moz-landing-system : lando
2019-03-27 22:33:10 +00:00
Mike Hommey
33c810b43c Bug 1539355 - Force callers of *Formatter.add_base to order their bases. r=nalexander
Practically speaking, it makes no difference, as only the calls to
add_base from tests weren't already ordered.

This allows a simpler approach for next change.

Differential Revision: https://phabricator.services.mozilla.com/D25036

--HG--
extra : moz-landing-system : lando
2019-03-27 22:19:32 +00:00
Mike Hommey
5dbf4813a5 Bug 1539355 - Add a packager test for in-resource addons. r=nalexander
This demonstrates how addons positioned under a resource directory (a
directory that would normally go in omni.ja) is currently treated.

Differential Revision: https://phabricator.services.mozilla.com/D25035

--HG--
extra : moz-landing-system : lando
2019-03-27 16:12:08 +00:00
Justin Wood
d2abc5343d Bug 1535393 - Fill in the correct MSI version number for release and ESR. r=mhowell,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D24994

--HG--
extra : moz-landing-system : lando
2019-03-27 17:10:58 +00:00
Noemi Erli
cfaf79673c Backed out changeset e5117d2f9311 (bug 1533051) for Android xpcshell failures CLOSED TREE 2019-03-28 01:33:00 +02:00
Nick Alexander
3dce09e76f Bug 1533051 - Package GeckoView prefs at architecture-specific paths for Android fat AAR/GeckoView multi-architecture builds. r=glandium
Bug 1533425 makes Gecko try to load from $ARCH/greprefs.js, etc on
Android.  This patch teaches the packager to put preferences into
those architecture-specific locations for that code to find.

Differential Revision: https://phabricator.services.mozilla.com/D24984

--HG--
extra : moz-landing-system : lando
2019-03-27 17:35:26 +00:00
Noemi Erli
6269026d4e Backed out 4 changesets (bug 1526072) for causing build bustages in test_clobber.py CLOSED TREE
Backed out changeset d3d56eca307f (bug 1526072)
Backed out changeset 37942b0f911b (bug 1526072)
Backed out changeset a0eb0f43c928 (bug 1526072)
Backed out changeset c1d1576431d7 (bug 1526072)
2019-03-27 22:51:22 +02:00
Chris Manchester
68be120a7f Bug 1526072 - Record cpu utilization and clobber/full builds in build telemetry. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22630

--HG--
extra : moz-landing-system : lando
2019-03-18 20:36:54 +00:00
Chris Manchester
54d1b1be36 Bug 1526072 - Add cpu utilization and clobber fields to build telemetry schema. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22629

--HG--
extra : moz-landing-system : lando
2019-03-18 20:36:54 +00:00
Chris Manchester
81847eca09 Bug 1526072 - Avoid trailing spaces when generating the schema for build telemetry. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D22628

--HG--
extra : moz-landing-system : lando
2019-03-18 20:36:54 +00:00
Andi-Bogdan Postelnicu
c75ef505b7 Bug 1538107 - Improve the error reporting "./mach static-analysis autotest" r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D24913

--HG--
extra : moz-landing-system : lando
2019-03-27 07:53:50 +00:00
Makoto Kato
73ab1808b5 Bug 1527796 - Part 6. Update test_checkes_configure.py since java_search_paths requries host. r=nalexander
Summary: Since we add host parameter to java_search_paths, test_java_tool_checks is always failure due to no host function.  So I need to set dummy host function.

Reviewers: nalexander

Bug #: 1527796

Differential Revision: https://phabricator.services.mozilla.com/D24873

--HG--
extra : rebase_source : b1fba1e6c108f39f078f67c21923b606cca87d98
2019-03-07 19:43:56 +09:00
Geoff Brown
8e20f2334b Bug 1534858 - Include minidumpwriter.exe in windows artifacts; r=chmanchester
Test automation code assumes crashinject.exe is available on Win32:
  https://searchfox.org/mozilla-central/rev/7abb9117c8500ed20833746c9f8e800fce3a4688/build/automation.py.in#356
and minidumpwriter.exe on Windows when there is a 32/64 bit mismatch between python and the application build:
  https://searchfox.org/mozilla-central/rev/7abb9117c8500ed20833746c9f8e800fce3a4688/testing/mozbase/mozcrash/mozcrash/mozcrash.py#428
so I think these should be available for Windows tests, and I suspect they have only been left out accidentally.

I will file a new bug to get minidumpwriter working on aarch64.

Differential Revision: https://phabricator.services.mozilla.com/D23895

--HG--
extra : moz-landing-system : lando
2019-03-26 21:51:51 +00:00
Mike Hommey
25dbad7cb2 Bug 1536307 - Bump libstdc++ requirement to 4.7. r=froydnj
Last time we updated the requirements was in bug 1278456, after we
switched to GTK+3.

While it might be worth checking what would be a reasonable requirement,
the immediate problem is that updating ANGLE hits a snag with a
libstdc++ 4.7 symbol, and the only main distro release that bumping to
that version would make us not support anymore is Ubuntu 12.04 LTS,
EOLed 2 years ago (April 2017).

Bumping to some even newer version would need more consideration.
Desupporting Ubuntu 12.04 LTS at this point is almost a no-brainer.

Differential Revision: https://phabricator.services.mozilla.com/D23979

--HG--
extra : moz-landing-system : lando
2019-03-25 12:40:25 +00:00
Bastien Abadie
51d9cea5cd Bug 1536839 - Add json formatter to ./mach clang-format, r=ahal,marco
Depends on D24193

Differential Revision: https://phabricator.services.mozilla.com/D24194

--HG--
extra : moz-landing-system : lando
2019-03-25 15:02:44 +00:00
Ciure Andrei
e5b7cf51de Backed out changeset d12b8cd1cee8 (bug 1534858) for causing diff build bustages CLOSED TREE 2019-03-22 15:17:30 +02:00
Geoff Brown
69c7301fc1 Bug 1534858 - Include crashinject.exe and minidumpwriter.exe in windows artifacts; r=chmanchester
Test automation code assumes crashinject.exe is available on Win32:
  https://searchfox.org/mozilla-central/rev/7abb9117c8500ed20833746c9f8e800fce3a4688/build/automation.py.in#356
and minidumpwriter.exe on Windows when there is a 32/64 bit mismatch between python and the application build:
  https://searchfox.org/mozilla-central/rev/7abb9117c8500ed20833746c9f8e800fce3a4688/testing/mozbase/mozcrash/mozcrash/mozcrash.py#428
so I think these should be available for Windows tests, and I suspect they have only been left out accidentally.

I will file a new bug to get minidumpwriter working on aarch64.

Differential Revision: https://phabricator.services.mozilla.com/D23895

--HG--
extra : moz-landing-system : lando
2019-03-21 22:12:52 +00:00
Mike Hommey
632127ba32 Bug 1521734 - Use thumbv7neon rust targets when stars align. r=chmanchester
Newer versions of rust come with a specialized arm target that matches
more closely our armv7 targets (with neon and thumb2), so use that when
possible.

Depends on D24324

Differential Revision: https://phabricator.services.mozilla.com/D24325

--HG--
extra : moz-landing-system : lando
2019-03-21 23:36:49 +00:00
Mike Hommey
17fde3dc29 Bug 1521734 - Refresh rust target list in toolchain configure test. r=chmanchester
Depends on D24323

Differential Revision: https://phabricator.services.mozilla.com/D24324

--HG--
extra : moz-landing-system : lando
2019-03-21 23:36:22 +00:00
Tooru Fujisawa
304507c2d0 Bug 1535981 - Throw error with more information when there is no public revision while building artifact mode. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D23819

--HG--
extra : moz-landing-system : lando
2019-03-21 22:12:20 +00:00
Jason Kratzer
bf070137cd Bug 1513071 - Include CSS2Properties.webidl in generated-files required by DOM fuzzer. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22356

--HG--
extra : moz-landing-system : lando
2019-03-06 18:56:48 +00:00
Bastien Abadie
9ca2ba47f7 Bug 1536763 - Support more than 100 files in ./mach static-analysis check, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D24151

--HG--
extra : moz-landing-system : lando
2019-03-20 13:03:13 +00:00
Bastien Abadie
ca516956bc Bug 1535355 - Add --output & --format=json|text to ./mach static-analysis check, r=ahal,firefox-build-system-reviewers,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D23523

--HG--
extra : moz-landing-system : lando
2019-03-19 18:26:50 +00:00
Bastien Abadie
bd81147042 Bug 1535355 - Add --output option to ./mach clang-format, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D23522

--HG--
extra : moz-landing-system : lando
2019-03-19 20:33:39 +00:00
Thomas Daede
eed1f33ab9 Bug 1533559 - Update libdav1d to 0.2.1. r=achronop
Differential Revision: https://phabricator.services.mozilla.com/D23761

--HG--
rename : media/libdav1d/version.h => media/libdav1d/vcs_version.h
rename : third_party/dav1d/include/meson.build => third_party/dav1d/include/dav1d/meson.build
rename : third_party/dav1d/src/obu.h => third_party/dav1d/include/dav1d/version.h.in
rename : third_party/dav1d/include/version.h.in => third_party/dav1d/include/vcs_version.h.in
rename : third_party/dav1d/src/thread_task.h => third_party/dav1d/src/log.c
rename : third_party/dav1d/src/cpu.h => third_party/dav1d/src/log.h
extra : moz-landing-system : lando
2019-03-19 17:35:09 +00:00
Sylvestre Ledru
ab23ebfb0e Bug 1535948 - Fix the indentation: the code wasn't executed r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D24035

--HG--
extra : moz-landing-system : lando
2019-03-19 16:02:05 +00:00
Coroiu Cristina
9df7619fc3 Merge mozilla-central to autoland a=merge 2019-03-16 23:56:14 +02:00
Alvaro Serero
a3ce49b1f5 Bug 1529504 - Fix two flake8 warnings in static analysis (mach_commands.py) r=sylvestre
--HG--
extra : amend_source : 16f845e4b3f2e706fc2904c7f61ab32a434ba0ef
2019-03-16 11:53:50 +01:00
Mike Hommey
c7e738d69d Bug 1535501 - Allow to get full crashreporter symbols on artifact builds. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D23605

--HG--
extra : moz-landing-system : lando
2019-03-15 21:56:14 +00:00
Mike Hommey
90c2c15343 Bug 1534522 - Allow to specify different task ids for artifacts. r=dmajor
Bug 1528123 added a way to specify a task id to influence mach
artifact. In the case of upcoming EME-enabled win64-aarch64 builds, we
need to be able to specify two different task ids, which a single
environment variable doesn't really allow.

So extend the scheme to check environment variables with the build
type included in the variable name.

Differential Revision: https://phabricator.services.mozilla.com/D23101

--HG--
extra : moz-landing-system : lando
2019-03-13 23:08:06 +00:00
Benjamin Bouvier
906829913d Bug 1534630: Slightly optimize scheduling of clang-format jobs; r=andi
Instead of over-estimating the number of items in a batch, do the opposite:
slightly under-estimate the number of items, then dispatch outstanding items
(by just adding one item to each batch).

Differential Revision: https://phabricator.services.mozilla.com/D23141

--HG--
extra : moz-landing-system : lando
2019-03-12 16:30:12 +00:00
Aki Sasaki
92cf5ecd6a Bug 1534506 - download chain-of-trust.json instead of chainOfTrust.json.asc r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D23081

--HG--
extra : moz-landing-system : lando
2019-03-12 04:53:57 +00:00
Andi-Bogdan Postelnicu
dc4907ab25 Bug 1529691 - use futures in order to process in parallel clang-format. r=bbouvier
Parts of this patch were taken from the original work of :bbouvier in Bug 1521772.
We needed to revert Bug 1521772 since it broken Windows compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D23100

--HG--
extra : moz-landing-system : lando
2019-03-12 18:58:46 +00:00
Nathan Froyd
2f1020dc41 Bug 1533149 - add checking messages for libstdcxx_version; r=glandium
It's occasionally useful to know what versions are being discovered for
these variables.  It's also convenient for logs from automation to
contain all the relevant information, rather than setting up a loaner
and running all the commands yourself.

Differential Revision: https://phabricator.services.mozilla.com/D22385

--HG--
extra : moz-landing-system : lando
2019-03-10 00:11:09 +00:00
Mike Hommey
baba0e3cec Bug 1529894 - Change jar log content. r=aklotz,chmanchester
The jar log is used for optimization of the packaged jar files according
to their usage patterns during a profile run. The current content of the
file currently come with 2 caveats:
- it contains entries for jar archives that aren't relevant to
  packaging, which is not a problem in itself, but see below.
- it contains full paths for jar archives that may not correspond to the
  location of the packaged directory (on e.g. Android, where the build
  almost certainly doesn't happen in the same directory on the host as
  Fennec runs in the emulator/on the device).

The current JarLog code does somehow handle the various ways paths are
currently presented, but it's clearly missing code to map the paths in
the log to packaged paths. Instead of requiring manual work and extra
build options to handle this mapping, and considering the caveats above,
it's just simpler to log archive paths as if they were relative to the
packaged application directory in a build, and use that during
packaging.

Depends on D21655

Differential Revision: https://phabricator.services.mozilla.com/D21656

--HG--
extra : moz-landing-system : lando
2019-03-07 20:46:52 +00:00
Mike Hommey
dae76481a6 Bug 1530908 - Move list of supported artifact builds to an importable module. r=chmanchester
Depends on D22054

Differential Revision: https://phabricator.services.mozilla.com/D22055

--HG--
extra : moz-landing-system : lando
2019-03-06 22:47:32 +00:00
Gurzau Raul
fe771d472a Backed out 4 changesets (bug 1529894) for xperf failures on a CLOSED TREE.
Backed out changeset d31f88692394 (bug 1529894)
Backed out changeset e2d7b59776a2 (bug 1529894)
Backed out changeset 3c37fd9d30d5 (bug 1529894)
Backed out changeset e93f4871731b (bug 1529894)

--HG--
extra : rebase_source : ae317f856e08d09ec655cb7b7a87c120f3c626a5
2019-03-06 13:06:13 +02:00
Gurzau Raul
d7094fba48 Bug 1529894 - Fix more flake failures on a CLOSED TREE. 2019-03-06 09:35:59 +02:00
Gurzau Raul
7dc522fa55 Bug 1529894 - fix flake failure on a CLOSED TREE. 2019-03-06 09:14:00 +02:00
Mike Hommey
bef82f111d Bug 1529894 - Change jar log content. r=aklotz,chmanchester
The jar log is used for optimization of the packaged jar files according
to their usage patterns during a profile run. The current content of the
file currently come with 2 caveats:
- it contains entries for jar archives that aren't relevant to
  packaging, which is not a problem in itself, but see below.
- it contains full paths for jar archives that may not correspond to the
  location of the packaged directory (on e.g. Android, where the build
  almost certainly doesn't happen in the same directory on the host as
  Fennec runs in the emulator/on the device).

The current JarLog code does somehow handle the various ways paths are
currently presented, but it's clearly missing code to map the paths in
the log to packaged paths. Instead of requiring manual work and extra
build options to handle this mapping, and considering the caveats above,
it's just simpler to log archive paths as if they were relative to the
packaged application directory in a build, and use that during
packaging.

Depends on D21655

Differential Revision: https://phabricator.services.mozilla.com/D21656

--HG--
extra : moz-landing-system : lando
2019-03-06 01:18:10 +00:00
Jason Laster
90414405ea Revert "Backed out changeset 7f51bc3757d9 (bug 1497839) for ESlint failure at build-debugger.js. CLOSED TREE"
This reverts commit 2b1fea9435191242f8aadc04da3ed1b0e0d99b02.

Bug 1497839 - fix eslint issues for babel build. r=jlast

Differential Revision: https://phabricator.services.mozilla.com/D22252

--HG--
rename : devtools/client/debugger/new/build/babel.js => devtools/client/shared/build/babel.js
rename : devtools/client/debugger/new/build/copy-module.js => devtools/client/shared/build/build-debugger.js
extra : moz-landing-system : lando
2019-03-06 05:10:25 +00:00
Brindusan Cristian
c11291ea12 Backed out changeset 7f51bc3757d9 (bug 1497839) for ESlint failure at build-debugger.js. CLOSED TREE
--HG--
rename : devtools/client/shared/build/babel.js => devtools/client/debugger/new/build/babel.js
rename : devtools/client/shared/build/build-debugger.js => devtools/client/debugger/new/build/copy-module.js
extra : histedit_source : a4f0d58045b176391d54c3aff09072a67f80cafc
2019-03-06 06:46:38 +02:00
David Walsh
4222a51e78 Bug 1497839 - Provide method for NetMonitor to use JSX r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D20888

--HG--
rename : devtools/client/debugger/new/build/babel.js => devtools/client/shared/build/babel.js
rename : devtools/client/debugger/new/build/copy-module.js => devtools/client/shared/build/build-debugger.js
extra : moz-landing-system : lando
2019-03-06 03:12:49 +00:00
kerlyn
0f9d749554 Bug 1523835 - Added python/mozbuild/mozpack to the flake8 linter and solved the errors, r=ahal
Before this change linting python/mozbuild brought about many errors. Some of this errors could be fixed using |mach lint --fix|. The remaining errors where fixed in this bug.

Differential Revision: https://phabricator.services.mozilla.com/D20138

--HG--
extra : rebase_source : 8bd3d622d2221b981f08b8a080c1198b002cdc49
extra : amend_source : 3f6a70c1b7104a7c2d83e11fe911942771e331ea
2019-03-01 15:36:45 -05:00
Mike Hommey
6bfaa82f51 Bug 1531634 - Change how OMNIJAR_NAME is handled for fennec builds. r=nalexander
Fennec has a value of OMNIJAR_NAME that contains a directory, contrary
to other platforms, and relies in post-packaging, pre-unpacking steps to
accommodate with the difference.

With this change, we just make the packaging and unpacking steps aware
of this setup, and make allow them to pack/unpack resources in foo/
under foo/$OMNIJAR_NAME, whether $OMNIJAR_NAME is a file name or a path.

This will, further down the road, allow the packager code to handle jar
logs from PGO instrumentation without munging them.

Differential Revision: https://phabricator.services.mozilla.com/D21654

--HG--
extra : moz-landing-system : lando
2019-03-01 21:49:47 +00:00
Mike Shal
f63b51acd7 Bug 1525474 - Disallow filenames in LOCAL_INCLUDES; r=nalexander
The underlying backends only support directories in LOCAL_INCLUDES
(since these ultimately translate to -I arguments to the compiler). We
should disallow filenames here, in case a developer accidentally
specifies a header file instead of a directory.

Differential Revision: https://phabricator.services.mozilla.com/D21698

--HG--
extra : moz-landing-system : lando
2019-03-01 17:51:42 +00:00
Thomas Daede
7aecfc00e9 Bug 1529305 - Emit cv8 debug info with nasm even on mingw. r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D21437

--HG--
extra : moz-landing-system : lando
2019-02-28 00:42:34 +00:00
Cosmin Sabou
6b5e2116b0 Merge autoland to mozilla-central. a=merge 2019-02-28 12:54:11 +02:00
Daniel Varga
e91fc4acc1 Merge autoland to mozilla-central. a=merge 2019-02-27 18:29:22 +02:00
Daniel Varga
e417e61290 Backed out changeset b59977d42a4d (bug 1521772) requested by Andi. a=backout 2019-02-27 18:27:08 +02:00
Mike Hommey
3f0f49376d Bug 1529799 - Prevent recursive resolution of options during imply_option. r=chmanchester
In cases like those in the added unit test, explicit options on the
command line could end up being silently ignored. So instead of that happening,
error out. Unfortunately, the error message is not entirely accurate,
but it's better than nothing. It's rare anyways (I only stumbled upon it
because I was trying to do something fishy), and correlation between the
error message and the corresponding changes should make it clear what's
going on.

Depends on D20822

Differential Revision: https://phabricator.services.mozilla.com/D20823

--HG--
extra : moz-landing-system : lando
2019-02-26 22:05:24 +00:00
Mike Hommey
76ac8faa23 Bug 1529799 - Handle dependency loops involving imply_option more gracefully. r=chmanchester
Currently, when a dependency loop involve imply_option, it is possible
to end up with an error message saying the implied option is unknown,
when it fact it is. So instead of bailing out with a weird error
message, try to make things work (if the implied value is not different
from what's known), or bail with a more accurate message.

Differential Revision: https://phabricator.services.mozilla.com/D20822

--HG--
extra : moz-landing-system : lando
2019-02-26 22:05:40 +00:00
Mike Hommey
c7022eb656 Bug 1530587 - Don't optimize jars without preloading/reordering data. r=chmanchester
Optimizing jars without preloading/reordering data only moves the
jar central directory to the beginning of the file, which, without
preloading information, is not very useful. Let's just stop doing it if
there's not going to be preloading/reordering information at all.

Differential Revision: https://phabricator.services.mozilla.com/D21170

--HG--
extra : moz-landing-system : lando
2019-02-27 01:26:46 +00:00
Kartikaya Gupta
bb22600a64 Bug 1530016 - Drop bogus entries from the generated-sources tarball. r=froydnj
On Android we apparently try to include the cpufeatures.c file from the
NDK as part of the generated-sources tarball. While this works, it makes
tar drop the bogus entry for safety reasons when unpacking the archive.
It also makes tar return an error, which is undesirable for searchfox.
It's better to just skip the entry when building the tarball.

Differential Revision: https://phabricator.services.mozilla.com/D20942

--HG--
extra : moz-landing-system : lando
2019-02-27 17:45:27 +00:00
Ted Mielczarek
0539de896a bug 1481614 - detect icecream usage in build telemetry. r=chmanchester,glandium
This patch adds detection for when icecream is in use to build telemetry.
icecream is commonly enabled in two ways: by either setting CC/CXX to point
to icecream's cc/c++ symlinks, or by setting adding
mk_add_options 'export CCACHE_PREFIX=icecc' to a mozconfig when also using
ccache. For the former, this patch adds a simple configure check to see
if CXX is a symlink to a file named 'icecc'. For the latter this patch adds
CCACHE_PREFIX as a configure subst to capture the value.

We don't currently have a facility for writing telemetry tests that depend on
configure values. Local manual testing shows that it does work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D18138

--HG--
extra : moz-landing-system : lando
2019-02-25 19:06:27 +00:00
Mike Hommey
f4f3f52f4d Bug 1529195 - Allow to pass a different directory than $DIST to install artifacts to. r=chmanchester
Depends on D20446

Differential Revision: https://phabricator.services.mozilla.com/D20447

--HG--
extra : moz-landing-system : lando
2019-02-21 22:53:31 +00:00
Mike Hommey
d3af9d50b9 Bug 1529195 - Allow to opt-in to symbols/host-bin artifacts from the CLI. r=chmanchester
and to opt-out of test artifacts.

Depends on D20445

Differential Revision: https://phabricator.services.mozilla.com/D20446

--HG--
extra : moz-landing-system : lando
2019-02-21 22:53:43 +00:00
Mike Hommey
79bf8a087d Bug 1529195 - Remove the get_job_details function. r=chmanchester
It is now not useful to keep as a separate function.

Depends on D20444

Differential Revision: https://phabricator.services.mozilla.com/D20445

--HG--
extra : moz-landing-system : lando
2019-02-21 22:53:59 +00:00
Mike Hommey
7e1a73e686 Bug 1529195 - Cache list of artifacts and task id for a given set of (tree, job, rev). r=chmanchester
Instead of having cache misses for all variables that may vary when
getting job details. While the currently used variables are mostly
constants, we're going to introduce some flexibility in an subsequent
change.

Depends on D20443

Differential Revision: https://phabricator.services.mozilla.com/D20444

--HG--
extra : moz-landing-system : lando
2019-02-21 22:54:32 +00:00
Mike Hommey
b98e6f78b9 Bug 1529195 - Move per-job package regexp to per-platform. r=chmanchester
Once all tests regexp are gone, we come to realize that all the package
regexp are the same for each ArtifactJob subclass, some we move the
definitions to the subclasses.

Depends on D20442

Differential Revision: https://phabricator.services.mozilla.com/D20443

--HG--
extra : moz-landing-system : lando
2019-02-21 22:54:42 +00:00
Mike Hommey
097ed542ab Bug 1529195 - Remove per-job tests regexp definition. r=chmanchester
Once the firefox-* and fennec-* regexp are gone, we come to realize
that all jobs have the same regexp for tests, so we can just
use that across the board and remove the definition from JOB_DETAILS.

Depends on D20441

Differential Revision: https://phabricator.services.mozilla.com/D20442

--HG--
extra : moz-landing-system : lando
2019-02-21 22:54:49 +00:00
Mike Hommey
e266c550f5 Bug 1529195 - Remove artifact filters for firefox-* and fennec-*. r=chmanchester
The filters were added back when buildbot was still used, and some
artifacts were still using file names beginning with "firefox" or
"fennec".
That is not true now that all builds are on taskcluster, and for all of
them, they are now target.$ext.

Differential Revision: https://phabricator.services.mozilla.com/D20441

--HG--
extra : moz-landing-system : lando
2019-02-21 22:55:08 +00:00
Mike Hommey
de6692d10a Bug 1528892 - Make preprocessor output more reproducible. r=froydnj
On CI, Windows builds start from different directories on every build,
except when sccache is enabled. This affects many build types, such as
l10n repacks, and the preprocessor likes to put full paths in its
output, which means it includes those different directories, making the
builds non reproducible.

This changes the preprocessor to replace the source and object
directories with generic strings.

Differential Revision: https://phabricator.services.mozilla.com/D20421

--HG--
extra : moz-landing-system : lando
2019-02-21 05:09:52 +00:00
Mike Hommey
c71f4ec3ee Bug 1529139 - Mark .asm GENERATED_FILES as required_for_compile. r=froydnj
This will avoid trying to generate them during artifact builds.

Depends on D20587

Differential Revision: https://phabricator.services.mozilla.com/D20436

--HG--
extra : moz-landing-system : lando
2019-02-21 00:12:52 +00:00
Marco Castelluccio
19bbc158b4 Bug 1491004 - Exclude Visual Studio files from coverage instrumentation. r=chmanchester,calixte,glandium
Differential Revision: https://phabricator.services.mozilla.com/D18511

--HG--
extra : moz-landing-system : lando
2019-02-20 12:18:56 +00:00
Marco Castelluccio
2dffc6b8bf Bug 1491004 - Set CFLAGS and CXXFLAGS in toolchain.configure for coverage builds. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D18510

--HG--
extra : moz-landing-system : lando
2019-02-20 12:18:32 +00:00
Csoregi Natalia
e2ff25bf86 Backed out changeset 88a27dc859b9 (bug 1529139) for bustage due to missing fficonfig.h. CLOSED TREE 2019-02-20 14:19:27 +02:00
Mike Hommey
49e3e41e5c Bug 1529139 - Mark .asm GENERATED_FILES as required_for_compile. r=froydnj
This will avoid trying to generate them during artifact builds.

Differential Revision: https://phabricator.services.mozilla.com/D20436

--HG--
extra : moz-landing-system : lando
2019-02-20 11:17:31 +00:00
Mike Hommey
41d0022e0c Bug 1528860 - Synchronize artifact command --job options with artifacts.JOB_DETAILS. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D20227
2019-02-20 07:46:41 +09:00
Mike Hommey
2ead86b7c1 Bug 1528241 - Add a trace mode to python configure that logs internal values. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D19940
2019-02-20 07:46:22 +09:00
Mike Hommey
b2f1a3fc7f Bug 1528194 - Run config.sub when split_target fails when not running it. r=mshal
In bug 1522354, we changed host and target detection to not invoke
config.sub, assuming the output from config.guess would satisfy our
needs in split_target.

It turns out that on some plaforms, that doesn't work out, so, while we
still skip config.sub, we now catch errors from split_target when doing
so, and try again after running config.sub when split_target fails.

Differential Revision: https://phabricator.services.mozilla.com/D19937
2019-02-20 07:46:17 +09:00
Mike Hommey
8a74f32d09 Bug 1528194 - Print mach-invoked pseudo-configure output when it fails. r=mshal
Since bug 1522788, mach invokes a part of configure as part of getting
mozconfig and target information for its own purpose. The problem is
that the sandboxed code may sys.exit(), which then makes mach silently
exit.

So when the sandboxed configure code does sys.exit(), instead of
silently failing, we catch the exit call, and print out what we
captured.

Differential Revision: https://phabricator.services.mozilla.com/D19936
2019-02-20 07:46:09 +09:00
Mike Hommey
4b2309140a Bug 1528123 - Allow artifact builds to pull from a specific taskid. r=chmanchester
Currently, artifact builds pull from some task they determine from the
job type, and finding a pushhead.

Sometimes that latter fails, most notably on automation. But automation
can already know the right task to use without guesswork.

This change allows artifact builds to pull from a specific taskid given
through an environment variable, and make tasks from the artifact-build
kind (not the --artifact builds from try) use that.

Remove the workaround from bug 1382982 because it's now dead code.

Differential Revision: https://phabricator.services.mozilla.com/D19881
2019-02-20 07:45:55 +09:00
Emilio Cobos Álvarez
61afcd6fcc Bug 1528643 - Fix mach clang-format -c in mercurial. r=sylvestre
Turns out hg diff works differently, and when Miko tried to use this
option last week he realized it didn't work quite as expected.

Differential Revision: https://phabricator.services.mozilla.com/D20102

--HG--
extra : moz-landing-system : lando
2019-02-18 08:13:45 +00:00
Cosmin Sabou
8cb8ef3973 Merge mozilla-central to autoland. 2019-02-15 20:50:34 +02:00
Benjamin Bouvier
ab4bcb3e97 Bug 1521772: Run clang-format in parallel; r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D19943

--HG--
extra : moz-landing-system : lando
2019-02-15 16:32:48 +00:00
Daniel Varga
1e9aa9e1fc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 03:51:05 +02:00
Mike Hommey
ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

Differential Revision: https://phabricator.services.mozilla.com/D19615

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Geoff Brown
7e2ceb9259 Bug 1527011 - Support win64-aarch64 artifact builds; r=nalexander 2019-02-12 18:03:38 -07:00
Andi-Bogdan Postelnicu
843d0d6fcf Bug 1527286 - For 'mach clang-format' don't pass files that we don't exist on the disk. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D19481

--HG--
extra : moz-landing-system : lando
2019-02-12 12:54:22 +00:00
Mike Hommey
e3b77d6ed3 Bug 1526062 - Add a configure lint for undefined variables. r=nalexander
There are cases that can be easily detected where an undefined variable
is used, and such mistakes seem to happen more often than they should,
as all the errors fixed in the previous patches (that this new lint
caught).

Depends on D19112

Differential Revision: https://phabricator.services.mozilla.com/D19113

--HG--
extra : moz-landing-system : lando
2019-02-08 20:38:05 +00:00
Mike Hommey
83b2adb600 Bug 1526062 - Improve error reporting by the configure lint. r=nalexander
Currently, running the configure lint will raise errors with little
context, if any, which can make finding the cause of the errors tedious.

So instead of raising exceptions directly, we use a hack to make the
exception appear as if they had been thrown at the code location an
issue is reported for, which makes the test harness print more useful
context.

With more context, printed out, some exception messages can be made
lighter.

The added _raise_from method does more than is necessary here, but will
be fully used in a new check shortly.

Depends on D19111

Differential Revision: https://phabricator.services.mozilla.com/D19112

--HG--
extra : moz-landing-system : lando
2019-02-08 22:47:02 +00:00
Mike Hommey
845718811d Bug 1526062 - Add AssertionError to the python configure sandbox builtins. r=nalexander
Using the `assert` keyword actually generates bytecode that uses the
`AssertionError` class under the hood. Ideally, we should probably not
use asserts in python configure, but there are currently so many that
it's easier to allow it, until a better strategy is decided upon.

Depends on D19110

Differential Revision: https://phabricator.services.mozilla.com/D19111

--HG--
extra : moz-landing-system : lando
2019-02-08 16:57:55 +00:00
Mike Hommey
39bdbdd823 Bug 1525999 - Default to arm instead of armv7a for android builds. r=nalexander
That makes target.toolchain match what the NDK provides.

Differential Revision: https://phabricator.services.mozilla.com/D19116

--HG--
extra : moz-landing-system : lando
2019-02-08 22:37:25 +00:00
arthur.iakab
27c92bb1ae Backed out changeset 51697f8232c5 (bug 1525999) for causing multiple Android failures on build/target.raptor.tests.tar.gz CLOSED TREES 2019-02-08 19:48:55 +02:00
Mike Hommey
f36d444aa0 Bug 1525999 - Default to arm instead of armv7a for android builds. r=nalexander
That makes target.toolchain match what the NDK provides.

Differential Revision: https://phabricator.services.mozilla.com/D19116

--HG--
extra : moz-landing-system : lando
2019-02-08 16:45:55 +00:00
Kris Maglione
bb97eb4646 Bug 1524688: Part 2 - Convert BrowserGlue and friends to static registration. r=mconley
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
rename : browser/components/nsBrowserGlue.js => browser/components/BrowserGlue.jsm
rename : browser/components/protocolhandler/WebProtocolHandlerRegistrar.js => browser/components/protocolhandler/WebProtocolHandlerRegistrar.jsm
extra : source : 9201a7ea3c543310df1612b57ab72b883c94e07e
2019-01-29 17:44:35 -08:00
Csoregi Natalia
ecd94d6986 Backed out 79 changesets (bug 1524687, bug 1524688) for crashes on mozilla::dom::ScreenOrientation::ScreenOrientation(nsPIDOMWindowInner *,nsScreen *). CLOSED TREE
Backed out changeset 68a001a42406 (bug 1524687)
Backed out changeset 328de611bcd3 (bug 1524688)
Backed out changeset 68cffca6927a (bug 1524687)
Backed out changeset 81dc12cc9257 (bug 1524688)
Backed out changeset c7c49f64048f (bug 1524688)
Backed out changeset fb23a0271da0 (bug 1524688)
Backed out changeset 0c1d1248e59e (bug 1524688)
Backed out changeset 9e9ec7de4160 (bug 1524688)
Backed out changeset de0b9993bd5d (bug 1524688)
Backed out changeset 92877cf4fe33 (bug 1524688)
Backed out changeset b4938f2ff8fd (bug 1524688)
Backed out changeset 230d2feaf941 (bug 1524688)
Backed out changeset 6c63bc240972 (bug 1524688)
Backed out changeset 0ad5465eace1 (bug 1524688)
Backed out changeset 1e75ce91029b (bug 1524688)
Backed out changeset 34a978503b1d (bug 1524688)
Backed out changeset 183602e8a30b (bug 1524688)
Backed out changeset 12a9135dc005 (bug 1524688)
Backed out changeset 978ef5dac9db (bug 1524688)
Backed out changeset 28105bf7bf6a (bug 1524688)
Backed out changeset a9fb74beaf2b (bug 1524688)
Backed out changeset fe106b369a72 (bug 1524688)
Backed out changeset e657e77d4271 (bug 1524688)
Backed out changeset 09f626870ad0 (bug 1524688)
Backed out changeset fe9b6695212e (bug 1524688)
Backed out changeset 995ea188bc31 (bug 1524688)
Backed out changeset 01c4d3edb1b0 (bug 1524688)
Backed out changeset 1bb7dfbb9f48 (bug 1524688)
Backed out changeset 56c61e0a1f45 (bug 1524688)
Backed out changeset c819943ff466 (bug 1524688)
Backed out changeset a1dd5cec066e (bug 1524688)
Backed out changeset 517838ee0c3c (bug 1524688)
Backed out changeset f509a5759fdf (bug 1524688)
Backed out changeset 56f5c8f0d708 (bug 1524688)
Backed out changeset 5746311ef859 (bug 1524688)
Backed out changeset df02f7d25212 (bug 1524688)
Backed out changeset c9846136d105 (bug 1524688)
Backed out changeset 2bd48db9cd0f (bug 1524688)
Backed out changeset ff120b4eeb79 (bug 1524688)
Backed out changeset fe583e7aae8d (bug 1524688)
Backed out changeset 18f156d6355a (bug 1524688)
Backed out changeset f4eaebbe2e0f (bug 1524688)
Backed out changeset bf6b18e23f69 (bug 1524688)
Backed out changeset dd89eb7e9b0d (bug 1524688)
Backed out changeset 4cbbb367ba0b (bug 1524688)
Backed out changeset 4ed0cf6be580 (bug 1524688)
Backed out changeset d8efb5ed62b1 (bug 1524688)
Backed out changeset ea347d57d73a (bug 1524688)
Backed out changeset 911689ef9f33 (bug 1524688)
Backed out changeset 28670fdc418d (bug 1524688)
Backed out changeset 38e1e42a0fb0 (bug 1524688)
Backed out changeset 35a5f031dd1e (bug 1524688)
Backed out changeset b586d55d76d5 (bug 1524688)
Backed out changeset 6dcacead1746 (bug 1524688)
Backed out changeset 9895239d8ac6 (bug 1524688)
Backed out changeset 25f982fd53bd (bug 1524688)
Backed out changeset 4fb0f0a59fe2 (bug 1524688)
Backed out changeset fdc6c4ed241a (bug 1524688)
Backed out changeset 5ce5986068f0 (bug 1524688)
Backed out changeset ab64ed7388ae (bug 1524688)
Backed out changeset 56607c5a301a (bug 1524688)
Backed out changeset 6b3684e7d8f9 (bug 1524688)
Backed out changeset ee28258a5724 (bug 1524688)
Backed out changeset 9201a7ea3c54 (bug 1524688)
Backed out changeset d5dca413e2da (bug 1524688)
Backed out changeset 68eb174a337b (bug 1524688)
Backed out changeset 625f71135038 (bug 1524687)
Backed out changeset 46e13c453538 (bug 1524687)
Backed out changeset 614be688767f (bug 1524687)
Backed out changeset 9c24919ac5c2 (bug 1524687)
Backed out changeset b9862758b98c (bug 1524687)
Backed out changeset 92d9e927deec (bug 1524687)
Backed out changeset f4ee175bc5bd (bug 1524687)
Backed out changeset 191afe83da2e (bug 1524687)
Backed out changeset c58caf41bb94 (bug 1524687)
Backed out changeset df95a56dae04 (bug 1524687)
Backed out changeset 10c69df4444d (bug 1524687)
Backed out changeset 219b84a58f50 (bug 1524687)
Backed out changeset e96e61bd282f (bug 1524687)

--HG--
rename : browser/components/migration/360seProfileMigrator.jsm => browser/components/migration/360seProfileMigrator.js
rename : browser/components/migration/ChromeProfileMigrator.jsm => browser/components/migration/ChromeProfileMigrator.js
rename : browser/components/migration/EdgeProfileMigrator.jsm => browser/components/migration/EdgeProfileMigrator.js
rename : browser/components/migration/FirefoxProfileMigrator.jsm => browser/components/migration/FirefoxProfileMigrator.js
rename : browser/components/migration/IEProfileMigrator.jsm => browser/components/migration/IEProfileMigrator.js
rename : browser/components/migration/ProfileMigrator.jsm => browser/components/migration/ProfileMigrator.js
rename : browser/components/migration/SafariProfileMigrator.jsm => browser/components/migration/SafariProfileMigrator.js
rename : browser/components/newtab/AboutNewTabService.jsm => browser/components/newtab/aboutNewTabService.js
rename : browser/components/BrowserContentHandler.jsm => browser/components/nsBrowserContentHandler.js
rename : browser/components/BrowserGlue.jsm => browser/components/nsBrowserGlue.js
rename : browser/components/payments/PaymentUIService.jsm => browser/components/payments/paymentUIService.js
rename : browser/components/protocolhandler/WebProtocolHandlerRegistrar.jsm => browser/components/protocolhandler/WebProtocolHandlerRegistrar.js
rename : devtools/startup/AboutDebuggingNewRegistration.jsm => devtools/startup/aboutdebugging-new-registration.js
rename : devtools/startup/AboutDebuggingRegistration.jsm => devtools/startup/aboutdebugging-registration.js
rename : devtools/startup/aboutdevtools/AboutDevToolsRegistration.jsm => devtools/startup/aboutdevtools/aboutdevtools-registration.js
rename : devtools/startup/AboutDevToolsToolboxRegistration.jsm => devtools/startup/aboutdevtoolstoolbox-registration.js
rename : devtools/startup/DevToolsStartup.jsm => devtools/startup/devtools-startup.js
rename : dom/base/ProcessSelector.jsm => dom/base/ProcessSelector.js
rename : dom/base/SlowScriptDebug.jsm => dom/base/SlowScriptDebug.js
rename : dom/base/ContentAreaDropListener.jsm => dom/base/contentAreaDropListener.js
rename : dom/browser-element/BrowserElementParent.jsm => dom/browser-element/BrowserElementParent.js
rename : dom/console/ConsoleAPIStorage.jsm => dom/console/ConsoleAPIStorage.js
rename : dom/html/HTMLMenuBuilder.jsm => dom/html/htmlMenuBuilder.js
rename : dom/media/PeerConnection.jsm => dom/media/PeerConnection.js
rename : dom/notification/NotificationStorage.jsm => dom/notification/NotificationStorage.js
rename : dom/presentation/PresentationDataChannelSessionTransport.jsm => dom/presentation/PresentationDataChannelSessionTransport.js
rename : dom/presentation/PresentationNetworkHelper.jsm => dom/presentation/PresentationNetworkHelper.js
rename : dom/presentation/provider/AndroidCastDeviceProvider.jsm => dom/presentation/provider/AndroidCastDeviceProvider.js
rename : dom/presentation/provider/PresentationControlService.jsm => dom/presentation/provider/PresentationControlService.js
rename : dom/push/Push.jsm => dom/push/Push.js
rename : dom/push/PushComponents.jsm => dom/push/PushComponents.js
rename : dom/system/NetworkGeolocationProvider.jsm => dom/system/NetworkGeolocationProvider.js
rename : layout/tools/recording/RecordingCmdLine.jsm => layout/tools/recording/recording-cmdline.js
rename : netwerk/dns/mdns/libmdns/DNSServiceDiscovery.jsm => netwerk/dns/mdns/libmdns/nsDNSServiceDiscovery.js
rename : netwerk/protocol/http/UAOverridesBootstrapper.jsm => netwerk/protocol/http/UAOverridesBootstrapper.js
rename : netwerk/protocol/http/WellKnownOpportunisticUtils.jsm => netwerk/protocol/http/WellKnownOpportunisticUtils.js
rename : services/fxaccounts/FxAccountsPush.jsm => services/fxaccounts/FxAccountsPush.js
rename : services/settings/RemoteSettingsComponents.jsm => services/settings/RemoteSettingsComponents.js
rename : services/sync/Weave.jsm => services/sync/Weave.js
rename : toolkit/components/asyncshutdown/nsAsyncShutdown.jsm => toolkit/components/asyncshutdown/nsAsyncShutdown.js
rename : toolkit/components/backgroundhangmonitor/BHRTelemetryService.jsm => toolkit/components/backgroundhangmonitor/BHRTelemetryService.js
rename : toolkit/components/captivedetect/CaptiveDetect.jsm => toolkit/components/captivedetect/captivedetect.js
rename : toolkit/components/cleardata/ClearDataService.jsm => toolkit/components/cleardata/ClearDataService.js
rename : toolkit/components/contentprefs/ContentPrefService2.jsm => toolkit/components/contentprefs/ContentPrefService2.js
rename : toolkit/components/crashes/CrashService.jsm => toolkit/components/crashes/CrashService.js
rename : toolkit/components/crashmonitor/nsCrashMonitor.jsm => toolkit/components/crashmonitor/nsCrashMonitor.js
rename : toolkit/components/downloads/DownloadLegacy.jsm => toolkit/components/downloads/DownloadLegacy.js
rename : toolkit/components/gfx/SanityTest.jsm => toolkit/components/gfx/SanityTest.js
rename : toolkit/components/mozintl/mozIntl.jsm => toolkit/components/mozintl/mozIntl.js
rename : toolkit/components/mozprotocol/MozProtocolHandler.jsm => toolkit/components/mozprotocol/mozProtocolHandler.js
rename : toolkit/components/normandy/ShieldContentProcess.jsm => toolkit/components/normandy/shield-content-process.js
rename : toolkit/components/DefaultCLH.jsm => toolkit/components/nsDefaultCLH.js
rename : toolkit/components/passwordmgr/LoginInfo.jsm => toolkit/components/passwordmgr/nsLoginInfo.js
rename : toolkit/components/passwordmgr/LoginManager.jsm => toolkit/components/passwordmgr/nsLoginManager.js
rename : toolkit/components/passwordmgr/LoginManagerPrompter.jsm => toolkit/components/passwordmgr/nsLoginManagerPrompter.js
rename : toolkit/components/places/ColorAnalyzer.jsm => toolkit/components/places/ColorAnalyzer.js
rename : toolkit/components/places/PageIconProtocolHandler.jsm => toolkit/components/places/PageIconProtocolHandler.js
rename : toolkit/components/places/PlacesCategoriesStarter.jsm => toolkit/components/places/PlacesCategoriesStarter.js
rename : toolkit/components/places/UnifiedComplete.jsm => toolkit/components/places/UnifiedComplete.js
rename : toolkit/components/places/PlacesExpiration.jsm => toolkit/components/places/nsPlacesExpiration.js
rename : toolkit/components/places/TaggingService.jsm => toolkit/components/places/nsTaggingService.js
rename : toolkit/components/processsingleton/ContentProcessSingleton.jsm => toolkit/components/processsingleton/ContentProcessSingleton.js
rename : toolkit/components/processsingleton/MainProcessSingleton.jsm => toolkit/components/processsingleton/MainProcessSingleton.js
rename : toolkit/components/prompts/src/Prompter.jsm => toolkit/components/prompts/src/nsPrompter.js
rename : toolkit/components/remotebrowserutils/RemoteWebNavigation.jsm => toolkit/components/remotebrowserutils/RemoteWebNavigation.js
rename : toolkit/components/satchel/FormHistoryStartup.jsm => toolkit/components/satchel/FormHistoryStartup.js
rename : toolkit/components/satchel/FormAutoComplete.jsm => toolkit/components/satchel/nsFormAutoComplete.js
rename : toolkit/components/satchel/InputListAutoComplete.jsm => toolkit/components/satchel/nsInputListAutoComplete.js
rename : toolkit/components/search/SearchService.jsm => toolkit/components/search/nsSearchService.js
rename : toolkit/components/search/SearchSuggestions.jsm => toolkit/components/search/nsSearchSuggestions.js
rename : toolkit/components/search/Sidebar.jsm => toolkit/components/search/nsSidebar.js
rename : toolkit/components/telemetry/TelemetryStartup.jsm => toolkit/components/telemetry/TelemetryStartup.js
rename : toolkit/components/terminator/TerminatorTelemetry.jsm => toolkit/components/terminator/nsTerminatorTelemetry.js
rename : toolkit/components/thumbnails/PageThumbsStorageService.jsm => toolkit/components/thumbnails/PageThumbsStorageService.js
rename : toolkit/components/timermanager/UpdateTimerManager.jsm => toolkit/components/timermanager/nsUpdateTimerManager.js
rename : toolkit/components/tooltiptext/TooltipTextProvider.jsm => toolkit/components/tooltiptext/TooltipTextProvider.js
rename : toolkit/components/url-classifier/UrlClassifierHashCompleter.jsm => toolkit/components/url-classifier/nsUrlClassifierHashCompleter.js
rename : toolkit/components/url-classifier/UrlClassifierLib.jsm => toolkit/components/url-classifier/nsUrlClassifierLib.js
rename : toolkit/components/url-classifier/UrlClassifierListManager.jsm => toolkit/components/url-classifier/nsUrlClassifierListManager.js
rename : toolkit/components/urlformatter/URLFormatter.jsm => toolkit/components/urlformatter/nsURLFormatter.js
rename : toolkit/components/utils/SimpleServices.jsm => toolkit/components/utils/simpleServices.js
rename : toolkit/components/xulstore/XULStore.jsm => toolkit/components/xulstore/XULStore.js
rename : toolkit/mozapps/downloads/HelperAppDlg.jsm => toolkit/mozapps/downloads/nsHelperAppDlg.js
rename : toolkit/mozapps/extensions/amContentHandler.jsm => toolkit/mozapps/extensions/amContentHandler.js
rename : toolkit/mozapps/extensions/amInstallTrigger.jsm => toolkit/mozapps/extensions/amInstallTrigger.js
rename : toolkit/mozapps/extensions/amWebAPI.jsm => toolkit/mozapps/extensions/amWebAPI.js
rename : toolkit/mozapps/handling/ContentDispatchChooser.jsm => toolkit/mozapps/handling/nsContentDispatchChooser.js
rename : toolkit/mozapps/update/UpdateService.jsm => toolkit/mozapps/update/nsUpdateService.js
rename : toolkit/mozapps/update/UpdateServiceStub.jsm => toolkit/mozapps/update/nsUpdateServiceStub.js
rename : uriloader/exthandler/WebHandlerApp.jsm => uriloader/exthandler/nsWebHandlerApp.js
2019-02-14 11:50:23 +02:00
Kris Maglione
075d41c086 Bug 1524688: Part 2 - Convert BrowserGlue and friends to static registration. r=mconley
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
rename : browser/components/nsBrowserGlue.js => browser/components/BrowserGlue.jsm
rename : browser/components/protocolhandler/WebProtocolHandlerRegistrar.js => browser/components/protocolhandler/WebProtocolHandlerRegistrar.jsm
extra : rebase_source : ce505f146ec12ec4c191039ae7004a723dc1c376
2019-01-29 17:44:35 -08:00
Mike Hommey
33a69b7eea Bug 1524467 - Use -m32/-m64 in more cases. r=froydnj
In upcoming changes, we're going to use the normal compiler flags for
bindgen instead of having a separate logic for essentially the same
flags (and there's not much reason not to use the same flags after all).

One hiccup, though is that for some reason, --target=i686-linux-gnu
doesn't work with bindgen while it works with clang in the same setup.
But -m32 does.

Considering -m32 and -m64 are standard flags and that we're using them
in many cases, it doesn't hurt to use them instead of --target with
clang.

While we're doing that, we might as well refactor a little to avoid the
multiple branches handling the use of -m32/-m64, and fix the theoretical
compile-x86_64-with-x86-clang-cl case, as well as the weird check for
aarch64.

And because only two cases actually require -Xclang, only one of which
requires a condition, and the control flow is not too complex to avoid
flag duplication, we just remove the append_flag function; it was too
confusing, with all the cases we skipped it when -Xclang was not wanted.

Differential Revision: https://phabricator.services.mozilla.com/D18316

--HG--
extra : moz-landing-system : lando
2019-02-04 17:22:58 +00:00
Cosmin Sabou
8bd3dcb455 Merge mozilla-inbound to mozilla-central. a=merge 2019-02-05 23:58:20 +02:00
Razvan Maries
f86459d5dc Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-05 18:59:13 +02:00
Paolo Amadini
289bde6908 Bug 1523907 - Fix building the new "about:config" page on release channels. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D18082

--HG--
extra : rebase_source : 7094aa1a5dbfc33d7b77a387f12eb14cff66d9e9
2019-02-02 17:49:41 +00:00
Andrew Halberstadt
8bc7850637 Bug 1483228 - [mozboot] Simplify get_state_dir()'s return value r=nalexander
mozboot.util.get_state_dir() returns a tuple of (<path>, <bool). The bool
denotes whether or not the state dir came from an environment variable.

But this value is only used in a single place, and is very easy to test for
anyway. It's not worth the added complexity it imposes on all other consumers
of this function. Let's just make this function return the path.

Differential Revision: https://phabricator.services.mozilla.com/D15723

--HG--
extra : moz-landing-system : lando
2019-02-04 20:52:31 +00:00
Mike Hommey
6c620a55e7 Bug 1523341 - Allow to only pass the CPU to --target and get the right thing for Fennec builds. r=nalexander
Also use armv7a as the default when no target is given at all.

Also change bootstrap to create a simpler mozconfig. The downside is
that the resulting mozconfig would not work when building older
revisions.

Add unit tests for this as well as the simplications added in bug
1523341.

Differential Revision: https://phabricator.services.mozilla.com/D17906

--HG--
extra : moz-landing-system : lando
2019-01-31 18:08:44 +00:00
Tom Prince
dee8c2fbb2 Bug 1517177: Fix hash verification of downloaded toolchains; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D15961

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:26 +00:00
Tom Ritter
55eb3434be Bug 1523003 - Remove the force-ms-compatibility for clang-cl r=glandium 2019-01-27 17:19:57 -06:00
Tom Ritter
aa8edade61 Bug 1485016 - Change clang-cl compiler version to be the clang version rather than MSVC r=glandium
This only affects the compiler version in the build system; not the
version reported by the compiler.

--HG--
extra : histedit_source : 37fc1a2090d872ca5e95d022e9f93b620b2d8dbb
2019-01-29 06:42:53 -06:00
shindli
011ea038cb Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-29 23:54:31 +02:00
shindli
d5c5369355 Merge inbound to mozilla-central. a=merge 2019-01-29 23:37:33 +02:00
Emilio Cobos Álvarez
f85d524658 Bug 1523686 - Support giving a commit or commit range to mach clang-format. r=Ehsan
I always forget to run clang-format before-hand. This allows me to run it on a
particular commit of my tree where the formatting doesn't match the canonical
one.

Differential Revision: https://phabricator.services.mozilla.com/D17955

--HG--
extra : moz-landing-system : lando
2019-01-29 17:33:04 +00:00
Tom Ritter
0a85461461 Bug 1376621 - Search for networking symbols in rust code and fail if they are found. r=glandium
--HG--
extra : amend_source : dfe442d1be95c5f37c959b38c12701d8d14432c1
2019-01-25 12:19:41 -06:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Sebastian Hengst
9ece29fd9b Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
Mike Hommey
95cdfbcd30 Bug 1523204 - Automatically add WIN_DIA_SDK_BIN_DIR to PATH when running dump_syms. r=chmanchester
We can't run dump_syms without the DIA SDK binary directory in $PATH
because dump_syms requires the DIA dll from there.

Obviously, the corresponding test can't run if the DIA SDK binary
directory is not known (rather than when the dia2.h header is not found,
since the build system currently relies on WIN_DIA_SDK_BIN_DIR being
given manually).

Differential Revision: https://phabricator.services.mozilla.com/D17892

--HG--
extra : moz-landing-system : lando
2019-01-29 07:38:12 +00:00
Mike Hommey
5f875e708a Bug 1522788 - Harmonize config.guess handling between mach and configure. r=chmanchester
In fact, "simply" use whatever python configure does to find a shell to
execute config.guess and config.sub, and get both the mozconfig content
and the real, canonicalized target alias. This has the side effect of
making builds with --target=$cpu use a complete obj-$cpu-$os default
objdir instead of obj-$cpu. This will also allow to change the
host-guessing logic without having to duplicate code.

Differential Revision: https://phabricator.services.mozilla.com/D17618

--HG--
extra : moz-landing-system : lando
2019-01-28 22:14:23 +00:00
Mike Hommey
38189d89a7 Bug 1523146 - Remove checks for MSVC < 2017. r=dmajor
We reject MSVC compilers < 2017 already, there's no point checking for
smaller versions after that.

Differential Revision: https://phabricator.services.mozilla.com/D17770

--HG--
extra : moz-landing-system : lando
2019-01-28 03:30:03 +00:00