Commit graph

65 commits

Author SHA1 Message Date
Connor Sheehan
dc39c5fb12 Bug 1534463: give tasks access to hgmointernal Taskcluster secret r=tomprince
Now that we have added the necessary scopes to `ci-configuration`,
we can add the in-tree scopes to give tasks access to the
`hgmointernal` config Taskcluster secret.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 18:47:21 +00:00
Tom Prince
3f64c323ad Bug 1529921: Use secrets from taskcluster for windows builds; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D20849

--HG--
extra : moz-landing-system : lando
2019-02-24 09:24:52 +00:00
Ciure Andrei
9aa98b01bd Backed out 2 changesets (bug 1529921) due to a high probability of breaking nightlies CLOSED TREE
Backed out changeset 1c9d01a6fbb8 (bug 1529921)
Backed out changeset fea99e80e861 (bug 1529921)
2019-02-23 03:36:18 +02:00
Tom Prince
930a5c2531 Bug 1529921: Use secrets from taskcluster for windows builds; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D20849

--HG--
extra : moz-landing-system : lando
2019-02-22 23:56:45 +00:00
Ciure Andrei
6e598cb224 Backed out changeset 5612534374b4 (bug 1529921) for causing build bustages CLOSED TREE 2019-02-23 01:33:56 +02:00
Tom Prince
8abfdcb46d Bug 1529921: Use secrets from taskcluster for windows builds; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D20849

--HG--
extra : moz-landing-system : lando
2019-02-22 22:01:44 +00:00
Tom Prince
ccff54c1ae Bug 1528362: [taskgraph] Use trust-domain prefixed caches; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D20049

--HG--
extra : moz-landing-system : lando
2019-02-21 07:32:36 +00:00
Mike Hommey
e42ae134c3 Bug 1528155 - Use sparse profiles in Windows toolchain tasks. r=tomprince
Also fix support_vcs_checkout call for docker-image based toolchain
tasks.

Differential Revision: https://phabricator.services.mozilla.com/D19912
2019-02-17 19:15:56 +09:00
Mike Hommey
eeb59260ed Backout changeset 834d38825814 (bug 1528155) and b759c45d1f01 to give time to toolchains to build. 2019-02-16 20:35:08 +09:00
Mike Hommey
e62cab9ab7 Bug 1528155 - Use sparse profiles in Windows toolchain tasks. r=tomprince
Also fix support_vcs_checkout call for docker-image based toolchain
tasks.

Differential Revision: https://phabricator.services.mozilla.com/D19912
2019-02-16 20:31:26 +09:00
Chris AtLee
5085d8b510 Bug 1527138: Remove references to old taskcluster worker types r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D19445

--HG--
extra : moz-landing-system : lando
2019-02-12 21:12:27 +00:00
Andrew Halberstadt
ab08922012 Bug 1519472 - [taskgraph] Support generic-worker caches in run_task, r=tomprince
This implements support for adding generic-worker caches. As a consequence this
also turns on caching for the gecko checkout if present.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 22:21:02 +00:00
Andrew Halberstadt
d585c32562 Bug 1519472 - [ci] Opt out of caching for generic-worker based Windows builds, r=tomprince
The hosts don't have enough disk space to cache mozilla-central.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 22:20:58 +00:00
Andrew Halberstadt
5012f75394 Bug 1519472 - [taskgraph] Factor logic for adding a cache in job.common to a new function, r=tomprince
We add caches at various places in common.py. This consolidates the logic into
a re-useable function. This is in preparation for adding generic-worker cache
support.

