Commit Graph
71 Commits
Author SHA1 Message Date
Ralph Giles 0207fcff0f Bug 1391427 - Package upstream rust in taskcluster. r=glandium
Add a toolchain job description which calls the
repack_rust.py script to package the requested
upstream build of Rust and its standard libraries
for use in gecko builds.

Links are added to these new toolchains for various build
and analysis tasks as appropriate. The base-toolchain
tasks use an explicitly-versioned toolchain since those
can be different from the current release used for most builds.

The corresponding tooltool manifest entries are removed
now that taskcluster artifact versions are available.
This simplifies the update process since new toolchains
can be packaged and used automatically by just updating
the versions in the task descriptions.

A 'linux64-rust' toolchain can be added to other tasks
as a dependency and artifact. It supports linux64-
hosted builds of Rust code targeting linux64 or linux32.

A 'linux64-rust-macos' toolchain targets linux64-hosted
builds of Rust code targeting macOS on x86_64.

A 'linux64-rust-android' toolchain targets linux64-hosted
builds of Rust code targeting various Android architectures.

Two 'win64-rust' and 'win32-rust' toolchain tasks create
similar entries for Windows-hosted builds. All our automation
builds are hosted on win64, so we could use one artifact
with support for both targets, but currently this doesn't
work because of cross-compilation issues in some crates.
This patch maintains the previous separation between
win32 and win64 rust toolchains until that can be addressed.

MozReview-Commit-ID: GRiJml8CtzO
2017-09-12 16:30:19 -07:00
Wes Kocher 4c62a94362 Bug 1330608 - Fix up mozlint-yaml a=bustage
MozReview-Commit-ID: 5nZmpAO4R3Z
2017-09-25 22:37:58 -07:00
Tom Ritter 32e47f847b Bug 1330608 Add the MinGW32 toolchain build to Taskcluster r=glandium
MozReview-Commit-ID: JHS6y8kqr4T
2017-09-22 00:24:58 -05:00
Dustin J. Mitchell b129f522e9 Bug 1401180: rename 'toolchain' transform to 'use_toolchains'; r=glandium
MozReview-Commit-ID: 5vKM5dRBuZt
2017-09-14 20:12:59 +00:00
Chris Manchester d178307738 Bug 1386782 - Add toolchain tasks to build gn in automation. r=ted
MozReview-Commit-ID: 7dDwsQJnzRL
2017-07-25 15:33:44 -07:00
Mike Hommey cfc215b0ae Bug 1384433 - Make clang-cl toolchain jobs tier 1. r=dustin
Tier 1 Firefox builds are using those toolchain jobs for stylo, so they
need to be tier 1.
2017-08-29 07:53:56 +09:00
Mike Hommey d11139449b Bug 1389435 - Use GCC 6 to build the Firefox we ship on Linux. r=froydnj 2017-08-22 13:46:00 +09:00
Mike Hommey 181b300e4d Bug 1389435 - Forbid toolchain dependencies on aliases. r=dustin
This extends bug 1386920 in a more general way on toolchain jobs.
2017-08-22 13:45:44 +09:00
Mike Hommey 419717c187 Bug 1386920 - Use a versioned dependency on GCC to build clang. r=gps
The lesson learned from bug 1356926 and bug 1386588 is that the version
of gcc used to build clang matters, and that we can't bind the version
we use to build clang to the version we use to build Firefox.
2017-08-04 06:07:43 +09:00
Mike Hommey 25b379df98 Bug 1386589 - Remove the linux64 tooltool manifests that look the same as releng.manifest. r=gps 2017-08-04 06:07:43 +09:00
Mike Hommey 8ea4f8879e Fixup after backout of 25420b520b68 (part of bug 1386588). a=bustage 2017-08-03 12:18:12 +09:00
Mike Hommey d3f9a99ee3 Backout changeset 25420b520b68 (part of bug 1386588) for asan bustage. a=bustage. 2017-08-03 12:11:40 +09:00
Mike Hommey 9a620197fa Bug 1386588 - Add a toolchain job for Clang 4. r=gps 2017-08-03 08:13:07 +09:00
Mike Hommey 709316595d Bug 1386588 - Add a toolchain job for GCC 6. r=gps 2017-08-03 08:13:02 +09:00
Mike Hommey d656cb623e Bug 1386588 - Add a toolchain job for GCC 4.8, and build clang against it. r=gps
While this looks like going backwards, it is desirable to build clang
against GCC 4.8, such that it contains its libgcc. This, in turn, will
solve problems using clang 3.9 with static-analysis builds (details in
bug 1356926). Another way to fix those problems would be to build clang
3.8 but that too would require GCC 4.8. Upgrading those builds to clang
3.9 will also allow to enable stylo on them.
2017-08-03 08:12:52 +09:00
Mike Hommey 4ee77ba26c Bug 1386588 - Change the GCC build script to be future-proof. r=gps
It becomes a library of some sort, so that multiple scripts can benefit
from it to build different versions of GCC.

