Commit Graph
12306 Commits
Author SHA1 Message Date
Daisuke Akatsuka ad6c07aadb Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka d1e6204f9d Bug 1264865 - Part 1: steps(3, end) should serialize using the shorter steps(3) syntax. r=birtles
MozReview-Commit-ID: HBukw3qjyrr
2016-07-27 10:12:43 +09:00
Henrik Skupin f7c8c04559 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
2016-07-22 14:36:47 +02:00
Henrik Skupin f830111f6d 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
2016-07-22 14:35:55 +02:00
Carsten "Tomcat" Book a52c0b5859 merge mozilla-inbound to mozilla-central a=merge 2016-07-26 16:59:46 +02:00
Carsten "Tomcat" Book aa3c9ddbe9 Backed out changeset 1825b8fa636a (bug 1246540) for bustage 2016-07-26 12:52:15 +02:00
Carsten "Tomcat" Book 0c39ede516 Merge mozilla-central to autoland 2016-07-26 12:00:39 +02:00
Carsten "Tomcat" Book dc848cfb84 merge mozilla-inbound to mozilla-central a=merge 2016-07-26 11:55:54 +02:00
Carsten "Tomcat" Book 2bfc46a65f merge autoland to mozilla-central a=merge 2016-07-26 11:54:02 +02:00
Iris Hsiao e7564195bb Backed out changeset 92ba454cff2a (bug 1284803) for build bustage 2016-07-26 10:20:20 +08:00
Sotaro Ikeda e9cbb8f74d Bug 1284803 part 12 - Update web-platform-tests webvtt ini r=jgraham 2016-07-25 18:23:55 -07:00
Henrik Skupin 5eeca989a2 Bug 1284502 - Marionette harness should log exceptions from run() only once. r=maja_zf
Whenever an exception is raised while tests are executed, the log error message should only be
printed once. As best this should happen in `cli()`, so that subclasses can better set their
own behavior, and we safe us from re-raising the exception.

MozReview-Commit-ID: 5NLBnJAjUMQ
2016-07-25 18:23:26 +02:00
Rail Aliiev 204818b366 Bug 1289153 - merge scripts should pass --new-branch for m-r push r=jlund a=release DONTBUILD
MozReview-Commit-ID: Ftb6NTMM5Wz
2016-07-25 11:24:53 -04:00
Henrik Skupin dd1c47a8ed Bug 1287723 - Fix test_screenshot.py for handling secondary chrome windows. r=automatedtester
MozReview-Commit-ID: G11xJFsGdRy
2016-07-25 12:17:06 +02:00
Jordan Lund 67cff2d625 Bug 1288882 - use_vcs_unique_share defined in mozharness migration configs is ignored, r=Callek a=release DONTBUILD
note: this requires a clean work dir unfortunately. so you have to blow away
the fake build/hg-share and any repos in build/

MozReview-Commit-ID: 3TfNLdga9Dt
2016-07-22 18:24:50 -07:00
Jordan Lund 0236c881d2 Bug 1278261 - drop api-9 mozilla-release release support, remove all api-9 and api-11 references, r=Callek
this can be uplifted through 48 mozilla-release

MozReview-Commit-ID: KncTJ8hAgfO
2016-07-23 22:44:47 -07:00
Carsten "Tomcat" Book 19af329f0e merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Carsten "Tomcat" Book 496d5f888a merge fx-team to mozilla-central a=merge 2016-07-25 15:49:05 +02:00
Carsten "Tomcat" Book 6a94a84a74 merge autoland to mozilla-central a=merge 2016-07-25 15:46:37 +02:00
Carsten "Tomcat" Book 18bc7fbf7d Backed out changeset d93b95e192e9 (bug 1287723) on request from whimboo 2016-07-25 11:42:10 +02:00
Carsten "Tomcat" Book c0a2b46b9b merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Carsten "Tomcat" Book 75cfe8f2e9 Backed out changeset 16aa7041c009 (bug 1287107) for causing xpcshell and mac tests 2016-07-22 11:30:23 +02:00
Carsten "Tomcat" Book 322c10e0a1 Backed out changeset 66c7af8b2654 (bug 1272629) for failing valgrind tests 2016-07-22 08:35:19 +02:00
Kate McKinley aa987ec2b1 Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.

(r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally)
2016-07-25 12:37:00 +02:00
Andreas Tolfsen c6157b1973 Bug 1287751 - Remove logging in GeckoDriver#startBrowser; r=automatedtester
MozReview-Commit-ID: K7ZV3BajNS8
2016-07-19 13:25:56 +01:00
Gregory Szorc ad6cb63b7f Bug 1247168 - Convert lint image and tasks to use robustcheckout; r=dustin
The robustcheckout Mercurial extension does a clone+checkout optimally.
Read the bug for more on it.

robustcheckout is already used by mozharness automation. It has resulted
in a significant reduction in I/O usage and utilization in automation.

This commit replaces tc-vcs with the robustcheckout equivalent.

