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

5187 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 65a53b0bca Backed out changeset a86a804e64ee (bug 1387862) 2017-08-10 14:29:59 +02:00
Sebastian Hengst 88b3637c8c Backed out changeset c13bd0798514 (bug 1387862) 2017-08-10 14:29:54 +02:00
Sebastian Hengst ca07202265 Backed out changeset 103073e92350 (bug 1387862) 2017-08-10 14:29:48 +02:00
Sebastian Hengst 33266b5810 Backed out changeset 9e1723c2e1c9 (bug 1387862) 2017-08-10 14:29:43 +02:00
Sebastian Hengst ce4158f736 Backed out changeset 57176d7ff82a (bug 1387862) 2017-08-10 14:29:37 +02:00
Justin Wood 1a5e403ed2 Bug 1387862 - Lint the linter config yaml files themselves. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: F8hTBerSNIj

--HG--
extra : rebase_source : 2d1d3d8d98fd3f0abe3494c49ad01072181c4e08
2017-08-06 13:47:03 -04:00
Justin Wood 6f775a5e66 Bug 1387862 - Lint NSS's taskcluster.yml. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: ATX5IOK747y

--HG--
extra : rebase_source : 24583ac74033923f0e4bcf6053169f09ef76b833
2017-08-06 13:44:41 -04:00
Justin Wood 582030b224 Bug 1387862 - Lint python/mozlint yaml files. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: IMOKGhxKFJW

--HG--
extra : rebase_source : a2e47f5c5517e999fe21bac4f86491611bd0cece
2017-08-06 13:43:04 -04:00
Justin Wood 687c9e4240 Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: 758kdSddjJN

--HG--
extra : rebase_source : 8c8d55ea55737a5c2faca9f91478c72296c881b7
2017-08-06 13:35:27 -04:00
Justin Wood b987f769d1 Bug 1387862 - Lint taskcluster yaml files. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: L83j6SODA3w

--HG--
extra : rebase_source : b5aee7a53c2fe25381116e45a4475d66ebba2903
2017-08-06 13:26:13 -04:00
Justin Wood 143c24a47a Bug 1387862 - Add initial support for ./mach lint -l yaml r=ahal,dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: HYVWXzNnnzG

--HG--
rename : tools/lint/flake8_/__init__.py => tools/lint/yamllint_/__init__.py
extra : rebase_source : 54460179e51f6263099a6837e1111dcce05a9331
2017-08-06 13:23:48 -04:00
Sylvestre Ledru 29a95df74d Bug 1387002 - Replace .size() by .empty() when applicable in profiler/ r=njn
MozReview-Commit-ID: 275AVJyhejr

--HG--
extra : rebase_source : b7281214b30b44d51f2d7869b4faf590f3a41ed5
2017-08-03 12:08:04 +02:00
Ryan VanderMeulen 24396489e3 Backed out 7 changesets (bug 1387862) for yaml linting failures.
Backed out changeset 63f87f6db7d6 (bug 1387862)
Backed out changeset a85b7e7d9f24 (bug 1387862)
Backed out changeset 3713ea9672e8 (bug 1387862)
Backed out changeset 22c1094e387f (bug 1387862)
Backed out changeset e0bfb35b0eec (bug 1387862)
Backed out changeset 5bb5dc7655ec (bug 1387862)
Backed out changeset cc4c01794114 (bug 1387862)
2017-08-09 21:31:30 -04:00
Justin Wood 9eadced082 Bug 1387862 - Lint the linter config yaml files themselves. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: F8hTBerSNIj

--HG--
extra : rebase_source : b3b420eb4f66e448e41de4b556c200e1bd590094
2017-08-06 13:47:03 -04:00
Justin Wood a37b9ce0f2 Bug 1387862 - Lint NSS's taskcluster.yml. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: ATX5IOK747y

--HG--
extra : rebase_source : 493c6c762e3b26f1295205c0300df8b0cd87bc7b
2017-08-06 13:44:41 -04:00
Justin Wood 906fda8397 Bug 1387862 - Lint python/mozlint yaml files. r=ahal
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: IMOKGhxKFJW

--HG--
extra : rebase_source : 0ef71f24141a531833d48f2a305183dd808f00f5
2017-08-06 13:43:04 -04:00
Justin Wood 0985529c39 Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: 758kdSddjJN

--HG--
extra : rebase_source : f057b0ce281adb67a156235b051a371a252bd22c
2017-08-06 13:35:27 -04:00
Justin Wood 34f5922850 Bug 1387862 - Lint taskcluster yaml files. r=dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: L83j6SODA3w

--HG--
extra : rebase_source : 2be273b518f3424d62f4a90cebe25a3c2833c8a0
2017-08-06 13:26:13 -04:00
Justin Wood 51838f82e6 Bug 1387862 - Add initial support for ./mach lint -l yaml r=ahal,dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: HYVWXzNnnzG

--HG--
rename : tools/lint/flake8_/__init__.py => tools/lint/yamllint_/__init__.py
extra : rebase_source : 635ef617eeba1cd1299366beb0c83232d42f0258
2017-08-06 13:23:48 -04:00
Andrew Halberstadt ae1a1c1bc5 Bug 1388811 - [try fuzzy] Add ability to run non-interactive fuzzy queries, r=armenzg
MozReview-Commit-ID: JojBS8pZHSk

--HG--
extra : rebase_source : 9a2e497d7789e3a41a37668eda05168e8301aa5b
2017-08-09 13:11:47 -04:00
Dustin J. Mitchell 64c81d4d30 Bug 1382729: allow uploading docs at all levels; r=gps
The upload now uses MOZ_SCM_LEVEL to determine which secret and bucket to
upload to, so it can potentially run at any level.

This also modifies task descriptions to allow {level} in scopes, and updates
try syntax to allow `-j doc-upload` even though run-on-tasks says it doesn't
run on try by default.

MozReview-Commit-ID: Dm27TGPa7IM

--HG--
extra : rebase_source : f1131abc8cd639251e085c8ebf776827a6b831ed
extra : amend_source : b2b0cb253c7f6e90fdd710c2c788877411bd9e1d
2017-08-08 19:13:05 +00:00
dagasatvik d4398e95f2 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg

--HG--
extra : rebase_source : 5fc5c6760924da81a6d0708ff0d5586fc62c8c5e
2017-08-07 23:57:51 +05:30
Kris Maglione c79c7e27c2 Bug 1388215: Part 2 - Add eslint plugin support for defineLazy*Getters() methods. r=florian
MozReview-Commit-ID: AMX0VbPncmI

--HG--
extra : rebase_source : ec3b650e0242a40b3ca5544ba99993b44520d7a6
2017-08-08 14:11:16 -07:00
Kan-Ru Chen 87a450cad1 Bug 1386495 - Add timeStamp to DOMEventMarkerPayload. r=mstange,smaug
MozReview-Commit-ID: B3b4laxMqQM

--HG--
extra : rebase_source : 80e41c2f9d921ddd93d41c348594895046c7af8f
2017-08-03 15:42:42 +08:00
Andrew Halberstadt f625fd5c37 Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : d72a88962ec8d843e7be99e25f710887f01b6e1a
2017-08-10 14:48:21 -04:00
Nicholas Nethercote 0694869bf4 Bug 1385197 - Clarify the how and why of JS line number getting in AddPseudoEntry. r=mstange.
The new code preserves the existing behaviour, but it clearer, and gets rid of
two XXX comments.

--HG--
extra : rebase_source : db434de38bcf585771cdc7d93fd7f24471fb0c1c
2017-07-28 17:19:47 +10:00
Sylvestre Ledru 203da12ecc Bug 1384902 - Add sfntly/ to the thirdparty list r=jfkthame
MozReview-Commit-ID: FM0hSAJ29YI

--HG--
extra : rebase_source : 40a4d29a8a6e6e5cc26f62877b7884340c454bf6
2017-07-27 14:19:22 +02:00
Markus Stange 55ea239b11 Bug 1387155 - Make nsIProfiler::dumpProfileToFileAsync return a promise. r=njn
MozReview-Commit-ID: 5yJMYrcRPBM

--HG--
extra : rebase_source : 7ceda2b9592f84687e0abaadf2bffb3a90dfbaff
2017-08-03 21:12:45 -04:00
Axel Hecht d112ca24fa bug 1370506, update the docs, r=glandium
Mostly removals, but also adding docs on how to create a
multilingual package right now.

I think I'd like to take another pass at those docs in a follow-up.

MozReview-Commit-ID: Dkw4MJ5DLyb

--HG--
extra : rebase_source : 4f79499e376cf6ddd23169a1c4525ed6b551a740
2017-06-16 13:14:28 +02:00
Wes Kocher 5df77c43f9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IJRYyJu1sWm
2017-08-02 17:42:10 -07:00
Wes Kocher baf6cddc4c Merge inbound to central, a=merge
MozReview-Commit-ID: 9NFjSEt96iT
2017-08-02 17:11:51 -07:00
Rajesh Kathiriya 48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Bevis Tseng 16c9a58ee8 Bug 1384041 - Label the use of setTimeout of Timer.jsm in content-sessionStore.js. r=billm
MozReview-Commit-ID: i8Rn1eke4s
2017-07-28 16:03:51 +08:00
Nicholas Nethercote 08e54b7c13 Bug 1384819 (part 1) - Split MozStackWalk(). r=glandium.
MozStackWalk() is different on Windows to the other platforms. It has two extra
arguments, which can be used to walk the stack of a different thread.

This patch makes those differences clearer. Instead of having a single function
and forbidding those two arguments on non-Windows, it removes those arguments
from MozStackWalk, and splits off MozStackWalkThread() which retains them. This
also allows those arguments to have more appropriate types (HANDLE instead of
uintptr_t; CONTEXT* instead of than void*) and names (aContext instead of
aPlatformData).

The patch also removes unnecessary reinterpret_casts for the aClosure argument
at a couple of MozStackWalk() callsites.

--HG--
extra : rebase_source : 111ab7d6426d7be921facc2264f6db86c501d127
2017-07-27 12:46:47 +10:00
Dustin J. Mitchell 5a0dbc530f Bug 1382729: Upload documentation to S3 automatically; r=gps
This uses credentials stored in the Taskcluster secret service. The task should
only run on mozilla-central to avoid confusion between branches.

MozReview-Commit-ID: 31XfTg0sCht

--HG--
extra : rebase_source : c3ef4ec15ecd4fa0ec0b5af7aacddfa8d6dd90e0
extra : source : 19f92c04608cec275dab73e8acad5141de8a5c44
2017-07-28 18:32:04 +00:00
Markus Stange cfee6598e0 Bug 1382928 - Use atomics for thread-shared pieces of state in ThreadResponsiveness.cpp. r=njn
MozReview-Commit-ID: LZJ4XHZPi7N

--HG--
extra : rebase_source : 0b66d03165571c39948076961c69c40bb35a37af
2017-08-01 15:32:18 -04:00
Wes Kocher b11975d1ad Merge m-c to autoland, a=merge
MozReview-Commit-ID: L5cEw8jWPNI
2017-07-31 17:53:14 -07:00
Wes Kocher 4eb745567e Merge autoland to central, a=merge
MozReview-Commit-ID: 1vnfzrwONu9
2017-07-31 16:43:19 -07:00
Robert Strong 32892aa50e Bug 1385780 - New mar convertor script to convert a mar file from bzip2 to lzma and from lzma to bzip2. r=bhearsum, a=app_update_lzma 2017-07-31 10:34:37 -07:00
Robert Strong 77e64d46e5 Bug 1385780 - Update mar file generation scripts for lzma. r=bhearsum
Adds support to unwrap_full_update.pl to detect if the mar file's contents were compressed using bzip2 and if not to default to lzma, a=app_update_lzma
2017-07-31 10:34:30 -07:00
Robert Strong 8644543020 Bug 1385780 - Update mar file generation scripts for lzma. r=bhearsum, r=rail, a=app_update_lzma
Update scripts to support both lzma and bzip2
Update unused python script to support lzma. This also adds python 3.0 support to the script while still supporting pythin 2.7
Update test scripts to support lzma
2017-07-31 10:34:22 -07:00
Dustin J. Mitchell 7e333c01b5 Backed out changeset 19f92c04608c for breaking try pushes a=bustage
MozReview-Commit-ID: FowbO5T9aUl

--HG--
extra : amend_source : a450b54d4daf355966f0b7b5bfe432316ce98364
2017-07-31 16:04:01 +00:00
Sebastian Hengst bbe32b6bed merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 44WBcWjnVo
2017-07-30 11:19:17 +02:00
Dustin J. Mitchell 31ffb087d5 Bug 1382729: Upload documentation to S3 automatically; r=gps
This uses credentials stored in the Taskcluster secret service. The task should
only run on mozilla-central to avoid confusion between branches.