The GPG key associated with GCC is also refreshed from keys.gnupg.net,
adding a new subkey, used to sign newer versions of GCC (and
postprocessed with pgpstrip to make it smaller).
2017-08-03 08:12:47 +09:00
Mike Hommey d57901042c Bug 1386588 - Rename the linux64-clang and linux64-gcc jobs to include a version number. r=gps
We're soon going to build multiple versions of clang and gcc for linux,
and we need to differentiate them. Furthermore, there is a need for the
base-toolchains builds to use a fixed version of clang and gcc. So
rename the clang and gcc toolchain jobs to include their version, add
aliases to satisfy all existing jobs, and adjust the base-toolchains
jobs to use the explicit version.
2017-08-03 08:12:43 +09:00
Mike Hommey 2beef31576 Bug 1386588 - Avoid wildcards in toolchain resources lists. r=gps
Those resources are used to compute a unique identifier for the
toolchain, and changes to those files will change the unique identifier,
and lead to the toolchain being rebuilt.

Using wildcards, especially in the build-clang directory, makes all the
files from there used for the unique identifier, even files irrelevant.
The side effect is that any change to any json file for clang toolchains
currently triggers *all* clang toolchains to be rebuilt, which is a
waste of resources and time.

But while it is tempting to list all the files involved, it is also
tedious and error-prone. Specifically, listing the relevant patch files
for clang toolchain builds is bound to end up outdated. OTOH, we're not
trying to mitigate bad actors here, but just to avoid shooting ourselves
in the foot. And patch files are, in practice, not changed. The jsons
are changed to reference them or not, but the patches themselves don't
change in relevant ways. They may be updated for new versions of clang,
which require a json change anyways. So we ignore the patch files.
2017-08-03 08:12:38 +09:00
Mike Hommey 06f0025e4b Bug 1384744 - Don't use tooltool manifests on toolchain jobs that don't need them. r=gps
Those jobs now have all their dependencies installed through taskcluster
artifacts.
2017-07-27 08:05:07 +09:00
Mike Hommey 6c664dd9c1 Bug 1384744 - Remove unused toolchain dependencies for toolchain jobs. r=gps
Building linux64-clang-tidy doesn't use clang, and building
macosx64-cctools-port doesn't use gcc.
2017-07-27 08:04:10 +09:00
Mike Hommey dfa82192ff Bug 1384744 - Remove sccache dependencies for toolchain jobs. r=gps
None of the toolchain jobs are actually using sccache, so they don't
need the dependency. Those jobs also don't run frequently enough that
sccache would be a win for them, and when they do run, they're likely
to have few cache hits, if the cache is not expired anyways.
2017-07-27 07:59:06 +09:00
Mike Hommey 8a91c993bc Bug 1384422 - Use toolchain dependencies for clang. r=gps
This leaves out fuzzing and linux static analysis builds, which are
using, respectively, clang 4.0.1 and clang 3.8, while linux64-clang
produces a 3.9 and win*-clang a 5.0
2017-07-26 16:32:15 +09:00
Mike Hommey 6934b50602 Bug 1384421 - Use toolchain dependencies for cctools-port. r=gps 2017-07-26 15:48:46 +09:00
Mike Hommey 94d8e72f00 Bug 1384418 - Use toolchain dependencies for gcc. r=gps 2017-07-26 15:27:09 +09:00
Mike Hommey 8392391770 Bug 1384417 - Make sccache toolchain jobs tier 1. r=gps
It's depended upon by tier 1 jobs.
2017-07-26 15:17:15 +09:00
Mike Hommey e79ca64ba0 Bug 1384417 - Use toolchain dependencies for sccache. r=gps 2017-07-20 17:56:49 +09:00
Mike Hommey 5937b178ee Bug 1381772 - Add taskcluster jobs to build sccache for automation. r=ted
The MinGit tooltool package used for Windows builds comes straight from
https://github.com/git-for-windows/git/releases/

