Commit Graph

65 Commits

Author SHA1 Message Date
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Mark Banner
f45d55a473 Bug 1430923 - Change existing instances of 'let EXPORTED_SYMBOLS = ' to use 'var'. r=mossop
MozReview-Commit-ID: A1mX6j9RPrZ
2018-01-16 23:08:35 +00:00
Dustin J. Mitchell
924fdd14e9 Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI
2017-10-02 18:22:56 +00:00
Noemi Erli
aaef80e91f Backed out 2 changesets (bug 1403519) for bustage on \python\mozbuild\mozbuild\test\frontend\test_reader.py on a CLOSED TREE
Backed out changeset f53f8adcd578 (bug 1403519)
Backed out changeset 5b293bcd3fc7 (bug 1403519)
2018-01-17 07:23:40 +02:00
Dustin J. Mitchell
451e3b63c2 Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI
2017-10-02 18:22:56 +00:00
Margareta Eliza Balazs
a773d5e139 Backed out changeset 6d539e4a02bd (bug 1403519) for lint failures on a CLOSED TREE 2018-01-11 22:32:27 +02:00
Dustin J. Mitchell
cb2823906c Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI
2017-10-02 18:22:56 +00:00
Kris Maglione
ded8359866 Bug 1421459: Follow-up: Fix ESLint bustage.
MozReview-Commit-ID: 1S5ToxLynvB
2017-12-08 12:03:59 -08:00
Mark Banner
e47ccbfec3 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Geoff Brown
4c4e90bfa9 Bug 1410017 - Skip xpcshell test_subprocess_getEnvironment.js on coverage builds; r=me,test-only 2017-10-19 14:06:14 -06:00
Greg Mierzwinski
c93a5aef8d Bug 1400728 - Disable 'test_subprocess.js' on linux64-jsdcov. r=jmaher
This patch prevents the test 'toolkit/modules/subprocess/test/xpcshell/test_subprocess.js' from running on linux64-jsdcov in the xpcshell suite.

MozReview-Commit-ID: 3dOyN9eSVer
2017-10-08 21:56:56 -04:00
Masatoshi Kimura
0af76969af Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC
2017-08-04 17:49:22 +09:00
Doug Thayer
a9560817aa Bug 1362786 - (1) Increase subprocess BUFFER_SIZE r=kmag
While 4KiB is a decently sized buffer, bumping it to 32 on my
machine reduced the time for getSymbolsFromNM from 12s to 8s. If
32 is too large for the typical use of this, then we can instead
just parameterize this so that we can specify as large a buffer
as we want for our use case.

MozReview-Commit-ID: 3wGpHzQ9uZ5
2017-07-21 10:20:36 -07:00
Andrew Halberstadt
86f21296a2 Bug 1383120 - Enable no-arbitrary-setTimeout eslint rule on xpcshell tests, r=mossop
MozReview-Commit-ID: 6DqLaZ9n5EM
2017-07-26 09:08:07 -04:00
Johan Lorenzo
59e15376bf Bug 1380628 - test_subprocess_environmentAppend fails on the new taskcluster windows instances r=kmag
MozReview-Commit-ID: CI6WGeWwBGo
2017-07-17 10:57:19 +02:00
Kris Maglione
33660f2ebd Bug 1377180: Pass PATH environment variables with partial environment on Windows. r=aswan
MozReview-Commit-ID: JwqvmHJpFcL
2017-06-29 11:50:39 -07:00
Florian Quèze
c30094cdf7 Bug 1374282 - script generated patch to remove generators from add_task in browser/ and toolkit/, r=Mossop. 2017-06-22 12:51:43 +02:00
Andrew Swan
c724abde7f Bug 1338327 Handle .cmd files with spaces in subprocess r=kmag
MozReview-Commit-ID: 9zr97CyY5in
2017-06-12 14:51:32 -07:00
Kris Maglione
85deade3e6 Bug 1371548: Accept invalid stderr handles when spawning subprocesses. r=aswan
MozReview-Commit-ID: B8FKavo7ksT
2017-06-10 16:35:14 -07:00
Stephen A Pohl
cb17e2c71d Bug 1364984 - Ensure that our sandbox and tests can handle temp directory paths using symlinks on macOS. r=haik,aswan 2017-06-07 20:40:58 -04:00
Kris Maglione
09b8043514 Bug 1370027: Part 1 - Cleanly handle a subprocess child being reaped by NSPR. r=aswan
The first time any other code in the parent process uses NSPR (usually via
nsIProcess) to spawn a new process, it spawns a thread to contuously wait for
any child process to exit. This thread winds up reaping our child processes
before we get the chance to wait for them, which leads us to continuously poll
for them to exit.

