Commit Graph

944 Commits

Author SHA1 Message Date
Gregory Szorc
0f53b2ae0d Bug 1304176 - Use vendored virtualenv if available; r=ted
If mozharness is running from a source checkout, it has access to a
modern virtualenv+pip/setuptools vendored as part of the source
checkout.

This commit changes the virtualenv creation code to use the vendored
virtualenv when it is available.

A side effect of this change is that a modern version of pip will
now be used by mozharness when a source checkout is available. This
has a number of consequences.

First, modern versions of pip automatically create and cache wheels
when building packages. This should make automation faster since it can
now reuse cached wheels instead of having to download and rebuild
packages all the time.

Second, modern versions of pip support pinning package hashes. This
opens the door to use having more secure package downloads and more
determinism in our test environment.

Third, modern versions of pip require connections to package servers
be secure by default. Plaintext connections are disallowed by
default. A --trusted-host option or environment variable can be used
to override this behavior.

Since upgrading pip resulted in some jobs failing due to disallowed
connections to insecure servers, code to sniff the pip version and
add --trusted-host where it is needed/supported. This retains the
existing behavior. This is insecure. But fixing that is for another
bug.

As part of testing this, we were getting IOError inside virtualenv.py
when installing distutils:

IOError: [Errno 13] Permission denied: '/builds/slave/test/build/venv/lib/python2.7/distutils/__init__.py'

We worked around this by adding --always-copy to the virtualenv.py
invocation.

MozReview-Commit-ID: D29ao9ZASei

--HG--
extra : rebase_source : 031b2561a64ab1f89d25a3bfb8cf486a58b9f308
2016-09-20 21:19:56 -07:00
Gregory Szorc
3a2961b5de Bug 1304176 - Use vendored tooltool.py if available; r=ted
Now that we can detect when we're running from a source checkout,
we can start using things from source checkouts instead of relying
on host machine state or grabbing files from another server.

We start by using the vendored tooltool.py if available. This
avoids non-determinism. It avoids a possible 3rd party hosting
dependency on github.com. It avoids a possible MitM attack vector.
Wins all around.

MozReview-Commit-ID: L6hLveHZxBR

--HG--
extra : rebase_source : 67cc9d53fc0b3f92710ce41cc9f6556aa3ebbf99
2016-09-20 12:36:33 -07:00
Gregory Szorc
d075b95eeb Bug 1304176 - Set BaseScript.topsrcdir if we have a source checkout; r=ted
We're going to start executing more mozharness scripts from a source
checkout. Rather than add config options to specify the location of
a source checkout - something that must be added to every mozharness
invocation - we teach BaseScript.__init__ to recognize when we're
running from a source checkout and set self.topsrcdir accordingly.

This will allow any script or class to check for self.topsrcdir
and change behavior accordingly.

MozReview-Commit-ID: 3uxOjol7ntR

--HG--
extra : rebase_source : 40795fe231a908b42a13581db3ee079c13138412
2016-09-20 11:28:52 -07:00
Gregory Szorc
d580a24fa9 Bug 1304282 - Disable output buffering from mozharness spawned processes; r=ted
Without this, process output is buffered by default. This means
timestamps that mozharness prefixes to process output aren't
accurate unless the process is spewing enough output to flush the
output buffer.

Output buffering could lead to bad things. For example, a process
could emit output that would cause mozharness's output monitor to
abort the process. However, if that output is caught in limbo in
the output buffer, mozharness may take several seconds or even
minutes to react.

With this change, the mozharness process receives process output
as soon as that process writes to its standard file descriptors.
Once a newline is seen, mozharness will process it immediately.

Note that this only impacts the case where there is no output
timeout, as the existing code for output timeout uses mozprocess
and I'm pretty sure mozharness doesn't buffer output.

MozReview-Commit-ID: HBkYnfEw7Hb

--HG--
extra : rebase_source : e17b44d88f27c16b054a64c3cc2b3415297daf3b
2016-09-20 23:04:37 -07:00
Carsten "Tomcat" Book
d25a5baeb8 merge mozilla-inbound to mozilla-central a=merge 2016-09-22 11:55:12 +02:00
Maja Frydrychowicz
06f8ae2120 Bug 1278702 - Fail early in compiled-code tests with --artifact Try syntax; r=armenzg
MozReview-Commit-ID: 84IZn2Qpvk4