This builds the version currently used on automation.
2017-07-14 11:07:40 +09:00
Mike Hommey daaefe8df9 Bug 1382860 - Use docker_worker_add_public_artifacts for toolchain docker-worker jobs. r=dustin
This affects the location of the artifacts directory, so adjust the
scripts and artifact definitions as a consequence.
2017-07-21 07:30:14 +09:00
Wes Kocher 33f8dcb57a Backed out changeset 0ee08a9803fc (bug 1382849) for cctools bustage a=backout
MozReview-Commit-ID: 61JTxrzOYOZ
2017-07-20 17:59:20 -07:00
Mike Hommey 916e958c95 Bug 1382849 - Add workspace cache to toolchain docker-worker jobs. r=dustin,gps 2017-07-21 06:55:06 +09:00
Mike Hommey 6b76fa9e72 Bug 1374940 - Allow to define a list of toolchains to use for a given TC job. r=dustin
Such a definition automatically sets up the corresponding dependencies
in the taskgraph, and adds the necessary artifact definitions for use in
the corresponding jobs. The jobs end up with a MOZ_TOOLCHAINS
environment variable with a list of path@task-id strings, where task-id
is corresponding to the (possibly optimized) toolchain job, and path
corresponding to the toolchain-artifact defined for that toolchain job.
2017-06-21 15:38:21 +09:00
Mike Hommey 4f6447524d Bug 1374940 - Add artifact paths to toolchain jobs definitions. r=dustin
The toolchain jobs produce artifacts that are going to be used by other
jobs, but there is no reliable way for the decision task to know the
name of those artifacts. So we make their definition required in the
toolchain job definitions.
2017-06-21 15:13:35 +09:00
Mike Hommey ebfd8c9201 Bug 1381770 - Don't use the relengapi proxy for Linux toolchain jobs. r=mshal
As the relengapi proxy doesn't appear to be very reliable, let's just
use the public releng API, since we only need public artifacts anyways
(no need for the relengapi token, which Linux TC workers don't have)
2017-07-18 16:18:45 +09:00
Mike Hommey dbb90186c0 Bug 1356952 - Move tooltool manifests defined in toolchain build scripts to taskcluster job definitions. r=mshal
The toolchain build scripts are currently defining the tooltool
manifest they use on their own. We move the definitions to the
taskcluster job definitions to normalize on everything using that.
2017-06-06 16:33:36 +09:00
Dustin J. Mitchell f3f59ca1c7 Bug 1359976: base worker payload generation on worker-type; r=wcosta r=aki
To date we have variously specified both worker-type and worker-implementation,
often manually coordinated. We also embedded a few awkward assumptions such as
that the native engine only runs on OS X.

But a worker type has one and only one implementation, and that implementation
is stable over time (as changing it would require simultaneous landings on all
trees).

Instead, this change makes worker-type the primary configuration, and derives
both a worker implementation (defining the payload format) and worker OS
(determining what to include in the payload) from that value. The derivation
occurs when deciding how to implement a particular job, where the run_using
functions are distinguished by worker implementation.

The two-part logic to determine how and where to run a test task based on its
platform is combined into a single transform, `set_worker_type`.

This contains some other related changes:
 - MOZ_AUTOMATION is set in specific jobs, rather than everywhere docker-worker
   is used
 - the URL to test packages is factored out into a shared function
 - docker-worker test defaults are applied in `mozharness_test.py`
 - the WORKER_TYPE array in `task.py`, formerly mixing two types of keys, is
   split
 - the 'invalid' workerType is assigned an 'invalid' implementation
 - all tasks that do not use job descriptions but use docker-worker, etc. have
   `worker.os` added

Tested to not produce a substantially different taskgraph for a regular push, a
try push, or a nightly cron.

MozReview-Commit-ID: LDHrmrpBo7I
2017-05-08 22:53:50 +00:00
Dustin J. Mitchell 71d3526289 Bug 1345863: set the job_try_name for all tasks governed by -j; r=gps
We have a `unittest_try_name` for all unit test tasks, and similarly a
`talos_try_name`. The `-j` flag controls tasks known as "jobs" (although the
word has dozens of other meanings, too). Some of those set `job_try_name`, but
others do not and have special-case support in `try_option_syntax.py`. With
this change, all "jobs" set `job_try_name` and the special-case is removed.

MozReview-Commit-ID: 9hvW7wBIl2B
2017-04-28 11:12:31 -04:00
Mike Hommey 10f260de3c Bug 1356933 - Use tooltool-download.sh helper in cctools build scripts. r=chmanchester
While here, since the tooltool call from the cctools build scripts was
verbose, make the one in tooltool-download.sh verbose. It will benefit
the other things using tooltool-download.sh, making debugging easier
when one needs to look at the tooltool download logs...
2017-04-17 08:34:24 +09:00
Iris Hsiao 2cc99b0fa6 Backed out changeset 14010d77d56a (bug 1356933) for invisible bustage 2017-04-18 13:33:00 +08:00
Mike Hommey 79e8c7f662 Bug 1356933 - Use tooltool-download.sh helper in cctools build scripts. r=chmanchester 2017-04-17 08:34:24 +09:00
Mike Hommey 29ef598100 Bug 1356720 - Ensure toolchain builds are triggered when some helper scripts are modified. r=chmanchester 2017-04-15 09:03:05 +09:00
Dustin J. Mitchell 7b617b9156 Bug 1333255: rename taskgraph.task to taskgraph.loader; r=jonasfj
MozReview-Commit-ID: 6aPdGbxn0D1
2017-03-09 19:00:49 -05:00
Dustin J. Mitchell 37dca4a3be Bug 1333255: always transform tasks; r=jonasfj
MozReview-Commit-ID: 3A5wzXKG0Yp
2017-03-09 16:40:33 -05:00
Dustin J. Mitchell a0095736a7 Bug 1333255: use normal old functions to load tasks; r=jonasfj
Instead of using a class's static method, use a simple function, specified by
the `loader` key.

MozReview-Commit-ID: IeOl9qiSCXf
2017-03-09 23:14:40 -05:00
Mike Hommey b1ef1c8c3b Bug 1335651 - Setup an index path in the gecko.cache namespace for toolchain builds. r=dustin
This allows to find them and optimize them out during the taskgraph
optimization phase, and will allow to get toolchain artifacts through a
mach command for developers.

The index path is generated similarly to git trees or mercurial
manifests, and allows to find the right task corresponding to the the
contents of the files in the task `extra.resources` along the toolchain
scripts.

`when.files-changed` is not used when a task has index paths because we
need tasks to happen independently of whether there were changes to
those files when the index or artifacts expire.
2017-02-01 09:27:31 +09:00
Mike Hommey f0d3b1086f Bug 1335651 - Automatically add the script to files-changed for toolchain jobs. r=dustin
Also automatically add the job.toolchain python module itself.
2017-01-31 18:00:55 +09:00
Mike Hommey fedfb25db6 Bug 1338061 - Move toolchain tasks to a separate "platform". r=dustin
The toolchain tasks are hard to spot on treeherder, in the ocean of
build and test jobs associated with the platforms they are currently
under.

Now that we have a significant number of toolchain tasks across
different platforms, it's even worse, especially combined with the fact
that they don't happen on every push.

To make them more easily visible, we move them to a new, separate,
"platform", with the name "toolchains", instead of having them in
different platforms. But since the distinction between Linux, OSX and
Windows 32/64 is still interesting to have, we create groups for each of
those platforms.

But because of bug 1215587, the jobs still end up associated to their
previous group, defeating the new grouping, so to work around that bug,
we also rename the jobs in subtle ways.
2017-01-27 11:46:22 +09:00
Wes Kocher dd70933f86 Merge m-c to autoland, a=merge
MozReview-Commit-ID: D76dMYwFRUQ
2017-02-09 17:06:59 -08:00
Ted Mielczarek 878c07715e bug 1337393 - add a toolchain task for building libdmg-hfsplus tools, build them from a newer branch r=callek
There's not a single well-maintained fork of libdmg-hfsplus, but there are
scattered forks with various fixes. The fork + branch I've chosen here
seems to have collected the most fixes, including a specific fix we need
for repacking DMG files on Linux:
https://github.com/andreas56/libdmg-hfsplus/commit/5c92af354b279809bc64f8013805ca0b51b29960

MozReview-Commit-ID: 3RB6gfgQmCA
2017-02-07 10:57:23 -05:00
Justin Wood 1c93b9e148 Bug 1197325 - Generate mkfs.hfsplus. r=ted
MozReview-Commit-ID: Dl0eBQR8XFR
2017-01-30 13:12:57 -05:00
Mike Hommey 8bd0ca5655 Bug 1338016 - Use clang from tooltool to build hfsplus. r=mshal 2017-02-09 11:37:28 +09:00