Граф коммитов

13067 Коммитов

Автор SHA1 Сообщение Дата
Gregory Szorc caa0d851ed Bug 1304964 - Invoke `hg` with PYTHONUNBUFFERED=1; r=dustin
Python processes with a TTY have stdout line buffered by default.
Python processes without a TTY have buffered output.

Mercurial inherits whatever Python's output buffering behavior is.
This means if we invoke Mercurial without a TTY, stdout and stderr
will be fully buffered. This means output may not be sent until
there is enough output to flush the output buffer.

A consequence of this is that timings reported for `hg` commands
invoked by run-task are inaccurate. In addition, output order is
incorrect. This is because Mercurial's progress indicators print
to stderr and flush when written. This means stderr output is
getting seen by run-task but stdout remains buffered.

This commit forces Python/Mercurial to not buffer stderr and stdout
by setting the PYTHONUNBUFFERED=1 environment variable.

MozReview-Commit-ID: 7lMdrjRMBqz

--HG--
extra : rebase_source : 198ced0053fe6071a45c9df8b044b24983c225cc
2016-09-22 23:33:01 -07:00
Gregory Szorc 5fddd4bf5e Bug 1304176 - Document and refactor query_virtualenv_path; r=ted
We don't need a variable to hold the result. Just use return.

The "virtualenv_path" option has a default value, so it should always
be set. Add code confirming that. And refactor the code to use
less indentation. And remove a branch that can never occur since
the virtualenv path is guaranteed to be defined.

MozReview-Commit-ID: DZ6LnlxZJFj

--HG--
extra : rebase_source : 46682e9d33beb43e0b4fc181b9163afd373e7f70
2016-09-20 14:59:14 -07:00
Gregory Szorc 3fd85079b9 Bug 1304176 - Remove --venv-path as an alias to --virtualenv-path; r=ted
Not sure why we support this. The code goes all the way back to the
import of mozharness 0.4 into the old mozharness Mercurial repo in
bug 651974.

Having fewer variations makes it easier to search for usage. So nuke
the variation.

MozReview-Commit-ID: IgwLMdvXGB0

--HG--
extra : rebase_source : 0f9e25b2d23a670154a024eee0264b545606cc80
2016-09-20 14:46:52 -07:00
Gregory Szorc 0d16755c72 Bug 1304176 - Remove PIP_TRUSTED_HOST and trust-host pip.conf option; r=ted
The Python code is now intelligent enough to add this flag on the
command line if supported. Eliminate the copy pasta and help prevent
cargo culting.

MozReview-Commit-ID: H4rbjbbgtRd

--HG--
extra : rebase_source : 2f3acf666d73260ed97ad877f365b3091186f9e2
2016-09-20 14:02:08 -07:00
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
Grigory Kruglov 1e4e8c6e6e Bug 1300094 - Update Gradle to 2.14.1 and Gradle Plugin to 2.1.3 r=sebastian
MozReview-Commit-ID: KDimL7VeEA2

--HG--
extra : rebase_source : 713c680827562400d814ad32233b96d1a47a101a
2016-09-22 14:31:01 -07:00
Carsten "Tomcat" Book a65e4225ef merge mozilla-inbound to mozilla-central a=merge 2016-09-23 12:05:53 +02:00
Andrew Osmond 827be06e62 Bug 1007702 - Enable skia on nighly for unaccelerated windows. r=lsalzman 2016-09-21 13:51:51 -04:00
Henrik Skupin 401257b7ed Bug 1301334 - Package Marionette tests via moz.build entries r=gps
Move packaging for Marionette from make to test_archiver by using root manifest files.

MozReview-Commit-ID: 1cxEBYQeJ2Z
**

--HG--
extra : rebase_source : 372a407d9207bfbccbfb88c689df60b8cc1abcaf
2016-09-20 18:05:43 +02:00
Chris Manchester 160e0a36f6 Bug 1282522 - Ensure stderr is printed in case of a shutdown crash in a passing xpcshell test. r=gps
There were two assumptions preventing this output from being logged, both
related to the case a test passes and xpcshell returns 0. The first was
that we would not find crash dumps in this case, and would therefore not
need to log the full output of the test process (in the case xpcshell
returned non-zero or a test failed, we would log this output prior to checking
for crashes). The second was that if a test was eligible to retry, we wouldn't
need to store a test's output at all, because this output would only relate to
a failure that we would consider non-fatal.

The first assumption does not hold because it's possible to fatally assert
at shutdown in tests spawning child processes without causing a test failure
or non-zero exit code.

The second assumption followed from the first, and is violated when the first
is violated, because in this case we would consider a found crash fatal even
when a test was eligible to retry.

This patch reverses these assumptions and logs the full output of a test that
passes but produces crash dumps. It's not clear that the existing code intended
for a crash to ever be considered fatal when a test was eligible to retry, but
to change this criteria now would reduce our effective test coverage by
ignoring crashes that are now considered fatal, so after this patch we continue
to consider this scenario fatal. If it is determined these crashes are related
to these tests running in parallel with other tests, or they are not relevant
for some other reason, these tests should be run sequentially, or this criteria
should be changed.