--HG--
extra : rebase_source : 67bb1930dc740f490884af4677017dee8ea506ba
2016-09-20 13:43:06 -04:00
Kim Moir
269f7bed66 revert Bug 1303590 - Remove Luciddream test suite r=aobreja CLOSED TREE
--HG--
extra : amend_source : a2d0c8af24e3dbc6e8c3cd01847deea295209e8c
2016-09-21 08:55:24 -04:00
Kim Moir
12505a2885 Bug 1303590 - Remove Luciddream test suite r=aobreja 2016-09-21 08:47:14 -04:00
Rob Thijssen
cb8b1119da Bug 1303305 - Support in-memory unzip on tc win testers; r=armenzg
MozReview-Commit-ID: JcGymDuh2s9

--HG--
extra : rebase_source : 98842dda643bf37553e035d52adefcbaa07002e8
2016-09-16 12:06:00 +01:00
Kim Moir
e70811ec80 Bug 1303925 - Mac addon build on beta failing following 50 merge r=kmoir DONTBUILD 2016-09-20 09:28:33 -04:00
Sylvestre Ledru
a60ca545c6 Bug 1303326 - Extend get_apk.py to be able to retrieve the latest nightly & aurora apk files r=jlorenzo
MozReview-Commit-ID: E0urGoFXbFe

--HG--
extra : rebase_source : d493540907f7890a3f215745aea1d48daff316e1
2016-09-16 14:43:50 +02:00
Greg Mierzwinski
85c034ec6f Bug 1278402 - Add linux64-ccov and linux64-jsdcov as code coverage build platforms to taskcluster. r=dustin,jmaher
These builds can be run on taskcluster to obtain per-test (JSDebugger) code coverage with the linux64-jsdcov build and overall (GCOV) code coverage with the linux64-ccov build. The linux64-jsdcov build also needed to have leak checking disabled for debug mode.

MozReview-Commit-ID: ASgrU2X7RQV

--HG--
extra : rebase_source : b2098e4d01039edd6cff37f3e6a26c2ed3d3d3ba
2016-07-23 11:27:49 -04:00
Sylvestre Ledru
bee65993d0 Bug 1304323 - Add the support of staged rollout in the push_apk script r=jlorenzo
MozReview-Commit-ID: 8Xgd4DEQzlE

--HG--
extra : rebase_source : 95c548b2ad5a4215d58cd1fb77c9e114c44fde49
2016-09-21 15:19:16 +02:00
Rail Aliiev
a6b1bc61c2 Bug 1297519 - Generate multilocale Firefox snaps r=Callek, a=release DONTBUILD
MozReview-Commit-ID: AKkUK91s0Qo

--HG--
extra : rebase_source : 3c46abe5b36f8cecc06a5a198536a49b9d8fb370
2016-09-17 10:53:41 -04:00
Wes Kocher
9cd8a9ed02 Backed out changeset 9c949b216b37 (bug 1278402) for enabling jobs outside of try that shouldn't be enabled outside of try a=backout CLOSED TREE 2016-09-15 11:43:17 -07:00
Johan Lorenzo
be46a345b9 Bug 1303041 - Don't look up "what's new" when uploading Aurora r=sylvestre
MozReview-Commit-ID: DxlaK90wbI8

--HG--
extra : rebase_source : c83dd6e42ce8bceb794f1353ab7fb9fbd5adb916
2016-09-15 16:38:02 +02:00
Greg Mierzwinski
8875e96f7d Bug 1278402 - Add linux64-ccov and linux64-jsdcov as code coverage build platforms to taskcluster. r=dustin,jmaher
These builds can be run on taskcluster to obtain per-test (JSDebugger) code coverage with the linux64-jsdcov build and overall (GCOV) code coverage with the linux64-ccov build. The linux64-jsdcov build also needed to have leak checking disabled for debug mode.

MozReview-Commit-ID: ASgrU2X7RQV

--HG--
extra : rebase_source : af40a6e582665ffcb575092586731f595a362ae4
2016-07-23 11:27:49 -04:00
Sylvestre Ledru
89ec6a148e Bug 1303030 - Remove the upload of unsupported archs in push_apk.py r=jlorenzo
MozReview-Commit-ID: GvKhFNyJdbt