This also adds a test. The test is not terribly useful, but I've been looking
for an excuse to lay some groundwork for further tests in the 'job' submodule.
This will do.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 22:19:52 +00:00
Cosmin Sabou
b37ad15f5a Backed out 3 changesets (bug 1519472) for causing wrench bustages and as requested by pmoore. a=backout
Backed out changeset 2ceeee1915ae (bug 1519472)
Backed out changeset b6e19a5b0ab9 (bug 1519472)
Backed out changeset 0b8097689bb5 (bug 1519472)
2019-02-08 13:27:19 +02:00
Andrew Halberstadt
42693fa1fd Bug 1519472 - [taskgraph] Support generic-worker caches in run_task, r=tomprince
This implements support for adding generic-worker caches. As a consequence this
also turns on caching for the gecko checkout if present.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:36:42 +00:00
Andrew Halberstadt
04fa5242be Bug 1519472 - [ci] Opt out of caching for generic-worker based Windows builds, r=tomprince
The hosts don't have enough disk space to cache mozilla-central.

Depends on D17689

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:31:57 +00:00
Andrew Halberstadt
001ebeef3e Bug 1519472 - [taskgraph] Factor logic for adding a cache in job.common to a new function, r=tomprince
We add caches at various places in common.py. This consolidates the logic into
a re-useable function. This is in preparation for adding generic-worker cache
support.

This also adds a test. The test is not terribly useful, but I've been looking
for an excuse to lay some groundwork for further tests in the 'job' submodule.
This will do.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:32:15 +00:00
Andrew Halberstadt
828485d8db Bug 1436037 - [taskgraph] Support OSX generic-worker in run-task, r=Callek
This enables OSX generic-worker based tasks to use the run-task script.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 13:43:04 +00:00
Andrew Halberstadt
6f42a07813 Bug 1436037 - [taskgraph] Support Windows generic-worker with run-task, r=gps
This enables Windows generic-worker based tasks to use the run-task script.

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:19:56 +00:00
Andreea Pavel
e3299fd2db Backed out 5 changesets (bug 1498640, bug 1436037, bug 1497660, bug 1505579) for mass failures on a CLOSED TREE
Backed out changeset 914a7a899dd1 (bug 1436037)
Backed out changeset e072757bf691 (bug 1436037)
Backed out changeset b0805a8cf6eb (bug 1505579)
Backed out changeset aa32ba9e6df3 (bug 1498640)
Backed out changeset ce441b8a784c (bug 1497660)
2018-11-15 07:53:41 +02:00
Andrew Halberstadt
1d4d313462 Bug 1436037 - [taskgraph] Support Windows generic-worker with run-task, r=gps
This enables Windows generic-worker based tasks to use the run-task script.

MozReview-Commit-ID: C07FANaYzf7

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

--HG--
extra : moz-landing-system : lando
2018-11-15 00:47:32 +00:00
Andrew Halberstadt
15c53b6d46 Bug 1468812 - [ci] Support MOZ_FETCHES and fetch-content in run-task r=gps
This removes the 'use-artifacts' mechanism in favour of fetches. There are a
few pieces here that need to land atomically:

1. Remove use-artifact related code
2. Call 'fetch-content' from the run-task script
3. Convert existing tasks on top of fetches (jsshell, python unittest)
4. Stop calling 'fetch-content' from toolchain setup tasks (as this now gets handled in run-task)

Depends on D2166.

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

--HG--
extra : moz-landing-system : lando
2018-07-26 17:13:39 +00:00
Sebastian Hengst
943a6cf31a Backed out changeset 61f33f8c8750 (bug 1468812) for Linux ccov mass failures (bug 1478211). a=backout 2018-07-25 18:05:09 +03:00
Andrew Halberstadt
a3174ac509 Bug 1468812 - [ci] Support MOZ_FETCHES and fetch-content in run-task r=gps
This removes the 'use-artifacts' mechanism in favour of fetches. There are a
few pieces here that need to land atomically:

1. Remove use-artifact related code
2. Call 'fetch-content' from the run-task script
3. Convert existing tasks on top of fetches (jsshell, python unittest)
4. Stop calling 'fetch-content' from toolchain setup tasks (as this now gets handled in run-task)

Depends on D2166.

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