We replace the existing tc-vcs scope and cache with a new one.
Because Dustin and I are paranoid, we maintain separate caches per
SCM level - even though we could arguably share the same cache. Defense
in depth.

Robustcheckout (when used with --sharebase) pools storage for related
repos automatically. i.e. changesets from inbound and central will
be in the same store. This means you likely only have one copy of
each changeset per cache. This can result in significant space savings.
And, since there are fewer copies floating around, hg.mozilla.org
and various network appliances are working less too!

Since tc-vcs is no longer used, we stop it from being installed.

While we're here, we also change the images to execute as the
"worker" user. This happens automatically as a result of using
the "checkout-and-run" script.

MozReview-Commit-ID: EDeebuP7TkT
2016-07-19 13:30:03 -07:00
Gregory Szorc c7147e5da2 Bug 1247168 - Add a script to perform a checkout then run a command; r=dustin
The script will be used as the main command in task YAML files.
It changes ownership of caches. Then switches to the "worker" user.
Then performs a Gecko checkout. Then executes whatever command was
requested via its arguments.

The script has been added to the shared recipes directory so it can
eventually be used by other Docker images. This means if we e.g. want
to add Git support, we only need to update one file in the tree.

MozReview-Commit-ID: Fuy1VrdSGYn
2016-07-21 14:57:37 -07:00
Gregory Szorc 14491133ed Bug 1247168 - Install Mercurial 3.8.4 in lint image; r=dustin
Like we do for the decision image, we install Mercurial 3.8.4 from deb
files hosted on tooltool. This provides more control and determinism
than installing via apt.

As part of this change, Mercurial is upgraded from whatever was hosted
in apt to 3.8.4.

Since the deb packages don't provide a global hgrc, we create one
ourselves. This is effectively copied from the decision image.

Most of the work is being done in a new, standalone
install-mercurial.sh script. This script is part of the
newly-established testing/docker/recipes directory. The intent of this
directory is to hold common files referenced by multiple images. Our
custom Dockerfile syntax to include files from outside the directory
with the Dockerfile is used to add these files to the build context.

MozReview-Commit-ID: K7gVm2Geihj
2016-07-19 14:43:25 -07:00
Gregory Szorc da1c2b2f45 Bug 1247168 - Use vendored tooltool in lint image; r=dustin
Using our special Dockerfile syntax to include arbitrary files, we
include the previously vendored tooltool.py file in the image build
context and add it directly from there. No github.com communication
needed.

MozReview-Commit-ID: J42iXj87LEu
2016-07-22 13:04:56 -07:00
Gregory Szorc 9b2b54dc35 Bug 1247168 - Reformat requirements.txt; r=dustin
Visual aligning makes diffs harder to read. Use line continuations
to avoid this. Also make the package list alphabetical.

MozReview-Commit-ID: KqT4aqYyZfH
2016-07-19 13:54:20 -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 07325a3d5b Bug 1247168 - Introduce scripts for running action and decision tasks; r=dustin
When we switch to use robustcheckout for version control foo, we'll
also be taking the opportunity to have the decision and action tasks
execute as the "worker" user.

Since caches are mounted and owned by root and since tasks initially
run as root, this makes defining the container command in YAML a bit
difficult because we have to do some work as root then switch users
and continue executing. Rather than shoehorning all that complicated
logic into YAML, we introduce bash scripts that do it. These will
be plugged into the task YAML when we formally switch the tasks
to use the new Docker image.

We provide one script for running Gecko decision tasks. We provide
another for running action tasks. These are the two consumers of
the decision image we care about.

We also sneak in a change to add the executable bit to checkout-gecko.

MozReview-Commit-ID: CXlyHZJSHcP
2016-07-21 11:44:55 -07:00
Gregory Szorc e6173f49eb Bug 1247168 - Use robustcheckout in decision image; r=dustin
Now that Mercurial 3.8.4 and robustcheckout are in place, we convert
checkout-gecko from tc-vcs to robustcheckout.

As part of this, we remove references to tc-vcs from the Docker image.

This completes our changes to the decision Docker image. Image size has
been reduced from ~725 MB to ~217 MB. Not bad.

MozReview-Commit-ID: Hx9d02Al1TP
2016-07-20 12:10:52 -07:00
Gregory Szorc d1adb8c0ed Bug 1247168 - Configure Mercurial and install global hgrc; r=dustin
web.cacerts matches what the Ubuntu package does by default.

[progress] changes are to make output in TaskCluster logs less
spammy (only 1 update per second instead of up to 10).

The robustcheckout extension will be used in a subsequent commit to
handle repository checkouts.

MozReview-Commit-ID: 2PvW4wEGk2u
2016-07-20 10:22:26 -07:00
Gregory Szorc fc1ef49eeb Bug 1247168 - Vendor tooltool.py; r=dustin
Previously, we were downloading tooltool.py from github.com. There
were a few problems with this.