--HG--
extra : rebase_source : 7f8a8a3aa5b90be376250fc712ccbbe7ae6d2790
2016-09-15 16:10:26 +02:00
Chris Manchester
2c2a464982 Bug 1252235 - Make try syntax available to mozharness from TaskCluster through an environment variable. r=armenzg
MozReview-Commit-ID: HIVIXPQXnQs

--HG--
extra : rebase_source : aa6ed39fdaa5bec568fabc562319f3a2ed4f4c47
2016-08-29 16:33:24 -07:00
Ryan VanderMeulen
739f3dac5a Merge m-c to autoland. a=merge 2016-09-13 20:46:39 -04:00
Dustin J. Mitchell
bfea831cd8 Bug 1286075: delete the legacy kind; r=mshal
MozReview-Commit-ID: F99tUGUWj6d

--HG--
rename : taskcluster/ci/legacy/routes.json => testing/mozharness/configs/routes.json
extra : rebase_source : a437dd30dac1add3f439a98a8d910d2bdbcc843f
2016-09-08 00:31:35 +00:00
Armen Zambrano Gasparnian
08d4a46b4f Bug 1300812 - Make Mozharness downloads handle better intermittent S3/EC2 issues r=aki,gps
We believe we're getting incomplete bytes when fetching files from S3 to our EC2 instances.
This patch should help give us more information and retry few times before failing.

MozReview-Commit-ID: 7tUzZmS8Zph

--HG--
extra : rebase_source : f8c052c92d3ccccf18daf6cbf9832d8ec48a6ecd
2016-09-12 11:41:04 -04:00
Maja Frydrychowicz
0540bfa676 Bug 1278698 - Get forced artifact build working in TaskCluster vs Buildbot; r=armenzg
Override actions specified in TC task definition with default_actions from
artifact config
Clear MOZ_SIGN_CMD when enable_signed is set to False.

MozReview-Commit-ID: FmI6lu5EKWg

--HG--
extra : rebase_source : 61489dc7de6652d7739c4a5179c1431334ae78c0
2016-09-09 11:46:35 -04:00
Maja Frydrychowicz
61e7da1d9f Bug 1278698 - Make mozharness build scripts trigger artifact builds when specified via try syntax; r=armenzg
MozReview-Commit-ID: JDieAcHgpSy

--HG--
extra : rebase_source : d9df4ee9fb4770fa34b57a1bdc845ea82aa30e21
2016-09-09 17:16:04 -04:00
Wes Kocher
07f175bc06 Backed out 2 changesets (bug 1278698) for build bustage a=backout CLOSED TREE
Backed out changeset 4468d50fd021 (bug 1278698)
Backed out changeset f770a12324d7 (bug 1278698)
2016-09-09 12:38:11 -07:00
Maja Frydrychowicz
d5980d7ea2 Bug 1278698 - Get forced artifact build working in TaskCluster vs Buildbot; r=armenzg
Override actions specified in TC task definition with default_actions from
artifact config
Clear MOZ_SIGN_CMD when enable_signed is set to False.

MozReview-Commit-ID: FmI6lu5EKWg

--HG--
extra : rebase_source : 0b21544b53e8fc3323ec0063f83cccb4a55f0014
2016-09-09 11:46:35 -04:00
Maja Frydrychowicz
20c8b0c3f8 Bug 1278698 - Make mozharness build scripts trigger artifact builds when specified via try syntax; r=armenzg
MozReview-Commit-ID: JDieAcHgpSy

--HG--
extra : rebase_source : b85a8ebde117e4c0f9a9900fc6961ce04eed6127
2016-09-02 23:56:54 -04:00
Anjana Vakil
8cd4aa86a1 Bug 1285299 - Use pytest_mozlog plugin in Mn-h mozharness script; r=maja_zf
Modify the mozharness script for the Marionette harness tests
to use the new pytest_mozlog plugin, so that the logs produced
will be parseable by Treeherder.

Change the arguments passed to `pytest.main` to instruct pytest_mozlog
to write log files in TBPL, mach, and raw (structured log) formats.

