Commit Graph

268 Commits

Author SHA1 Message Date
Kim Moir
904d639196 Bug 1282468 - disable buildbot asan builds and tests on trunk r=gbrown 2016-08-10 10:26:58 -04:00
Carsten "Tomcat" Book
553a2da922 merge mozilla-inbound to mozilla-central a=merge 2016-08-10 15:54:26 +02:00
Dustin J. Mitchell
ef45e28781 Backed out changeset ea0953a122a2 (bug 1291473)
MozReview-Commit-ID: G6NTiXnbvxf

--HG--
extra : rebase_source : 7644ab79b8d7344a4dadf772ec994289b00d6f27
2016-08-09 15:43:28 +00:00
Carsten "Tomcat" Book
c4b39a49eb Merge mozilla-central to mozilla-inbound 2016-08-09 15:47:44 +02:00
Carsten "Tomcat" Book
d9e0b4c565 merge mozilla-inbound to mozilla-central a=merge 2016-08-09 15:44:51 +02:00
Kim Moir
f906e9a8e1 Bug 1283879 - ASan builds shouldn't try to download symbols (since they don't produce symbols zips) r=dustin 2016-08-09 09:19:55 -04:00
Gregory Szorc
13a147d87a Bug 1290282 - Add build type to cache name; r=jonasfj
Without this, "debug" and "opt" builds share the same cache. This
causes builds to randomly fail in automation.

MozReview-Commit-ID: Fend6GGmhFk

--HG--
extra : rebase_source : c3370938364b1e2cc94081d58ba9f35ce1060e5d
2016-08-08 16:27:50 -07:00
Dustin J. Mitchell
6d7445298d Bug 1293397: run taskgraph-tests when things change; r=gps
This fixes the use of the bogus pattern `taskcluster/**.py` which does not
actually match python files in subdirectories.

MozReview-Commit-ID: 3UqM5UQ0HOE

--HG--
extra : rebase_source : 73eec18034a11256273589b69b6d95aabceecd03
2016-08-08 21:25:23 +00:00
Gregory Szorc
a00feedd9f Backed out changeset fc1ed3fd8584 (bug 1291473) on suspicion of breaking decision tasks 2016-08-08 13:15:37 -07:00
Gregory Szorc
95caf4dde4 Bug 1290282 - Switch to 16 vCPU instances for build tasks; r=dustin
We've created a new worker type based on c4.4xlarge and m4.4xlarge
instances to replace the existing worker types based on c3.2xlarge,
m3.2xlarge, and r3.2xlarge. The new worker type has 16 vCPU instead
of 8, which makes build tasks complete ~10 minutes faster.

We've also consolidated down into a single pool for workers.

MozReview-Commit-ID: sOfKspFjCS

--HG--
extra : rebase_source : 8c7b030e0d9376dd9c07b71b8987be0c300fb691
2016-08-08 12:38:19 -07:00
Dustin J. Mitchell
0027ea52f4 Bug 1291473: put l10n artifacts in the same place as other builds; r=Callek
Also add jobKind: build

MozReview-Commit-ID: 1Z0L8twJJC5

--HG--
extra : rebase_source : 69636edaebff086aaca49b4843c3d73a4ca0bdcc
2016-08-02 22:10:42 +00:00
Dustin J. Mitchell
f7a9bbac26 Bug 1293733: accept pushdate from command line; r=garndt
MozReview-Commit-ID: BrGiowlMVCa

--HG--
extra : rebase_source : e47b9e18b9dbc9e617f9bad165318a74c4e96e36
extra : source : fc1ed3fd8584161ae4693bd1c956e8254368b6bc
2016-07-13 18:50:50 +00:00
Gregory Szorc
30ea94481e Bug 1293717 - Include {{build_name}} in workspace cache; r=dustin
This was recently refactored (incorrectly) in 147b245de122
(bug 1290282). Before that refactor, we only defined {{build_name}}
in base_linux64.yml. After, we hard-coded "linux32" and "linux64."
The change to linux64 resulted in ASAN builds sharing the same cache
name. Derp.