MozReview-Commit-ID: 31XfTg0sCht

--HG--
extra : rebase_source : d2881d6ee093d0f0c87880ba63b451fb0e54415e
extra : amend_source : 6a34a633daab264863a668aca801ce4a4ffb782b
2017-07-28 18:32:04 +00:00
Markus Stange 398fdf44de Bug 1384688 - Update profile version to 8. r=njn
MozReview-Commit-ID: K8IGUZ3NTRY

--HG--
extra : rebase_source : 305e979be23a9bcc42bf9349ed6c4f2c6d0aada5
2017-07-27 19:11:53 -04:00
Markus Stange 69e6cc5e40 Bug 1384688 - Add a pausedRanges field to the profile JSON of each process which lists time ranges during which the profiler was paused or collecting a profile. r=njn
MozReview-Commit-ID: 6nzt7uHTLVm

--HG--
extra : rebase_source : 9ba0f7d87ee39dff3b54916d3f7369432240b2df
2017-07-31 14:44:35 -04:00
Markus Stange d3ab6645a3 Bug 1384688 - Pass aIsShuttingDown == true when obtaining shutdown profiles. r=njn
MozReview-Commit-ID: Aw79gYQgkqy

--HG--
extra : rebase_source : 9cc2d61dd3d2f238b5f52e0b2fee261b1ede608f
2017-07-28 16:16:54 -04:00
Markus Stange 803835a8f1 Bug 1384688 - Add an aIsShuttingDown argument to profiler_get_profile() and to profiler_stream_json_for_this_process(). r=njn
When set to true, the resulting profile will have a non-null meta.shutdownTime
field which is set to current time.
Non-shutdown profiles also get that field, but it's null for them.

MozReview-Commit-ID: 1vpmhBR8rC6

--HG--
extra : rebase_source : b026088053c30acd287f0dc3afa7ddf14093ec27
2017-07-31 14:23:13 -04:00
Markus Stange ac0a69f132 Bug 1384688 - Add thread register and unregister time. r=njn
MozReview-Commit-ID: JDRP8m7QrE1

--HG--
extra : rebase_source : c5d09aeeae52dac63bc2cd31e76414ff7050afa1
extra : source : e5bfaac22eedecebc581e930c93512852e6884f8
2017-07-28 15:43:19 -04:00
Andrew Halberstadt a98a4718e6 Bug 1384593 - Add an fzf based fuzzy try selector, r=armenzg
This try selector works as follows:

1. Generate target tasks (similar to ./mach taskgraph target)
2. Pipe all tasks to fzf (a fuzzy finding binary, this will be bootstrapped if necessary)
3. Allow user to make selection
4. Save selected tasks to 'try_task_config.json'. This is a new try scheduling
   mechanism built into taskcluster (see bug 1380306).
5. Use `hg push-to-try` (or git-cinnabar) to push the added file to try. This
   will use a temporary commit, so no trace of 'try_task_config.json' should be
   left over after use.


If you get messages like STOP! No try syntax found, you need to update version-control-tools:
./mach mercurial-setup --update



MozReview-Commit-ID: 4xHwZ9fATLv

--HG--
extra : rebase_source : e22ccb44d5e99e1556bf7315b096b5d6ac96c918
2017-07-27 11:48:53 -04:00
Andrew Halberstadt e659d18525 Bug 1384593 - Abstract version control functionality out of syntax.py to vcs.py, r=armenzg
This copies the vcs abstraction from python/mozlint/mozlint/vcs.py. Consumers can call:

    VCSHelper.create()

and that will automatically detect whether we're in hg or git and return the appropriate
abstraction class.

MozReview-Commit-ID: 4xHwZ9fATLv

--HG--
extra : rebase_source : f89a0884a58c5057e7edebf85e7cdfca4c5b58bd
2017-07-27 11:39:27 -04:00
Andrew Halberstadt 4b43c164a0 Bug 1385916 - Get wpt mozlint integration to forward files to be linted, r=jgraham
MozReview-Commit-ID: I2PYtsef9Y3

--HG--
extra : rebase_source : 30edc9479f6c599b3f18b3f5a0a2dc11fa9c48a0
2017-07-31 11:40:27 -04:00
Luciano Italiani dd592719c1 Bug 1374671 - Enable the ESLint no-whitespace-before-property rule across mozilla-central. r=standard8
MozReview-Commit-ID: 4WkNg0YrgHx

--HG--
extra : rebase_source : 2c32028e81c388406455004c2adcdb4a01942b95
2017-07-27 23:01:13 -03:00
Carsten "Tomcat" Book 139661e8e4 Merge mozilla-central to mozilla-inbound 2017-07-28 15:25:58 +02:00
Carsten "Tomcat" Book 6aa98d7df0 Merge mozilla-central to autoland 2017-07-28 09:50:36 +02:00
Carsten "Tomcat" Book bd7b184c91 Backed out changeset e3e924da5d5f (bug 1383328) 2017-07-28 09:20:05 +02:00
Carsten "Tomcat" Book d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Markus Stange c7ea693fd8 Bug 1384693 - Cull exit profiles that don't have any overlap with the parent process profile. r=njn
This avoids large gaps in the profiler output.

Sometimes we hold on to exit profiles for a long time before a profile is
gathered. During that time, the parent process's profile buffer might have
looped around several times. At that point, profiles from processes that have
exited long ago are no longer interesting.

MozReview-Commit-ID: 5C47vb69DfK

--HG--
extra : rebase_source : 57f0df2f21ab778ec689a08d0bbf010b10f18ed9
2017-07-25 20:29:17 -04:00
Markus Stange 4036fdd6b0 Bug 1384693 - Let callers of profiler_stream_json_for_this_process obtain the time of the first sample in the buffer. r=njn
MozReview-Commit-ID: IRFq1F3dWIk