MozReview-Commit-ID: 2PaFSGx2MVR

--HG--
extra : rebase_source : 34c0d1f13f4256928906729b1f3667bc395b2c56
2016-09-12 23:02:44 -07:00
Henrik Skupin c2299ca0e0 Bug 1303497 - Fix failure in test_window_management.py for new window checks. r=maja_zf
MozReview-Commit-ID: DbkRrRQvlTb

--HG--
extra : rebase_source : 441b5681635f8b3d2360e475cce2ce9414c4c0ef
2016-09-22 18:22:08 +02:00
Masayuki Nakano c29d9ac401 Bug 972110 Rewrite editor/libeditor/test_bug674770-1.html without setTimeout() for avoiding intermittent failure r=smaug
We can assume that if middle button's click event on a link isn't consumed by any event handlers including system event group's, it will cause open new tab.  With this assumption, we can avoid using setTimeout which causes random orange.

However, unfortunately, in e10s mode, the default is NOT consumed at window in bubbling phase but consumed at that time. So, when not working the link is expected, we cannot check Event.defaultPrevented.  But fortunately, we can check if the page is loaded after that.

Note that for testing this, the test needs to check if an event handler which is either in default group or system group consumed a click event.  However, this runs as mochitest-plain.  Therefore, Event.defaultPrevented returns false if the event is consumed only in the system group's event listener.  For avoiding this issue, this patch adds defaultPreventedInAnyGroups() into SpecialPowers.  In SpecialPowers, Event.defaultPrevented is accessed from chrome context.  Therefore, we can get the result what this test needs.

MozReview-Commit-ID: Cfn4lFR1dfI

--HG--
extra : rebase_source : 51feb768bd38f62cc19c2f4aecaaea0135190599
2016-09-22 10:54:51 +09:00
Carsten "Tomcat" Book d25a5baeb8 merge mozilla-inbound to mozilla-central a=merge 2016-09-22 11:55:12 +02:00
Wes Kocher 765926408d Backed out changeset e1d144423657 (bug 1280571) for making leaks hard to diagnose a=backout CLOSED TREE 2016-09-21 16:56:50 -07:00
Phil Ringnalda b9ee856eba Backed out changeset ae50c61cb134 (bug 1264367) for breaking crash stacks on at least Android and Linux 2016-09-21 13:26:24 -07:00
Wes Kocher 4fec8fe947 Backed out changeset 7e898928c51b (bug 838954) for lint failures a=backout CLOSED TREE 2016-09-21 12:44:31 -07:00
Tom Schuster 2f144c36e0 Bug 1299593 - Disable Array.prototype.values outside Nightly. r=jorendorff, r=smaug
--HG--
extra : rebase_source : 976a15181c0d263b62094a1524b8a27cf7c1fc4d
2016-09-21 11:53:00 -04:00
John Dai 2e88ad8701 Bug 1275832 - Implement custom element name validation for custom elements. r=wchen
--HG--
extra : rebase_source : e3c3adef09a3b5ae6f8ecb508ef782a9b39998c0
2016-09-20 23:26:00 -04: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
Maja Frydrychowicz 59cb034070 Bug 1278702 - Error out when compiled-code test is requested with artifact build; r=chmanchester
MozReview-Commit-ID: Es66ZuFq6PJ

--HG--
extra : rebase_source : 06b0ca116023c011aa3ba71803396223e2c8df0c
2016-09-21 14:22:34 -04:00
CuriousLearner ad54592778 Bug 1298800 - Add support for callbacks to restart() and quit() methods of Marionette; r=whimboo
MozReview-Commit-ID: CIiGOCkQs48

--HG--
extra : rebase_source : 23e578a851ab74a0ea25cf76c274e9e7849e0adc
2016-09-21 21:53:12 +05:30
Wes Kocher b39fcf65f2 Backout revisions b80d560e0102 and fc593dd9a280 (bug 838954) a=backout
--HG--
extra : source : 7008e3ee291ec274025d72ebd157eef7588da291
2016-09-21 11:42:16 -07:00
Gabriele Svelto b3a7e5c8a0 Bug 1264367 - Upgrade breakpad to upstream revision 704f41ec901c419f8c321742114b415e6f5ceacc r=ted 2016-09-21 17:44:50 +02:00
Prabhjyot Singh Sodhi 58b6130e52 Bug 1280571 - Add testing/mochitest to the flake8 linter, r=ahal
This also adds E402 (no imports at top of file) to the global ignore list. The
other error codes added were previously ignored by default, but now that we
have started a custom ignore list, need to be listed explicitly.

MozReview-Commit-ID: RtMuVEX6i5

