Commit Graph
168 Commits
Author SHA1 Message Date
Phil Ringnalda b00e26f42d Backed out 4 changesets (bug 1394883) for Windows signing chain-of-trust failures
CLOSED TREE

Backed out changeset e3f42eca51c1 (bug 1394883)
Backed out changeset 081f830cf285 (bug 1394883)
Backed out changeset 9426705a05af (bug 1394883)
Backed out changeset 3a579a5054ef (bug 1394883)

MozReview-Commit-ID: 2viO8A8arHd
2017-08-31 20:02:34 -07:00
Dustin J. Mitchell ae48d87a7a Bug 1394883: update docs about docker hashes; r=wcosta
MozReview-Commit-ID: AwMWyCWs4aS
2017-08-30 16:05:10 +00:00
Dustin J. Mitchell d69366bba8 Bug 1394883: clean up some leftover uses of /home/worker; r=wcosta
MozReview-Commit-ID: BssKG9QNVe1
2017-08-30 15:19:19 +00:00
Brian Stack fc668c6f6c Bug 1394026 - Add docs for new action tasks definition format r=dustin
MozReview-Commit-ID: IeB9QGwI761
2017-08-29 10:53:13 -07:00
Johan Lorenzo 9d82d58d34 Bug 1384482 - Rename android-api-15 into android-api-16 r=mtabara
MozReview-Commit-ID: 4j66pTZEJzq
2017-08-09 16:18:15 +02:00
Gregory Szorc a7ff09d251 Bug 1390700 - Support sparse checkouts in run-task; r=dustin
`run-task` is taught a --sparse-profile argument to be passed down
to `hg robustcheckout` for the main source checkout. It does what
you expect: performs a sparse checkout using the named profile.

The Taskgraph YAML for run-task is taught a "sparse-profile"
property to define the sparse profile. When defined, --sparse-profile
will be passed down to `run-task` and the cache name will be updated
to reflect the use of sparse checkout.

Our cache checking transform is updated to audit for the use of
--sparse-profile without the corresponding "-sparse" cache name
variation.

The reason we need a distinct cache name for sparse is because
clients that aren't sparse aware will be unable to read checkouts
that are sparse. By forcing sparse and non-sparse into different
cache pools, we avoid compatibility issues.

In the ideal world, we probably support sparse profiles on all the
VCS checkouts that `run-task` supports (e.g. --tools-checkout).
Perfect is the enemy of done. All of this is defined in-tree and
it is easy enough to change atomically.

MozReview-Commit-ID: 79k7Vul0hHO
2017-08-23 18:54:14 -07:00
Dustin J. Mitchell c73a5bb8f8 Bug 1391776: cleanup of taskgraph docs; r=ahal
* eliminate heading for test kinds, of which there is now only one
* make the caches document have a single heading in the TOC
* break out mach commands into a separate document, add ./mach taskgraph morphed
* remove docs for YAML templates support (the .yml file wasn't actually
  used -- I expect it was a merge leftover); these are still used for actions.yml,
  but once that is gone the code should be removed, too.
* break try out into its own document, edit to distinguish "how to run try"
  from "how to generate config"

MozReview-Commit-ID: 76ZopWA9TPL
2017-08-23 15:22:10 -04:00
Gregory Szorc ff6e79eb22 Bug 1391789 - Improve cache coherence via run-task integration; r=dustin
Today, cache names are mostly static and are brittle as a result.

In theory, when a backwards incompatible change is performed on
something that touches a cache, the cache name needs to be changed
to ensure tasks running the old code don't see cached data from the
new task. (Alternatively, all code is forward compatible, but that is
hard to implement in practice.)

For many things, the process works as planned. However, not everyone
knows that cache names need changed. And, it isn't always obvious
that some things require fresh caches. When mistakes are made, tasks
break intermittently due to cache wonkiness.

One area where we get into trouble is with UID and GID mismatch.
Task A will use a Docker image where our standard "worker" user/group
is UID/GID 1000:1000. Then Task B will use UID/GID 500:500. (This is
common when mixing Debian and RedHel based distros.) If they use the
same cache, then Task B needs to chown/chmod all files in the cache
or there could be a permissions problem. This is exactly why
run-task recursively chowns certain paths before dropping root
privileges.

Permissions setting in run-task solves permissions problems. But
it doesn't solve content incompatibility problems. For that, you
need to change cache names, not use caches, or blow away content
when incompatibilities are detected.

This commit starts the process of adding a little bit more coherence
to our caching story.

There are two main features in this commit:

1) Cache names tied to run-task content
2) Cache validation in run-task