--HG--
extra : rebase_source : d4454baf4b4eaf8f185b96a59e40ace5f6702bcc
2017-07-27 15:04:59 -04:00
Kershaw Chang fc3aa4a532 Bug 1366822 - Part1: Modify NetworkPrioritizer to only update selected tab's window ID, r=dao
The original NetworkPrioritizer tracks each browser window and give the high priority to the selected tab.
This patch is based on the NetworkPrioritizer, but only send a notification of the current selected tab's content outer window ID to network module.
2017-07-27 23:41:00 +02:00
Wes Kocher ad35031103 Merge m-c to inbound, a=merge
MozReview-Commit-ID: LhiAcCiFBus
2017-07-26 18:33:18 -07: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
Alex Gaynor 837b88dc9c Bug 1384224 - Add support for hardlinks to InstallManifest; r=gps
Also removes InstallManifestNoSymlinks which can be more simply expressed by
passing link_policy='copy' to InstallManifest.populate_registry.

MozReview-Commit-ID: Bkjc2hIub4A

--HG--
extra : rebase_source : df05080fef3baf7e6c60ff9a468e71f0b2c67462
2017-07-25 14:06:15 -04:00
Bill McCloskey 55f153be76 Bug 1383328 - Use TabGroup as event target for browser-status-filter (r=smaug)
MozReview-Commit-ID: HOSmqr5Vpwh
2017-07-28 13:11:59 -07:00
Sebastian Hengst 1a67078fdf Backed out changeset ed86b892433b (bug 1384688) for bustage at tools/profiler/gecko/nsProfiler.cpp:573: the address of 'thisProcessFirstSampleTime' will always evaluate as 'true'. r=backout 2017-07-31 20:10:32 +02:00
Sebastian Hengst c4e0fbd639 Backed out changeset e9d92bc3be81 (bug 1384688) 2017-07-31 20:09:57 +02:00
Sebastian Hengst 38fbb8e007 Backed out changeset 3ad8f1ba9de6 (bug 1384688) 2017-07-31 20:09:52 +02:00
Sebastian Hengst 5447aa09bb Backed out changeset 399d40cb5c1c (bug 1384688) 2017-07-31 20:09:47 +02:00
Sebastian Hengst 8df015cb1c Backed out changeset 802c36bf1b27 (bug 1384688) 2017-07-31 20:09:41 +02:00
Markus Stange 4827b962f9 Bug 1384688 - Update profile version to 8. r=njn
MozReview-Commit-ID: K8IGUZ3NTRY

--HG--
extra : rebase_source : c9c2f5d2a88310bc4090a853a56c3314a3529252
2017-07-27 19:11:53 -04:00
Markus Stange c7c66c1a29 Bug 1384688 - Add a pausedRanges field to the profile JSON of each process which lists time ranges during which the profiler was paused or collecting a profile. r=njn
MozReview-Commit-ID: 6nzt7uHTLVm

--HG--
extra : rebase_source : a7e7a3fe3ddacb6d03ba3349ce0193dee328ed80
2017-07-28 16:40:37 -04:00
Markus Stange e7f6342e36 Bug 1384688 - Pass aIsShuttingDown == true when obtaining shutdown profiles. r=njn
MozReview-Commit-ID: Aw79gYQgkqy

--HG--
extra : rebase_source : 9da690a660db226779011a61181e4cdad6219757
2017-07-28 16:16:54 -04:00
Markus Stange 607fc637d3 Bug 1384688 - Add an aIsShuttingDown argument to profiler_get_profile() and to profiler_stream_json_for_this_process(). r=njn
When set to true, the resulting profile will have a non-null meta.shutdownTime
field which is set to current time.
Non-shutdown profiles also get that field, but it's null for them.

MozReview-Commit-ID: 1vpmhBR8rC6

--HG--
extra : rebase_source : 38573ff847ee7e2ac5df9c82564dd6495cc1636f
2017-07-31 13:11:19 -04:00
Markus Stange 23d29459f0 Bug 1384688 - Add thread register and unregister time. r=njn
MozReview-Commit-ID: JDRP8m7QrE1

--HG--
extra : rebase_source : c5d09aeeae52dac63bc2cd31e76414ff7050afa1
extra : source : e5bfaac22eedecebc581e930c93512852e6884f8
2017-07-28 15:43:19 -04:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Sebastian Hengst 804a36e668 Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
Rajesh Kathiriya 22dfa54ef4 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : 5992bdde34bcc2421350433bc8c1e498a6bba848
2017-07-25 23:45:41 +05:30
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
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
Nicholas Nethercote ae465a9150 Bug 1379933 (part 2) - Improve ProfileBuffer's handling of labels and dynamic strings. r=mstange.
When a sample with a label and a dynamic string is written to the
ProfileBuffer, the profiler currently joins them together (up to a max length
of 512, omitting any that exceed this) and then writes a CodeLocation entry
with an empty string followed by a sequence of EmbeddedString entries. When
parsing those entries, we allow a length up to 8192, but that limit is never
reached due to the prior limit of 512.

This patch makes the following changes.

- Removes the joining at write time. Labels and dynamic strings are now written
  separately into the ProfileBuffer. The 512 limit still applies, but just for
  dynamic strings; dynamic strings longer than that are replaced with "(too
  long)". (Labels also always take up one entry, because they only require a
  single pointer, because they are always static strings.) The joining is
  now done when the ProfileBuffer is parsed, and the max length for the joined
  string is still 512; any strings exceeding 512 at that point are truncated,
  rather than omitted. (This also happens to be outside the profier's critical
  section.)

- Renames CodeLocation as Label and EmbeddedString as DynamicStringFragment.
  This makes the ProfileBuffer entry names better match the names used in
  GeckoProfiler.h.

- Moves AddDynamicCodeLocation(), now called addDynamicStringEntry(), into
  ProfileBuffer.

- Adds some testing of long and overly-long dynamic strings to the GTest.

--HG--
extra : rebase_source : 38bdf6e84fa19576c9e0291249e84b19dbb421f7
2017-07-13 11:05:27 +10:00
Nicholas Nethercote 95ff432c26 Bug 1379933 (part 1) - Remove Sample entries from the ProfileBuffer. r=mstange.
They serve no useful purpose.

--HG--
extra : rebase_source : d4d9b352f46285da4a36383f46af2d436c577232
2017-07-11 20:12:24 +10:00
Kartikaya Gupta 0c6d8a3242 Bug 1374730 - Follow-up to update some non-code mentions of webrender_traits to webrender_api. r=me and DONTBUILD
MozReview-Commit-ID: HNSJC0gHEZv
2017-07-26 09:56:52 -04:00
Carsten "Tomcat" Book 0738c08d98 Merge mozilla-central to mozilla-inbound 2017-07-26 11:16:03 +02:00
Nicholas Nethercote cfb30daf2c Bug 1340721 - Enable profiler stack walking on Windows even for --disable-profiling builds. r=mstange.
On Win32, stack frames are now always present, so we can always use
FramePointerStackWalk(). On Win64, stack frames are never present, so we always
use MozStackWalk().