We don't have a good way to handle this, but checking the error status of
waitpid at least prevents us from failing catastrophically.

MozReview-Commit-ID: 75Z1yUHUmjy
2017-06-06 16:00:53 -07:00
Mark Banner
cd26ab051f Bug 1367232 - Clean up various ESLint global definitions in toolkit/. r=mossop
MozReview-Commit-ID: Hhm4YBansg1
2017-05-19 09:22:48 +01:00
Florian Quèze
b2499a4c57 Bug 1353542 - smaller script-generated patch converting remaining generators that are likely tasks (actual generators were identified by hand and whitelisted), r=Mossop. 2017-05-12 14:45:01 +02:00
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Mark Banner
7945b07153 Bug 1342459 - Enable no-undef on browser/base, and clean up unnecessary no-undef references. r=mossop
MozReview-Commit-ID: KVrAnAjMD1E
2017-04-03 11:46:56 +01:00
Kris Maglione
50019b2841 Bug 1352893: Handle non-UTF-8 data in Unix environment variables. r=mstange
MozReview-Commit-ID: 5aRVYQICc7O
2017-04-02 18:46:10 -07:00
Mark Banner
ec9074e132 Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
MozReview-Commit-ID: LH0CQOPfoe6
2017-03-20 12:36:37 +01:00
Kris Maglione
ec0ca49687 Bug 1340735 - Terminate process when failing to attach it to job group. r=mhowell
MozReview-Commit-ID: BVCPRFH6TV2
2017-02-17 15:30:24 -08:00
Kris Maglione
1654b2c3cc Bug 1321637: Fix execution of batch files with spaces in path. r=mhowell,aswan
MozReview-Commit-ID: 8Q3KFLnXEkl
2017-01-22 16:23:33 -08: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
ac52569fff Bug 1329614 - [eslint] Catch more cases of importing globals from 'var foo = Cu.import('...');'. r=jaws
MozReview-Commit-ID: 5NKHHb70YA6
2017-01-09 10:12:26 +00: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
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
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
Kris Maglione
44c17906e3 Bug 1309351: Part 1 - Replace child_process/subprocess.js with a thin wrapper around Subprocess.jsm. r=rpl f=mhowell
MozReview-Commit-ID: 7r9pSC8v1T
2016-10-14 18:01:42 -07:00
Kris Maglione
4785d22520 Bug 1301246: Allow processes to break away from their job. r=mhowell
MozReview-Commit-ID: IFyK7HkQP35
2016-09-08 12:26:13 -07:00
Andrea Marchesini
5f8dfa9ba6 Bug 790919 - Don't dispatch close event in Workers, r=bkelly 2016-08-31 21:33:05 -07:00
Kris Maglione
3d244b2d86 Bug 1295867: Wait for all IO operations to complete before ending test tasks. r=aswan
MozReview-Commit-ID: A6DIpXE5M1R
2016-08-20 15:32:42 -07:00
Sebastian Hengst
124588ed8c Backed out changeset 64fc57e6ee84 (bug 1295867) for windows xpcshell failure test_native_messaging.js | test_native_app_shutdown. r=backout 2016-08-21 23:50:36 +02:00
Kris Maglione
645b0f8957 Bug 1295867: Wait for all IO operations to complete before ending test tasks. r=aswan
MozReview-Commit-ID: A6DIpXE5M1R
2016-08-20 15:32:42 -07:00
Kris Maglione
d1cd3911ce Bug 1291199: Retry subprocess perf tests on failure. r=aswan
MozReview-Commit-ID: 9PDT9tcYFqf
2016-08-02 15:37:34 -07:00
Kris Maglione
f778674fc0 Bug 1290598: Manage and terminate Windows subprocess trees as a single job object. r=mhowell
MozReview-Commit-ID: 80K5YyDWmn3
2016-08-03 09:39:19 -07:00