gecko-dev/testing
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
..
config bug 1303980 - update minidump_stackwalk binaries to ones built from latest Breakpad. r=jmaher 2016-09-20 13:26:33 -04:00
crashtest Bug 1286657 - Add manifest for autophone webrtc crashtest job; r=bc 2016-08-03 12:20:48 -04:00
docker Bug 1300094 - Update Gradle to 2.14.1 and Gradle Plugin to 2.1.3 r=sebastian 2016-09-22 14:31:01 -07:00
firefox-ui Bug 1304004 - Disable test_dv_certificate.py, test_ev_certificate.py, test_mixed_content_page.py, test_mixed_script_content_blocking.py 2016-09-20 15:57:23 +02:00
gtest Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
instrumentation Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
luciddream revert Bug 1303590 - Remove Luciddream test suite r=aobreja CLOSED TREE 2016-09-21 08:55:24 -04:00
marionette Bug 1298800 - Add support for callbacks to restart() and quit() methods of Marionette; r=whimboo 2016-09-21 21:53:12 +05:30
mochitest Backed out changeset e1d144423657 (bug 1280571) for making leaks hard to diagnose a=backout CLOSED TREE 2016-09-21 16:56:50 -07:00
modules Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
mozbase Bug 1302796 - Add integration between structured logging and lints, r=ahal 2016-09-13 14:18:41 +01:00
mozharness Bug 1304176 - Use vendored virtualenv if available; r=ted 2016-09-20 21:19:56 -07:00
profiles Bug 838954 - Backout newlines lost in .innerHTML serialization of <pre> when first character is a newline. r=smaug 2016-09-22 02:42:00 -04:00
puppeteer Bug 1296677 - Remove update billboard support from firefox-puppeteer. r=rstrong 2016-08-24 09:37:47 +02:00
runtimes Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
specialpowers Bug 972110 Rewrite editor/libeditor/test_bug674770-1.html without setTimeout() for avoiding intermittent failure r=smaug 2016-09-22 10:54:51 +09:00
talos Bug 1303469 - Stub form autofill system extension. r=rhelmer 2016-09-18 14:07:51 +08:00
tools Backed out changeset ae50c61cb134 (bug 1264367) for breaking crash stacks on at least Android and Linux 2016-09-21 13:26:24 -07:00
tps Bug 1293426 - Allow TPS config to specify preference values so it can be pointed at non-production servers r=markh 2016-08-11 10:18:13 -04:00
web-platform Bug 1007702 - Enable skia on nighly for unaccelerated windows. r=lsalzman 2016-09-21 13:51:51 -04:00
xpcshell Bug 1303804 - Fix Promise test that relies on non-release feature (async stacks), r=froydnj 2016-09-19 15:21:25 -07:00
cppunittest.ini Bug 1297306 - part4:rename IsEnumFittingWithin with EnumTypeFitsWithin and move it to mfbt/EnumTypeTraits.h. r=froydnj 2016-09-07 10:20:16 +08:00
mach_commands.py Backed out changeset 1df8bde64853 (bug 1302364) 2016-09-16 11:24:29 +02:00
README.txt
remotecppunittests.py Bug 1295323 - s/CalledProcessError/subprocess.CalledProcessError/ r=dminor 2016-08-01 19:01:12 -07:00
runcppunittests.py
testsuite-targets.mk Bug 1301334 - Package Marionette tests via moz.build entries r=gps 2016-09-20 18:05:43 +02:00

Common testing tools for mozilla codebase projects, test suite definitions
for automated test runs, tests that don't fit anywhere else, and other fun
stuff