Commit Graph
823 Commits
Author SHA1 Message Date
Chris Peterson 6bb2787575 Bug 1336776 - Log more useful error messages if MOZ_NODE_PATH or MOZHTTP2_PORT environment variables are not set correctly. r=nwgh
MozReview-Commit-ID: Fevu9smKdu3
2017-02-04 16:21:58 -08:00
Gregory Szorc 7f37f5a0eb Bug 1337679 - stylo: Disable currently crashing xpcshell tests; r=ted
MozReview-Commit-ID: K99exhH1S8j
2017-02-10 17:59:43 -08:00
Marco Bonardo 56b7adb200 Bug 1332295 - do_register_cleanup should support generators and async functions. r=ted
MozReview-Commit-ID: BPCwPlWQ8G0
2017-01-19 16:07:46 +01:00
Phil Ringnalda 70924b035a Backed out changeset c13c36e04303 (bug 1332295) for extremely frequent Linux32 debug failures in test_be_conservative.js 2017-02-05 18:18:09 -08:00
Greg Mierzwinski a9323edf9f Bug 1301197 - Add xpcshell code coverage to linux64-jsdcov and the 'coverage' mozinfo flag. r=jmaher
This patch makes it possible to collect code coverage for xpcshell tests using the linux64-jsdcov build. It also enables the use of a 'coverage' flag to disable tests when they are instrumented with the js debugger for code coverage. Lastly, it uses the 'coverage' flag to disable certain tests.

MozReview-Commit-ID: 97VFkJmlwQn
2016-11-08 15:57:21 -05:00
Marco Bonardo e09a568ade Bug 1332295 - do_register_cleanup should support generators and async functions. r=ted
MozReview-Commit-ID: BPCwPlWQ8G0
2017-01-19 16:07:46 +01:00
Mark Banner a54b21ce85 Bug 1335813 - Enable eslint no-undef for toolkit, apart from components/ and content/, and fix various issues. r=jaws
MozReview-Commit-ID: LpXm7TbwvDb
2017-01-31 13:17:03 +00: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
Mark Banner eb8f8e57a2 Bug 1333044 - Prepare services/ for enabling no-undef eslint rule. r=jaws
MozReview-Commit-ID: 29KwwyZH2jn
2017-01-17 12:25:43 +00:00
Andrew Halberstadt 3f9cbf87a1 Bug 1333564 - [manifestparser] Stop supporting ';' as a valid comment character, r=jmaher
It turns out there are shockingly few cases of manifestparser manifests that actually use the ';'
character as a comment. Because we will soon allow inline comments, deprecating the use of ';' will
ensure that values are allowed to have semicolons in them.

Even without inline comments, might as well enforce consistency across manifests.

MozReview-Commit-ID: AEPPQFdNXG0
2017-01-25 14:38:37 -05:00
Carsten "Tomcat" Book 96ed97bebf Backed out changeset f8b29e24280b (bug 1333044) for perma failures in test_load_modules.js 2017-01-25 15:29:53 +01:00
Mark Banner d4f3cf8580 Bug 1333044 - Prepare services/ for enabling no-undef eslint rule. r=jaws
MozReview-Commit-ID: 29KwwyZH2jn
2017-01-17 12:25:43 +00:00
Mark Banner 55868dde7c Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00
Mark Banner ee78c2e613 Bug 503613 - Remove the tail file functionality from xpcshell; r=gps
MozReview-Commit-ID: JcglhFl89DX
2017-01-17 15:27:55 +00:00
Mark Banner d07f540195 Bug 1328338 - Fix more no-undef eslint issues in toolkit/ and browser/. r=mossop
MozReview-Commit-ID: 78dXLYVW1gC
2017-01-03 11:55:24 +00:00
Joel Maher 7e22dcbaa3 Bug 1326465 - add BUG_COMPONENTS to testing/. r=gbrown,ted
ensuring moz.build files have BUG_COMPONENTS for all files
in the testing/ subdirectory is a win.  There are a lot of
older files and some files used in many harnesses.  If the
files are primarily used for mochitest, they are associated
with the testing::mochitest component, otherwise I chose
the testing::general component.

