Граф коммитов

1042 Коммитов

Автор SHA1 Сообщение Дата
David Major ab26127584 Bug 1686321 - Pass patches as arguments to build-compiler-rt.sh r=glandium
rename_gcov_flush_clang_11.patch doesn't apply cleanly to clang 12 and will need to be forked. Turning the filename into a parameter will let us have the tasks exist side by side.

Differential Revision: https://phabricator.services.mozilla.com/D101495
2021-01-14 03:41:08 +00:00
Dan Mosedale e91d8deeea Bug 1684936 - update NodeJS to 10.23.1 for latest sec fixes r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D100810
2021-01-07 17:06:42 +00:00
Mike Hommey 5a27f487f8 Bug 1685854 - Apply gcov_flush patch to compiler-rt. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D101294
2021-01-11 13:45:06 +00:00
Emilio Cobos Álvarez c60fdae7a4 Bug 1685957 - Use xargs to test non-unified builds. r=andi
Passing all the directories to mach allows to take more advantage of
parallelism (plus not having to start up mach and the whole export once
for every directory, which itself takes a bit of time)

This takes:

    GECKO_PATH=. taskcluster/scripts/misc/source-test-clang-non-unified.sh

from about ten mins to under two minutes on my machine.

Differential Revision: https://phabricator.services.mozilla.com/D101320
2021-01-11 04:25:29 +00:00
Mike Hommey eb3781ebc5 Bug 1685599 - Build a single macosx-cross toolchain. r=firefox-build-system-reviewers,mhentges
The new toolchain contains both aarch64 and x86_64 compiler-rts. We
could have a separate for each, but compiler-rt is small enough that
entirely separate toolchains is not warranted.

Differential Revision: https://phabricator.services.mozilla.com/D101079
2021-01-08 18:51:53 +00:00
Mike Hommey fd26bcb560 Bug 1685599 - Build a compiler-rt for x86_64. r=firefox-build-system-reviewers,mhentges
The llvm build system does support building a universal compiler-rt for
multiple platforms at once, but as far as I know it only supports doing
so with the same SDK, while we want to use separate SDKs for each, so
build the x86_64 compiler-rt separately.

Differential Revision: https://phabricator.services.mozilla.com/D101078
2021-01-08 18:51:52 +00:00
Mike Hommey feb2c466f7 Bug 1685599 - Don't rely on macosx-cross toolchain containing a mac native libLLVM. r=firefox-build-system-reviewers,andi,dmajor
The webrender wrench macos build, which is cross-compiled, needs a
macOS native libLLVM (a .dylib) to link against. The file is currently
part of the macosx-cross toolchain, but that was more incidental than
intentional. As we're going to change the macosx-cross toolchain in a
way that will remove the libLLVM.dylib, pull the file from the macOS
native clang.

Differential Revision: https://phabricator.services.mozilla.com/D101150
2021-01-08 18:51:54 +00:00
Mike Hommey b9cdcbef46 Bug 1685599 - Build llvm-symbolizer separately. r=firefox-build-system-reviewers,mhentges
Only sanitizer builds require a native llvm-symbolizer executable.
Ideally, we'd build llvm-symbolizer from scratch, which would be faster,
but for now, let's go the easy route and just extract it from the
corresponding native clang builds.

We don't actually do anything with the llvm-symbolizer executable on
android builds, so we don't install it in $FINAL_TARGET, avoilding
the dependency on android builds (plus, we actually don't have an
android-native llvm-symbolizer, so even if it were already shipped, it
would be the wrong file).

Differential Revision: https://phabricator.services.mozilla.com/D101076
2021-01-08 18:51:52 +00:00
Razvan Maries 891da67475 Backed out 6 changesets (bug 1685599) for WR bustages. CLOSED TREE
Backed out changeset 29eab2f84c77 (bug 1685599)
Backed out changeset 2839d8d39881 (bug 1685599)
Backed out changeset 3ba2f1c048c3 (bug 1685599)
Backed out changeset c7d4ecfc689a (bug 1685599)
Backed out changeset 5483ce4f5f4c (bug 1685599)
Backed out changeset 68fa5ecf205c (bug 1685599)
2021-01-08 09:04:37 +02:00
Mike Hommey 1c7ff6f2c2 Bug 1685599 - Build a single macosx-cross toolchain. r=firefox-build-system-reviewers,mhentges
The new toolchain contains both aarch64 and x86_64 compiler-rts. We
could have a separate for each, but compiler-rt is small enough that
entirely separate toolchains is not warranted.