In both cases, we can get stack traces no matter the value of MOZ_PROFILING. So
this patch removes MOZ_PROFILING from the relevant conditions. It also
restructures the conditions and adds some helpful comments.

--HG--
extra : rebase_source : c76aee00432b875ae0c81f8e61f56cd4112bffde
2017-07-22 12:04:10 +10:00
Robert Strong c86980aa3c Bug 1386402 - Change mar generation scripts to exit with an error if xz is not found on the system. r=bhearsum 2017-08-01 14:20:00 -07:00
Wes Kocher 33c2277e1f Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7rfXDtMWy2C
2017-07-12 18:26:46 -07:00
Wes Kocher b4fca1d196 Backed out 4 changesets (bug 1365309) for frequent xpcshell timeouts after 5400 seconds a=backout CLOSED TREE
Backed out changeset 9fc4c6aabd8e (bug 1365309)
Backed out changeset 56850220bd77 (bug 1365309)
Backed out changeset 48f5e0597242 (bug 1365309)
Backed out changeset 39ed96d7b263 (bug 1365309)

MozReview-Commit-ID: 3V0eTL8qeYb
2017-07-12 16:35:14 -07:00
Michael Layzell c4e8a040c2 Bug 1374888 - Maintain a live shared libraries list in gecko on macOS, r=mstange
MozReview-Commit-ID: 5QvrWujquIq
2017-07-12 13:53:56 -04:00
Michael Layzell b34e7c42ec Bug 1365309 - Part 1: Move LUL to a separate lock, and initialize it outside of both the profiler and BHR lock on the BHR thread, r=njn
Currently LUL is a member of CorePS, meaning that it is guarded by the PSMutex.
This mutex is grabbed by the main thread at random points during the execution
of the program. This is unfortunate, as initializing LUL can take a long
time (>1s on my local machine), and we definitely don't want to be blocking the
main thread waiting for it.

In addition, in the BHR case, we used to be grabbing LUL when we got our first
hang, while both the PSMutex and the BHR monitor were being held. This meant
that the main thread could make no progress during LUL initializaion, as the BHR
monitor is grabbed by the main thread on every spin of the event loop.

This patch moves that initialization to be behind a completely separate lock,
and makes BHR initialize it on the background thread before acquiring the BHR
lock, meaning that no locks other than the one guarding LUL should be held
during its initialization.

MozReview-Commit-ID: GwNYQaEAqJ1
2017-07-12 13:13:07 -04:00
Mark Banner 35f3666937 Bug 1380009 - Enable the ESLint no-return-await call to avoid unnecessary intermediate promise creation. r=mossop
MozReview-Commit-ID: EnhSBHMjurr

--HG--
extra : rebase_source : 74ba4c10e369067629af95bf705a9acd0df1089b
2017-07-11 22:49:55 +01:00
Mark Banner 397425a083 Bug 1379119 - Expand test documentation for eslint-plugin-mozilla. r=ahal
MozReview-Commit-ID: KeFpp671uar

--HG--
extra : rebase_source : f36e05a66f19d5ba65feda304225be65f1e80fb0
2017-07-10 18:32:37 +01:00
Mark Banner 29eaca2240 Bug 1379119 - Add a builder to run the unit tests for eslint-plugin-mozilla. r=ahal
MozReview-Commit-ID: 5QsxUsvJz8O

--HG--
extra : rebase_source : fbfcb5f83e519903c58e587ed1b82cbb3cb1878f
2017-07-10 15:27:00 +01:00
Mark Banner 9da6785fdc Bug 1379119 - Add a mozilla specific reporter for mocha when used with eslint-plugin-mozilla to be compatible with treeherder. r=ahal
MozReview-Commit-ID: 3QVaSXAfa1F

--HG--
extra : rebase_source : 2469cb66663c0c0279b10d980db9054aa5c68f3a
2017-07-10 17:08:53 +01:00
Andrew Halberstadt 892b80966e Bug 1380135 - Use --quiet to ignore eslint warnings from the vcs hook; add +x to hooks.py, r=standard8
The eslint task ignores warnings, therefore the vcs hook should as well. The --quiet argument will
be ignored by other linters.

This also makes tools/lint/hooks.py executable which was preventing it from being used on git.

MozReview-Commit-ID: DXbx01shJmX

--HG--
extra : rebase_source : 9c80a069f486c0b6b7b9c970b84d44b964c59a0f
2017-07-11 17:02:46 -04:00
Sebastian Hengst 702df96bfc Backed out changeset b297e31320fd (bug 1374888) for mass-asserting, e.g. in dom/base/test/test_setInterval_from_start.html. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 55b47f131608cac63c8bb0530a20b8b21f549471
2017-07-11 21:10:43 +02:00
Michael Layzell 5347ef82fe Bug 1374888 - Maintain a live shared libraries list in gecko on macOS, r=mstange
MozReview-Commit-ID: 5QvrWujquIq
2017-07-11 13:49:23 -04:00
Wes Kocher 868f84f2d8 Merge m-c to inbound, a=merge 2017-07-10 18:48:52 -07:00
Sylvestre Ledru 3aab9a7979 Bug 1376803 - add support of ./mach clang-format -p <file/dir> r=gps
MozReview-Commit-ID: nmAqNsSWho

--HG--
extra : rebase_source : 880980ae1a458c06fe66d7ce60d0a66fee7cd883
2017-06-29 09:35:23 -07:00
Sylvestre Ledru dbf920a78e Bug 1376803 - Move the clang-format diff into a specific function r=gps
MozReview-Commit-ID: C7cy5U0HJ8

--HG--
extra : rebase_source : 7113cfa45a2c50a756cacceba6d73e73c86942c8
2017-06-27 18:34:39 -07:00
Dan Banner d8518d604e Bug 1351089 - Remove unused PresentationDeviceInfoManager.jsm r=schien,smaug
MozReview-Commit-ID: FoMZNIFtgFM