This commit restores {{build_name}} to the cache path. And for
consistency, we use {{build_name}} on both 32 and 64-bit variants.

MozReview-Commit-ID: KhqIjzARETO

--HG--
extra : rebase_source : 6b110302b66e052ec3d79bdc5b05a190cb0a7749
2016-08-09 11:00:26 -07:00
Dustin J. Mitchell
05e1597215 Bug 1291473: accept pushdate from command line; r=garndt
MozReview-Commit-ID: BrGiowlMVCa

--HG--
extra : rebase_source : cf257129fcb1f6214949407b6a3956fd9698aa5b
2016-07-13 18:50:50 +00:00
Dustin J. Mitchell
4d9c99009b Bug 1291473: set tier explicitly for SM and Hazard jobs; r=sfink
MozReview-Commit-ID: BKnbx0wsyue

--HG--
extra : rebase_source : 7052b3cd0fba3e28b8f332098969a011265605bf
2016-07-26 19:34:48 +00:00
Dustin J. Mitchell
e5153458ba Bug 1291473: move hazard tooltool cache to the usual location; r=sfink
MozReview-Commit-ID: IMi2KNclKb9

--HG--
extra : rebase_source : 8e754faad40c79f141b9f06b4153b99006c0b911
2016-08-02 18:52:08 +00:00
Dustin J. Mitchell
6733881fbd Bug 1291473: set tier explicitly for SM jobs; r=sfink
MozReview-Commit-ID: JfQ53hy8aTs

--HG--
extra : rebase_source : 7588b343ef509c26c8b2880cda385a2019252df6
2016-08-02 18:51:25 +00:00
Dustin J. Mitchell
94b02140ae Bug 1291473: mark valgrind builds explicitly as tier-1; r=kmoir
MozReview-Commit-ID: 3brmQIyjXEj

--HG--
extra : rebase_source : 0bdfdb8f2212ec906bd96a70d817e5e9791f90c0
2016-07-26 18:25:49 +00:00
Dustin J. Mitchell
c4a330e3fd Bug 1291473: set tier explicitly for android partner builds; r=Callek
MozReview-Commit-ID: traMeOsxxg

--HG--
extra : rebase_source : e30a4ebf050faec7fb390f2e819d31299ed3dc9a
2016-07-26 17:34:41 +00:00
Dustin J. Mitchell
e4ed9f2279 Bug 1291473: set mulet tier explicitly r=gerard-majax
MozReview-Commit-ID: 8TA56XdGFU7

--HG--
extra : rebase_source : 56511fae4500f81216e03850cf912ed94394982d
2016-07-26 14:33:59 +00:00
Dustin J. Mitchell
0252ecf39d Bug 1291473: set TOOLTOOL_CACHE for android-api-15* builds; r=gbrown
MozReview-Commit-ID: 4tPKzZAeUW

--HG--
extra : rebase_source : 3c6f791b5fcbb43b9e83a44a3b7ed22ef6d2656c
2016-07-26 13:28:25 +00:00
Dustin J. Mitchell
24704cfe85 Bug 1291473: set tiers explicitly; r=mshal
MozReview-Commit-ID: IPmiAWw5QEF

--HG--
extra : rebase_source : 709b81479f2702663b8ed808640997290127850b
2016-07-25 21:02:12 +00:00
Dustin J. Mitchell
dab2cd3e66 Bug 1291473: set tier for st-an builds; r=Callek
MozReview-Commit-ID: 5jYMWrnepkW

--HG--
extra : rebase_source : 33ac9cd78e5e4d03e863efe4787fd545790fd5d5
2016-07-26 18:04:43 +00:00
Carsten "Tomcat" Book
d036bdb09c merge fx-team to mozilla-central a=merge 2016-08-04 15:54:27 +02:00
Wes Kocher
99881f0cb0 Merge m-c to fx-team, a=merge 2016-08-03 16:47:57 -07:00
Nick Alexander
4b68f17715 Bug 1291370 - Add Fennec-and-GeckoView Task Cluster job building using --with-gradle. r=dustin,gbrown
We run only a small subset of the test suite to save resources.  Over
time, we'll run more of the platform test suite.

