Commit Graph

12371 Commits

Author SHA1 Message Date
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
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
39b37c03c9 Bug 1290531 - Move tooltool.py into shared directory; r=dustin
The reason tooltool.py was vendored in testing/docker/decision was
because locally built Docker images were using vanilla `docker build`
and didn't know about our special Dockerfile syntax to allow the
inclusion of images from outside the directory where the Dockerfile
was located.

Now that locally-built Docker images know of our special Dockerfile
syntax, we can include files from anywhere. So, move tooltool.py
to a shared directory, away from the decision image.

I didn't bump the version of the decision image because there are
a few more things I want to do to this image, such as have it use
the `checkout-gecko-and-run` script instead of its own script.
I think I'll do that in a separate bug, however.

MozReview-Commit-ID: 12ze9GJFMJq

--HG--
rename : testing/docker/decision/tooltool.py => testing/docker/recipes/tooltool.py
extra : rebase_source : cfc2fa5759a3ec708b6e1736e9a2da03f0d25428
2016-07-29 13:50:24 -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
3a4c1c50de Bug 1290531 - Remove support for building with custom build.sh; r=dustin
Now that tester-device is gone, there are no more images using custom
build.sh scripts and that feature can be deleted. Yay simplicity.

MozReview-Commit-ID: 5JqFZ2HOsWs

--HG--
extra : rebase_source : 437bc8e877be065bf85db81422f3c1ddd5ac2800
2016-07-29 13:18:27 -07:00
Gregory Szorc
19331fe695 Bug 1290531 - Remove tester-device Docker image; r=dustin
There are no references to tester-device in tree or in the gaia repo.
Since it appears to be unused, remove it.

According to garndt, this was used for testing in the remote device
lab, which he things is no longer happening.

The reason I found this is because it is the only thing using a custom
"build.sh" to create Docker images. I'm rewriting the Docker image
building functionality and tester-device is a one-off interfering
with that work. Making it go away is the easiest way to unblock me.

MozReview-Commit-ID: 4veem4uIXXi

--HG--
extra : rebase_source : c2b5e59bdf5e84e7d7132c04bdf5b46c3392b37a
extra : amend_source : ff20838a8c828451412caf57c89efc59b2db202e
2016-07-29 13:17:16 -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
Gregory Szorc
efd6c78ba9 Bug 1290531 - Move image name verification to Python; r=dustin
MozReview-Commit-ID: 8KJZH5vjANS

--HG--
extra : rebase_source : f2cf88113473fa1dadcd4ff6f3baaf7dca55ee55
2016-07-29 12:59:46 -07:00
Gregory Szorc
e02661d117 Bug 1290531 - Move docker validation from build.sh to Python; r=dustin
Now that we have a mach command and Python code for doing Docker image
building, we can start moving code from build.sh to Python.

We start with searching for and validating the `docker` binary works.

MozReview-Commit-ID: 2DCc3b8UyZ3

--HG--
extra : rebase_source : ce5ad9dc39eea1fae97aec93eaefbc2c169ec313
extra : amend_source : 806411d3777c657b21d33bbb0e18e06de95716ce
2016-07-29 12:58:39 -07:00
Gregory Szorc
342f1df951 Bug 1290531 - Remove unused find_registry(); r=dustin
We're about to make significant changes to this file. Nuke an
unused function to make diffs easier to reason about.

MozReview-Commit-ID: KXXSrCVHww1

--HG--
extra : rebase_source : 37c9d507c45d4042ff0a911973b5e511173985dc
2016-07-29 12:55:48 -07:00
Gregory Szorc
96fa6fe838 Bug 1289643 - Change path for checkouts from "workspace" to "checkouts"; r=dustin
Currently, TaskCluster tasks tend to use the "workspace" directory as
a cache that manages the source checkout *and* additional state.

Historically at Mozilla, we've lumped "source checkout" and "workspace"
(sometimes known as an "objdir") into the same directory. This is
not ideal. Ideally, there is an immutable, read-only source checkout
and all files produced from that source live in a separate directory.

In this commit, the "workspace" directory for the "lint" image has been
renamed to "checkouts" and all tasks using the image have been updated
accordingly. By having "checkout" in the name, we clearly identify this
cache as being relevant to source checkouts, which IMO can serve a
different role from "workspaces." This distinction is important, as the
next commit will prevent the "checkouts" cache from getting optimized
out in certain tasks.

To hammer this point home, documentation on common caches has been
introduced.

MozReview-Commit-ID: BSEc4dM5YCt