Read the TBPL log into the mozharness script log itself,
and upload all pytest-mozlog log files to the default
blob upload dir as specified in the Mozharness BaseScript.

MozReview-Commit-ID: HoEK2M1XGwN

--HG--
extra : rebase_source : 9042d89c6ab2befefe945fdcfd6999c35b9d7340
2016-09-05 16:44:40 +02:00
Andrew Halberstadt
aa78ee9e95 Bug 1300163 - Move the Android 'stop-emulator' step to a PostScriptAction of 'run-tests', r=gbrown
Currently 'stop-emulator' is its own action in mozharness. This means that anytime the mozharness
script finishes emulators will get shutdown. Usually, this is what we want to do. But if the user passes
in --no-run-tests, then presumably they are intending to run tests at a later time for some reason.
But when they do this, the emulator will be terminated, and then running tests later no longer works.

The main place where this becomes a problem is on interactive loaners in taskcluster. This patch fixes
the problem by instead running 'stop-emulator' only after the 'run-tests' step finishes. So if
--no-run-tests is passed in, the emulator will be left open.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : e29733a4a69d4d063f225754d2ad8886e22b4782
2016-09-02 14:22:23 -04:00
Justin Wood
7be2611be7 Bug 1293789 - Single Locale in TC - Add task def for try. r=rail
MozReview-Commit-ID: 7n2NqqHj9wL

--HG--
rename : testing/mozharness/configs/single_locale/tc_android_api_15.py => testing/mozharness/configs/single_locale/tc_android-api-15.py
extra : rebase_source : 4a575d04ea6fac7078d483f00f169cfdb9ac5194
2016-09-03 10:32:22 -04:00
Justin Wood
45e087064b Bug 1293789 - Single Local TC, mozharness bits. r=rail
MozReview-Commit-ID: mH5MKaUodA

--HG--
extra : rebase_source : cd223902bb8fcd4f0d4d926ad5d17dbf69d760f2
2016-09-03 10:27:46 -04:00
Ryan VanderMeulen
1502d18249 Merge inbound to m-c. a=merge 2016-09-03 11:33:28 -04:00
Armen Zambrano Gasparnian
9bad2fd425 Bug 1272083 - Download and unpacking should be performed in process. r=gps
Instead of downloading a file first and then unpacking it, we would like to
fetch it into memory and then unpacking directly from there.

This saves writing the file first to disk, thus, saving on IO.

MozReview-Commit-ID: JdNGnxIYEvy

--HG--
extra : rebase_source : 73c280fd23f3066d04dd3af07ac443db77dfd6d0
2016-08-25 11:04:16 -04:00
Geoff Brown
634a5a654d Bug 1300191 - Move machine-configuration.json into mozharness; r=jmaher
--HG--
rename : testing/machine-configuration.json => testing/mozharness/external_tools/machine-configuration.json
2016-09-02 15:09:02 -06:00
Maja Frydrychowicz
209cab7f52 Bug 1299242 - Fix regression with installing requirements in AndroidEmulatorTest; r=gbrown
Regression introduced in Bug 1284874.

MozReview-Commit-ID: LixkZu5OJnH

--HG--
extra : rebase_source : 15a4c1985ffcfdd83f067e3ee678c829c73bda89
2016-08-31 12:54:52 -04:00
Rail Aliiev
dfc40dcbdb Bug 1290179 - Automatically update SHA1 bouncer aliases r=jlund a=release DONTBUILD
MozReview-Commit-ID: AjpCcXLu08N

--HG--
extra : rebase_source : cdcb17f7b4212cd27caf54a342bedacc01205c6a
2016-08-30 12:50:52 -04:00
Mihai Tabara
004a87bb5e Bug 1288434 - fix buildbot props in mark release as shipped. r=rail a=release DONTBUILD
MozReview-Commit-ID: ICEezfZDuO6

--HG--
extra : rebase_source : b0673f875485ff3618de3120b7e1c71f59f25d08
2016-08-30 19:58:07 +03:00
amiyaguchi@mozilla.com
7168c88c04 Bug 1277595 - Generate balrog properties as a taskcluster artifact, r=jlund
MozReview-Commit-ID: Bzx5yfVfZcw