--HG--
extra : rebase_source : 264fbe55be5b56857278ae8d731ef51b1b41cf3c
extra : histedit_source : a3550c7e2ea8a41cd6285e511b7268a9e7af11cd%2Cec6024dadcb7c071170aa452064776666283bb27
2016-08-03 16:02:00 -07:00
Carsten "Tomcat" Book
eeacfbeff0 merge mozilla-inbound to mozilla-central a=merge 2016-08-03 17:03:41 +02:00
Justin Wood
47b16ee23c Bug 1291337 - Export MOZ_AUTOMATION_UPLOAD_SYMBOLS for TC's jobs instead of just setting it. r=dustin
MozReview-Commit-ID: IW04TEogG4O

--HG--
extra : rebase_source : f2ab60bd95a4986416840d02c94b69af6d93dd77
extra : source : b1985f935333a0d5546ce9698b7ebab854542904
2016-08-01 20:14:46 -04:00
Dustin J. Mitchell
5e8cbd7fb2 Bug 1290523: support generic-worker task descriptions; r=pmoore
MozReview-Commit-ID: CHIGSrB1MIu

--HG--
extra : rebase_source : 41e56a996867dde93fd8f5f67411f81200b507b8
2016-07-29 17:50:09 +00:00
Armen Zambrano Gasparnian
ff5e584d9d Bug 1279676 - Support --rebuild try flag to schedule tests N times. r=dustin
MozReview-Commit-ID: Lrxi8t53nwy

If a developer adds '--rebuild N' to their try syntax they will get test jobs scheduled N times.
This is useful to determine intermittency rate.

This fixes a regression due to the recent refactoring on how we schedule tasks.

--HG--
extra : rebase_source : 355ca631353015bf63461c194168d753efd6958e
2016-07-28 13:20:44 -04:00
James Graham
0307e1c328 Bug 1291735 - Enable wpt lint on ci, r=ahal
MozReview-Commit-ID: 8o3FDgJ8nB8

--HG--
extra : rebase_source : 48b2669b28b598ab98b754f2b693f40aa4c676da
2016-08-02 17:03:49 +01:00
Carsten "Tomcat" Book
6b13b3cde6 Merge mozilla-central to autoland 2016-08-03 17:08:48 +02:00
Henrik Skupin
867c0f335a Bug 1290192 - Use Ubuntu 16.04 docker image for Firefox UI tests. r=dustin
MozReview-Commit-ID: lcM2yLJg0F

--HG--
extra : rebase_source : 4a5d2672b14f7261dced5373d4e7fc7cef69beca
2016-07-29 10:21:03 +02:00
Gregory Szorc
2377b59bfe Bug 1290611 - Normalize mode of created file in tests; r=dustin
Without this, current umask may influence test results. That was
causing differences between automation and local runs.

MozReview-Commit-ID: 1eu613aBpKB

--HG--
extra : rebase_source : 41c92b9ea795217e715dfa949d3444534aafb7c7
2016-08-02 08:36:19 -07:00
Gregory Szorc
08d735f41f Bug 1291070 - Tag and use decision image 0.1.4; r=dustin
To pull in run-task exit code fix.

MozReview-Commit-ID: 5QvcQijTRKH

--HG--
extra : rebase_source : cac011e2835f18e620293e8c05a8f49da472d925
2016-08-01 18:09:09 -07:00
Gregory Szorc
0f7dc03a9f Bug 1291070 - Return process exit code properly; r=glandium
Before, we were returning None, which gets converted to 0.
Derp.

Also fix a flake8 failure introduced by 9f5fbb3066c9.