--HG--
extra : rebase_source : 5a62939e066d3723736b41e14007112d92346684
2016-07-29 10:44:19 -07:00
Manish Goregaokar
df0592e329 Bug 1290813 - Include <ol reversed> reftests in wpt manifest, add test for nested div; r=xidorn
MozReview-Commit-ID: HtyLrSiX0KS

--HG--
extra : rebase_source : d4ba0db68fc475e015518544e6697155535c4763
2016-08-01 16:41:40 +05:30
Alexandre Lissy
f361a89027 Bug 1290685 - Update TaskCluster to use github.com for B2G.git r=garndt
MozReview-Commit-ID: EmLzh977XWi

--HG--
extra : rebase_source : cd9aa8b7e4119dd63eb2e31a2b2b745f1c6536ee
2016-07-31 00:03:51 +02:00
Carsten "Tomcat" Book
8dbb362d18 merge mozilla-inbound to mozilla-central a=merge 2016-07-31 17:44:14 +02:00
Jean-Yves Avenard
13f70f568e Bug 1288329: [webref] P7. Fix mimetype. r=gerald
The ogg file contains a theora video track with a flac audio track, not vorbis.
The new OggDemuxer properly ignore the tracks it knows nothing about.
This will cause the tests to use MP4 with h264/aac instead which isn't available on Windows XP, so we mark those tests are expected to fail.

MozReview-Commit-ID: 4UowUS6rQt3

--HG--
extra : rebase_source : d9f8fdde85fa5884d82c5ba612cc5ccf6c57e50f
2016-07-31 19:16:37 +10:00
Carsten "Tomcat" Book
fc8e03f0d8 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
Carsten "Tomcat" Book
3c40ac6f0b merge mozilla-inbound to mozilla-central a=merge 2016-07-30 16:20:57 +02:00
Mark Banner
c8531f414d Bug 1287827 - Part 3. browser/ cleanups to remove old permissions, uitour and test code related to Loop. r=dmose 2016-07-30 08:48:31 +01:00
Mark Banner
0d47d718ce Bug 1287827 - Part 2. Build changes for removing Loop. r=glandium 2016-07-30 08:48:29 +01:00
Boris Zbarsky
b5ee45e695 Bug 1290636. Expose iterator stuff on NodeList and DOMStringList. r=qdot 2016-07-30 01:00:18 -04:00
Wes Kocher
e92959a3bd Backed out 2 changesets (bug 1258539) for mozharness failures a=backout
Backed out changeset 8322ffecd9d9 (bug 1258539)
Backed out changeset cc2996a53b71 (bug 1258539)
2016-07-29 15:56:39 -07:00
Mark Banner
08ab3adda4 Backed out changeset 1a8114aa64c1 (bug 1287827) for breaking tests 2016-07-29 18:17:18 +01:00
Mark Banner
b5f9f1309f Backed out changeset e9e43e8256e1 (bug 1287827) for breaking tests 2016-07-29 18:17:17 +01:00
Mark Banner
59109f0ef2 Bug 1287827 - Part 3. browser/ cleanups to remove old permissions, uitour and test code related to Loop. r=dmose 2016-07-29 12:00:27 +01:00
Mark Banner
08a2b46865 Bug 1287827 - Part 2. Build changes for removing Loop. r=glandium 2016-07-29 12:00:25 +01:00
Carsten "Tomcat" Book
8c47612fee merge mozilla-inbound to mozilla-central a=merge 2016-07-29 11:56:43 +02:00
Mark Hammond
31b43265c9 Bug 1275139 (part 1) - kill ignoreRepositoryChecking pref, replacing it with AddonRepository.cache. r=rhelmer
MozReview-Commit-ID: 4tbctcuoFeB
2016-07-29 10:44:05 +10:00
Carsten "Tomcat" Book
1e0260eddf Merge mozilla-central to fx-team 2016-07-28 17:44:58 +02:00
Carsten "Tomcat" Book
37be51f16a merge mozilla-inbound to mozilla-central a=merge 2016-07-28 17:43:03 +02:00
Xidorn Quan
8f521e582e Bug 991899 followup - Mark some pointerlock wpt as expected-pass on CLOSED TREE
MozReview-Commit-ID: KmR0gKs5eqN

--HG--
extra : source : f18d7da0b93036139e58e82ca3632a752102d0df
2016-07-28 21:36:05 +10:00
Jeremy Chen
c9f52459aa Bug 1289007 - part1: parse and compute initial-letter property. r=heycam
MozReview-Commit-ID: E0eXolZ93oJ