Taskgraph now detects when a task is using caches with run-task. When
caches and run-task are both being used, the cache name is adjusted to
contain a hash of run-task's content. When run-task changes, the cache
name changes. So, changing run-task ensures that all caches from that point
forward are "clean." This frees run-task and any functionality related
to run-task (such as maintaining version control checkouts) from
having to maintain backwards or forwards compatibility with any other
version of run-task. This does mean that any changes to run-task
effectively wipe out caches. But changes to run-task tend to be
seldom, so this should be acceptable.

The second part of this change is code in run-task to record per-cache
properties and validate whether a populated cache is appropriate for
use. To enable this, taskgraph passes a list of cache paths via an
environment variable. For each cache path, run-task looks for a
well-defined file containing a list of "requirements." Right now,
that list is simply a version string. But other features will be
worked into it. If the cache is empty, we simply write out a new
requirements file and are done. If the file exists, we compare
requirements and fail fast if there is a mismatch. If the cache
has content but not this special file, then we abort (because this
should never happen).

The "requirements" validation isn't very useful now because the only
entry comes from run-task's source code and modifying run-task will
change the hash and cause a new cache to be used. The implementation
at this point is more demonstrating the concept than doing anything
terribly useful with it.

MozReview-Commit-ID: HtpXIc7OD1k
2017-08-18 14:07:03 -07:00
Gregory Szorc 90bc333dde Bug 1391789 - Make tooltool cache level dependent; r=dustin
Caches shared across levels scare me, even if readers are purported to
perform content verification. We shouldn't take any risks with released
Firefox builds being contaminated by e.g. Try tasks.

Also, the old cache name interferes with my desire to make cache
names dynamic. This requires dynamic scopes. We already have
have level-{{level}}-* scopes for caches. So having all caches
prefixed with this makes things flexible.

MozReview-Commit-ID: LsrcxIYoEh1
2017-08-18 16:15:44 -07:00
Wes Kocher 9a9581c0d5 Merge m-c to inbound, a=merge
MozReview-Commit-ID: EgYue63nSkv
2017-08-18 16:29:11 -07:00
Ted Mielczarek 71d8561dc1 bug 1259832 - add a post-build task to upload generated source files. r=dustin
This change adds an upload-generated-sources task kind that runs after nightly
builds, fetches their `target.generated-files.tar.gz` artifact, and uploads
all the contained files to an S3 bucket. For actual nightly and release builds
on SCM level 3 trees, the S3 bucket is configured to be publicly accessible,
so that tools like Socorro will be able to fetch generated source files that
appear in crash reports, and debuggers will be able to fetch generated sources
when they show up while debugging Nightly or Release builds.

There are also level-2 and level-1 S3 buckets configured for builds happening
on trees of other levels such as try. They are not configured as publicly
accessible, but they exist so that these tasks can be tested in try.

MozReview-Commit-ID: Js1HRftbtep
2017-08-09 14:32:05 -04:00
Andrew Halberstadt 91fd656da8 Bug 1387135 - Add ability to apply templates to task definitions via try_task_config.json, r=dustin
This provides a mechanism to modify the behaviour of tasks from a try push. The try_task_config.json
looks something like:

{
  "tasks": ["build-linux64/opt", "test-linux64/opt-mochitest-e10s-1"],
  "templates": {
    "artifact": {"enabled": 1}
  }
}

This tells taskgraph to apply the 'artifact' template to all tasks. Templates are JSONe based
.yml files that live under taskcluster/taskgraph/templates. Taskgraph will render every template
against every task definition. The templates themselves can then use JSONe condition statements to
filter out which tasks they should or shouldn't apply to.

MozReview-Commit-ID: J8HVZzOt4mX
2017-08-15 11:36:29 -04:00
Dustin J. Mitchell 9084bfc3f4 Bug 1390938: only use one top-level heading; r=bstack
MozReview-Commit-ID: DKRdlCx6Ng8
2017-08-16 16:26:58 +00:00
Brian Stack b66151f391 Bug 1389248 - Move actions spec to taskcluster docs r=dustin
MozReview-Commit-ID: BsYRmivUZZ7
2017-08-10 13:59:05 -07:00
Simon Fraser d73f893ae6 Bug 1387044 Update taskgraph how-to with mention of 'gron' r=dustin DONTBUILD
MozReview-Commit-ID: I3c9p014MF8
2017-08-03 14:30:59 +01:00
Mike Hommey 35f3fd9ad6 Bug 1386149 - Allow build jobs to use toolchain aliases instead of toolchain job names. r=dustin
It is desirable for e.g. smooth toolchain transitions, to be able to
refer them with generic name from toolchain jobs, while they have more
specific names, including version numbers. For example, in a near
future, there could be a linux64-gcc-4.9 toolchain and a linux64-gcc-6.
The default would be former, but at some point we'd want to switch to
the latter, without having to change all the toolchain definitions.

