Commit Graph

12 Commits

Author SHA1 Message Date
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
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
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
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
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