--HG--
extra : rebase_source : 0fef4325bdea8c346f526a4fb6459a6dfe31fc5b
2017-07-03 19:51:01 +01:00
Nicholas Nethercote e893cc5e8d Bug 1379565 - Overhaul ProfileBuffer::StreamSamplesToJSON. r=mstange.
The profiler writes ProfileBuffer entries in a particular order, and then later
has to parse them, mostly in StreamSamplesToJSON(). That function's parsing
code is poorly structured and rather gross, at least partly because no explicit
grammar is identified.

This patch identifies the grammar in a comment, and in the same comment also
includes some examples of the more complicated subsequences. Once written down,
the grammar is obviously suboptimal -- the |Sample| entries serve no useful
purpose, for example -- but I will leave grammar improvements as follow-ups.

The patch also rewrites the parser in a more typical fashion that obviously
matches the grammar. The new parser is slightly more verbose but far easier to
understand.

--HG--
extra : rebase_source : 762c21a68cdc18ff25b5feda3c5dfcf33afa53be
2017-07-05 21:29:29 +10:00
Mark Banner 48fff1cefe Bug 1379092 - Update eslint-plugin-react to 7.1.0 for ESLint 4 compatibility. r=mossop
MozReview-Commit-ID: HZbAFZnufUr

--HG--
extra : rebase_source : b7247fa34c074c02b8c881d23e69a86cb9e53223
2017-06-21 15:06:04 +01:00
Rajesh Kathiriya 881bce09ea Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW

--HG--
extra : rebase_source : 84bccaeba083bc430316d3c80d5c8f56494f1950
2017-07-04 21:30:18 +05:30
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Andrew Halberstadt fbede0d83d Bug 1361972 - Add a pre-push and pre-commit mozlint hooks r=standard8
This adds pre-push and pre-commit hooks for both hg and git. All
four possibilities are implemented in the same file.

To enable a pre-push hg hook, add the following to hgrc:

    [hooks]
    pre-push.lint = python:/path/to/gecko/tools/lint/hooks.py:hg


To enable a pre-commit hg hook, add the following to hgrc:

    [hooks]
    pretxncommit.lint = python:/path/to/gecko/tools/lint/hooks.py:hg


To enable a pre-push git hook, run the following command:

    $ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-push


To enable a pre-commit git hook, run the following command:

    $ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-commit


MozReview-Commit-ID: DUxCKN2fiag

--HG--
extra : rebase_source : 67c97a3fd8adc50d6bb3c488345077065b63de7d
2017-06-30 18:29:42 -07:00
Sylvestre Ledru 7417414e45 Bug 1378737 - Add third_party/rust to the ignore list r=andi
MozReview-Commit-ID: 8bSAV29VY9F

--HG--
extra : rebase_source : 47d77b7da5b34aa00ea611b2d5039195f3f88769
2017-07-06 13:55:46 +02:00
David Major 8f2fab9547 Bug 1378442 - Move Win64 profiler hooks to profiler_start. r=mstange 2017-07-05 18:45:31 -04:00
Nicholas Nethercote 6dbd7251d0 Bug 1378055 (part 7) - Use "entry", not "frame" when talking about ProfileBufferEntry objects. r=mstange.
--HG--
extra : rebase_source : 291cc3af4f827b9fe0662b756634e61ee5937562
2017-07-04 16:54:06 +10:00
Nicholas Nethercote ce36e6687b Bug 1378055 (part 6) - Use "entry", not "tag" when talking about ProfileBufferEntry objects. r=mstange.
The patch also changes ProfileBuffer::processEmbeddedString() to take the
readAheadPos, instead of recomputing it.

--HG--
extra : rebase_source : 62bacb4c7cc61f43d78ada342af0a813c307b96a
2017-07-04 16:53:21 +10:00
Nicholas Nethercote b9f8d7e37f Bug 1378055 (part 5) - Make ProfileBufferEntry always store 8 chars. r=mstange.
The double variant is always 8 bytes, so the chars variant can be too. As well
as reducing memory usage on 32-bit platforms, this patch makes the code
clearer.

--HG--
extra : rebase_source : 8f3dd0a1e35c18ac812fa5db7c3f6e4626447c4c
2017-07-04 16:52:46 +10:00
Nicholas Nethercote eaabbc455b Bug 1378055 (part 4) - Overhaul PROFILE_BUFFER_ENTRY_KIND_LIST. r=mstange.
This patch renames it, things around it, and fixes some formatting.

--HG--
extra : rebase_source : 03a189ab5fbe24613c66026bb7e550a5c4df5d42
2017-07-04 16:51:52 +10:00
Nicholas Nethercote ac56cf9abe Bug 1378055 (part 3) - Overhaul names used within ProfilerBufferEntry.cpp. r=mstange.
- It's common for unions to be named |u|, because this makes it obvious that
  it's a union when you access it, which is good. This patch introduces that
  for the union in ProfilerBufferEntry. (This required move the union setting in
  each constructor from the initializer list to the constructor body.)

- Each union variant had the prefix "mTag". But that's a bad name, because
  |mKind| is actually the tag. So this patch removes the "Tag".

- |mTagData| was a poor name for the |const char*| variant, so this patch
  renames it |mString|.

- The patch moves |mKind| before |u|, because that's the normal way that tagged
  unions are done.

--HG--
extra : rebase_source : 563cbcf6414fa3c45abcdd5eafd99965bb842de5
2017-07-04 16:51:21 +10:00
Nicholas Nethercote 0e7b1b3bf7 Bug 1378055 (part 2) - Remove ProfilerBufferEntry::getMarker(). r=mstange.
If marker pointer is null the uses of it will immediately crash, so asserting
non-nullness doesn't add much. And removing the getter makes it more similar to
the other union variants.

--HG--
extra : rebase_source : a1066ef98ac5d2dae5303b465106b844937cfb73
2017-07-04 16:50:43 +10:00
Nicholas Nethercote 1ab1b92249 Bug 1378055 (part 1) - Remove unused ProfileBufferEntry union variants. r=mstange.
--HG--
extra : rebase_source : 9904601ff47e8ba19d61af1ddc377cad4be243f6
2017-07-04 16:49:42 +10:00
Nicholas Nethercote fa0aab394a Bug 1375776 (part 7) - Add a comment to ThreadInfo. r=mstange.
--HG--
extra : rebase_source : f1b8bd5f9ba1db8ea67f10390c6dbedd0e9c4cb6
2017-07-03 13:46:48 +10:00
Nicholas Nethercote 26f8199a36 Bug 1375776 (part 5) - Pass in a TimeStamp to LayerTranslationMarkerPayload(). r=mstange.
This makes it more like all the other payload classes.