--HG--
extra : moz-landing-system : lando
2018-07-24 13:11:25 +00:00
Andrew Halberstadt
9e81b12ebc Bug 1465181 - Use releng-hardware/gecko-t-linux-talos workerType for js-bench tasks, r=jmaher
This will get the js-bench tasks to run on physical hardware instead of AWS.


MozReview-Commit-ID: 44XavXAwxxn

--HG--
extra : rebase_source : ae1ba4c7f90b3a8526511a3f3c1dff913a334619
2018-05-29 16:01:04 -04:00
Andrew Halberstadt
38e69c76b1 Bug 1465181 - [taskgraph] Stop hardcoding the workdir to /builds/worker in 'job' tasks, r=gps
This adds an optional 'workdir' key to all job schemas. It still defaults to
/builds/worker, but can be overriden by individual tasks or schema
implementations.

MozReview-Commit-ID: LY20xfBhbCP

--HG--
extra : rebase_source : 7ac76ebf55d33d30c2aad73484421c6b4002cd33
2018-05-29 16:05:35 -04:00
Andrew Halberstadt
cf081cacda Bug 1465181 - [taskgraph] Support use-artifacts with native-engine in run-task, r=dustin
Extends support of the use-artifacts key to native-engine based tasks.

MozReview-Commit-ID: FJILoyD5XVZ

--HG--
extra : rebase_source : 0cf8bf63f73d0fbb634f6b437bcc9bcce7821900
2018-05-24 11:08:09 -04:00
Tom Prince
ce86c6c047 Bug 1462791: [taskgraph] Return list from generic_worker_hg_commands; r=dustin a=Aryx
Some code[1] expects to be able to `.extend` the result.

[1] https://searchfox.org/mozilla-central/rev/bf4def01bf8f6ff0d18f02f2d7e9efc73e12c63f/taskcluster/taskgraph/transforms/job/mozharness.py#318-331

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

--HG--
extra : amend_source : 73e7c89d4b4f62f54e8bf7448d5e58a188590189
2018-05-25 08:55:42 -06:00
Gregory Szorc
b59654bfbc Bug 1462791 - Remove docker_worker_add_gecko_vcs_env_vars(); r=dustin
support_vcs_checkout() always sets the environment variables that
were set by this deleted function. In addition, support_vcs_checkout()
also adds caches and scopes - at least for docker-worker and
docker-engine. For generic-worker - which was used in all call sites
of docker_worker_add_gecko_vcs_env_vars() (yes, the "docker_worker"
bit of the name was completely wrong - probably a legacy holdover) -
support_vcs_checkout() was *almost* exactly equivalent to
docker_worker_add_gecko_vcs_env_vars(). The only difference is that
support_vcs_checkout() adds the
secrets:get:project/taskcluster/gecko/hgfingerprint scope in addition
to setting the environment variables.

MozReview-Commit-ID: 8fl3u9be5fT

--HG--
extra : rebase_source : 0eec2f143f903a3fcc5502b60026f5d8061100ea
2018-04-23 13:39:16 -07:00
Gregory Szorc
d37f10a88a Bug 1462791 - Add helper function for VCS checkout on generic-worker; r=dustin
This functionality was implemented at least 3 times. Let's consolidate
it to a central function.

Returning multiple command strings is kind of funky. I preserved
existing behavior and mozharness jobs are the only ones printing the
forensic logging. We should probably move this logging into
robustcheckout so we don't need to involve taskgraph with this. But
that can be deferred to another day.

MozReview-Commit-ID: I2LglJvfI6

--HG--
extra : rebase_source : 7cb413694aee4e46a6522febe9daa4b73b5307ca
extra : source : 096d7d374af427ee950c7a550878781eebad4135
2018-04-20 13:34:45 -07:00
Andrew Halberstadt
dbbfae76db Bug 1461980 - [taskgraph] Add ability to download artifacts from dependencies in run-task script, r=dustin
This adds a 'use-artifacts' key to the run_task schema. Tasks can specify artifacts to download like this:

