Tom Prince
9761c4f2bf
Bug 1384273 - Get lint root dir from mach; r=ahal
...
MozReview-Commit-ID: I6L6a9Sim49
--HG--
extra : rebase_source : 5ee0fe805c417b192f7408ea5cbcee73c902c593
2017-07-22 01:28:34 -06:00
Andrew Halberstadt
21a03ad73c
Bug 1383120
- Enable no-arbitrary-setTimeout eslint rule on xpcshell tests, r=mossop
...
MozReview-Commit-ID: 6DqLaZ9n5EM
--HG--
extra : rebase_source : 5f1264bb3ea23005c91557e5db4ce5f9e167ce9a
2017-07-26 09:08:07 -04:00
Andrew Halberstadt
3f3b2c7507
Bug 1383120
- [eslint-plugin-mozilla] Add no-arbitrary-setTimeout eslint rule, r=mossop
...
MozReview-Commit-ID: D7y3uALzVQx
--HG--
extra : rebase_source : ed7c5d3a2b43884fff3f967903fd3cfaf3567de7
2017-07-21 12:42:05 -04:00
Andrew Halberstadt
baddb0a4e7
Bug 1383120
- [eslint-plugin-mozilla] Fix getTestType() helper so mochitests aren't treated as xpcshell tests, r=mossop
...
This also adds a11y as a test type.
MozReview-Commit-ID: D7y3uALzVQx
--HG--
extra : rebase_source : 6e3c886e28af2c406e86288d99482d59cf6d1852
2017-07-21 12:41:27 -04:00
Tom Prince
030f21782c
Bug 1383318 - get rid of a dead `global` in eslint configuration. r=ahal
...
MozReview-Commit-ID: 2SZyO8KSVD5
--HG--
extra : rebase_source : 79299e663005413bdc593ba7376bc48dde4293f9
2017-07-21 16:56:09 -06:00
Carsten "Tomcat" Book
198430bca2
merge mozilla-inbound to mozilla-central a=merge
2017-07-26 11:11:40 +02:00
Wes Kocher
f19f28adfd
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: F1X8wKqbkg
2017-07-25 19:16:09 -07:00
Nathan Froyd
66c5fc1c12
Bug 1378975 - label the profiler's ThreadResponsiveness runnables; r=billm
2017-07-25 11:17:32 -04:00
Carsten "Tomcat" Book
bdf7db3d13
Merge mozilla-central to mozilla-inbound
...
--HG--
rename : dom/tests/mochitest/chrome/test_window_getAppLocales.html => dom/tests/mochitest/chrome/test_window_getRegionalPrefsLocales.html
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : d74c74a654cd977d35e35de2768ada4ebe659ae4
2017-07-25 14:38:43 +02:00
Nicholas Nethercote
d80dca9e65
Bug 1380286 (follow-up) - Fix hazard bustage. r=bustage.
...
--HG--
extra : rebase_source : 56b7f9c562568d848b7a240ed1f8e10ccb973ed6
2017-07-25 20:16:02 +10:00
Nicholas Nethercote
37c96fc477
Bug 1380286 (attempt 2) - Introduce ProfilerStackCollector. r=mstange.
...
--HG--
extra : rebase_source : 7eac82fa5f01f48f239a804ff9d8d662cd1c44aa
2017-07-25 16:47:14 +10:00
Kan-Ru Chen
5454b4c576
Bug 1382990 - Change the DOMEventMarkerPayload field name 'type' to 'eventType' to avoid conflicts. r=mstange
...
MozReview-Commit-ID: BX9nLoCybbG
--HG--
extra : rebase_source : 996326a32fdb58ff6f13b9532e73710851899627
2017-07-21 17:41:51 +08:00
Bill McCloskey
fff3f0890c
Bug 1383328 - Use TabGroup as event target for browser-status-filter (r=smaug)
...
MozReview-Commit-ID: HOSmqr5Vpwh
2017-07-25 19:52:36 -07:00
Andrew Halberstadt
fea81eb80e
Bug 1382140 - Call 'mach' with python from tools/lint/hooks.py so it works on Windows, r=mak
...
MozReview-Commit-ID: 7Iac4wqX9RG
--HG--
extra : rebase_source : 9dc9a4801808c9639ca4e930d1c601ec18171f72
2017-07-24 12:25:53 -04:00
Andrew Halberstadt
2a6c9e6348
Bug 1382775 - Move autotry logic from |mach try| into autotry proper, r=chmanchester
...
This is a straightforward copy of code from the mach_commands.py to autotry.py
MozReview-Commit-ID: 7TkbTff0Tv8
--HG--
extra : rebase_source : 7996131427217d9f0213af920d0d4ef0d2e7d0ac
extra : source : f0693a73539265f74f79db9d1e136e7f1c16a1f0
2017-07-18 08:52:42 -04:00
Andrew Halberstadt
7b130edcb5
Bug 1382775 - Add tools/tryselect to flake8 linter, r=chmanchester
...
This also fixes a handful of lint errors in the mach_commands.py and syntax.py files.
MozReview-Commit-ID: 6nXz87ch3z4
--HG--
extra : rebase_source : f4dd8e19066a28793a941112a39243429a234969
2017-07-17 21:40:15 -04:00
Andrew Halberstadt
88348cfd21
Bug 1382775 - Move testing/tools/autotry to tools/tryselect/selectors/syntax.py, r=chmanchester
...
The |mach try| implementation isn't really testing specific so figured while doing this refactor
anyway we could take the opportunity to move it to /tools. This renames the "autotry" module to
"syntax" as one of the 'selectors' under the newly created tryselect module.
MozReview-Commit-ID: DmnGU5sKuCk
--HG--
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : 52f2a61d97107b8d50e3894ea0f5cd9c24d4108d
2017-07-17 21:36:23 -04:00
Marco Castelluccio
ea2a344691
Bug 1380659 - Move xpcshell and mochitest in different directories. r=me
...
--HG--
rename : tools/code-coverage/tests/mochitest.ini => tools/code-coverage/tests/mochitest/mochitest.ini
rename : tools/code-coverage/tests/test_coverage_specialpowers.html => tools/code-coverage/tests/mochitest/test_coverage_specialpowers.html
rename : tools/code-coverage/tests/.eslintrc.js => tools/code-coverage/tests/xpcshell/.eslintrc.js
rename : tools/code-coverage/tests/head.js => tools/code-coverage/tests/xpcshell/head.js
rename : tools/code-coverage/tests/test_basic.js => tools/code-coverage/tests/xpcshell/test_basic.js
rename : tools/code-coverage/tests/test_basic_child_and_parent.js => tools/code-coverage/tests/xpcshell/test_basic_child_and_parent.js
rename : tools/code-coverage/tests/xpcshell.ini => tools/code-coverage/tests/xpcshell/xpcshell.ini
extra : rebase_source : 8a6a3ed50fadc870ef847d4e0b5cab21d28b68e6
2017-07-21 20:22:07 +02:00
Marco Castelluccio
cd0251171e
Bug 1380659 - Set Bugzilla component for /tools/code-coverage. r=jmaher
...
--HG--
extra : rebase_source : 222151a056ffc24226caedbd57f564a7a3d5338a
2017-07-21 19:34:19 +02:00
Marco Castelluccio
8bcd161a08
Bug 1380659 - Test SpecialPowers API to dump/reset coverage counters with a mochitest. r=jmaher
...
--HG--
extra : rebase_source : 904fc99cc5937286682a85218de8a9285bf0375e
2017-07-14 11:02:50 +02:00
Marco Castelluccio
947fc12ece
Bug 1380659 - Add xpcshell test with child and parent process, where the parent process requests dump of coverage counters. r=erahm
...
--HG--
extra : rebase_source : 3802baaf82c5ff0b41a88e1acd4063c75a5fb03a
2017-07-14 11:01:07 +02:00
Marco Castelluccio
d6b5f01351
Bug 1380659 - Add basic xpcshell test for the code coverage component. r=erahm
...
--HG--
extra : rebase_source : 245fa834b7b2a8d4c3f61871e93f5bdfd3d0cf72
2017-07-14 10:59:12 +02:00
Marco Castelluccio
9ca39b7d11
Bug 1380659 - Introduce code coverage component to dump/reset coverage counters. r=erahm
...
--HG--
rename : ipc/glue/CodeCoverageHandler.cpp => tools/code-coverage/CodeCoverageHandler.cpp
rename : ipc/glue/CodeCoverageHandler.h => tools/code-coverage/CodeCoverageHandler.h
extra : rebase_source : 77b2f698d9120d3fadcae65b3d22831a9e5429f9
2017-07-14 10:58:56 +02:00
Florian Quèze
d31ab0dd40
Bug 1381853 - Make defineLazyScriptGetter support lazy loading scripts exposing several symbols to the global scope, r=mconley,Mossop.
2017-07-23 00:17:56 +02:00
Florian Quèze
892a7dff17
Bug 1381853 - add defineLazyScriptGetter on XPCOMUtils.jsm, r=mconley.
2017-07-23 00:17:54 +02:00
Ryan VanderMeulen
d229288071
Merge m-c to autoland. a=merge
...
CLOSED TREE
--HG--
extra : amend_source : 2ab51304cc7df444f22c3aac001a1aba61faee3a
2017-07-21 09:42:41 -04:00
Thom Chiovoloni
2ae128c103
Bug 1374500 - Add a new sync engine for addresses and credit-cards. r=markh,kitcambridge
...
MozReview-Commit-ID: BcwS86YhfBc
2017-07-20 16:50:41 +10:00
Mark Banner
f3745e875c
Bug 1382647 - Improve eslint-plugin-mozilla's performance when searching for globals by avoiding rebuilding source when we don't need to. r=mossop
...
MozReview-Commit-ID: 84uHuepWhZR
--HG--
extra : rebase_source : 250ad0e3dc0608806871b13d89b22f232e30a0c5
2017-07-18 22:23:58 +01:00
Andrew Halberstadt
d94b81dc03
Bug 1384257 - Fix AttributeError when passing paths into |mach try|, r=maja_zf
...
MozReview-Commit-ID: IuuXt1XHUuM
--HG--
extra : rebase_source : 791d9ee74b3c0fac5f79eb66ce66544ea3aeedef
2017-07-25 15:51:35 -04:00
Markus Stange
bdcac7a378
Bug 1382910 - Update the profiler state in the child process once PProfiler is connected. r=njn
...
This handles the case where the profiler state changes in the parent process
between the initial launch of the child process and the time at which the
PProfiler connection is established.
MozReview-Commit-ID: 5SQme5M7P30
--HG--
extra : rebase_source : 301d5541ff5c05a9540e45f1b57c13fb37d5d6fa
2017-07-24 16:33:50 -04:00
Markus Stange
c1e5917d06
Bug 1382910 - Add profiler_ensure_started. r=njn
...
MozReview-Commit-ID: LBLlOLXqCwK
--HG--
extra : rebase_source : c3810fdd0805f5fadfd789118b1154435da0a62d
2017-07-24 16:48:15 -04:00
Markus Stange
5ecaa17d34
Bug 1382910 - Propagate the current profiler state to a newly-launched child process using environment variables. r=njn
...
This also fixes the bug where we would always profile child processes if the
parent process had been launched with MOZ_PROFILER_STARTUP=1, regardless of
whether the profiler was still running in the parent process.
MozReview-Commit-ID: LkIpYmKJOJ1
--HG--
extra : rebase_source : 49b38bc58ded91ecc2e2fce08bcb4f2d20a13b92
2017-07-24 18:16:33 -04:00
Markus Stange
128202ec7e
Bug 1382910 - Consistently treat empty env var values the same as the env var not being set. r=njn
...
This is what prenv.h suggests:
When manipulating the environment there is no way to un-set
an environment variable across all platforms. We suggest
you interpret the return of a pointer to null-string to
mean the same as a return of NULL from PR_GetEnv().
I interpret "null-string" to mean "empty string".
MozReview-Commit-ID: 2mfVD1zULXL
--HG--
extra : rebase_source : 07ec16c002f5c6d1ed0003fa05985f4155f85dfc
2017-07-20 20:52:20 -04:00
Markus Stange
d81d287c35
Bug 1382910 - Add a MOZ_PROFILER_STARTUP_FEATURES_BITFIELD environment variable that lets you set the features as a number. r=njn
...
If set, MOZ_PROFILER_STARTUP_FEATURES_BITFIELD overrides the value set by
MOZ_PROFILER_STARTUP_FEATURES.
This means that we won't need to go through an intermediate string
representation when propagating profiler settings to a child process through
environment variables.
MozReview-Commit-ID: 49eTVMI21GJ
--HG--
extra : rebase_source : 084040e7816929a8b63b7b087d7202180be4d4d5
2017-07-24 15:52:04 -04:00
Markus Stange
48b6127613
Bug 960153 - Add env var MOZ_PROFILER_STARTUP_FEATURES that lets you select which features should be active for startup profiling. r=njn
...
MozReview-Commit-ID: 9RzHNgIVcSb
--HG--
extra : rebase_source : 73f4c5c5ae7700b9f8794d0cb0b03527721e829d
2017-07-20 20:43:19 -04:00
Markus Stange
22afd028e6
Bug 960153 - Factor out ParseFeaturesFromStringArray. r=njn
...
MozReview-Commit-ID: JrRecdiMPB0
--HG--
extra : rebase_source : 72d32cf396fc8a3e6e0363487bff9e66355af281
2017-07-20 14:49:35 -04:00
Markus Stange
76c3d32a44
Bug 960153 - Add env var MOZ_PROFILER_STARTUP_FILTERS that lets you select which threads should be profiled during startup profiling. r=njn
...
MozReview-Commit-ID: 3vZy4bn1mRN
--HG--
extra : rebase_source : 44160deb8d91b1865756c0dddabdd0358d1de30f
2017-07-24 15:40:42 -04:00
Markus Stange
95eccb68b1
Bug 1382908 - Make TaskTracer build and run again. r=billm
...
MozReview-Commit-ID: 8SqBWgOXc6H
--HG--
extra : rebase_source : 4b5cbb34740ebd439431188dd8c6df02eeee3969
2017-07-24 18:35:07 -04:00
Carsten "Tomcat" Book
965777ef3a
Backed out changeset 3923ce220df3 (bug 1380286) for hazard failures
2017-07-25 08:44:13 +02:00
Nicholas Nethercote
6041274802
Bug 1380286 - Introduce ProfilerStackCollector. r=mstange.
...
This allows code outside the profiler to get fully interleaved stack traces
containing frames from the pseudo-stack, native stack, and JS stack.
--HG--
extra : rebase_source : e21b64e86ffec83a0052947afad1793f3fd62d00
2017-07-17 10:18:50 +10:00
Mark Banner
7768aaa6a6
Bug 1380956 - List only the directly required dependencies for ESLint in the top-level package.json. r=ahal
...
MozReview-Commit-ID: 9a4FwScmtVL
--HG--
extra : rebase_source : 651fc65f91c5bb02690a145c502ffbf1ec3212cc
2017-07-14 12:21:54 +01:00
Mark Banner
2612544280
Bug 1380956 - Use exact matches of versions in eslint-plugin-mozilla for better tracking. r=ahal
...
MozReview-Commit-ID: 2UYwQd2BhnC
--HG--
extra : rebase_source : b3f187f2a79ade2e181bec15260f6c906d3e8210
2017-07-14 12:01:17 +01:00
Mark Banner
a7f37edc6c
Bug 1380956 - Don't manually install our local eslint plugins as npm will do that for us. r=ahal
...
This works since we added the modules as local references in package.json.
MozReview-Commit-ID: 5e6EkcThJTX
--HG--
extra : rebase_source : 8d432c5fa9620981c20af7a3608f282508c51930
2017-07-14 11:55:37 +01:00
Mark Banner
9245f45a9a
Bug 1380956 - Add a minimum version requirement for npm in ESLint setup and improve the version handling. r=ahal
...
MozReview-Commit-ID: 9ZCKfsgQsO7
--HG--
extra : rebase_source : 98d63c694bce16c9f9dd4f8e286ffe20d3d61538
2017-07-14 11:39:57 +01:00
Mark Banner
4289d8c198
Bug 1380956 - Build the node_modules directory for ESLint on the docker image for the worker, rather than downloading it each time. r=ahal
...
MozReview-Commit-ID: B8QowXzWRlU
--HG--
rename : tools/lint/eslint/update => tools/lint/eslint/update.sh
extra : rebase_source : f2039d741295405100df389fa3b6be73647514f5
2017-07-14 11:19:07 +01:00
Steve Fink
683b884146
Bug 1380770 - Add more info to GCMinor marker JSON, r=jonco
...
--HG--
extra : rebase_source : 04d4bfc0188106f4c68b662ff5aa4e8a04dc37ab
extra : amend_source : 9692172a301e41c8bb029130c6d3a22a1e665feb
2017-07-13 17:36:46 -07:00
Andrew Halberstadt
f771b816de
Bug 1380003
- Create avoid-Date-timing eslint rule, r=standard8
...
MozReview-Commit-ID: 6b6GtBUpZUZ
--HG--
extra : rebase_source : df9766d3b202c68bc97f2d4e79fd3a1a84c689cb
2017-07-11 12:34:20 -04:00
Nicholas Nethercote
f5b5c1e817
Bug 1379933 (part 5) - Tweak ProfileBuffer arguments. r=mstange.
...
This patch changes ProfileBuffer arguments from pointers to references. For
functions that modify the ProfileBuffer, it also moves the argument to the end.
--HG--
extra : rebase_source : 394dd3effc852447c703c0f5802c092ae96e2eaa
2017-07-13 11:05:34 +10:00
Nicholas Nethercote
901524bc02
Bug 1379933 (part 4) - Start all ProfilerBuffer methods with an upper case letter. r=mstange.
...
--HG--
extra : rebase_source : 3fb137a4981cc3228384d3e477f71f637a1c4722
2017-07-13 11:05:31 +10:00
Nicholas Nethercote
2238ba75d1
Bug 1379933 (part 3) - Start all ProfilerBufferEntry methods with an upper case letter. r=mstange.
...
Also, hasKind() can be removed.
--HG--
extra : rebase_source : fa1276603cd6602ef649c33ab40f8c4b4c9d427f
2017-07-13 11:05:29 +10:00