There is an exception web-platform-tests, these have many
test files that need to be matched to proper components.

MozReview-Commit-ID: IIv9W2kEqeN
2016-12-30 16:16:56 -05:00
Mark Banner fb8a196639 Bug 1325623 - Fix most no-undef eslint issues in toolkit/components. r=mossop
MozReview-Commit-ID: DYJa1uNVagw
2016-12-23 16:00:46 +00:00
Mythmon 0a8023ce47 Bug 1308656 - Add shield-recipe-client as system add-on r=Gijs,rhelmer
MozReview-Commit-ID: KNTGKOFXDlH
2016-10-10 16:14:56 -07:00
Sebastian Hengst 1d4dfdf50e Backed out changeset a53f5aa00347 (bug 1308656) for syntax error in browser_dbg_searchbox-parse.js (line cut off). r=backout 2016-12-21 09:44:17 +01:00
Mythmon 8c64984947 Bug 1308656 - Add shield-recipe-client as system add-on r=Gijs,rhelmer
MozReview-Commit-ID: KNTGKOFXDlH
2016-10-10 16:14:56 -07:00
Andrew Halberstadt 7663ee0695 Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester
This deprecates PYTHON_UNIT_TESTS and replaces it with PYTHON_UNITTEST_MANIFESTS.
In the build system, this means python unittests will be treated the same as all
other test suites that use manifestparser. New manifests called 'python.ini' have
been created for all test directories containing python unittests.

MozReview-Commit-ID: IBHG7Thif2D
2016-11-16 09:59:22 -05:00
Nicholas Hurley 87c16d8d6c Bug 1310855 - Remove hasNode xpcshell.ini variable r=mcmanus
MozReview-Commit-ID: Hx2e1JYfUfy
2016-10-18 10:54:33 -07:00
Andrew Halberstadt 58e3ab082c Bug 1316309 - Use mozcrash.kill_and_get_minidump() in xpcshell instead of automation.py, r=ted
There are a number of things that were going wrong with XPCShell on windows, this patch address them:

1) We were erroring out in Automation.killAndGetStack(), both failing to produce a minidump and failing
to kill the process. This patch fixes both these issues by using mozcrash instead.

2) Occasionally we were occasionally raising a psutil.NoSuchProcess error when attempting to kill the
process after the test. This appears to be caused by a race condition, but is safe to ignore as if the
process doesn't exist, then we don't need to kill it.

3) Spurious "Unable to remove directory" errors in cleanup. This uses mozfile.remove to remedy this.