run:
    using: run-task
    use_artifacts:
        build:
            - target.tar.bz2
            - target.common.tests.zip
            - target.mochitest.tests.zip

This will cause the run-task script to download those three artifacts from the task's 'build' dependency.
If the task doesn't have a 'build' dependency, taskgraph generation will error. The artifacts will be
downloaded into $USE_ARTIFACT_PATH. It is up to the task to do whatever extracting/setup may be required.
E.g this setup could go in the task's command.

At this time, only 'run-task' tasks using docker-worker are supported.

MozReview-Commit-ID: 3f02oCys62i

--HG--
extra : rebase_source : e8a85040e45042b537d4119334c4a8b7280b295c
2018-05-17 10:04:23 -04:00
Tom Prince
c4549c8e6b Bug 1442545: [partner-repack] Add repack partner builds; r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D980

--HG--
extra : rebase_source : cc2a3419115cd40f5cd3f997071b0e1b46324821
extra : histedit_source : 24f8156d534da14a89a149c86eeecb57eb74ec23
2018-04-18 11:02:02 -06:00
Aki Sasaki
2df4c945da bug 1442793 - job public_artifacts -> artifacts. r=bhearsum
MozReview-Commit-ID: F1byXqn5Yan

--HG--
extra : rebase_source : 363319492aa6c5f6737a679c6c35303c4d104e87
2018-03-07 14:07:58 -08:00
Tom Prince
ba952c797a Bug 1418671: Use a separate cache for builds that checkout comm-central; r=gps
MozReview-Commit-ID: DxmPkgvQYnp

--HG--
extra : rebase_source : 9e890eead7033a31584a676b720ba014678123f1
2017-11-18 17:43:45 -07:00
Mike Hommey
f88329d02f Bug 1409260 - Remove tc-vcs caches. r=dustin,gps
--HG--
extra : rebase_source : bc8a0e8807c1dd6d2a662c7c1fc8ad33af88efe9
2017-10-17 15:12:18 +09:00
Tom Prince
bc9fa88c27 Bug 1385055 - Add taskgraph support for checking out comm-central and related branches. r=dustin
MozReview-Commit-ID: 1eU567Cuc8a

--HG--
extra : rebase_source : b73b818763c464f87455ffd6054302a3285f18d8
extra : source : cd6ab5624e6b3a6a8b11d5a44d5cba05cb042c64
2017-07-27 12:39:08 -06:00
Wander Lairson Costa
6332ed5b0a Bug 1338651 part 1: Change docker image home dir to /build. r=dustin,mshal
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: 554IPMRWgzK

--HG--
extra : rebase_source : 00827d3f6bd705419bc801eb05b543af1ddc274f
2017-08-28 08:44:51 -03:00
Gregory Szorc
22bae15639 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

--HG--
extra : rebase_source : babe9b42e2796c2341bffc6ecfe829f4daff9e0f
2017-08-23 18:54:14 -07:00
Gregory Szorc
29d31d4990 Bug 1391476 - Track whether caches should be used in untrusted environments; r=dustin
Previously, we conditionally added caches to a task if the current
parameters warranted it.

In order to audit that all caches fulfill basic requirements, we need
to have unconditional knowledge of all caches.

This commit introduces an optional key on each cache entry stating
whether it should be skipped in "untrusted" environments. When we
convert a task definition to a worker payload, we filter out these
caches if necessary.

This change uncovered an inconsistency with filtering caches. In
one location we filtered on the source repo name. In others, we
filtered on the SCM level.

Setting the caches in the spidermonkey kind also changed slightly
to ensure we're not overwriting existing caches. I don't think this
has any behavior changes. But the new method is more correct.

MozReview-Commit-ID: 1crpdWHqQ68