First, there is a dependency on a 3rd party service. While the Docker
image should be cached, as a matter of principle we don't like hitting
3rd party services in our automation. The file is small enough, so we
just vendor it.

Second - and more importantly - we weren't validating the integrity of
the downloaded file. This means that a MiTM could possibly alter the
content of the file without us knowing (they would need a valid CA but
since the Ubuntu trusted CA bundle contains a lot of CAs from e.g.
governments, this isn't out of the question). Vendoring the file removes
this risk.

Third, behavior wasn't deterministic over time. We were always
downloading the "master" revision of the file. I like determinism over
time. Vendoring makes things deterministic.

MozReview-Commit-ID: 4DdSd42BnAu
2016-07-20 10:03:17 -07:00
Gregory Szorc c355e97435 Bug 1247168 - Stop installing most system packages; r=dustin
I'm not sure why the decision image has so many packages installed.
Most of them don't need to exist because the decision image only
needs to obtain a copy of the Firefox repo and run `mach`. This
doesn't require any build system per se. And all the Python
dependencies are vendored in the Firefox repo. All we need is a
Python 2.7 interpreter.

This change reduces the decision image size from ~700 MB to ~300 MB.

MozReview-Commit-ID: CUqc5TUVZSc
2016-07-20 11:59:22 -07:00
Gregory Szorc 1cf3e548e8 Bug 1247168 - Install Mercurial 3.8.4 from .deb files; r=dustin
We change the installation of Mercurial from via peep to .deb files in
tooltool. The .deb files were produced by Mercurial's built-in make
targets to produce .deb packages.

As part of this, we upgrade to Mercurial 3.8.4. It should be a drop-in
replacement.

Since we no longer use peep, we stop installing it and pip/setuptools
since they were only needed to run peep.

It's worth noting that we choose to install from .deb files instead of
pip because this keeps image creation small and simple. Otherwise we'd
have to install a compiler, etc.

MozReview-Commit-ID: INnKDHkX2uk
2016-07-20 09:43:01 -07:00
Gregory Szorc df41dc9baf Bug 1247168 - Don't install virtualenv in the decision image; r=dustin
AFAICT this isn't needed.

MozReview-Commit-ID: 9eG7a4yHFPw
2016-07-20 09:31:48 -07:00
Gregory Szorc fa9aa79fd7 Bug 1247168 - Change decision image to Ubuntu 16.04; r=dustin
We're currently running Ubuntu 14.04 in the decision image. While it is
still in LTS support, 16.04 ships with a modern, properly configured Python
2.7. So we upgrade to 16.04 and drop the install of Python from source
because it is no longer needed.

This is part 1 of a larger refactor to this image.

MozReview-Commit-ID: CTbsPmTjcgs
2016-07-20 09:21:38 -07:00
Gregory Szorc 3c636aee9c Bug 1247168 - Create worker user/group in decision image; r=dustin
In preparation for running tasks as the worker user.

MozReview-Commit-ID: DLgD0lh5V2C
2016-07-21 10:06:38 -07:00
Dan Minor 4ebaf5c9e3 Bug 1289123: Remove test_zmedia_cleanup.html from Autophone WebRTC job manifest; r=drno
MozReview-Commit-ID: CwC1Kr3mU9Q
2016-07-25 09:49:05 -04:00
Carsten "Tomcat" Book bdfff7cdd3 Merge mozilla-central to autoland 2016-07-25 16:22:04 +02:00
Mike Conley c884958307 Bug 1287938 - Make ts_paint use the parent process start time and first paint info in calculations. r=jmaher
Instead of checking for the paint time of the tspaint_test.html content,
we're now measuring the delta between process start and first paint as
reported by the parent process's startup info.

MozReview-Commit-ID: 868mf2vazwL
2016-07-20 11:00:25 -04:00
Joel Maher 6f4c14a6e3 Bug 1281179 - Create a docker image for Ubuntu 16.04 for use in tests. r=dustin
MozReview-Commit-ID: ApHhev5J21x
2016-07-25 10:44:37 -04:00
Carsten "Tomcat" Book 552a86d41e Merge mozilla-central to mozilla-inbound 2016-07-25 15:59:01 +02:00
Jessica Jong 13490f483c Bug 1282894 - Propagate exception on setting HTMLTableElement.caption. r=bz 2016-07-21 22:40:00 +02:00
John Dai 35e1f8185e Bug 1275833 - Update wpt and test_interfaces.html. r=smaug, wchen 2016-07-21 23:44:00 +02:00
John Dai 1b35d89ef0 Bug 1275833 - Add window.customElements and CustomElementsRegistry interface for custom element v1. r=smaug, wchen 2016-07-24 23:38:00 +02:00
Carsten "Tomcat" Book 0601074e2f Backed out changeset 640247e978ba (bug 1246540) for bustage 2016-07-24 15:59:31 +02:00
Kate McKinley 4526951d57 Bug 1246540 - HSTS Priming Proof of Concept. r=honzab
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.

Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.

nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.

(r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally)
2016-07-22 18:35:00 +02:00