Differential Revision: https://phabricator.services.mozilla.com/D101079
2021-01-08 00:38:37 +00:00
Mike Hommey 6ca557af7a Bug 1685599 - Build a compiler-rt for x86_64. r=firefox-build-system-reviewers,mhentges
The llvm build system does support building a universal compiler-rt for
multiple platforms at once, but as far as I know it only supports doing
so with the same SDK, while we want to use separate SDKs for each, so
build the x86_64 compiler-rt separately.

Differential Revision: https://phabricator.services.mozilla.com/D101078
2021-01-08 00:37:11 +00:00
Mike Hommey 3128330c17 Bug 1685599 - Build llvm-symbolizer separately. r=firefox-build-system-reviewers,mhentges
Only sanitizer builds require a native llvm-symbolizer executable.
Ideally, we'd build llvm-symbolizer from scratch, which would be faster,
but for now, let's go the easy route and just extract it from the
corresponding native clang builds.

We don't actually do anything with the llvm-symbolizer executable on
android builds, so we don't install it in $FINAL_TARGET, avoilding
the dependency on android builds (plus, we actually don't have an
android-native llvm-symbolizer, so even if it were already shipped, it
would be the wrong file).

Differential Revision: https://phabricator.services.mozilla.com/D101076
2021-01-07 23:53:19 +00:00
Andi-Bogdan Postelnicu d7fb68e56d Bug 1683613 - For `non-unified` build have a task that runs checks when merging to mozilla-central r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D100796
2021-01-05 19:40:23 +00:00
Mike Hommey 6e7d937be7 Bug 1682660 - Set CMAKE_RANLIB when building compiler-rt. r=dmajor
Without it, the build uses /usr/bin/ranlib, which, for some reason,
doesn't fail, but does weird things.

Differential Revision: https://phabricator.services.mozilla.com/D100073
2020-12-18 04:42:16 +00:00
Mike Hommey a734bb41a9 Bug 1682660 - Wrap clang to pass all the necessary flags when building compiler-rt. r=dmajor
When building compiler-rt for macOS, its build system assumes the
compiler used is a native macOS clang, drops all the cmake C/C++ flags,
and adds its own.

Because we do need to pass `-target $target` (otherwise we end up with
ELF x86_64 objects) and `-mcpu=apple-a12` for the correct baseline for
arm64 macOS, and because there is unfortunately no cmake variable that
the compiler-rt build system will use, and because CMAKE_C*_COMPILER
need to be a program without arguments, we need to wrap the compiler.

While here, add `-v` to the ninja call to have more useful logs.

Differential Revision: https://phabricator.services.mozilla.com/D99841
2020-12-18 01:50:07 +00:00
Mike Hommey d79dcf5161 Bug 1623520 - Switch Windows asan and fuzzing builds to cross-builds. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D79417
2020-12-11 05:06:12 +00:00
James Graham 3c9ea32e23 Bug 1680752 - Provide a python-3 opt-in for tests on Taskcluster, , bhearsum r=bc,bhearsum
This requires tests to specify `python-3: true` in order to be run
with Python 3. When nothing is specified things work just like today,
so it's a more conservative change than the one in bug 1672181.

Obviously in the long term we will remove this and switch to Python 3
only, but this unblocks moving harnesses to py3 today.

Differential Revision: https://phabricator.services.mozilla.com/D98766
2020-12-10 14:02:38 +00:00
Mihai Alexandru Michis 05ce4b0dac Backed out changeset ea5674f9a511 (bug 1680752) for causing android failures.
CLOSED TREE
2020-12-09 23:06:23 +02:00
James Graham dfd62d5a30 Bug 1680752 - Provide a python-3 opt-in for tests on Taskcluster, , bhearsum r=bc,bhearsum
This requires tests to specify `python-3: true` in order to be run
with Python 3. When nothing is specified things work just like today,
so it's a more conservative change than the one in bug 1672181.

Obviously in the long term we will remove this and switch to Python 3
only, but this unblocks moving harnesses to py3 today.

Differential Revision: https://phabricator.services.mozilla.com/D98766
2020-12-09 16:49:23 +00:00
Mike Hommey b7e6c5660f Bug 1680183 - Make dump-syms binary compatible with older libstdc++. r=firefox-build-system-reviewers,mhentges
This will allow to run it on older systems without LD_LIBRARY_PATH
tricks.

