Commit Graph
26 Commits
Author SHA1 Message Date
Dustin J. Mitchell fcbbf2046e Bug 1396657: really, finally, use /builds for old action tasks; r=wcosta
This is basically a revert
https://hg.mozilla.org/mozilla-central/rev/6490ba9e0ec7 that should have been
included in https://hg.mozilla.org/mozilla-central/rev/081f830cf285

MozReview-Commit-ID: HtO5b6WPYnB
2017-09-05 13:27:06 +00:00
Dustin J. Mitchell c80e2187c3 Bug 1394883: use /builds/worker in decision images; r=wcosta
MozReview-Commit-ID: 29cnSAr3zCW
2017-08-30 15:55:35 +00:00
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 8fda8d80f9 Bug 1394883: use /builds/worker in decision images; r=wcosta
MozReview-Commit-ID: 29cnSAr3zCW
2017-08-30 15:55:35 +00:00
Dustin J. Mitchell 5326c176e1 Bug 1394779: decision image still uses /home; r=wcosta
MozReview-Commit-ID: 77d7Mze0CRJ
2017-08-29 12:55:11 +00:00
Wander Lairson Costa 6b7f9ef0d1 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
2017-08-28 08:44:51 -03:00
Dustin J. Mitchell 3c0983cc47 Bug 1389850: use per-level decision and image workers; r=bstack
MozReview-Commit-ID: BoUuPRUgGnm
2017-08-16 13:23:13 +00:00
Wes Kocher 87809bff97 Backed out changeset f8a62747c51c (bug 1338651) for valgrind issues a=backout 2017-06-30 14:45:26 -07:00
Wander Lairson Costa 484b2f6d33 Bug 1338651: Change docker image home dir to /build. r=dustin,mshal a=hopefullyavoidingmergebustagelater
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: zehcGJrUQX
2017-06-29 15:45:01 -07:00
Dustin J. Mitchell 74ea35d1a6 Bug 1269443: remove now-unnecessary scopes; r=bstack
MozReview-Commit-ID: Bbk1MPKZIPW
2016-09-27 15:57:51 +00:00
Brian Stack d28e91043e Bug 1325479 - Fix repo scopes in action task r=dustin
MozReview-Commit-ID: AGfoFtjR5LI
2016-12-22 17:08:33 -05:00
Brian Stack 18ccebf6e8 Bug 1324094 - Add correct cache scopes to action tasks r=armenzg,dustin
MozReview-Commit-ID: KxtG4cHU0Mm
2016-12-16 13:06:57 -08:00
Brian Stack 5e07795db3 Bug 1289823 - Add backfilling as an action-task r=armenzg,dustin
MozReview-Commit-ID: HALwE6Q0Lch
2016-12-07 13:33:20 -10:00
Brian Stack 37e9b8f820 Bug 1289823 - Make taskcluster action-task more flexible r=armenzg,dustin
MozReview-Commit-ID: 8qoJsFeFm6I
2016-11-28 14:15:31 -08:00
Gregory Szorc ca434f80a4 Bug 1311791 - Explicitly declare path to shared hg store; r=dustin
332a08725ed0 changed the store path logic in a quick and crude manner.
The code could lead to multiple shared stores existing on a cache
if checkouts were in different parent directories.

This commit refactors the code to explicitly declare a path to the
shared hg store. This restores the behavior of ensuring there is only
a single shared store per cache.

MozReview-Commit-ID: 19Aa1QVrVQ8
2016-10-20 12:56:43 -07:00
Gregory Szorc af5fb4af80 Bug 1292071 - Put Mercurial store on same cache as checkout; r=dustin
We were seeing issues with the Mercurial working directory not being
pristine. While I can't reproduce this, I have a hunch it is due to
mixing and matching stores and checkouts in TaskCluster. For example,
if a worker supports running concurrent tasks and 2 tasks arrive at
the same time, the caches for the store and checkout may look like:

  (store0, checkout0)
  (store1, checkout1)

However, the next task may get:

  (store1, checkout0)

This may confuse Mercurial.

This commit eliminates the "hg-shared" cache and places the shared
stores as a sibling directory of the checkout.

MozReview-Commit-ID: 8SzyS6wWf9C
2016-10-18 09:46:55 -07:00
Kalpesh Krishna 1694dfb4ef Bug 1305989 - Update usage of create_tasks() in action tasks. r=dustin 2016-09-28 09:43:00 -04:00
Gregory Szorc a0f34b05a8 Bug 1298947 - Tag and use decision image 0.1.6; r=dustin
Containing the Mercurial 3.9.1 version bump and the change to pin the
hg.mo fingerprint from a TC secret.

MozReview-Commit-ID: LVU7P0LqIvD
2016-09-01 15:21:02 -07:00
Gregory Szorc 0fe16159c3 Bug 1298455 - Tag and use decision image 0.1.5; r=dustin
MozReview-Commit-ID: Fmc4l70onV2
2016-08-26 11:10:30 -07:00
Gregory Szorc 1c384a0c90 Bug 1291070 - Tag and use decision image 0.1.4; r=dustin
To pull in run-task exit code fix.