MozReview-Commit-ID: 1g5qO8fpM7R
2016-11-09 10:32:46 -05:00
Jeff Walden e44db07070 Bug 1296814 - Remove Parser::reportBadReturn and report simpler errors that don't use the offset of a node as location. r=arai 2016-11-13 00:11:39 -08:00
Jared Wein b6817d7876 Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
MozReview-Commit-ID: 1mhCWplknyN
2016-11-07 22:34:25 -05:00
Iris Hsiao d24e67dbe4 Backed out changeset f6f28be8d8f2 (bug 1315781) for XPCShell test timed out 2016-11-10 14:53:46 +08:00
Andrew Halberstadt b5202cebb3 Bug 1316408 - Remove all b2g related code from testing/xpcshell, r=jmaher
MozReview-Commit-ID: KF5Pw5WBleX
2016-11-09 14:50:45 -05:00
Jared Wein 0c41af265f Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
MozReview-Commit-ID: DnpVQRrG9Ec
2016-11-07 22:34:25 -05:00
Jared Wein 2dfc7371c2 Bug 1316096 - Change eslint configuration to use string values for rules instead of integers, making it easier for others who are reading the rules to know if a rule is set to off, warn, or error. r=mossop
MozReview-Commit-ID: 2Xuj5nxuQdO
2016-11-08 15:14:19 -05:00
Phil Ringnalda 74a62f1b6e Backed out changeset 4777ed22d16d (bug 1261197) for xpcshell "logged while not in progress" failures 2016-11-08 21:11:50 -08:00
pyang f6425045cc Bug 1261197 - Use StructuredOutputParser for parsing xpcshell test results r=ahal
MozReview-Commit-ID: 3kg8oEAecR7
2016-11-08 11:17:42 +08:00
Phil Ringnalda 28a0e4723b Backed out changeset 143f26b923d0 (bug 1310855) for WinXP xpcshell failures starting with test_register_success_http2.js 2016-11-07 18:42:57 -08:00
Nicholas Hurley 0b381a0479 Bug 1310855 - Remove hasNode xpcshell.ini variable r=mcmanus
MozReview-Commit-ID: Hx2e1JYfUfy
2016-10-18 10:54:33 -07:00
Mark Banner d4b538c2b7 Bug 1240165 - Expand the eslint rule 'mark-test-function-used' to cover xpcshell tests as well as gecko tests and apply to the whole tree. r=miker
MozReview-Commit-ID: FlbJ8yzWXlw
2016-10-26 09:46:40 +01:00
Ryan VanderMeulen 112d5746d5 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Mark Banner 9b40970863 Bug 1313626 - Clean up more issues found by eslint no-undef rule. r=mossop
MozReview-Commit-ID: HGiOmpyN5zV
2016-10-28 11:40:32 +01:00
Eugen Sawin 26593fd923 Bug 1307886 - [3.2] Extract xz-compressed libs for xpcshell and unit tests. r=glandium 2016-10-28 12:59:23 +02:00
Eugen Sawin f561409ffe Bug 1307886 - [1.2] Remove szip support. r=glandium 2016-10-28 12:59:23 +02:00
Mark Banner c0170c9aa4 Bug 1311315 - General small fixes for no-undef eslint issues in browser/. r=jaws
Drop linting of the .eslintrc.js config files.
Fix some minor errors in the code (missing let/const, undefined vars).
Let eslint know that some files get their globals from other places (typically via xul script tags).

MozReview-Commit-ID: CwxuwPtRUr6
2016-10-18 12:34:35 +01:00
Mark Banner 233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Sebastian Hengst faa4e03c25 Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Ethan Glasser-Camp c0414a211e Bug 1225781: Return exit status of tests, r=ahal
MozReview-Commit-ID: 75v381nyQbj
2016-10-05 17:24:36 -04:00
Dale Harvey 5c3d1cfe93 Bug 1267495 - Fallback to local config for fresh GMP installs. r=mconley, r=rhelmer, feedback=ksteuber 2016-09-27 11:57:41 +01:00
Chris Manchester c4aba81fb1 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
2016-09-12 23:02:44 -07:00
Nicholas Hurley 3ed39d224f Bug 1296280 (part 0b) - Make debugging node h2 server work better r=mcmanus
MozReview-Commit-ID: 6QoGiUKGTzA
2016-09-07 09:43:47 -07:00
Nicholas Hurley 74030c10a0 Bug 1296280 (part 0a) - Update to node-http2 3.3.6 r=mcmanus
MozReview-Commit-ID: 6c5RrFFDak0
2016-09-16 08:54:03 -07:00
Steve Fink eaa280d0ab Bug 1303804 - Fix Promise test that relies on non-release feature (async stacks), r=froydnj
MozReview-Commit-ID: A9qEg11NOt
2016-09-19 15:21:25 -07:00
Masatoshi Kimura 8b7e6c6a08 Bug 1248198 - Set "hasNode" only if the node version is >=5.0.0 because older node does not support ALPN. r=glandium
MozReview-Commit-ID: D4rrp92R5YS
2016-07-15 21:08:42 +09:00
Patrick McManus 414e1bab08 Bug 1301117 - update opportunisitic encryption r=hurley 2016-08-16 15:51:18 -04:00
Andrew Halberstadt 343f6f8666 Bug 1300163 - Reuse the 'e10s' value from the mozharness config on interactive loaners, r=armenzg
I noticed that if you request a loaner for a non-e10s job then run mach, it will be run with e10s
enabled. The mach command should accurately reflect the type of job that got requested. This patch
grabs the 'e10s' argument from the mozharness localconfig.json and uses that.

MozReview-Commit-ID: 4lsKGpizfH7
2016-09-02 14:42:36 -04:00