Commit Graph

48 Commits

Author SHA1 Message Date
Dustin J. Mitchell
7d28831859 Bug 1357753: create (correct) artifact directories with native-engine; r=wcosta
The mozharness_test job was using the wrong artifact path for native-engine.
Native-engine also enforces that artifact directories exist, so include some
mkdir calls to keep it happy.

MozReview-Commit-ID: Evw34gzzLev
2017-05-12 19:24:24 +00:00
Dustin J. Mitchell
af4ef3ee08 Bug 1357753: optionally run linux Talos on native-engine; r=wcosta
This makes talos obey the `-w` try syntax flag.

MozReview-Commit-ID: 2v6X3ko2t9K
2017-05-10 21:12:02 +00:00
Dustin J. Mitchell
18cec45027 Bug 1357753: rename test-ubuntu.sh to test-linux.sh; r=wcosta
It was previously renamed in the Dockerfile, and that's unnecssarily confusing
when looking for the file in hg.

MozReview-Commit-ID: 7bwD4cjk4Pj
2017-04-26 21:36:45 +00:00
Dustin J. Mitchell
5d7fbc0d38 Bug 1346361: remove unused script r=garndt,gps
MozReview-Commit-ID: 6nxO59wbLwF
2017-04-28 10:44:07 -04:00
William Lachance
f2808a4d7d Bug 1347177 - When doing custom retrigger, job should fail when custom mach command fails r=dustin
MozReview-Commit-ID: A9A0yNkFFma
2017-03-14 11:23:06 -04:00
William Lachance
19efcddfc5 Bug 1343327 - Add taskcluster mochitest retrigger action r=ahal,jonasfj
MozReview-Commit-ID: A1SOeVo6eu4
2017-02-22 22:11:46 -05:00
Andrew Halberstadt
aac4585624 Bug 1335873 - Convert marionette harness unittests to standard python unittests, r=maja_zf
This formats the marionette-harness python tests to be a regular |mach python-test| suite. Though
we add subsuite=marionette, this is just for automation purposes. The new preferred way to run the
marionette harness tests locally is:
./mach python-test testing/marionette

They will also run if running the full suite.

The mozbase packages.txt file modifies mozlog to use 'setup.py' instead of 'pth'. The reason for
this is that the marionette-harness tests use the pytest_mozlog pytest plugin for formatting
their results (converts pytest format into something resembling the standard tbpl logging format).
In order for this plugin to get picked up however, mozlog's setup.py file needs to be processed.

MozReview-Commit-ID: Ata99evHxbd
2017-02-15 16:38:45 -05:00
Sebastian Hengst
26ea5b9d14 Backed out changeset 3c0a7527608a (bug 1335873) 2017-03-01 17:35:06 +01:00
Andrew Halberstadt
d08b8a2c05 Bug 1335873 - Convert marionette harness unittests to standard python unittests, r=maja_zf
This formats the marionette-harness python tests to be a regular |mach python-test| suite. Though
we add subsuite=marionette, this is just for automation purposes. The new preferred way to run the
marionette harness tests locally is:
./mach python-test testing/marionette

They will also run if running the full suite.

The mozbase packages.txt file modifies mozlog to use 'setup.py' instead of 'pth'. The reason for
this is that the marionette-harness tests use the pytest_mozlog pytest plugin for formatting
their results (converts pytest format into something resembling the standard tbpl logging format).
In order for this plugin to get picked up however, mozlog's setup.py file needs to be processed.

MozReview-Commit-ID: Ata99evHxbd
2017-02-15 16:38:45 -05:00
Andrew Halberstadt
65f1879f32 Bug 1337827 - [one-click-loaner] Always set up mach environment when calling 'run-mozharness' (if possible) r=maja_zf
This is a minor refactor that aims to always attempt to set up 'mach' after running the 'run-mozharness' script.
We put it in a 'finally' block so we'll even do this if the user presses Ctrl-C or there was an exception
in the test harness. Importantly, this will be set up regardless of whether the user chooses "Option 1" or
"Option 2" at the wizard prompt.

The reason for this change is mostly 'might as well'. If it can save some users confusion, then it is worthwhile.