Differential Revision: https://phabricator.services.mozilla.com/D98425
2020-12-02 22:26:26 +00:00
Mike Hommey 12679da6a0 Bug 1680152 - Bump macos SDK to 10.12. r=spohl,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D98421
2020-12-02 21:50:28 +00:00
Steve Fink 3d02a92acd Bug 1680159 - Do not collect source code during automated hazard analysis. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D98409
2020-12-02 16:22:40 +00:00
Alexis Beingessner e2c5b3cbbe Bug 1680124 - Document Rust builds (and add some pointers/links for clang ones). r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D98386
2020-12-01 23:55:34 +00:00
Razvan Maries 1e986258d1 Backed out changeset f5532b7dc480 (bug 1672181) as per Gregory's request. CLOSED TREE 2020-12-01 17:12:11 +02:00
David Major fc89cd6438 Bug 1679909 - Use PATH instead of -B in build-compiler-rt.sh r=glandium
As of version 12, clang doesn't accept `-B` for target-prefixed binaries. This is said to be for GCC compatibility: 3452a0d8c1

Differential Revision: https://phabricator.services.mozilla.com/D98261
2020-12-01 04:32:55 +00:00
Andrew Halberstadt 6db2921d7f Bug 1672181 - [taskgraph] Make test tasks py3 by default and add a py2 override r=bc,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D97669
2020-11-26 17:42:27 +00:00
stransky 114cd41e5a Bug 1665844 [Wayland] Fix mutter to start in Wayland mode in Mozilla automation, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D97161
2020-11-30 07:10:57 +00:00
Ricky Stewart 34344a8073 Bug 1661624 - Include `psutil` in the `mach` `virtualenv`s r=firefox-build-system-reviewers,rstewart
Install `psutil` when setting up the `mach` `virtualenv`s and stop importing the in-tree version in the build.

Nothing in-tree currently assumes or mandates the installation of `psutil` (all uses of `psutil` are guarded with imports of the form `try : import psutil; except ImportError: psutil = None`), so there's no back-incompatibility concerns here. There will be an awkward period where telemetry will be lacking CPU/disk data for everyone until they re-run `mach bootstrap` or `mach create-mach-environment`, but that will come back as people gradually update their `virtualenv`s.

An alternative to circumvent that issue is REQUIRING that `psutil` be installed by adding an assertion in `mach` that `psutil` can be found (allowing us to remove all the conditional logic in-tree around whether `psutil` is installed), but I wouldn't claim that we're ready to do that and deal with whatever fallout might occur.

Differential Revision: https://phabricator.services.mozilla.com/D90914
2020-11-27 21:05:00 +00:00
Razvan Maries 960c5da1e7 Backed out changeset a39c15378e6f (bug 1672181) for Mochitest perma failures. CLOSED TREE 2020-11-26 19:38:22 +02:00
Andrew Halberstadt 5e91379180 Bug 1672181 - [taskgraph] Make test tasks py3 by default and add a py2 override r=bc,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D97669
2020-11-20 21:45:17 +00:00
Alexis Beingessner a2e4c21db2 Bug 1677593 - Add support for building rust from source. r=glandium
This adds a linux64-rust-dev toolchain and a git fetch of rust-lang/rust
that it can source from (stable tag for 1.47).

There are some issues with cross-compiling, so for now the toolchain only
builds a host build, although a lot of the machinery for cross compiling is
there for anyone brave/desperate enough to get it working.

Also note some changes were made to Rust's config.toml between 1.47 and 1.50,
so some version detection may need to be added in the future.

There is experimental support for providing patches via a new --patch flag.

Additionally, I documented the existence of the "bors-" mode.

Differential Revision: https://phabricator.services.mozilla.com/D97497
2020-11-26 00:42:27 +00:00
Mike Hommey ffd412896c Bug 1678154 - Create a clang repack including the aarch64 mac compiler-rt. r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D97699
2020-11-20 01:54:33 +00:00
Mike Hommey 323c368072 Bug 1678154 - Enable aarch64 mac support to llvm-dsymutil. r=firefox-build-system-reviewers,dmajor
While here, upgrade it to LLVM 11.

Differential Revision: https://phabricator.services.mozilla.com/D97697
2020-11-20 02:09:20 +00:00
Mike Hommey f27976b952 Bug 1678154 - Build compiler-rt for aarch64 macos. r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D97696
2020-11-20 03:18:15 +00:00
Mike Hommey d015ddb9b6 Bug 1678154 - Add aarch64-prefixed binaries to cctools. r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D97695
2020-11-20 03:19:36 +00:00
Mike Hommey 4efa8e2b00 Bug 1678154 - Pack the mac OS SDK as a private artifact. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D97694
2020-11-20 00:03:13 +00:00
Noemi Erli e0fd535990 Backed out changeset c5f7092adb7a (bug 1665844) for causing mass mochitest automation errors CLOSED TREE 2020-11-17 05:50:06 +02:00
stransky 370bfbe6bc Bug 1665844 [Wayland] Fix mutter to start in Wayland mode in Mozilla automation, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D97161
2020-11-16 18:52:09 +00:00
Noemi Erli f24bd4fcff Backed out 4 changesets (bug 1666345, bug 1661624, bug 1667152, bug 1666347) for causing mochitest failures CLOSED TREE
Backed out changeset 8ce536574e74 (bug 1666347)
Backed out changeset 7cc5b13a3bf6 (bug 1666345)
Backed out changeset e112876ba18b (bug 1661624)
Backed out changeset 0f03ce337449 (bug 1667152)
2020-11-16 21:06:12 +02:00
Ricky Stewart d8119e6288 Bug 1661624 - Include `psutil` in the `mach` `virtualenv`s r=firefox-build-system-reviewers,mhentges
Install `psutil` when setting up the `mach` `virtualenv`s and stop importing the in-tree version in the build.