--HG--
extra : rebase_source : dd30741f487158ace8f9c0427a5c4b00f051ff7b
2017-06-23 16:24:21 +10:00
Nicholas Nethercote 5d446671a8 Bug 1375776 (part 4) - Allow ProfilerMarkerPayload.h to be #included unconditionally. r=mstange.
This requires:

- Moving the constructors of ProfilerMarkerPayload and its subclasses into the
  .h file so they are visible even when ProfilerMarkerPayload.cpp isn't
  compiled.

- Similarly, using a macro to make StreamPayload() a crashing no-op when the
  profiler isn't enabled. (It is never called in that case.)

--HG--
extra : rebase_source : 7aad2fdb1bd4e49782024dba6664e8f992771520
2017-06-23 16:24:15 +10:00
Nicholas Nethercote d4e5f6709b Bug 1375776 (part 3) - Improve destructor of ProfilerMarkerPayload and its subclasses. r=mstange.
No point having all these explicit empty destructors.

Also, we can avoid IOMarkerPayload's constructor by using a UniqueFreePtr.

--HG--
extra : rebase_source : 0a2a5aecb66a2990c9188354c861f67633ed2fee
2017-06-23 15:58:11 +10:00
Nicholas Nethercote ca8b2377bc Bug 1375776 (part 2) - Combine the two TracingMarkerPayload constructors. r=mstange.
--HG--
extra : rebase_source : 60ce2839cfebffbd2071b5821041fabc34c1ffe2
2017-06-23 14:29:03 +10:00
Michael Layzell 2eb92d98f1 Backout Bug 1365309 for test failures on a CLOSED TREE
MozReview-Commit-ID: 143ac9l7Goq
2017-07-04 17:31:13 -04:00
Florian Quèze 500a207037 Bug 1377916 - Include DOM workers in startup profiles, r=mstange. 2017-07-04 22:48:08 +02:00
Michael Layzell b24bf46af6 Bug 1377344 - Record the name of the currently running Runnable on thread hangs for BHR, r=njn, r=froydnj
MozReview-Commit-ID: IYRHh6jiTeo
2017-07-04 15:16:19 -04:00
Michael Layzell 1fda892d36 Bug 1365309 - Part 1: Move LUL to a separate lock, and initialize it outside of both the profiler and BHR lock on the BHR thread, r=njn
Currently LUL is a member of CorePS, meaning that it is guarded by the PSMutex.
This mutex is grabbed by the main thread at random points during the execution
of the program. This is unfortunate, as initializing LUL can take a long
time (>1s on my local machine), and we definitely don't want to be blocking the
main thread waiting for it.

In addition, in the BHR case, we used to be grabbing LUL when we got our first
hang, while both the PSMutex and the BHR monitor were being held. This meant
that the main thread could make no progress during LUL initializaion, as the BHR
monitor is grabbed by the main thread on every spin of the event loop.

This patch moves that initialization to be behind a completely separate lock,
and makes BHR initialize it on the background thread before acquiring the BHR
lock, meaning that no locks other than the one guarding LUL should be held
during its initialization.

MozReview-Commit-ID: GwNYQaEAqJ1
2017-07-04 13:19:26 -04:00
Frederik Braun 92e797f912 Bug 1351608 - Add eslint-plugin-no-unsanitized to eslint-plugin-mozilla r=Standard8.
MozReview-Commit-ID: MLaU5REYF
2017-07-03 20:07:00 +01:00
Princi Vershwal 75404533d2 Bug 1369834 - Add Firefox Accounts Verify Login Push Notification. r=eoger 2017-06-23 02:34:07 +05:30
Bruce Sun e5cd1bc4de Bug 1368948: [5/7] Suppress clang-plugin errors. r=Ehsan
MozReview-Commit-ID: 3uJHP2oerqK
2017-06-29 17:16:38 -07:00
Carsten "Tomcat" Book 5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Nicholas Nethercote c3ff586b09 Bug 1376993 (part 2) - Remove ProfilerJSEventMarker(). r=mstange.
It's needless indirection.

--HG--
extra : rebase_source : 063d242ea14bb3236cb53a5ade2923827060630e
2017-06-28 16:44:28 -07:00
Nicholas Nethercote 06487be99c Bug 1376993 (part 1) - Improve comment on profiler_add_marker(). r=mstange.
--HG--
extra : rebase_source : 5713b8aa59866f14fb90d114f6828b2ae6e5f093
2017-06-28 16:43:04 -07:00
Paolo Amadini 06de7cf6bf Bug 1374242 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz

--HG--
extra : rebase_source : 6b27b77da78743880529adae7adf4ec2aa64dfea
extra : intermediate-source : 5809a30a0c4817509beb1078cf336d8367b8107a
extra : source : 6f0394b523a66dab444b8551deb8f3c6c81d8f31
2017-06-29 00:13:06 +01:00
Sebastian Hengst 43820d9e2a Backed out changeset d95016c5fc99 (bug 1351608) because eslint can't find the new plugin "eslint-plugin-no-unsanitized". r=backout 2017-06-29 01:02:26 +02:00
Christian Holler 428858f77b Bug 1376959 - Fix broken/missing LibFuzzerRegistry.h include. r=froydnj
MozReview-Commit-ID: WoHveMcQqt

--HG--
extra : rebase_source : 8da048c921f2aa2b248dce2ac646e67056ed4d8b
2017-06-28 15:20:11 -07:00
Sylvestre Ledru f4688e5cdd Bug 1376809 - Add libfuzzer to the list of thirdparty code r=andi
MozReview-Commit-ID: KTOeH0teF2E

--HG--
extra : rebase_source : c2396a7e5aaf1077a629e5e4be3f92506fa7c472
2017-06-27 19:34:35 -07:00
Carsten "Tomcat" Book 7918eeee02 merge mozilla-inbound to mozilla-central a=merge 2017-06-28 13:23:29 +02:00
Jan Keromnes 01df6c73e3 Bug 1376488 - Remove some old paths from ThirdPartyPaths.txt. r=sylvestre, r=andi 2017-06-27 10:49:00 -04:00
Mark Banner 2991ef15bd Bug 1375418 - Add eslint 4 support to eslint-plugin-mozilla. r=mossop
Change how comments are handled due to ESLint's 4 reworked comment handling.