--HG--
extra : rebase_source : 3fc74b84a488bb495f926b420aa6c06a987e09b2
2016-07-28 15:23:36 +08:00
Michael Comella
39ed656f3a Bug 1261494 - Reduce telemetry init delay to 1 second for integration testing. r=gbrown
My one concern is that this change could increase the amount of processing
time spent on telemetry initialization, causing the runtime of the robocop
test suite to increase. Checking my try push [1] against other try pushes,
it doesn't seem to have made a significant difference, but the change
in runtime between pushes can be large (e.g. > 5min) so it's hard to
tell.

[1]: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2017843315fe&selectedJob=24641374

MozReview-Commit-ID: LeeGgNEp74h

--HG--
extra : rebase_source : 21b01fa8a5357de19046fc946b4098cfd0f7b823
extra : amend_source : 457f229e6b92b8834ddd6dfef5837753f47d570b
2016-07-27 08:05:12 -07:00
Xidorn Quan
5f25699b9f Bug 1287706 part 8 - Add web-platform-test for once option. r=smaug
MozReview-Commit-ID: t5f34n2taN

--HG--
extra : source : e69c73673e363e383b5fbdac0b909a34bf2856f9
2016-07-28 12:00:06 +10:00
Ben Kelly
8d5f9def25 Bug 1170543 P5 Import actiation.https.html wpt test from blink. r=asuth 2016-07-27 20:36:11 -04:00
Henrik Skupin
e5327cb322 Bug 1258539 - [mozharness] Refactor name and arguments of download and unpack methods. r=jlund
Given that we have a universal unpack method now do not keep 'unzip' in method names.
Also adapt arguments to be better understandable.

MozReview-Commit-ID: ClDB5mSVcI2

--HG--
extra : rebase_source : 5bfee9d3c56436dd3a9f7c279517642ac70bb179
2016-07-19 23:00:46 +02:00
Carsten "Tomcat" Book
220e36cb8d Merge mozilla-central to mozilla-inbound 2016-07-30 16:23:21 +02:00
Thomas Wisniewski
6a1fb99d2b Bug 709991 - Fire onerror instead of throwing on network errors for async XHRs. r=bz 2016-07-30 00:24:56 -04:00
Valentin Gosu
c6165ca8ee Bug 1288482 - Backout bug 1042347. r=mcmanus
MozReview-Commit-ID: J3LmMfQ854V
2016-07-24 23:35:12 +02:00
Ben Kelly
61202c710a Bug 1228277 P3 Remove skipWaiting() work around from the wpt test. r=asuth 2016-07-27 19:09:15 -04:00
Wes Kocher
c7656c1da3 Backed out changeset c0bf6e0b8f1d (bug 1173199) for build bustage CLOSED TREE 2016-07-28 11:48:20 -07:00
Daisuke Akatsuka
4f153efd27 Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz

--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka
92b6c55c8d Bug 1264865 - Part 1: steps(3, end) should serialize using the shorter steps(3) syntax. r=birtles
MozReview-Commit-ID: HBukw3qjyrr

--HG--
extra : rebase_source : 53bdcefc66cffa92c438bb3be794e6537533461c
2016-07-27 10:12:43 +09:00
Henrik Skupin
421110bc7e Bug 1257476 - Marionette has to force close the process if it doesn't shut down itself. r=automatedtester
Under some circumstances Marionette currently fails to stop the application in case of socket issues. To
ensure that the application always gets closed - in the case when Marionette started it - the check for crashes
decorator gets updated to do a full process check.

MozReview-Commit-ID: DAiF2ZjAjT5

--HG--
extra : rebase_source : 9e959b4187ef959ee9b7262e8438a5aa84396723
2016-07-22 14:36:47 +02:00
Henrik Skupin
331c421dc0 Bug 1257476 - Ensure Marionette error classes use correct inheritance. r=ato,automatedtester
Custom Marionette error classes should not re-invent the message property which already exists in the
Exception class. This is fixed by calling constructor appropriately.

MozReview-Commit-ID: 1oWjg7MnrSe

--HG--
extra : rebase_source : 81a63c496f6bfbfda2565583edd18cbe1944fd99
2016-07-22 14:35:55 +02:00
Carsten "Tomcat" Book
8b58b75b4e merge mozilla-inbound to mozilla-central a=merge 2016-07-26 16:59:46 +02:00
Carsten "Tomcat" Book
25aa8617fc Backed out changeset 1825b8fa636a (bug 1246540) for bustage
--HG--
extra : rebase_source : 45defacae713b2c2f75813fea6f2f289ebc481cd
2016-07-26 12:52:15 +02:00
Carsten "Tomcat" Book
5b47cb2e80 Merge mozilla-central to autoland 2016-07-26 12:00:39 +02:00
Carsten "Tomcat" Book
574d0d452b merge mozilla-inbound to mozilla-central a=merge 2016-07-26 11:55:54 +02:00