--HG--
extra : rebase_source : 939bc9354f5891c680513d7e9068d0438e169132
2016-09-21 08:49:46 -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
Carsten "Tomcat" Book 23879d2b18 Merge mozilla-central to mozilla-inbound 2016-09-21 12:07:46 +02:00
Carsten "Tomcat" Book 4f900773f5 merge mozilla-inbound to mozilla-central a=merge 2016-09-21 12:03:31 +02: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
Phil Ringnalda 761fe9c9dd Bug 1282024 - Fix the typos that break setting the pref for iframe-allowfullscreen.html, and reenable it 2016-09-20 00:38:43 -07:00
Ted Mielczarek a879be132d bug 1303980 - update minidump_stackwalk binaries to ones built from latest Breakpad. r=jmaher
MozReview-Commit-ID: 7RHRlus75om

--HG--
extra : rebase_source : aba080dae4b532807cb3052d6b746620b4d591a3
2016-09-20 13:26:33 -04:00
Dão Gottwald f30ee01d43 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
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
Domenic Denicola 8052df3b1f Bug 230307. When cloning a <textarea>, preserve the current value just like we do for <input>. r=ehsan
The web platform test is just lifted wholesale from
<https://github.com/w3c/web-platform-tests/pull/3734>.
2016-09-15 13:52:37 -04:00
Boris Zbarsky 87d24a4a1d Bug 1297304. Fix our named property DOM proxy code to handle deletion correctly when expandos are involved. r=peterv 2016-09-20 13:24:34 +01:00
Carsten "Tomcat" Book 17d545681a Merge mozilla-central to mozilla-inbound 2016-09-20 12:02:20 +02:00
Carsten "Tomcat" Book 8910ca900f merge mozilla-inbound to mozilla-central a=merge 2016-09-20 12:01:29 +02:00
Phil Ringnalda 2f7e87d4f5 Bug 1282024 - Disable iframe-allowfullscreen.html for failing every time we merge to mozilla-beta 2016-09-19 19:10:10 -07:00
Kilik Kuo eafec00033 Bug 1289968 - [Part2] Provide max length limitation for KeyIds and Webm Initdata, then correct cooresponding web-platform-tests meta file. r=gerald
MozReview-Commit-ID: DbaF1wZXwav

--HG--
extra : transplant_source : %F4%FF%5E%E4%DBN%B8%15%23%2A%BD%E3%D4P%DF%A8%98n%F7%ED
2016-09-17 03:24:49 +08:00
Steve Fink 126dd3756f Bug 1303804 - Fix Promise test that relies on non-release feature (async stacks), r=froydnj
MozReview-Commit-ID: A9qEg11NOt

--HG--
extra : source : b1d6c8c73516bf74a36807bfb4595a57f5276571
extra : amend_source : f985ac3c5b6a59f02751ced11071d6e9ef3dee94
2016-09-19 15:21:25 -07:00
Matthew Noorenberghe 6007ad04a9 Bug 1303469 - Stub form autofill system extension. r=rhelmer
MozReview-Commit-ID: JXbUQdCwXN0

--HG--
rename : browser/extensions/webcompat/bootstrap.js => browser/extensions/formautofill/bootstrap.js
rename : browser/extensions/webcompat/install.rdf.in => browser/extensions/formautofill/install.rdf.in
rename : browser/extensions/webcompat/moz.build => browser/extensions/formautofill/moz.build
rename : browser/extensions/webcompat/test/browser.ini => browser/extensions/formautofill/test/browser/browser.ini
rename : browser/extensions/webcompat/test/browser_webcompat_stub_check.js => browser/extensions/formautofill/test/browser/browser_check_installed.js
extra : histedit_source : 655db162ef67f733bdf80e5410f75da7dc6e5d36
2016-09-18 14:07:51 +08:00
Phil Ringnalda c58d0d6900 Merge m-i to m-c, a=merge 2016-09-17 13:44:34 -07: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
prakhar0409 325fb89029 Bug 1298909 - report slowest test in all cases, even with requestLongerTimeout() is called. r=jmaher
HGcription>. r?jmaher branch 'default'

MozReview-Commit-ID: C8oij8WCQtl

--HG--
extra : rebase_source : 6fbd11fb47a3d58c0ed6443829218f8268bc168b
2016-09-16 23:30:00 +05:30
bhuvi96 f45db6ab53 Bug 1299207 - Remove unused imports in test_click.py; r=maja_zf
MozReview-Commit-ID: 9dDvAcsbZnS

--HG--
extra : rebase_source : 5a807ab46ed0ba28af22c2546e160abbb9e2d566
2016-09-15 21:51:21 +05:30
Henrik Skupin 5d8e830dad Bug 1302958 - Dump the list of downloaded safebrowsing files if one file has not been downloaded. r=maja_zf
MozReview-Commit-ID: GavpDh915zY

--HG--
extra : rebase_source : 37d37bc838d40d879a3cd0ea26dd20f5d5739074
2016-09-16 12:33:07 +02:00
Carsten "Tomcat" Book a07a9f05fc Merge mozilla-central to autoland 2016-09-16 14:28:01 +02:00