MozReview-Commit-ID: Dx3rV17FOoJ
2017-02-10 12:07:44 -05:00
Andrew Halberstadt
e096759602 Bug 1337827 - [one-click-loaner] Print error message if mach binary wasn't found r=maja_zf
MozReview-Commit-ID: Dx3rV17FOoJ
2017-02-10 12:07:38 -05:00
Andrew Halberstadt
dbff6d3c3b Bug 1337827 - [one-click-loaner] Refactor mach environment setup into a standalone function r=maja_zf
MozReview-Commit-ID: CuxSwkp0Uuk
2017-02-10 11:39:03 -05:00
Andrew Halberstadt
83bc098b2b Bug 1334209 - Activate mozharness virtualenv in-process from one click loaner mach commands, r=jmaher
Previously the run-wizard script would add a command to source the virtualenv in ~/.bashrc after
mozharness finished setting things up. This is fragile, assumes people are using bash, etc. Plus
it appeared to intermittently fail for some users.

Instead, this activates the virtualenv directly from individual mach commands that need it. This
guarantees we will always be using the virtualenv if required (and won't be using it if not). The
'activate_this.py' script is invoked the same way that we do it for in-tree mach commands:
https://dxr.mozilla.org/mozilla-central/rev/9c06e744b1befb3a2e2fdac7414ce18220774a1d/python/mozbuild/mozbuild/virtualenv.py#456

MozReview-Commit-ID: CfcoiVJXQTl
2017-01-31 11:53:36 -05:00
Andrew Halberstadt
c0699b3044 Bug 1285550 - Increase timeout to 60s while waiting for run-mozharness in a one-click loaner, r=maja_zf
MozReview-Commit-ID: KCmnxZkStqw
2017-01-26 16:11:43 -05:00
Wander Lairson Costa
c44c8941d0 Bug 1266624: apply backoff mozharness fixes to macosx script. r=dustin 2016-12-07 10:29:00 +01:00
Wander Lairson Costa
372f7412ba Bug 1266624: Apply exponential backoff for mozharness download. r=dustin
MozReview-Commit-ID: Ip4MjVJFwT6
2016-12-06 15:27:40 -10:00
Wander Lairson Costa
128810b5c8 Bug 1274980 part 2: Support Mac OS tests in tc intree config. r=dustin
We add support for Mac OSX tests in Taskcluster by support
taskcluster-worker macosx engine. We also add a new configuration
blob-upload-branch needed by mochitest-other.

MozReview-Commit-ID: 5ZaYYRueRVr
2016-11-08 12:11:15 -02:00
Sebastian Hengst
9bbe4e779f Backed out changeset 6228dfcfac3b (bug 1274980) 2016-11-07 17:57:04 +01:00
Wander Lairson Costa
fd6322d2df Bug 1274980 part 2: Support Mac OS tests in tc intree config. r=dustin
We add support for Mac OSX tests in Taskcluster by support
taskcluster-worker macosx engine. We also add a new configuration
blob-upload-branch needed by mochitest-other.

MozReview-Commit-ID: CxT3BP3sydG
2016-11-07 09:20:50 -02: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
Dustin J. Mitchell
b92a5d34ae Bug 1307177: print recognizable error when unzip fails; r=philor
MozReview-Commit-ID: DAi2cOdugE
2016-10-03 17:47:16 +00:00
Gregory Szorc
23928807d4 Bug 1302907 - Run mozharness from source checkout if available; r=dustin
Currently, build tasks produce a zip file artifact containing the
content of testing/mozharness.  This zip file is downloaded and applied
by any test using mozharness (which is most of them).

Now that some tests have a source checkout, we don't need to download
a mozharness zip because we can just use the source checkout.

This commit teaches test-ubuntu.sh to accept a custom path to
mozharness files. If that path is defined, we skip downloading the
mozharness zip.

The taskgraph has been updated to pass the path of mozharness in the
checkout to test-ubuntu.sh when a source checkout is available.

MozReview-Commit-ID: 2P17Wx1oytI
2016-09-14 18:20:57 -07:00
Gregory Szorc
ba95645651 Bug 1302907 - Use relative path to mozharness configs; r=dustin
Same deal as the last commit except for config paths.

MozReview-Commit-ID: 3AXwc3i3Iqu
2016-09-14 17:07:04 -07:00
Gregory Szorc
7a2bf57b17 Bug 1302907 - Use relative path to mozharness script; r=dustin
Mozharness scripts all live in "mozharness/scripts." So, we don't need
to redundantly define this path. Let's define the script as the relative
path within "mozharness/scripts" instead.

IMO this cosmetic improvement can stand on its own. However, the real
reason for this change is to pave the way for running mozharness from
a source checkout instead of downloading a zip archive of it.

MozReview-Commit-ID: FUnMiLlCcGK
2016-09-14 16:56:55 -07:00
Gregory Szorc
c0da03e5db Bug 1302907 - Merge test-ubuntu1204.sh and test-ubuntu1604.sh; r=dustin
The only difference in these files was the order that pulseaudio is
started and whether compiz is started. We rename test-ubuntu1604.sh
to test-ubuntu.sh, add some distro release detection, and add
some conditional branches so it works on both Ubuntu 12.04 and 16.04.

MozReview-Commit-ID: CaSfuDxss3d
2016-09-20 17:17:18 -07:00
Wes Kocher
240967746d Backed out changeset f227ea4d52fe (bug 1302907) because it caused some updated packages to get built, causing linux64 failures a=backout CLOSED TREE 2016-09-15 14:40:10 -07:00
Gregory Szorc
e07a33facb Backed out changesets 11ffdc565be, dda84d1fb12b, and 21fdf73bbb17 (bug 1302907) for Windows build bustage
Because Windows.
2016-09-15 12:49:03 -07:00
Gregory Szorc
eda4ddc1db Bug 1302907 - Run mozharness from source checkout if available; r=dustin
Currently, build tasks produce a zip file artifact containing the
content of testing/mozharness.  This zip file is downloaded and applied
by any test using mozharness (which is most of them).

Now that some tests have a source checkout, we don't need to download
a mozharness zip because we can just use the source checkout.

This commit teaches test-ubuntu.sh to accept a custom path to
mozharness files. If that path is defined, we skip downloading the
mozharness zip.

The taskgraph has been updated to pass the path of mozharness in the
checkout to test-ubuntu.sh when a source checkout is available.

MozReview-Commit-ID: 2P17Wx1oytI
2016-09-14 18:20:57 -07:00
Gregory Szorc
636e39da6e Bug 1302907 - Use relative path to mozharness configs; r=dustin
Same deal as the last commit except for config paths.

MozReview-Commit-ID: 3AXwc3i3Iqu
2016-09-14 17:07:04 -07:00
Gregory Szorc
ea83b1810b Bug 1302907 - Use relative path to mozharness script; r=dustin
Mozharness scripts all live in "mozharness/scripts." So, we don't need
to redundantly define this path. Let's define the script as the relative
path within "mozharness/scripts" instead.

IMO this cosmetic improvement can stand on its own. However, the real
reason for this change is to pave the way for running mozharness from
a source checkout instead of downloading a zip archive of it.

MozReview-Commit-ID: FUnMiLlCcGK
2016-09-14 16:56:55 -07:00
Gregory Szorc
28f966d3fe Bug 1302907 - Merge test-ubuntu1204.sh and test-ubuntu1604.sh; r=dustin
The only difference in these files was the order that pulseaudio is
started and whether compiz is started. We rename test-ubuntu1604.sh
to test-ubuntu.sh, add some distro release detection, and add
some conditional branches so it works on both Ubuntu 12.04 and 16.04.

MozReview-Commit-ID: CaSfuDxss3d
2016-09-14 16:29:25 -07:00
Andrew Halberstadt
b724f69ad4 Bug 1292561 - Use robustcheckout from the wizard on interactive loaners, r=gps
Robust checkout is the preferred method to clone a mercurial repository. This should
speed up the cloning process a bit and reduce storage size.

MozReview-Commit-ID: 92rcwMwRLYN
2016-09-04 10:33:22 -04:00
Gregory Arndt
9f3efa245e Bug 1263815 - retry xvfb startup. r=dustin
Sometimes xvfb will not start up with the current retry/delay settings. This will
attempt to retry more and delay for longer to ensure xvfb has started up. Common
pieces of this have been factored out into a recipe that all docker images can schare
that need this functionality.

MozReview-Commit-ID: BTXkJkBWLZX
2016-07-06 09:06:58 -05:00
Gregory Szorc
4009c26257 Backed out changeset e6e5569551be (bug 1263815) for valgrind failures because Docker image generation isn't deterministic 2016-08-18 15:50:28 -07:00
Gregory Arndt
82e199c84e Bug 1263815 - retry xvfb startup. r=dustin
Sometimes xvfb will not start up with the current retry/delay settings.  This will
attempt to retry more and delay for longer to ensure xvfb has started up.  Common
pieces of this have been factored out into a recipe that all docker images can schare
that need this functionality.

MozReview-Commit-ID: 2ww0eT3cIt6
2016-07-06 09:06:58 -05:00
Gregory Szorc
b48f059dc3 Backed out changeset 25bc6ca8f19f (bug 1294234) for breaking TC tests
Introduced a (possibly intermittent) permissions failure downloading
mozharness. Might be cache related.
2016-08-12 21:23:41 -07:00
Gregory Szorc
aac05b8afa Bug 1294234 - Use run-task for test tasks; r=dustin
Before, test.sh (duplicated between the desktop-test and
desktop1604-test images) was dropping permissions, creating a workspace,
and executing test-linux.sh. This is functionality now provided by
run-task.

So, convert the test tasks to use run-task.

One thing run-task isn't doing is created the workspace. So this
functionality has been moved into test-ubuntu1204.sh and
test-ubuntu1604.sh.

Since the test.sh files are no longer used after this change, they have
been deleted. The desktop-test image no longer has any files in the
bin/ directory, so the Dockerfile entry to copy those files has been
removed.

MozReview-Commit-ID: 1BiskrMs6xW
2016-08-09 14:34:58 -07:00
Wes Kocher
a29d6e16d7 Backed out 3 changesets (bug 1294234) for UnicodeDecodeError failures in various tests a=backout CLOSED TREE
Backed out changeset d118ab526ad8 (bug 1294234)
Backed out changeset 3cfc4041d48d (bug 1294234)
Backed out changeset 710d37b610a8 (bug 1294234)
2016-08-11 16:04:48 -07:00
Gregory Szorc
800ed3b483 Bug 1294234 - Use run-task for test tasks; r=dustin
Before, test.sh (duplicated between the desktop-test and
desktop1604-test images) was dropping permissions, creating a workspace,
and executing test-linux.sh. This is functionality now provided by
run-task.

So, convert the test tasks to use run-task.

One thing run-task isn't doing is created the workspace. So this
functionality has been moved into test-ubuntu1204.sh and
test-ubuntu1604.sh.

Since the test.sh files are no longer used after this change, they have
been deleted. The desktop-test image no longer has any files in the
bin/ directory, so the Dockerfile entry to copy those files has been
removed.

MozReview-Commit-ID: 1BiskrMs6xW
2016-08-09 14:34:58 -07:00
Joel Maher
85bb0dd6a4 Bug 1290459 - port changes from bug 1285582 to test-ubuntu1604.sh. r=ahal
MozReview-Commit-ID: L5HjOIesJCQ
2016-07-29 14:56:31 -04:00
Andrew Halberstadt
b445c6e549 Bug 1289879 - Activate the mozharness virtualenv when running tests on interactive workers, r=armenzg
There are some packages like 'requests' that are bundled in the mozharness venv, but not in the test
package. It would be easy to manually add these to sys.path in the mach bootstrap script, but it's
much nicer to simply activate this virtualenv in the first place.

MozReview-Commit-ID: 8xeJEIgUbLj
2016-07-20 16:40:40 -04:00
Andrew Halberstadt
347773a06e Bug 1285582 - Make sure Xvfb is running for interactive tasks, r=dustin
Normally we start Xvfb as a background task, then run the tests from the
same script. However, in interactive mode we were starting Xvfb, the script
would exit, and then we would potentially run tests later on from another
script. Unforunately this meant that Xvfb was dying with the first script
and tests would fail.

This patch runs Xvfb in a screen session so that it will still be available
later on when running an interactive shell.

MozReview-Commit-ID: EduVyglo2BG
2016-07-11 11:14:46 -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
Andrew Halberstadt
a53e584ec4 Bug 1285550 - Ensure 'run-mozharness' binary exists before invoking from interactive wizard, r=armenzg
This fixes a race condition between the 'test-linux.sh' process and the 'taskcluster-interactive-shell'
process in interactive tasks.

MozReview-Commit-ID: GhqKpq5pAtj
2016-07-08 10:28:07 -04:00
Andrew Halberstadt
0c45e8e34c Bug 1279020 - Symlink mach binary to $HOME/bin after mozharness setup on interactive workers, r=armenzg
When running an interactive worker (aka one-click loaner), developers have the option of setting
up the mozharness environment without running tests. When they do this, we should automatically
symlink the mach binary found in the tests.zip to their path. This way developers don't need to
go searching for $HOME/workspace/build/tests/mach to run their tests.

MozReview-Commit-ID: 1JKPYSsYKlN
2016-06-09 17:20:19 -04:00
Andrew Halberstadt
873796f518 Bug 1279040 - Move 'run-wizard' binary out of docker image, r=dustin
The run-wizard binary (used by interactive workers) will likely need to
change relatively frequently. Therefore, it should be baked directly into
the docker image. This patch instead downloads it from the appropriate
commit on hg.mozilla.org, only when needed.

MozReview-Commit-ID: 70hlloywCSj
2016-06-23 10:00:54 -04:00
Dustin J. Mitchell
d0dc94a80c Bug 1275409: move legacy taskcluster-related scripts to taskcluster/scripts; r=wcosta
MozReview-Commit-ID: 7ilVJkNAPvE
2016-06-04 22:57:41 +00:00