We'll also need to generate a new decision image. But that will
require someone with TC privileges to be around. That can be done
in a separate commit to unblock this from landing and fixing
consumers of run-task that aren't the decision image.

MozReview-Commit-ID: 6XuoIxjDozF

--HG--
extra : amend_source : 4a3047d09d9bdce5a173a71ec3c68b8c4579a910
2016-08-01 21:44:22 -07:00
Iris Hsiao
923cbf5038 Backed out changeset 51f838971d62 (bug 1291070) for Taskgraph test failure 2016-08-02 17:24:25 +08:00
Alexandre Lissy
7a97623568 Bug 1290685 - Update TaskCluster to use github.com for B2G r=garndt
MozReview-Commit-ID: EmLzh977XWi

--HG--
extra : rebase_source : 9ef54a5cb83f722bfc5fecee2c2c98e9eea45231
2016-07-31 00:03:51 +02:00
Iris Hsiao
095be1ae13 Backed out changeset 3ebad6b5ce57 (bug 1290685) per developer's request 2016-08-02 14:39:10 +08:00
Gregory Szorc
e4c0cab07e Bug 1291070 - Return process exit code properly; r=glandium
Before, we were returning None, which gets converted to 0.
Derp.

Also fix a flake8 failure introduced by 9f5fbb3066c9.

We'll also need to generate a new decision image. But that will
require someone with TC privileges to be around. That can be done
in a separate commit to unblock this from landing and fixing
consumers of run-task that aren't the decision image.

MozReview-Commit-ID: 6XuoIxjDozF

--HG--
extra : rebase_source : 836f4996cb9be24e19504f73792b159f0ffbdbee
2016-08-01 21:44:22 -07:00
Armen Zambrano Gasparnian
6415eb5945 Bug 1288742 - Increase expiration date of all gecko decision artifacts bar image context tar balls. r=dustin
Until now Gecko decision task artifacts would expire after a week. Unfortunately, some of these artifacts are
needed in order for Treeherder to determine which tasks it can schedule on a given push.

In this change, we're changing the expiration of all artifacts except those that are related to docker image
optimizations, which, are very large files and we only want to keep for a week.

MozReview-Commit-ID: 96ahyWmoI7W

--HG--
extra : rebase_source : d0f4d65e3b5bfae832a5aaed60c0dfd58f0bdc62
2016-07-27 10:51:38 -04:00
Gregory Szorc
f434988215 Bug 1291035 - Increase HTTP connection pool capacity; r=dustin
I was looking at some decision task logs and noticed lines like:

  Connection pool is full, discarding connection: taskcluster

I also noticed lines like:

  Starting new HTTP connection (153): taskcluster

In this case, we had established 153 TCP connections to a server.

Looking at the requests source code, a requests.session by default
creates a connection pool with capacity of 10. There are actually 2
components to the capacity: idle connections and active connections.
What appeared to be happening was we could obtain an idle connection,
use it, and then it would be discarded when put back in the idle
pool because the idle pool was at capacity. Furthermore, it also
appears that connections were sitting around waiting for a TCP
connection.

This commit uses a custom "adapter" with an increased pool size that
matches the concurrency level of the code issuing the HTTP requests.
This should increase the number of concurrent TCP connections / requests,
decreease the number of TCP connections being used overall, and make
decision tasks complete faster.

MozReview-Commit-ID: 6NDbz78TM2y

--HG--
extra : rebase_source : a48e1dae31a5e2af2bc554b544a9019d50dc784f
2016-08-01 14:49:55 -07:00
Gregory Szorc
66dab0495d 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

--HG--
extra : rebase_source : 9586873c21d67f8ce869b7ceee221e8fa8775539
2016-07-29 21:03:48 -07:00
Gregory Szorc
1dadb3eea1 Bug 1290620 - Implement a run-task wrapper script; r=dustin
Before, we simply executed scripts inside Docker containers. This
frequently resulted in a wall of text with command output. It was
difficult to discern things like the time spent performing certain
actions.