MozReview-Commit-ID: 5QvcQijTRKH
2016-08-01 18:09:09 -07:00
Gregory Szorc b2621c84ca Bug 1290620 - Use run-task from decision task; r=dustin
This commit does a lot. But it's really not too difficult to comprehend
once you focus on the final state, which is basically the same as the
"lint" image and derived tasks.

Before, the "decision" image contained a "checkout-gecko" script and
"run-action" and "run-decision" scripts. The latter 2 invoked the first
script.

The "run-task" script basically does what the combination of these
scripts were doing before. So we switch to it.

While we're here, we also replaced the custom Mercurial installation in
this image with the shared install-mercurial.sh script. The
system-setup.sh script for the decision image is now short and sweet.

The YAML files for tasks using this image have been updated to use
"run-task." We no longer have to pass an environment variable to hold
command arguments. So we revert to putting these arguments inline in
the task's command. Dustin never liked passing the arguments as
environment variables, so it should make him happy ;) We add
--log-no-times because "run-task" prefixes its own timestamps on output
lines.

The path to the Gecko checkout has been changed from
/home/worker/workspace to /home/worker/checkouts to match changes made
in bug 1289643.

Finally, since "checkout-gecko-and-run" is no longer used, we delete it.

The Docker image version has been bumped accordingly.

MozReview-Commit-ID: HAGuCz6668Q
2016-07-29 21:03:48 -07:00
Gregory Szorc 976b77f3dd Bug 1290516 - Remove {{project}} from cache path for decision and action tasks; r=dustin
Currently, the gecko-decision and action tasks maintain a separate cache
for each "project" (Firefox repo) source checkout. In my opinion, this
is not necessary.

Separate caches/source checkouts mean a lower chance for a cache hit:
a lower chance that any given worker will have a source checkout readily
available for the "project" being built. They also mean workers store
more data and files in caches.

By using a shared cache for source checkouts, workers will ideally
only have a single source checkout cache and will be pretty much
guaranteed to have a checkout readily available (the main exception
being the first task on a freshly-provisioned worker).

A downside of a shared cache is that workers may spend more time doing
`hg update` operations. e.g. if the last task was from mozilla-release
and the current task is from mozilla-central, thousands of files will
be updated. However, I believe we will still be better off because
separate caches *increase* the probability for a full checkout, which
involves writing ~150,000 files! So I believe this change will lower
the overall amount of VCS work done by workers while possibly
sacrificing the lowest possible execution time (which is achieved by
minimizing the `hg update` work).

It's worth noting that `hg robustcheckout` (which is used by these
tasks) does the equivalent of an `hg purge --all`. This ensures that all
untracked and ignored files from previous tasks are deleted. So there
should be no contamination from previous tasks.

MozReview-Commit-ID: I5Ng3xFEfou
2016-07-29 10:09:06 -07:00
Gregory Szorc 6a9cdef146 Bug 1247168 - Make mozilla-unified the base repository for Firefox; r=dustin
https://hg.mozilla.org/mozilla-unified contains heads from all the
major Firefox repos. In addition, it is encoded on the server in such a
way that it is several hundred megabytes smaller despite containing
30,000+ more changesets. This means faster clones and faster
operations.

Cloning this repo does require a new version of Mercurial. So if any
TC tasks are using an ancient Mercurial - one that is vulnerable to
known CVE issues in fact - this will flush them out.

MozReview-Commit-ID: 2VHDa6FEeeJ
2016-07-19 16:46:25 -07:00
Gregory Szorc a7e76c58cd Bug 1247168 - Tag and use version 0.1.2 of the decision image; r=dustin
Changes to the decision Docker image have been compelted. We're ready to
use the new image.

We tag the image, update version references, change the task caches
so the new Mercurial pooled storage from the robustcheckout extension is
used, and convert the decision tasks to run as the "worker" user.

MozReview-Commit-ID: 61v9Ivy59zG
2016-07-21 11:32:07 -07:00
Gregory Szorc 68049f6318 Bug 1247168 - Actually use workspace cache in decision task; r=dustin
The decision task configures a /home/worker/workspace cache. However,
the command we run in the container references a "workspace" relative
path. From logs in automation, it appears that PWD during execution
is "/" because "workspace" is being resolved to "/workspace." The
net result of this is we appear to be performing a VCS clone+checkout
on every single task.

This commit fixes the paths so our workspace cache is actually used.

MozReview-Commit-ID: Kj6REep5bSs
2016-07-20 15:34:10 -07:00
Kalpesh Krishna 701956d8fb Bug 1281062 - Create Action Tasks to schedule new jobs. r=dustin
MozReview-Commit-ID: 5MvqLfGrlLC
2016-07-11 22:43:58 +05:30