--HG--
extra : rebase_source : 69469014dcc92d4de98d5e887b10542af00e05be
2017-08-22 15:06:40 -07:00
Gregory Szorc
ffc20b23b1 Bug 1391476 - Don't use ~ in paths; r=dustin
~ in paths is mostly a shell-ism. Let's not use it.

The real reason for this is it interfes with upcoming commits that
audit cache and volume paths.

MozReview-Commit-ID: AhjMwg5gexx

--HG--
extra : rebase_source : dd997a5d9c1123beecaa14bc5458a9338b3e07db
2017-08-21 17:11:49 -07:00
Gregory Szorc
e50add9dfc Bug 1391789 - Set relengapi-proxy on correct object; r=bustage
This corrects a bug introduced in 265873cf1388.

MozReview-Commit-ID: LkZlTVAM17E

--HG--
extra : rebase_source : bf442e620abd6b47adee3d4c56e6f0c19964aea1
2017-08-21 10:30:42 -07:00
Gregory Szorc
e23a086148 Bug 1391789 - Stop versioning version control cache; r=dustin
We added this versioning as a mechanism to create clean breaks when
version control mechanisms change in significant ways. Now that
run-task's content influences cache names and this cache name
pattern must be used with run-task, we no longer need this
versioning and can rely on run-task's content and cache requirements
to switch to new caches.

MozReview-Commit-ID: KJ7IF7UzDsg

--HG--
extra : rebase_source : 9d562ec3977fea7920039a66be13cfae8980475e
2017-08-18 17:05:26 -07:00
Gregory Szorc
ffba62a0c4 Bug 1391789 - Validate certain caches are used with run-task; r=dustin
run-task just grew features to aid with cache validation.
Attempts by run-task to use caches not under its control will fail.

So, we add a transform that audits for and ensures that certain
caches are only being used with run-task. This will help catch
stragglers attempting to use e.g. the legacy VCS checkouts or
tooltool caches without run-task. Fortunately, there are no
violations for this policy. Yay!

MozReview-Commit-ID: LBCmDUdgcuM

--HG--
extra : rebase_source : 9a290470088a8d55693dfbadc5186a018d3669b6
2017-08-18 15:30:32 -07:00
Gregory Szorc
f114aa8c35 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

--HG--
extra : rebase_source : dfe97f92a726059200ed79afe215ef2cf1fd7bf1
2017-08-18 16:15:44 -07:00
Gregory Szorc
fc6c71dc35 Bug 1391789 - Consolidate tooltool modifications to shared function; r=dustin
This pattern is repeated a number of times. Let's consolidate it.

A few places set relengapi-proxy=False. AFAICT this was a no-op because
the default value in the worker schema is False. So, these assignments
were dropped.

MozReview-Commit-ID: EoNPBhaMT2J

--HG--
extra : rebase_source : 72b9c6e4b42369720a19bab42c9ea40c942b5494
2017-08-18 16:06:19 -07:00
Ryan VanderMeulen
ba4112b112 Backed out changeset 314ffe5d7d40 (bug 1385055) for decision task bustage. 2017-08-20 21:59:03 -04:00
Tom Prince
576f681017 Bug 1385055 - Add taskgraph support for checking out comm-central and related branches. r=dustin
MozReview-Commit-ID: 1eU567Cuc8a

--HG--
extra : rebase_source : 9356e86151982e17496b4d10e8f3a1834a80e298
2017-07-27 12:39:08 -06:00
Justin Wood
763c80eee7 Bug 1381577 - Part F; Make artifact path setting more generic for windows worker. r=dustin
Land date changes to support windows nightlies onto central

MozReview-Commit-ID: BwBvzr46d20

--HG--
extra : rebase_source : a0f0390f3dcef510f653a5d35963d466befa5ee7
2017-07-17 15:40:57 -04:00
Wes Kocher
62d8e4f4fa Backed out changeset f8a62747c51c (bug 1338651) for valgrind issues a=backout 2017-06-30 14:45:26 -07:00