--HG--
extra : rebase_source : e3f2144cac9bd2d8102645d6912edb209a161cc8
extra : source : d5d26aa0f369f9c34b45c30dc732dd6cf0653ffc
2016-09-01 09:22:45 -07:00
amiyaguchi@mozilla.com
ef1fdc6d58 Bug 1277595 - Use mozilla-central config-file on try, r=jlund
MozReview-Commit-ID: J9GQWV4krX

--HG--
extra : rebase_source : a232062232426277a6643a52e0908c1ff5c92d49
extra : source : 42ab74605817379b68227dbaf4cc12614db8278d
2016-09-01 09:22:10 -07:00
amiyaguchi@mozilla.com
4d4662c7dc Bug 1277595 - Enable multil10n fennec builds on taskcluster, r=jlund
MozReview-Commit-ID: B2A3Wg6DBlt

--HG--
extra : rebase_source : fdf5f59f805a84a2d0572596bc807bf45cf9a4af
extra : source : c1aa2a15b4eb6c7b3bb66488541931412b159702
2016-09-01 09:21:29 -07:00
Henrik Skupin
0f39ba4b58 Bug 1296614 - Firefox-ui-functional tests should be also run for ASAN builds r=dustin
MozReview-Commit-ID: A4EILsuV5qH

--HG--
extra : rebase_source : afb96cbe712c2912f5f07801cc6c1c5bcda1f58b
2016-08-22 13:47:17 +02:00
Mihai Tabara
3bef492837 Bug 1288434 - Add task to mark release as shipped. r=rail a=release DONTBUILD
MozReview-Commit-ID: 9NBQK4BcDUe

--HG--
extra : rebase_source : c6b3e2a6be9d0b8dc81b72b19c4f167b29b09b1a
2016-08-26 12:47:18 +03:00
Wes Kocher
50954c6f31 Merge m-c to autoland, a=merge 2016-08-25 17:15:05 -07:00
Justin Wood
cdc6681943 Bug 1274059 - Remove HgtoolVCS - Part 2, remove actual classes and docs for hgtool. r=nthomas
MozReview-Commit-ID: FtzqzpuZkLc

--HG--
extra : rebase_source : 88e9fc66f3d866685192b9ac7123fdc36c9b639c
2016-08-19 09:09:08 -04:00
Justin Wood
c316e65d20 Bug 1274059 - Remove HgtoolVCS - Part 1, remove users of hgtool and fixups. r=nthomas
MozReview-Commit-ID: 6nR7pcvZksw

--HG--
extra : rebase_source : 718cf0933744707a57426be61e834daa0ef45730
2016-08-19 09:06:42 -04:00
William Lachance
e24817e83e Bug 1295536 - Update performance schema to treeherder latest;r=jmaher
This new version of the schema validates that numeric values are
within an acceptable range (i.e. are not infinite)

MozReview-Commit-ID: 32oT39Bfcwg

--HG--
extra : rebase_source : 78ef5402e47e05f3f4e5a1db7b36e2d365c7b13b
2016-08-16 13:30:06 -04:00
Maja Frydrychowicz
719af5e998 Bug 1284874 - Add marionette test-suite to android_emulator_unittest.py; r=gbrown
MozReview-Commit-ID: 41TtPAHGWBg

--HG--
extra : rebase_source : ebabeca4baa032e96baf2574f8e21746a77f68a6
2016-08-24 10:06:15 -04:00
Maja Frydrychowicz
115ed9e3f2 Bug 1284874 - Add regex for Marionette summary to TinderBoxPrintRe; r=kmoir
MozReview-Commit-ID: LdRcqzKd4pX

--HG--
extra : rebase_source : 81cb4226af954354d13ec9bde8ca42764b8b3e12
2016-08-19 12:48:52 -04:00
Rail Aliiev
ce096c2f0f Bug 1296354 - Properly handle etags generated by multipart s3 uploads r=nthomas a=release DONTBUILD
MozReview-Commit-ID: 5gmXDKZwlSC

--HG--
extra : rebase_source : e2cb2e6012209ed74ac41b74e04888427d22ae86
2016-08-24 22:06:30 -04:00
Kim Moir
9a359a62ed Bug 1290548 - Unbranded add-on developer builds are updating to branded Firefox builds r=jlund DONTBUILD 2016-08-24 09:12:18 -04:00