Nothing in-tree currently assumes or mandates the installation of `psutil` (all uses of `psutil` are guarded with imports of the form `try : import psutil; except ImportError: psutil = None`), so there's no back-incompatibility concerns here. There will be an awkward period where telemetry will be lacking CPU/disk data for everyone until they re-run `mach bootstrap` or `mach create-mach-environment`, but that will come back as people gradually update their `virtualenv`s.

An alternative to circumvent that issue is REQUIRING that `psutil` be installed by adding an assertion in `mach` that `psutil` can be found (allowing us to remove all the conditional logic in-tree around whether `psutil` is installed), but I wouldn't claim that we're ready to do that and deal with whatever fallout might occur.

Differential Revision: https://phabricator.services.mozilla.com/D90914
2020-11-13 20:21:45 +00:00
Mihai Alexandru Michis 06103d0e92 Backed out 3 changesets (bug 1666345, bug 1667152, bug 1661624) for causing mochitest timeouts.
CLOSED TREE

Backed out changeset baa1f7a615e4 (bug 1666345)
Backed out changeset b6646baa866d (bug 1661624)
Backed out changeset e4d550db6037 (bug 1667152)
2020-11-13 22:14:45 +02:00
Ricky Stewart 69321f149f Bug 1661624 - Include `psutil` in the `mach` `virtualenv`s r=firefox-build-system-reviewers,mhentges
Install `psutil` when setting up the `mach` `virtualenv`s and stop importing the in-tree version in the build.

Nothing in-tree currently assumes or mandates the installation of `psutil` (all uses of `psutil` are guarded with imports of the form `try : import psutil; except ImportError: psutil = None`), so there's no back-incompatibility concerns here. There will be an awkward period where telemetry will be lacking CPU/disk data for everyone until they re-run `mach bootstrap` or `mach create-mach-environment`, but that will come back as people gradually update their `virtualenv`s.

An alternative to circumvent that issue is REQUIRING that `psutil` be installed by adding an assertion in `mach` that `psutil` can be found (allowing us to remove all the conditional logic in-tree around whether `psutil` is installed), but I wouldn't claim that we're ready to do that and deal with whatever fallout might occur.

Differential Revision: https://phabricator.services.mozilla.com/D90914
2020-11-13 03:03:33 +00:00
Steve Fink 2c0345bdaf Bug 1672428 - Remove hazard-analysis.sh r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D95467
2020-11-12 20:12:28 +00:00
Steve Fink 5daa65c47f Bug 1672428 - Run a self-test before doing the actual analysis. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D95442
2020-11-12 20:00:24 +00:00
Steve Fink 07550f5718 Bug 1672428 - Switch the actual analysis to mach r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D95441
2020-11-12 19:58:16 +00:00
Steve Fink d235350b21 Bug 1672428 - Remove a layer of mapping from "project" to "application" r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D95438
2020-11-12 19:26:26 +00:00
Steve Fink 4d6b3ec016 Bug 1672428 - Allow simultaneous browser and shell instances of the hazard analysis r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D95436
2020-11-12 19:26:12 +00:00
Steve Fink 2ba95a258e Bug 1672428 - Use `mach hazards build-shell` for actual hazard job JS shell r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D95094
2020-11-12 19:26:06 +00:00
smolnar 1e6e466d99 Backed out 4 changesets (bug 1666347, bug 1667152, bug 1661624, bug 1666345) for causing mingw bustage. CLOSED TREE
Backed out changeset 19f707f5c097 (bug 1666347)
Backed out changeset 3732ee259759 (bug 1666345)
Backed out changeset 353d3c9e74b9 (bug 1661624)
Backed out changeset a651515586a8 (bug 1667152)
2020-11-12 19:55:58 +02:00
Tom Ritter c66c67c6df Bug 1674914 - Switch the verify-updatebot script to the autoland API r=sheehan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D96724
2020-11-12 16:33:20 +00:00