Before, individual tasks had to drop permissions from the default
root user themselves. Dropping permissions isn't exactly a trivial
thing to do and a number of tasks didn't do it or did it wrong.

Before, we had a "checkout-gecko-and-run" script that kinda/sorta
did common activities for us. But it was written as a shell script
and doing advanced things was difficult.

This commit can be treated as a rewrite of "checkout-gecko-and-run"
as a Python script. But it also does a bit more. It prefixes output
with timestamps so we know how long operations took. It features more
robust argument parsing, so we can add new features more easily.

To prove the new wrapper script works, the lint image and all tasks
using it have been converted to use it.

MozReview-Commit-ID: 5d95u5Xebtq

--HG--
extra : rebase_source : 3a1d84782b01d7743e846bd0c04d7867813dd8a3
2016-07-29 20:53:21 -07:00
Gregory Szorc
e2deca67fe Bug 1290620 - Make mach taskgraph honor mach logging settings; r=dustin
Before, it ignored mach logging settings passed via command line
arguments.

MozReview-Commit-ID: CNckQHrOdX9

--HG--
extra : rebase_source : b4b190e8e2d073e8932799c8d8bedf49b5f3cfd8
2016-07-29 20:37:42 -07:00
Dustin J. Mitchell
ac4f355abc Bug 1290611: make test_p_expands_ridealongs resilient; r=gps
Use the source RIDEALONG_BUILDS value in the module under test so that changes
to that variable do not cause the test to fail.

MozReview-Commit-ID: EfHQ7baBziB

--HG--
extra : rebase_source : 1c52bf62709236db14a3ce318495891a2eb274f4
2016-07-29 23:01:04 +00:00
Dustin J. Mitchell
25cdf853c0 Bug 1290611: fix test_generate_context_hash; r=gps
The existing hash was for an empty tarfile.  Oops!

MozReview-Commit-ID: 1KOZxnDmoOH

--HG--
extra : rebase_source : 5d4db299dba80f98ba0383e88a1f4cfcb1dbcc70
2016-07-29 22:54:18 +00:00
Gregory Szorc
1ed7f8482f Bug 1290531 - Build Docker images from custom tar contexts; r=dustin
Now that Docker image building is called from Python, we can start to
do advanced stuff with it.

With this commit, we switch from building Docker images directly from
the source directory ("the Docker way") to using our custom Docker image
build contexts.

The main advantage of this is that locally-built Docker images can now
use our custom Dockerfile syntax to include extra files in the build
context!

The code for building a Docker image from a context has been extracted
to its own standalone function. I have nefarious plans for this in the
future, such as the ability to override the FROM syntax to specify
URLs of images. This would allow us to host base images on our own
server, which removes a dependency on Docker Hub and improves
determinism, since images on Docker Hub change all the time.

MozReview-Commit-ID: 5lTdV8yEHkc

--HG--
extra : rebase_source : c374558b82d0d0302351ffbf3c82878c6663f40c
2016-07-29 13:41:59 -07:00
Gregory Szorc
65c418d029 Bug 1290531 - Invoke docker from Python, remove build.sh; r=dustin
build.sh had been reduced to invoking `docker`. We move that invocation
to Python and remove build.sh. Long live build.sh!

MozReview-Commit-ID: FQBDJv4HSaU

--HG--
extra : rebase_source : 82979f2526ab1ab6dd5c25032b8d81074c797d94
2016-07-29 13:22:06 -07:00
Gregory Szorc
1ec6c0a5b5 Bug 1290531 - Move image tag resolution to Python; r=dustin
We already had code for resolving the image registry and tag. We
refactored it slightly to be more useful then changed build.sh to
accept the tag as an argument.

At this point, build.sh is basically a wrapper around `docker`. But
there's a special case for executing custom "build.sh" files we
need to eliminate first...

MozReview-Commit-ID: A9HVvxgCdG2

--HG--
extra : rebase_source : 30a408860aea619813f32723fe960d1224b5dbc7
2016-07-29 13:06:10 -07:00