Moreover, when the switch happens, it would be desirable to have some
jobs stick with the old version, which is hard to keep track of when
all the toolchain definitions for build jobs use the same versioned
toolchain. With an alias, jobs that want the default use the alias, and
jobs that want to use a specific version use the versioned toolchain
name.
2017-07-27 18:02:38 +09:00
Andrew Halberstadt 9cbe59ace4 Bug 1380306 - Create a new 'try_task_config' method for scheduling tasks on try, r=dustin
This introduces a 'try_task_config' method of scheduling. En lieu of (or in addition to) try
syntax, you can now check in a file called 'try_task_config.json' to the root of the source
tree. The format is either a list of task labels, or dict where task labels are the keys.
Taskcluster will simply schedule any tasks that are listed there.

This file is primarily meant to be generated by tools (which don't exist yet), as the json
format is much easier for tools to generate or consume. These tools should use an in-memory
commit to add the file so it is automatically removed again after the push.

A server-side hook will be added in bug 1380357 to prevent this file from accidentally
landing on non-try trees.

MozReview-Commit-ID: 2zKfZXuuDhH
2017-06-27 13:33:20 -07:00
Brian Stack a817049b03 Bug 1380454 - Port retrigger to actions.json r=dustin
MozReview-Commit-ID: 3942ptSNiss
2017-07-13 10:41:58 -07: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
Dustin J. Mitchell c886b93115 Bug 1382707: add ./mach taskgraph test-action-callback; r=bstack
MozReview-Commit-ID: 64kBJGLarY3
2017-07-20 17:11:28 +00:00
Dustin J. Mitchell fcbadab862 Bug 1381622: add UI considerations for actions; r=jonasfj
MozReview-Commit-ID: CuhPkD3Xbic
2017-07-17 20:39:08 +00:00
Dustin J. Mitchell 4d48f82f7a Bug 1381622: add a 'name' property to actions; r=jonasfj
This name can be used by user interfaces to find the action corresponding to a
dedicaetd UI element.

MozReview-Commit-ID: HFBDlX30J31
2017-07-18 15:57:12 +00:00
Dustin J. Mitchell 7d01c1943c Bug 1381622: re-order action spec sections and include more examples; r=jonasfj
MozReview-Commit-ID: CHxyaNvPIr
2017-07-17 20:03:42 +00:00
Dustin J. Mitchell 7f33b4f1de Bug 1381622: order the actions docs more naturally; r=jonasfj
MozReview-Commit-ID: GaMlrhkEdnk
2017-07-17 19:28:58 +00:00
Dustin J. Mitchell b7eeb5a425 Bug 1381622: refer to JSON-e for template language; r=jonasfj
MozReview-Commit-ID: 5ufmEfmioqy
2017-07-17 19:12:30 +00:00
Tom Prince 3d8c81f77c Bug 1380833 - Document level-*-checkouts-v1's hg-store and the HG_STORE_PATH environment variable; r=dustin
MozReview-Commit-ID: 9yRuKONHTvP
2017-07-13 16:01:41 -06:00
Dustin J. Mitchell 01525b0ab3 Bug 1377875: update taskgraph how-to documentation; r=rforbes
Minor modificatinons based on conversations at the SF all-hands.

MozReview-Commit-ID: AnkwXppUPJd
2017-07-01 16:40:39 -04:00
Brian Stack fdfb7e13a3 Bug 1380391 - Index decision tasks under pushlog_id r=dustin
MozReview-Commit-ID: 9q3iHqJ0OSb
2017-07-12 10:56:02 -07:00
Johan Lorenzo 411fcdb606 Bug 1374589 - Port windows tests which require signed builds to in-tree tasks r=Callek
MozReview-Commit-ID: JI0T2qW6P00
2017-06-29 13:50:13 -07:00
Rail Aliiev 99126298fe Bug 1378454 - Add predictable routes to repackage and repackage-signing tasks r=Callek
MozReview-Commit-ID: Kv59SWBdbz5
2017-07-07 13:58:06 -04:00
Justin Wood a38e50c290 Bug 1376550 - remove beetmover-repackage-l10n kind. r=dustin
Support OSX Signed nightlies (in the complete.mar too)

MozReview-Commit-ID: HkGRRm7k2Ra
2017-06-27 16:04:33 -07:00
Justin Wood a4f5156d62 Bug 1376550 - Add repackage signing kind. r=dustin
Support OSX Signed nightlies (in the complete.mar too)

MozReview-Commit-ID: HVJwMuXUixX
2017-06-27 14:55:09 -07:00
Justin Wood 48d2153604 Bug 1373326 - Add beetmover and balrog to taskgraph. r=dustin
(For Landing more OSX Nightly Support from date to central)

MozReview-Commit-ID: BeXoChssNjF
2017-06-16 16:01:38 -04:00
Justin Wood 79d09b4e77 Bug 1373326 - Flesh out docs a bit. r=dustin
(For Landing more OSX Nightly Support from date to central)

MozReview-Commit-ID: 2zOkiBS294y
2017-06-15 13:47:22 -04:00
Wes Kocher 882dffad8c Backed out 5 changesets (bug 1373326) for breaking the decision task a=backout
Backed out changeset 7f0177a71077 (bug 1373326)
Backed out changeset a678d4b0ee78 (bug 1373326)
Backed out changeset 2fdc6c2ad384 (bug 1373326)
Backed out changeset 97b785a31a3c (bug 1373326)
Backed out changeset a5fcfe57e6d4 (bug 1373326)

MozReview-Commit-ID: 9kcJzI1hFja
2017-06-20 17:43:37 -07:00
Justin Wood 7e3f16609d Bug 1373326 - Add beetmover and balrog to taskgraph. r=dustin
(For Landing more OSX Nightly Support from date to central)

MozReview-Commit-ID: BeXoChssNjF
2017-06-16 16:01:38 -04:00
Justin Wood 0febe1ddac Bug 1373326 - Flesh out docs a bit. r=dustin
(For Landing more OSX Nightly Support from date to central)

MozReview-Commit-ID: 2zOkiBS294y
2017-06-15 13:47:22 -04:00
Gregory Szorc c25ba28a29 Bug 1372721 - Add a "trunk" alias for run-on-projects; r=dustin
{central, autoland, inbound} are logically treated as a single unit for
many tasks and policies. Let's formalize that collection via a "trunk"
alias.

MozReview-Commit-ID: H4JPTyu2J2F
2017-06-13 14:42:04 -07:00
Dustin J. Mitchell b04b5ac742 Bug 1359942: rename optimization to skip-unless-changed; r=glandium
MozReview-Commit-ID: 4d4zoDDJYnz
2017-05-23 10:22:53 -04:00
Dustin J. Mitchell 9035033b90 Bug 1351011: remove unused triggered_by property; r=Callek
The purpose of this parameter has been superseded by the `include_nightly`
property.

MozReview-Commit-ID: 4iXQsv9Drqg
2017-03-27 20:10:08 +00:00
Dustin J. Mitchell d6bbf4fda6 Bug 1340564: use an attribute to identify signed tasks; r=Callek
This is a more robust approach than using substring matching on task labels.

As an optimization, this simply avoids creating balrog tasks for unsigned beets
using only-for-attributes, rather than omitting them in a transform.

MozReview-Commit-ID: 8MNOxu0WgXo
2017-02-05 14:08:10 -05:00
Carsten "Tomcat" Book 2e5a4d0c40 Backed out changeset 1aeb99ce3e6c (bug 1340564) for hoping that fix the packageName issue 2017-05-12 15:59:56 +02:00
Dustin J. Mitchell 926eaa9dfe Bug 1340564: use an attribute to identify signed tasks; r=Callek
This is a more robust approach than using substring matching on task labels.

As an optimization, this simply avoids creating balrog tasks for unsigned beets
using only-for-attributes, rather than omitting them in a transform.

MozReview-Commit-ID: 8MNOxu0WgXo
2017-02-05 14:08:10 -05:00
Dustin J. Mitchell 1aa8e81879 Bug 1359997: update docs to point users to the parameters artifact; r=bdahl
MozReview-Commit-ID: KGt3MIniUe6
2017-04-26 21:16:16 +00:00
Justin Wood 2e62c25a28 Bug 1357867 - Add balrog and beetmover support to cross compiled OSX, allow dependencies on repackage jobs. r=dustin
MozReview-Commit-ID: Frc0sMaC1o0
2017-04-19 15:49:55 -04:00
Justin Wood a90803ce28 Bug 1357867 - Add repackage tasks suited for generating a .dmg from a signed tarball of OSX binaries. r=dustin
MozReview-Commit-ID: 7TdQxTlKm9D
2017-04-19 15:18:44 -04:00
Peter Moore 95b9ed5cf1 Bug 1349980 - Highlight the '-J' flag of mach taskgraph command in taskcluster docs,r=dustin 2017-04-06 19:10:52 +02:00
Johan Lorenzo 1ef2d5229a Bug 1317783 - Put PushApk tasks in-tree r=aki
MozReview-Commit-ID: 8uGIuj7OXwZ
2017-04-04 11:21:07 +02:00
Paul Bignier c1fcb05d9d Bug 1352802 - Typo fixes around 'accessible'. r=MattN
MozReview-Commit-ID: 27CyNOMXkRq
2017-04-03 09:47:00 -07:00
Paul Bignier 80de03c17c Bug 1352839 - Fix various typos of the word "taskcluster" in the tree. r=garndt 2017-04-02 09:13:00 -04:00