MozReview-Commit-ID: BG4cvbhy45Z

--HG--
extra : rebase_source : 8fc4d40bf2a8cb74be7964c9d308c056edf51058
2017-06-21 15:06:04 +01:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Frederik Braun 1310b12eff Bug 1351608 - Add eslint-plugin-no-unsanitized to eslint-plugin-mozilla. r=standard8
MozReview-Commit-ID: H7NaHioty7f

--HG--
extra : rebase_source : a2aaeea6ee2338206e9fe06679419847d76d1cae
2017-06-28 12:47:36 -07:00
Geoff Brown f227d92d5a Bug 1375903 - Enable eslint on testing/talos - mechanical changes; r=jmaher
Most of these changes were made by 'mach eslint --fix'.
2017-06-28 06:58:01 -06:00
Carsten "Tomcat" Book 259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
Gregory Szorc bf796d2ba5 NO BUG - Unbust Sphinx docs outside of mach
Trivial update to Python package paths to reflect their new location.

MozReview-Commit-ID: EWaIHrLFWgD

--HG--
extra : rebase_source : b3a033bffe6f8f933807d6e71dccd49c37c75844
2017-06-23 13:22:52 -07:00
Perry Jiang 80ef003d65 Bug 862178 - Remove main thread I/O from CrashSubmit.jsm and KeyValuParser.jsm, replacing with OS.File. r=gsvelto
MozReview-Commit-ID: 6WIvz15Xtp3

--HG--
extra : rebase_source : 274136cf40459f012776213b18e51f9062d68eb5
2017-06-19 17:04:03 -07:00
Carsten "Tomcat" Book 7af37a52bd Merge mozilla-central to mozilla-inbound 2017-06-23 11:44:21 +02:00
Carsten "Tomcat" Book 5f51e5596e merge mozilla-inbound to mozilla-central a=merge 2017-06-23 11:28:19 +02:00
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Nicholas Nethercote 915a56fb41 Bug 1375299 (part 2) - Remove PROFILER_MARKER. r=mstange.
PROFILER_MARKER is now just a trivial wrapper for profiler_add_marker(). This
patch removes it.

--HG--
extra : rebase_source : 9858f34763bb343757896a91ab7ad8bd8e56b076
2017-06-22 13:40:21 +10:00
Nicholas Nethercote 4b364cf3f3 Bug 1375299 (part 1) - Reduce usage of MOZ_GECKO_PROFILER. r=mstange.
This patch reduces the differences between builds where the profiler is enabled
and those where the profiler is disabled. It does this by removing numerous
MOZ_GECKO_PROFILER checks.

These changes have the following consequences.

- Various functions and classes are now defined in all builds, and so can be
  used unconditionally: profiler_add_marker(), profiler_set_js_context(),
  profiler_clear_js_context(), profiler_get_pseudo_stack(), AutoProfilerLabel.
  (They are effectively no-ops in non-profiler builds, of course.)

- The no-op versions of PROFILER_* are now gone. The remaining versions are
  almost no-ops when the profiler isn't built.

--HG--
extra : rebase_source : 8fb5e8757600210c2f77865694d25162f0b7698a
2017-06-22 06:26:16 +10:00
Nicholas Nethercote 033f83145c Bug 1375387 - Reorder and section-ify GeckoProfiler.h. r=mstange.
This patch gives some structure and order to the profiler's API.

It also renames AutoProfilerRegister as AutoProfilerRegisterThread, to match
profiler_register_thread().
2017-06-22 14:28:47 +10:00
Nicholas Nethercote 784f6f2ee9 Bug 1374908 - Remove --enable-systrace. r=glandium.
This option causes MOZ_USE_SYSTRACE to be defined. The only use of that is in
GeckoProfiler.h where it causes the PROFILER_PLATFORM_TRACING macro to set
android::ScopedTrace. But android::ScopedTrace was defined in widget/gonk/
which was recently removed, so this won't work any more.

Furthermore, all that android::ScopedTrace did was to do a pair of
atrace_{begin,end}() calls, which doesn't seem that useful.
2017-06-21 14:06:22 +10:00
Michael Layzell 4e0049276e Bug 1373980 - Null-check infoArray correctly in GetInfoForSelf on macOS, r=mstange
MozReview-Commit-ID: 9hZ9VL9MWl9
2017-06-22 14:50:48 -04:00
Andrew Halberstadt 91efad9d6d Bug 1369787 - [mozlint] Remove 'rev' option from |mach lint|, r=bc
The rev option is inherently broken. It does let you lint files touched by any
revision, but it doesn't update those files to that revision first.  Instead,
they get linted at whatever the working directory is and their results are
bogus. Even if we did some magic to update the files to the proper revision
with in-memory version control magic, the config files would still be out of
date.

Plus, the new --outgoing option does pretty much the only thing --rev was good
for. Rather than cause confusion, I think it's better to just remove the
option.

MozReview-Commit-ID: 2y2UnfIkvsR

--HG--
extra : rebase_source : 9b5c142270c98905d71ebb89d1620e91914c0b47
2017-06-08 22:54:00 -04:00
Andrew Halberstadt 4b93103061 Bug 1375166 - [mozlint] Don't require leading '.' in extensions, r=standard8
This was a regression from bug 1288432. The 'extensions' config in mozlint required a
leading period, but eslint requires them without the period (and this got copied over
to the linter definition). The result was mozlint filtering out any files (not dirs)
that were passed in.

This just modifies mozlint to strip out the period so both are acceptable.

MozReview-Commit-ID: CbNynYzrbGz

--HG--
extra : rebase_source : 51c740cb1d2febaee3ae46784f83381cda5e5eaa
2017-06-21 13:22:34 -04:00
Chris Peterson dbae46159f Bug 1373525 - libfuzzer: Remove unused member function ScopedXPCOM::failed(). r=decoder
tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h:118:10: warning: unused member function 'failed' [-Wunused-member-function]

MozReview-Commit-ID: 7hsvvnnolcl

--HG--
extra : source : f80cd86fd1e116f59b23539292bb6d5dd6afcc7c
extra : intermediate-source : bb240b1bedb9c4503d34370f652b4a5dc9f68628
2017-06-13 00:42:23 -07:00