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

8187 Коммитов

Автор SHA1 Сообщение Дата
Toshihito Kikuchi a2f2d585ea Bug 1509748 - Do not touch ntdll's PE header directly if EAF+ is enabled. r=mhowell,mstange
If EAF+ is enabled for firefox.exe, the process does not launch because we parse
the PE headers of ntdll.dll at startup, which is prohibited by EAF+.

With this patch, we skip two operations when EAF+ is enabled.

The first one is to cache ntdll's IAT at startup.  Because EAF+ is expected to
prevent an injected module from parsing PE headers and modifying IAT, we can skip
this caching safely.

The second one is to load ntdll's debug information for the profiler.  With this
patch, the profiler's callstack will not show a raw address instead of a symbol
name.  It's a bad side effect, but much better than startup crash.

Differential Revision: https://phabricator.services.mozilla.com/D76959
2020-05-27 21:48:35 +00:00
Gerald Squelart cf61fd1e10 Bug 1641122 - Fix 32-bit Android profiler buffer size default - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D77016
2020-05-27 19:41:46 +00:00
Dzmitry Malyshau abaaa872a5 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-27 16:49:03 +00:00
Bogdan Tara 6ed3c943f7 Backed out changeset f4ed4d3e0e9e (bug 1634425) for hazard failure on WebGPUParent.cpp CLOSED TREE 2020-05-27 01:12:40 +03:00
Dzmitry Malyshau 67c0d914f3 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-26 21:15:40 +00:00
Bogdan Tara 51e7c8bf84 Backed out changeset 20488827b581 (bug 1640532) for docker bustages complaining about codespell CLOSED TREE 2020-05-26 22:17:15 +03:00
Sylvestre Ledru 0c646a1f51 Bug 1640532 - Update codespell to 1.17.1 r=linter-reviewers,ahal
Depends on D76637

Differential Revision: https://phabricator.services.mozilla.com/D76638
2020-05-26 14:40:52 +00:00
Markus Stange d069f4cc74 Bug 1635567 - Remove HAVE_UNSORTED_EXIDX code, which worked around a bug in Android ICS which is no longer supported. r=jld
This code was not being built any more.
GeckoView requires Android OS version 4.3 (API Level 18). I'm not sure what the
corresponding ANDROID_VERSION macro constant for API Level 18 is, but it's
definitely higher than 16.

Differential Revision: https://phabricator.services.mozilla.com/D73940
2020-05-23 00:57:58 +00:00
Kershaw Chang 104bf647be Bug 1602832 - P3: Skip failed tests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67448
2020-05-26 14:30:26 +00:00
Butkovits Atila f167b5c275 Backed out 6 changesets (bug 1602832) for causing perma failure at test_trr_case_sensitivity.js. CLOSED TREE
Backed out changeset 0e9c378df995 (bug 1602832)
Backed out changeset 534fedb3836e (bug 1602832)
Backed out changeset db012c05d64e (bug 1602832)
Backed out changeset ca0c207dca21 (bug 1602832)
Backed out changeset bea1f3aeea49 (bug 1602832)
Backed out changeset 2d54acd78124 (bug 1602832)
2020-05-26 13:09:07 +03:00
Kershaw Chang 52a180d403 Bug 1602832 - P3: Skip failed tests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67448
2020-05-26 08:35:32 +00:00
Nicholas Nethercote 61f2f5aef8 Bug 1638976 - Convert 'mach power' to run with Python 3. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D76273
2020-05-25 23:50:19 +00:00
Nicholas Nethercote 60ecbac3b2 Bug 1639785 - Update `rapl` for new processors. r=erahm
Also change the processor IDs to hex, because that's what the Linux kernel
source code uses. And reorder the cases a little.

Differential Revision: https://phabricator.services.mozilla.com/D76272
2020-05-22 02:29:54 +00:00
Gerald Squelart e953217142 Bug 1638506 - Destroy ProfilerParentTracker before threads are shut down - r=jya,canaltinova
When the tracker is destroyed, any extant channel is closed, this can trigger the rejection of pending promises, which dispatch tasks to promise handlers. So we need to ensure that this happens before threads cannot service dispatches anymore.

Differential Revision: https://phabricator.services.mozilla.com/D76436
2020-05-25 10:20:03 +00:00
Myeongjun Go efefeaee98 Bug 1637058 - Move raptor-specific code out of the core perfdocs code r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D75807
2020-05-25 16:14:50 +00:00
Sylvestre Ledru de03967deb Bug 1640532 - docs - fix some typos DONTBUILD r=webdriver-reviewers,whimboo
Depends on D76636

Differential Revision: https://phabricator.services.mozilla.com/D76637
2020-05-25 11:30:05 +00:00
Gerald Squelart f2401ecda3 Bug 1464506 - Record FileIO markers on all threads - r=canaltinova
In addition to the existing "mainthreadio" feature, we now have:
- "fileio" to also capture file I/O from other profiled threads.
- "fileioall" to also capture file I/O from all threads (even unregistered threads).
- "noiostacks" to prevent capturing stack traces for "io" markers.
These are all off by default, except for `MOZ_PROFILER_STARTUP=1`.

Differential Revision: https://phabricator.services.mozilla.com/D75764
2020-05-25 08:58:47 +00:00
Gerald Squelart 6fdf365051 Bug 1464506 - profiler_is_active_and_thread_is_registered - r=canaltinova
This can be used while the profiler is running, to know if the current thread is registered -- regardless of whether it is actively profiled.
This will help distinguish registered but non-profiled threads from threads that are not even registered (e.g., OS-generated threads).

Differential Revision: https://phabricator.services.mozilla.com/D76281
2020-05-25 08:58:14 +00:00
Gerald Squelart 1c13f92ad4 Bug 1464506 - profiler_features_if_active{,_and_unpaused}() returns all features bits - r=canaltinova
Some functions may want to examine more than one feature at once, these function return everything (if the profiler is active, and optionally unpaused) so that only one call is needed.

Differential Revision: https://phabricator.services.mozilla.com/D76280
2020-05-25 08:57:56 +00:00
Gerald Squelart 271f2b32ae Bug 1464506 - Statically check profiler feature numbers - r=canaltinova
This is a simple compile-time check that the feature numbers go from 0 to N-1, to prevent some mistakes when updating feature lists.

Differential Revision: https://phabricator.services.mozilla.com/D75763
2020-05-25 08:57:44 +00:00
Gerald Squelart ae37f20b88 Bug 1464506 - Output the thread id where the file IO happened - r=canaltinova
The thread id (if present) is output in a new "threadId" field.

Differential Revision: https://phabricator.services.mozilla.com/D75762
2020-05-25 08:57:36 +00:00
Gerald Squelart 7e583a4107 Bug 1464506 - Optionally record the thread id where each FileIO happened - r=canaltinova
The FileIO marker may be recorded into the main thread, so we need to keep track of the thread in which the IO really happened (which may be a thread that's not even selected for profiling).

There is not JSON output for it yet.

Differential Revision: https://phabricator.services.mozilla.com/D75761
2020-05-25 08:57:34 +00:00
Gerald Squelart 3147b9d1d6 Bug 1464506 - profiler_add_marker_for_mainthread records markers from any thread into the main thread track - r=canaltinova
Some markers may be more useful when gathered into a single track, and the main thread is ideal because it's almost always present.

Differential Revision: https://phabricator.services.mozilla.com/D75760
2020-05-25 08:57:31 +00:00
Gerald Squelart 2502f01aa8 Bug 1464506 - CorePS records the main thread id - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D75759
2020-05-25 08:57:29 +00:00
Greg Tatum 593ab0604f Bug 1628073 - Move gecko profiler testing files to mozgeckoprofiler; r=sparky,perftest-reviewers,gbrown
I need to add symbolication support for the mochitest Gecko Profiler command line
option. These profiles also need to be symbolicated. Unfortunately, there is not
a common place where I could use these files. Talos and Raptor each had their
own copy of the snappy symbolication server.

This commit consolidates these packages into a re-usable mozbase package that can
be used in mochitests, and eventually in other places like xpcshell tests.

I stubbed out a test file, but it doesn't do anything quite yet. This commit makes
it so that the tests still work in Raptor and Talos, but doesn't add any features.
It also doesn't try too hard to make the files look like a mozbase package.

Differential Revision: https://phabricator.services.mozilla.com/D74289
2020-05-22 13:18:44 +00:00
Tilden Windsor 3a9676792b Bug 1639483 - Remove "mach search". r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D76305
2020-05-21 15:49:57 +00:00
Tom Prince ca0e268b05 No bug: Rename list of labels to ignore on try to UNCOMMON_TRY_TASK_LABELS; r=ahal
Give it a more descriptive name, and avoid using `blacklist` in the name.

Differential Revision: https://phabricator.services.mozilla.com/D76031
2020-05-20 13:18:19 +00:00
championshuttler cce153f70e Bug 1639044 - Update the sphinxhcontrib-mermaid package for firefox docs.r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D75861
2020-05-20 12:27:26 +00:00
Gerald Squelart a88e6ae204 Bug 1594268 - profiler_add_marker_for_thread takes payload by const& - r=canaltinova
Instead of accepting a `UniquePtr<ProfilerMarkerPayload>`, `profiler_add_marker_for_thread` now takes it by `const ProfilerMarkerPayload&`.
All callers can now create the payload on the stack, or as a temporary object. This saves a memory alloc+free for each call.

Differential Revision: https://phabricator.services.mozilla.com/D75912
2020-05-19 23:07:54 +00:00
Coroiu Cristina 44c378a7fb Backed out 5 changesets (bug 1602832) for browser-chrome failures at toolkit/mozapps/extensions/test/xpinstall/browser_doorhanger_installs.js on a CLOSED TREE
Backed out changeset 059a7f44d1a9 (bug 1602832)
Backed out changeset 2f3cc391b48a (bug 1602832)
Backed out changeset 24d1ce1b0ac9 (bug 1602832)
Backed out changeset 5ea85726cc48 (bug 1602832)
Backed out changeset ee00e846104e (bug 1602832)
2020-05-19 23:05:26 +03:00
Marco Castelluccio 50d3ac79ff Bug 1638945 - Switch default 'mach try auto' strategy from bugbug_reduced to bugbug_debug_disperse. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D75969
2020-05-19 16:02:53 +00:00
Kershaw Chang 0e9baa4d27 Bug 1602832 - P3: Skip failed tests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67448
2020-05-19 12:56:52 +00:00
Kris Maglione 58a72e8979 Bug 1638988: Add SpecialPowers.spawnChrome. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D75832
2020-05-18 21:00:51 +00:00
alwu fd606724bc Bug 1612557 - part4 : use `Media` category for markers r=bryce,gerald,canaltinova
This patch will do :
- add `Media` markers in related codes
- implement `MediaSampleMarkerPayload` to record the media sample

The advantage of doing so :
- using markers can help us know what happens on the media by a glance without expanding the call stack
- adding sample markers allows us compare the speed of decoding sample in `MediaDecoderStataMachine` and rendering sample in `VideoSink`

Differential Revision: https://phabricator.services.mozilla.com/D74174
2020-05-16 19:58:25 +00:00
Aaron Klotz 03589b97f3 Bug 1637452: Part 5 - Fix JNI includes in tools/profiler; r=mstange
In this bug we're moving away from monolithic JNI headers to class-specific
headers so that we don't have to rebuild the world every time we make a change
to a JNI interface.

Differential Revision: https://phabricator.services.mozilla.com/D75368
2020-05-15 17:04:19 +00:00
Simon Fraser 7223242d99 Bug 1635321 update-packaging race condition fixes r=nthomas
conflicts with D75072, we should choose which we prefer based on bash version availability

Differential Revision: https://phabricator.services.mozilla.com/D75285
2020-05-15 03:22:08 +00:00
Sylvestre Ledru 64eef91a05 no bug - remove old references to inbound r=glob DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D75280
2020-05-14 14:03:43 +00:00
Edouard Oger afc16c8277 Bug 1628068 p2 - Implement viaduct gecko backend. r=tcsc,dragana,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D70257
2020-05-12 21:36:19 +00:00
Tarek Ziadé 080870795e Bug 1635136 - add a --push-to-try option r=aerickson
This patch is adding an option to push a perftest run in the CI.

It's based on :
- sparse profiles
- push_to_try
- options passed through try_task_config.json

Differential Revision: https://phabricator.services.mozilla.com/D74115
2020-05-12 21:19:48 +00:00
Mitchell Hentges 08bd72ca2b Bug 1637354: Don't show time estimates for |./mach try release| r=ahal
Mach doesn't know which tasks are part of a release - that's decided in the decision task. Instead of
showing a bogus estimation, we shouldn't show one at all.

Differential Revision: https://phabricator.services.mozilla.com/D74904
2020-05-12 20:10:58 +00:00
Kartikaya Gupta 2e8b0e3383 Bug 1637271 - Avoid passing a bytes obj to json.loads with Python3. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D74898
2020-05-12 20:00:48 +00:00
Mitchell Hentges c23cde122b Bug 1637041: fix test_presets.py on windows r=rstewart
In some NT-specific code, a list of "items()" was being updated. In python 3, to modify the result
of "items()", you have to gain ownership first by explicitly converting it into a list().

Also resolves some flaky failures that were seen locally by marking test_presets.py as sequential.

Differential Revision: https://phabricator.services.mozilla.com/D74793
2020-05-12 17:52:00 +00:00
Nazım Can Altınova 2490316019 Bug 1464983 - Lower the java sampling rate to 1ms and increase the java buffer. r=gerald
We had to increase the java buffer limit to 64MiB because it was a bottleneck
and 8MiB wasn't enough for 1ms sampling rate. It was getting full pretty quick.
Even though we increased that limit, we are not going to allocate all of this
at the start. Since we are allocating the buffer chunk by chunk, we are going
to allocate only when we need.

Differential Revision: https://phabricator.services.mozilla.com/D74715
2020-05-12 10:54:13 +00:00
Gerald Squelart e1d51db19a Bug 1635570 - Cut too-long label dynamic strings and add ellipsis - r=canaltinova
If a label contains a dynamic string that's too long (512 characters or more), instead of just replacing it with "(too long)", we now cut it down to the maximum size, with an ellipsis at the end.

Added test for that in gtest. Also added nearby test for empty strings.

Differential Revision: https://phabricator.services.mozilla.com/D74378
2020-05-12 01:13:17 +00:00
Bogdan Tara a823ee6545 Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 013a469557c1 (bug 1628068)
Backed out changeset dcda2ce7b7f9 (bug 1628068)
2020-05-12 00:44:58 +03:00
Gerald Squelart bc2c84ac2b Bug 1636398 - Tweak default profiler buffer size in tests - r=canaltinova
Also removed explicit size in test_feature_nativeallocations, as we want a reasonably-big buffer in this test.

Other tests with small buffer sizes are fine, since the profiler imposes a minimum size that should be big enough to capture at least 8 large stacks (see bug 1571171).

Differential Revision: https://phabricator.services.mozilla.com/D74588
2020-05-11 13:09:50 +00:00
Edouard Oger 1493d71e42 Bug 1628068 p2 - Implement viaduct gecko backend. r=tcsc,dragana,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D70257
2020-05-11 21:01:19 +00:00
Bogdan Tara 3df4970bcc Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 928a5891c55d (bug 1628068)
Backed out changeset b6fe5d357bed (bug 1628068)
2020-05-11 23:52:47 +03:00
Edouard Oger d6e7e33f9a Bug 1628068 p2 - Implement viaduct gecko backend. r=tcsc,dragana,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D70257
2020-05-11 20:19:16 +00:00
Bogdan Tara 448d53548b Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 1ea8f742ca69 (bug 1628068)
Backed out changeset 3aa2f99843e0 (bug 1628068)
2020-05-11 23:06:31 +03:00
Edouard Oger 9790192f51 Bug 1628068 p2 - Implement viaduct gecko backend. r=tcsc,dragana,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D70257
2020-05-11 15:17:37 +00:00
Mitchell Hentges b8108d6064 Bug 1632429: Migrate |./mach try| to python 3; r=rstewart,ahal
|./mach try| subcommands are now compatible with both python 2 and 3.

Hand-tested with many combinations of subcommand and subcommand flags.

Updates tryselect unit tests to use Python 3.

Differential Revision: https://phabricator.services.mozilla.com/D73398
2020-05-06 22:17:14 +00:00
Christian Holler 53f361c007 Bug 1635762 - Switch libFuzzer upstream to git and add local patches. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D74040
2020-05-11 12:45:07 +00:00
Mihai Alexandru Michis 2df205e3f0 Backed out changeset 14b092e7a974 (bug 1635762) for causing failures in browser_Telemetry_timestamp_test.js
CLOSED TREE
2020-05-11 17:00:53 +03:00
Christian Holler b8917ab3a4 Bug 1635762 - Switch libFuzzer upstream to git and add local patches. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D74040
2020-05-11 12:45:07 +00:00
Sylvestre Ledru 1929dd1ab3 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D73347
2020-05-09 14:51:53 +00:00
Jon Bauman ff79fde159 Bug 1624056 - Properly vendor mp4parse-rust. r=kinetik
This requires --build-peers-said-large-imports-were-ok since
third_party/rust/mp4parse/src/lib.rs is 113KB. This code is just moving from
media/mp4parse-rust to third_party/rust, so it's not really adding to net code
size.

Differential Revision: https://phabricator.services.mozilla.com/D74488
2020-05-09 00:36:48 +00:00
Chris Fronk af8a02cc9d Bug 1512991 - Add JsonWriteFunc::Write to take string length. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D72560
2020-05-08 16:24:31 +00:00
thomasmo 59be1c47cd Bug 1635608 - Update OpenVR source code to use Unix line endings r=daoshengmu
This change simply changes line endings to make diffing easier with updates from OpenVR, which have Unix line endings.
Further, .clang-format-ignore, does not seem to work for wildcard to match a directory and subdirectory, so all files are listed individually.

Differential Revision: https://phabricator.services.mozilla.com/D74100
2020-05-07 20:20:39 +00:00
Geoff Brown 99f9b87119 Bug 1603510 - Allow multi-word $EDITOR in 'mach try syntax --edit-presets'; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D74416
2020-05-08 17:54:10 +00:00
Gerald Squelart 3b34acf6e6 Bug 1632750 - Tweak MOZ_PROFILER_STARTUP_ENTRIES default values - r=canaltinova
These defaults were per process and there are usually around 8 processes.
Now these sizes apply to all processes, so they can be 8 times as big (but less on Android where memory may be more limited.)

Not changing Base Profiler defaults, as its buffer is not cross-process controlled.

Differential Revision: https://phabricator.services.mozilla.com/D73215
2020-05-08 03:36:10 +00:00
Gerald Squelart a36880438c Bug 1632750 - ProfilerChild handling update and destruction requests - r=canaltinova
This implement the child side:
When the first request for update arrives, it connects to the local chunk manager, to receive its updates.
If multiple updates are received, they are folded into one.
If there are both an update and a pending request, the request is fulfilled with the update and local data is reset.
And ProfilerChild handles "destroy" instructions to destroy local chunks.

At this point, the whole machinery is in place, and all combined profile buffers used in all processes should use around the maximum amount allowed.
A bit more memory may still be used, e.g., due to IPC delays, and because of recycling which keeps some unused chunks alive for later reuse. But overall that should be a small amount compared to the usual user-requested limit.

Differential Revision: https://phabricator.services.mozilla.com/D72369
2020-05-08 03:35:42 +00:00
Gerald Squelart 9456ec87dd Bug 1632750 - ProfileBufferGlobalController::HandleChunkManagerUpdate logic - r=canaltinova
The logic part of the controller receives all updates, and makes decisions to destroy old chunks when the memory limit is reached.

Differential Revision: https://phabricator.services.mozilla.com/D72368
2020-05-08 03:35:25 +00:00
Gerald Squelart 80fd31a8c3 Bug 1632750 - ProfileBufferGlobalController - r=canaltinova
When there is at least one ProfilerParent (i.e., we are interacting with at least one child process) AND the parent profiler is running, the ProfilerParentTracker sets up the ProfileBufferGlobalController that will manage all chunks.
As a first step, it connects with the local chunk manager (to receive chunk updates), and sends update requests to all children.

(The actual controller logic is not implemented in this patch, nor is the ProfilerChild side, see following patches.)

Differential Revision: https://phabricator.services.mozilla.com/D72367
2020-05-08 03:35:12 +00:00
Gerald Squelart 811ee56c78 Bug 1632750 - New profiler IPDL functions to manage chunks across processes - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D72366
2020-05-08 03:34:55 +00:00
Gerald Squelart ddf7f185a4 Bug 1632750 - ProfilerParent::ProfilerWillStopIfStarted - r=canaltinova
The Gecko Profiler can notify the ProfilerParent when it's about to stop (if it was started, but the notification will happen even when it's not started).

Differential Revision: https://phabricator.services.mozilla.com/D72365
2020-05-08 03:34:32 +00:00
Gerald Squelart f1439fbad0 Bug 1632750 - profiler_get_controlled_chunk_manager - r=canaltinova
The Gecko Profiler can provide its current controlled chunk manager.
It is the responsibility of the caller to keep track of the state of the profiler, to avoid using the chunk manager after it's discarded.

Differential Revision: https://phabricator.services.mozilla.com/D72364
2020-05-08 03:34:30 +00:00
Greg Tatum 6066dc40b3 Bug 1628073 - Make the defaults for the profiler settings nicer for mochitests; r=gerald
The defaults should serve our users. I did some profiling with mochitests
and the defaults weren't ideal. It would be nice if the profiler "just worked"
for most of the situations. It would be great to teach the environment variables
about presets, but for now this will make the profiler easier to use for our
users in the general case.

This patch adds both screenshots and updates the entries count. This causes
additional overhead, but people on low-end devices can still tweak the settings
to remove that overhead.

Differential Revision: https://phabricator.services.mozilla.com/D70091
2020-05-08 00:48:55 +00:00
Jonathan Watt c6c74ac1f0 Bug 1636304. Fix and improve the Mermaid documentation. r=sylvestre
The second example, when copied and pasted, is completely borked since it
is not preceeded by the line that declares what follows to be a Mermaid
diagram. This change fixes that.

It also fixes the prose to read slightly less awkwardly in places.

Finally, this change also adds a link to the Mermaid Live Editor to make
readers aware of this useful tool.

Differential Revision: https://phabricator.services.mozilla.com/D74338
2020-05-07 23:16:00 +00:00
Simon Giesecke 61ad805d68 Bug 1626570 - Use CopyableTArray in ipdlc as member type for now. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D73685
2020-05-07 08:11:08 +00:00
Cosmin Sabou c263a2a867 Merge mozilla-central to autoland. 2020-05-07 02:33:29 +03:00
Cosmin Sabou 5704c50d45 Merge autoland to mozilla-central. a=merge 2020-05-07 00:50:37 +03:00
Kartikaya Gupta 03498b143d Bug 1635142 - Update github-sync to use Authorization header instead of deprecated HTTP auth mechanism. r=kvark
Depends on D74066

Differential Revision: https://phabricator.services.mozilla.com/D74067
2020-05-06 16:09:40 +00:00
Kartikaya Gupta 447162a66b Bug 1635809 - Use |file| instead of |modifies| in the hg revset query to catch file deletions. r=kvark
Closer look at the man pages shows that the file() query will catch any file
changes, whereas the modifies() query will only capture files that were
modified, which excludes strict deletions.

Depends on D74065

Differential Revision: https://phabricator.services.mozilla.com/D74066
2020-05-06 16:09:23 +00:00
Kartikaya Gupta 2c61b5048f Bug 1635809 - Prevent crash in converter.py on debug output with non-ascii hg log data. r=kvark
This is just in debug output, so the fact that we ignore non-utf-8 chars is ok.

Depends on D74064

Differential Revision: https://phabricator.services.mozilla.com/D74065
2020-05-06 16:08:58 +00:00
Kartikaya Gupta 21f0ab510f Bug 1635809 - Update readme.md to include some semblance of debugging instructions. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D74064
2020-05-06 17:29:52 +00:00
Gerald Squelart 9eb780f5ef Bug 1635338 - profiler_is_locked_on_current_thread() now also checks for the buffer lock - r=gregtatum,canaltinova
profiler_is_locked_on_current_thread() is used to help users avoid calling `profiler_...` functions when the profiler may already have a lock in place, which would prevent a 2nd recursive lock (resulting in a crash or a never-ending wait).
So we must return `true` for any of:
- The main profiler mutex, used by most functions, and/or
- The buffer mutex, used directly in some functions without locking the main mutex, e.g., marker-related functions.

Differential Revision: https://phabricator.services.mozilla.com/D73789
2020-05-06 12:45:40 +00:00
Greg V e65e9412b0 Bug 1634205 - Support Gecko Profiler and Base Profiler on FreeBSD r=mstange
- supports amd64 and arm64 (aarch64)
- uses LUL for stack walking

Differential Revision: https://phabricator.services.mozilla.com/D73162
2020-05-06 17:44:19 +00:00
Mihai Alexandru Michis 6c13bc9a50 Backed out changeset 2f5143da4986 (bug 1631584) for causing gv jobs to fail as exceptions.
CLOSED TREE
2020-05-06 02:23:54 +03:00
Markus Stange 16fc9519a1 Bug 1578726 - Stop looking for non-existent EnterJIT frames. r=gerald
At the time this code was written, JavaScript JIT entry trampolines were
emitting EnterJIT label frames that carried a stack address. From this stack
address, register values could be recovered that would allow native stack
unwinding to resume after getting lost in JIT code.

The EnterJIT label frame was removed in bug 1057082.

Differential Revision: https://phabricator.services.mozilla.com/D73939
2020-05-05 22:53:45 +00:00
Gerald Squelart 29ec866e31 Bug 1635196 - Make sure GetSymbolTableMozPromise promise is always fulfilled - r=mstange
In rare cases, a dispatch may fail (e.g., threads are shutting down), we should handle this failure by rejecting the promise on the spot.

Depends on D73791

Differential Revision: https://phabricator.services.mozilla.com/D73792
2020-05-05 21:06:15 +00:00
Gerald Squelart 32a725405b Bug 1635196 - GetSymbolTableMozPromise can fulfill the promise on any thread - r=mstange
It is not necessary to dispatch another task to the main thread to resolve/reject a MozPromiseHolder, because wherever this happens, the attached `Then` will do its own dispatch to the main thread.
Also, this removes a dispatch that could potentially fail, leaving the promise unfulfilled.

Depends on D73790

Differential Revision: https://phabricator.services.mozilla.com/D73791
2020-05-05 21:07:24 +00:00
Gerald Squelart 52ffb43ad5 Bug 1635196 - Make sure profile-gathering promise is fulfilled before destroying holder - r=mstange
While gathering profiles from child processes, some actions (e.g., shutting down, restarting the profiler) may reset the gathering operation.
In this case we must ensure that the promise is rejected if not already fulfilled, so that anyone waiting on it won't be blocked forever (and MozPromise enforces it in a MOZ_DIAGNOSTIC_ASSERT).

Differential Revision: https://phabricator.services.mozilla.com/D73790
2020-05-05 21:07:34 +00:00
Markus Stange 6725e6df9a Bug 1634784 - Remove MOZ_BASE_PROFILER and replace it with MOZ_GECKO_PROFILER everywhere. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D73526
2020-05-05 21:44:11 +00:00
Markus Stange 1bb0550030 Bug 1631584 - Add profiler labels for JNI binding method/getter/setter/constructor calls. r=gerald,snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71645
2020-05-05 21:42:21 +00:00
Ian Moody a52653c73c Bug 1536556 - Extend no-throw-cr-literal ESLint rule to forbid and fix `throw new Error(Cr.ERROR);`. r=Standard8
Code should be using `throw Components.Exception("", Cr.ERROR);` instead,
since `new Error()` just converts the int value of the Cr.ERROR into a string,
whereas `Exception` constructs an Exception object with the result property set
to the Cr.ERROR value, so other code can identify it.

Differential Revision: https://phabricator.services.mozilla.com/D28074
2020-05-05 17:43:39 +00:00
Ian Moody 85f9392bc8 Bug 1536556 - Add custom no-throw-cr-literal ESLint rule, and enable it by default. r=Standard8
This rule is based on the ESLint built-in no-throw-literal. Cr.ERRORs are also
literals since they are just integers and so have all the same disadvantages of
no stack info.

TestInterfaceJS.js is explicitly testing handling of throwing raw Cr.ERRORs and
thus needs to stay.

Differential Revision: https://phabricator.services.mozilla.com/D28072
2020-05-05 15:00:50 +00:00
Ian Moody 011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Julien Wajsberg a128c0d95a Bug 1589568 - Add some more logs in an intermittent profiler test r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D73836
2020-05-05 14:57:45 +00:00
Julien Wajsberg bd12d00b60 Bug 1589568 - Always stop the profiler after browser tests r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D73835
2020-05-05 14:57:43 +00:00
undef1nd 42c2a99b17 Bug 1633130 - Add expected version for rustfmt lint,r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D72710
2020-05-05 09:56:50 +00:00
Gerald Squelart bccea8601e Bug 1571171 - Clamp profiler capacity to allowed values - r=canaltinova
The profiler can be given any power of two, but there were no safety checks to ensure that the buffer had a minimum workable capacity (to hold at least 4 chunks, each capable of holding at least one stack sample), and also to prevent large buffers that could break the currently-supported 2GiB limit.

This fixes the issue with test_merged_stacks.js, which was requesting a too-small buffer. (This started when we switched to the chunk-based buffer, because the profiler was blindly using the provided number as maximum, and dividing that size by 4 for each chunk, which was not enough to hold a full sample in some builds.)

Differential Revision: https://phabricator.services.mozilla.com/D73212
2020-05-04 12:49:30 +00:00
Mitchell Hentges ef1e204860 Bug 1635204: Mark flaky test, registers with bug r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D73733
2020-05-04 19:16:11 +00:00
Andrew Halberstadt 3220639fe4 Bug 1634484 - [tryselect] Change default ./mach try auto strategy to 'bugbug_reduced', r=marco
Depends on D73349

Differential Revision: https://phabricator.services.mozilla.com/D73350
2020-04-30 21:50:40 +00:00
Michael Hoffmann 595db05652 Bug 1545069 - report the mime type as specified by the response headers r=julienw,gerald,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D68481
2020-05-04 07:13:47 +00:00
Mitchell Hentges 6e1e037cd3 Bug 1569115 - Don't throw TypeError exception when using |./mach try chooser| r=rstewart
This was an issue around "six" and "click", this thread sheds some light:
https://github.com/pallets/click/issues/564.

This issue was reproducible by having a local python 2 flask app with Flask==1.0.2, Werkzeug==0.14.1 and Click==7.0. Upon self-shutdown, the TypeError was raised.

Upgrading Click to 7.1.2 resolves this issue both in that separate "reproduce app" and here in-tree.

Differential Revision: https://phabricator.services.mozilla.com/D73351
2020-05-01 14:45:40 +00:00
Matthew Gaudet fd2c42d1ce Bug 1628343 - Remove Windows and OSX builds from sm-shell preset, and add 'sm-shell-all' preset r=tcampbell
After this patch:

```
$ ./mach try --no-push --preset=sm-shell
Task configuration changed, generating target task set
estimates: Runs 17 tasks (17 selected, 0 dependencies)
estimates: Total task duration 7:51:00
estimates: In the 61% percentile
estimates: Should take about 1:26:32 (Finished around 2020-05-01 08:30)
Commit message:
Fuzzy query=!win !osx 'spidermonkey | 'shell-haz

Pushed via `mach try fuzzy`
Calculated try_task_config.json:
{
    "env": {
        "TRY_SELECTOR": "fuzzy"
    },
    "tasks": [
        "hazard-linux64-shell-haz/debug",
        "spidermonkey-sm-arm-sim-linux32/debug",
        "spidermonkey-sm-arm64-sim-linux64/debug",
        "spidermonkey-sm-asan-linux64/opt",
        "spidermonkey-sm-compacting-linux64/debug",
        "spidermonkey-sm-fuzzing-linux64/opt",
        "spidermonkey-sm-gdb-linux64/debug",
        "spidermonkey-sm-mozjs-sys-linux64/debug",
        "spidermonkey-sm-nojit-linux64/opt",
        "spidermonkey-sm-nonunified-linux64/debug",
        "spidermonkey-sm-package-linux64/opt",
        "spidermonkey-sm-plain-linux64/debug",
        "spidermonkey-sm-plain-linux64/opt",
        "spidermonkey-sm-rootanalysis-linux64/debug",
        "spidermonkey-sm-rust-bindings-linux64/debug",
        "spidermonkey-sm-tsan-linux64/opt",
        "spidermonkey-sm-warp-linux64/debug"
    ],
    "version": 1
}
```

Differential Revision: https://phabricator.services.mozilla.com/D73439
2020-05-01 13:17:55 +00:00
David Teller ded0c0d4ee Bug 1580448 - JSProcessActor tests;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69819
2020-04-30 16:45:14 +00:00
Simon Giesecke 4a9809b4f9 Bug 1626570 - Improve handling of copying arrays in tools/profiler/gecko. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D72317
2020-04-30 09:36:07 +00:00
Stefan Hindli e22cd35728 Backed out 9 changesets (bug 1580448) for linux build bustages in /builds/worker/workspace/obj-build/dist/include/mozilla/dom/JSWindowActorChild.h CLOSED TREE
Backed out changeset 6b4db1a501df (bug 1580448)
Backed out changeset 677257a41457 (bug 1580448)
Backed out changeset 6db8de5fc125 (bug 1580448)
Backed out changeset fd7527c86239 (bug 1580448)
Backed out changeset bfbd3330b0a5 (bug 1580448)
Backed out changeset dafa80c63322 (bug 1580448)
Backed out changeset 2a1701831a6a (bug 1580448)
Backed out changeset 9b548bd38671 (bug 1580448)
Backed out changeset 358f764ae48b (bug 1580448)
2020-04-30 10:58:27 +03:00
David Teller f700c5624c Bug 1580448 - JSProcessActor tests;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69819
2020-04-30 07:36:29 +00:00
Mitchell Hentges 26afa282b0 Bug 1634116 - Removes "mach try again" history migration r=rstewart
The history migration has been around since February 2019 and is ready for cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D73099
2020-04-29 19:40:51 +00:00
Bob Clary ce5d5ab1aa Bug 1629039 - Limit --rebuild to 3 for mach try --full, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D73050
2020-04-29 15:15:26 +00:00
Nicholas Nethercote e1d0a44791 Bug 1633901 - Add support for hiding `fix-stacks` errors. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D72958
2020-04-28 23:55:57 +00:00
Csoregi Natalia 1b3a4cf0fe Backed out changeset 9f796abfd8ca (bug 1629789) for causing issues on fixSymbols. CLOSED TREE 2020-04-28 14:47:30 +03:00
Nicholas Nethercote 9d10f25a39 Bug 1629789 - Suppress `fix-stacks` errors on web platform tests. r=erahm,jgraham
Because the web platform test harness doesn't recognize them and annotates them
with `CRITICAL`, which is disconcerting, even though those errors are typically
not harmful.

Differential Revision: https://phabricator.services.mozilla.com/D71485
2020-04-28 09:28:15 +00:00
Joel Maher 18ac0dd2f1 Bug 1632822 - create webrender list of crashtests to have focused tests on android phones. r=bc
create webrender list of crashtests to have focused tests on android phones

Differential Revision: https://phabricator.services.mozilla.com/D72570
2020-04-27 18:06:47 +00:00
Christian Holler 870ae59237 Bug 1632830 - Properly shutdown ScopedXPCOM instance with libFuzzer. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D72386
2020-04-27 01:35:01 +00:00
Sylvestre Ledru 7572d4bd76 Bug 1633115 - Bug 1633115 - Disable the display of mozlint/clang-format r=marco
Differential Revision: https://phabricator.services.mozilla.com/D72522
2020-04-25 10:42:07 +00:00
Emilio Cobos Álvarez 5420284414 Bug 1632972 - Fix logic to detect the main executable. r=mstange
This is how my mapfile looks like:

  5587df936000-5587df96b000 r--p 00000000 fd:02 21584889                   /home/emilio/src/moz/gecko/obj-debug/dist/bin/firefox
  5587df96b000-5587df9ec000 r-xp 00035000 fd:02 21584889                   /home/emilio/src/moz/gecko/obj-debug/dist/bin/firefox
  5587df9ec000-5587df9ed000 r--p 000b6000 fd:02 21584889                   /home/emilio/src/moz/gecko/obj-debug/dist/bin/firefox
  5587df9ed000-5587df9ee000 rw-p 000b7000 fd:02 21584889                   /home/emilio/src/moz/gecko/obj-debug/dist/bin/firefox

Note how the executable bit, which is the only one we look at, and which
is where we get exeExeAddr from (0x5587df96b000 in this case) is in the
middle of the executable, but the library will span all four ranges.

Check for whether the library _contains_ the start address of the
executable region instead of whether it starts with it.

Differential Revision: https://phabricator.services.mozilla.com/D72504
2020-04-25 10:11:28 +00:00
Joel Maher f8875234b3 Bug 1621095 - add reftest-qr to run focused webrender reftests on android phones. r=bc
add reftest-qr to run focused webrender reftests on android phones.

Differential Revision: https://phabricator.services.mozilla.com/D72312
2020-04-24 18:54:51 +00:00
Bogdan Tara a5112d03db Backed out changeset 97280448a042 (bug 1621095) for test_ext_test.html failures CLOSED TREE 2020-04-24 17:09:37 +03:00
Joel Maher b9a6e9d31c Bug 1621095 - add reftest-qr to run focused webrender reftests on android phones. r=bc
add reftest-qr to run focused webrender reftests on android phones.

Differential Revision: https://phabricator.services.mozilla.com/D72312
2020-04-24 12:35:12 +00:00
Gerald Squelart a11580da0f Bug 1630872 - Replace uses of BlocksRingBuffer with ProfileChunkedBuffer in Base Profiler - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D71883
2020-04-24 06:24:44 +00:00
Gerald Squelart d83022dc79 Bug 1630872 - Replace uses of BlocksRingBuffer with ProfileChunkedBuffer in Gecko Profiler - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D71501
2020-04-24 06:21:05 +00:00
Gerald Squelart 46893a9a2b Bug 1630872 - Removed 'BlocksRingBuffer' from some Gecko Profiler platform variables - r=canaltinova
Renamed some variables to be more generic. Their type is going to change in the next patch, and that type doesn't need to be in the names; also it will make the next patch easier to review.

Differential Revision: https://phabricator.services.mozilla.com/D71500
2020-04-24 06:19:52 +00:00
Gerald Squelart 525010089c Bug 1630872 - BlockRingBuffer Put* functions provide a Maybe<ProfileBufferEntryWriter> - r=canaltinova
Instead of a potentially-null pointer to a `ProfileBufferEntryWriter`, we are now providing a `Maybe<ProfileBufferEntryWriter>`, which is safer.

Differential Revision: https://phabricator.services.mozilla.com/D71286
2020-04-24 06:19:09 +00:00
Mike Hommey 5e8b3e9559 Bug 1632353 - Convert mach resource-usage to python3. r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D72117
2020-04-23 22:56:37 +00:00
Simon Fraser 815925ab00 Bug 1632531 - Ensure unique working directory for parallel use. r=mtabara
Bug 1632531 Refactor funsize/partials to remove unused code, add safer checks

Differential Revision: https://phabricator.services.mozilla.com/D72162
2020-04-23 21:37:44 +00:00
Nazım Can Altınova e8ef58fd4d Bug 1623770 - Return early if failed to allocate a memory in CopyDataIntoLazilyAllocatedBuffer. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D72131
2020-04-23 11:42:45 +00:00
Arthur Iakab 5b06305b9f Backed out 4 changesets (bug 1602832) for causing multiple xpcshell failures.
CLOSED TREE

Backed out changeset a5cc1585581f (bug 1602832)
Backed out changeset 3de4624b41dc (bug 1602832)
Backed out changeset da106d35137e (bug 1602832)
Backed out changeset f9388129262a (bug 1602832)
2020-04-23 16:25:26 +03:00
Kershaw Chang d0dabdf4c3 Bug 1602832 - P3: Skip failed tests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67448
2020-04-23 12:15:16 +00:00
Simon Sapin 5af9f4fc2a Bug 1631721 - Remove hashglobe r=manishearth
Differential Revision: https://phabricator.services.mozilla.com/D71743
2020-04-23 00:19:51 +00:00
Andrew Halberstadt 5454fdd8bb Bug 1624859 - [taskgraph] Always optimize build tasks with ./mach try auto, r=tomprince
This ensures we don't run every build with every push via ./mach try auto. It
introduces a new 'optimization-overrides' try_config that can be used to
replace optimizations. For now, there is no user interface to pass this in via
the 'mach try' command line.

Differential Revision: https://phabricator.services.mozilla.com/D68207
2020-04-22 15:51:35 +00:00
Andrew Halberstadt a0bcf43891 Bug 1624859 - [taskgraph] Remove 'bugbug' internal class in experimental optimization strategies, r=tomprince
It was making things more complicated.

Differential Revision: https://phabricator.services.mozilla.com/D71821
2020-04-22 15:50:13 +00:00
Dzmitry Malyshau 4b29474d3f Bug 1630813 - Remove gfx/wgpu/wgpu-native, move wgpu-remote out into gfx/wgpu_bindings r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D71699
2020-04-22 15:35:13 +00:00
Edwin Takahashi e2f3473016 Bug 1630350 - apply mach try filter to try syntax selector r=jmaher,gbrown
Changes:

Applies the `filter_tasks_by_blacklist` method to try syntax pushes as well.

  - moved `TARGET_TASK_BLACKLIST`and `filter_tasks_by_blacklist` method to live in `taskcluster/taskgraph/target_tasks.py`.
  - removed existing filters against `ccov, windows10-aarch64` and `android-hw` filters against try syntax pushes.
  - update imports for `fuzzy` and `chooser` selectors to refer to the new location of `filter_tasks_by_blacklist` method.

The reason for moving the logic (again) from `tools/tryselect` to `taskcluster/` is due to the placement of `try_option_syntax` and `target_tasks` files and both of those files handle the processing of `mach try syntax` pushes.

Differential Revision: https://phabricator.services.mozilla.com/D71698
2020-04-21 19:51:25 +00:00
Cosmin Sabou 53c2d5ebb9 Backed out 2 changesets (bug 1628527) for causing wpt failures and a spike in bug 1622119. CLOSED TREE
Backed out changeset d9dfb6439761 (bug 1628527)
Backed out changeset 8235287622a8 (bug 1628527)
2020-04-21 23:12:09 +03:00
Gijs Kruitbosch c58b8f6ff2 Bug 1631358 - remove CPOW support in the message manager, r=mccr8
This commit:

- removes sendRpcMessage, which was unused;
- removes the CPOW argument to sendAsyncMessage, broadcastAsyncMessage, and
  sendSyncMessage;
- removes the aIsSync argument used internally to distinguish sendRpcMessage
  and sendSyncMessage;
- removes CPOW tests;
- updates the few remaining callsites that use more than 2 arguments in
  sendAsyncMessage for the removal of the cpows argument.

Differential Revision: https://phabricator.services.mozilla.com/D71514
2020-04-21 14:07:57 +00:00
Tooru Fujisawa 2108f90fcf Bug 1623965 - Improve error message when binary not found while testing. r=glandium,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,Bebe,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D67726
2020-04-21 11:58:04 +00:00
Nicholas Nethercote 88cd51aa6d Bug 1628527 - Introduce explicit initialization and finalization of `fix-stacks`. r=erahm,perftest-reviewers,sparky,gbrown
Currently AWSY-with-DMD doesn't work on Windows. This is because `fix-stacks`
is initialized lazily, and by the time the initialization happens some file
descriptors for files are open, and that leads to some major Python2-on-Windows
sadness as described in the big comment in the commit.

To fix the problem, this commit adds an `init` function to `fix_stacks.py` so
that `fix-stacks` can be initialized eagerly, hopefully before any file
descriptors for files are open.

For `dmd.py`, other than fixing the AWSY problems, this has little effect,
because `fix-stacks` is always initialized.

For `utils.py`, which is used to process the output of most tests, this has a
more noticeable effect: the `fix-stacks` process is always spawned, rather than
being spawned only when needed. If no stack traces appear in the test output,
this means that `fix-stacks` is spawned unnecessarily. But it's cheap to spawn;
the expensive part only happens when stack traces start getting fixed. So I
think this change in behaviour is acceptable.

Furthermore, the commit adds a `finish` function to `fix_stacks.py`, so that
the `fix-stacks` process can be explicitly shut down. This has never been done
for processes spawned for any of the stack fixing scripts. It's never caused
problems on Linux/Mac, but it seems to be necessary on Windows to avoid
similar "this file is locked" problems with the test_dmd.js test.

The commit also renames some things to more standard Python style, e.g.
`json_mode` instead of `jsonMode`.

Finally, Android tests use `utils.py` from the repository but `fix_stacks.py`
from the Android host utils. Because the two scripts must be updated in tandem,
this commit also updates the Android host utils to a version that contains the
updated `fix_stacks.py`. Thanks to aerickson for packaging up the new Android
host utils and providing the change to the `hostutils.manifest` file.

Differential Revision: https://phabricator.services.mozilla.com/D69478
2020-04-20 22:43:25 +00:00
Kris Maglione 6e7489c316 Bug 1614462: Part 2e - Migrate desktop-only CrashService_crash test to browser test. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D70746
2020-04-20 22:15:30 +00:00
Ciure Andrei a5ac2a8bbc Backed out 10 changesets (bug 1614462) for causing test_ipc_messagemanager_blob.js failures CLOSED TREE
Backed out changeset bf4f8253c708 (bug 1614462)
Backed out changeset c61b797d63e9 (bug 1614462)
Backed out changeset 284002de7137 (bug 1614462)
Backed out changeset 7f604ee5731c (bug 1614462)
Backed out changeset a73ef8167cd4 (bug 1614462)
Backed out changeset ecc3477ed34e (bug 1614462)
Backed out changeset 2106f3ccc4b5 (bug 1614462)
Backed out changeset e68c38a7741d (bug 1614462)
Backed out changeset 93b3bacdbb34 (bug 1614462)
Backed out changeset 0cf4898ae08d (bug 1614462)
2020-04-21 01:11:37 +03:00
Mark Banner 91b65009eb Bug 1549945 - Avoid the need for import-globals-from when (x)html files load scripts via /tests/. r=mossop
When loading from /tests/ we can strip off the /tests/ part and find the file with the rest of the path.

Differential Revision: https://phabricator.services.mozilla.com/D71411
2020-04-20 16:15:11 +00:00
undef1nd 44e838a5c5 Bug 1623767 - Remove untracked files in the repo created by clippy r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D71460
2020-04-20 20:31:59 +00:00
Kris Maglione e1b1f20547 Bug 1614462: Part 2e - Migrate desktop-only CrashService_crash test to browser test. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D70746
2020-04-20 20:11:46 +00:00
Jesse Schwartzentruber f4128636d8 Bug 1608849 - Switch Linux Fuzzing Debug build to use clang. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59782
2020-04-07 15:53:03 +00:00
Markus Stange ddece4ba4f Bug 1630895 - Infer categories for Java frames. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D71383
2020-04-17 23:30:10 +00:00
Coroiu Cristina 43be71277d Backed out 2 changesets (bug 1625500) for multiple failures on a CLOSED TREE
Backed out changeset 7d80233bcfcd (bug 1625500)
Backed out changeset 0a35b13dfcde (bug 1625500)
2020-04-17 15:36:05 +03:00
Gijs Kruitbosch 92b577ebfa Bug 1625500 - tell people to use promise.finally() instead of passing 2 identical things to .then, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D68613
2020-04-17 11:38:42 +00:00
Ciure Andrei c15dcac93b Backed out 10 changesets (bug 1614462) for causing xpcshell failures CLOSED TREE
Backed out changeset 34d4a86530b4 (bug 1614462)
Backed out changeset dbc2e2556d08 (bug 1614462)
Backed out changeset 512bbab4730c (bug 1614462)
Backed out changeset cd6b8d630f4c (bug 1614462)
Backed out changeset e4ad5037658f (bug 1614462)
Backed out changeset 0ffed1dc4296 (bug 1614462)
Backed out changeset 90ed81cbfe34 (bug 1614462)
Backed out changeset 6d2137eb1d52 (bug 1614462)
Backed out changeset b4819c99e16e (bug 1614462)
Backed out changeset b7deaed376ed (bug 1614462)
2020-04-17 02:26:14 +03:00
Kris Maglione 5d5b988515 Bug 1614462: Part 2e - Migrate desktop-only CrashService_crash test to browser test. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D70746
2020-04-16 16:58:13 +00:00
Sylvestre Ledru ee37eb29a7 Bug 1466070 - Integrate clang-format into mozlint r=linter-reviewers,ahal
For now, the local detection sucks. I will fix that once bug 1625884
is fixed

Differential Revision: https://phabricator.services.mozilla.com/D69683

--HG--
extra : moz-landing-system : lando
2020-04-15 20:39:32 +00:00
Tom Prince 01409a49a6 Bug 1630047 - Allow mozversioncontrol to add or remove multiple files at once; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D70938

--HG--
extra : moz-landing-system : lando
2020-04-15 22:16:49 +00:00
Gerald Squelart 989ad20d1d Bug 1626837 - Add BlocksRingBuffer::IsInSession() - r=canaltinova
`ProfileBuffer` used to check if a `BlocksRingBuffer` was in session by looking
at its buffer size.
Now `IsInSession()` should be used, it is clearer in intent, and will make the
transition to `ProfileChunkedBuffer` slightly easier.

Differential Revision: https://phabricator.services.mozilla.com/D69492

--HG--
extra : moz-landing-system : lando
2020-04-15 03:20:51 +00:00
Edwin Takahashi 66ea42cb18 Bug 1627340 - separate filter for try selectors and apply them to try chooser r=bc,ahal,jmaher
Changes:

  - implement filtering of taskgraph items against a list of known task filters in `tasks.py`.
  - apply these filters to both `fuzzy` and `chooser` selectors, unless `--full` is specified.

Differential Revision: https://phabricator.services.mozilla.com/D70097

--HG--
extra : moz-landing-system : lando
2020-04-14 13:43:17 +00:00
Tarek Ziadé 2da872c93f Bug 1627623 - [mozperftest] Implement Andrew's tests r=acreskey
Implements https://github.com/acreskeyMoz/browsertime_on_android_scripts
changes to mach perftest and prototype

Differential Revision: https://phabricator.services.mozilla.com/D69801

--HG--
extra : moz-landing-system : lando
2020-04-14 07:46:51 +00:00
Nicholas Nethercote 8139b4051e Bug 1619840 - Remove `fix_{linux,macosx}_stack.py` and `fix_stack_using_bpsyms.py`. r=erahm
This commit removes `test_fix_stack_using_bpsyms.py`. That test can't easily be
modified to work with `fix_stacks.py` because it relies on internal
implementation details of `fix_stack_using_bpsym.py`. The unit testing done in
the `fix-stacks` repo provides test coverage that is as good or better.

Differential Revision: https://phabricator.services.mozilla.com/D66924

--HG--
extra : moz-landing-system : lando
2020-04-08 06:55:54 +00:00
Anurag Aggarwal 84f13a772a Bug 1628275 - Document how to run a try job for the in-tree documentation.r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70589

--HG--
extra : moz-landing-system : lando
2020-04-13 21:24:43 +00:00
Andi-Bogdan Postelnicu 8731a55350 Bug 1612274 - Add checker `readability-qualified-auto` for `clang-tidy` static-analysis. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70481

--HG--
extra : moz-landing-system : lando
2020-04-10 07:06:09 +00:00
Mihai Alexandru Michis 9a16882603 Backed out changeset c5907d661bb7 (bug 1627340) for causing lint failures in tryselect/selectors/chooser/__init__.py
CLOSED TREE
2020-04-10 04:48:08 +03:00
Edwin Takahashi ae9fc8a3c6 Bug 1627340 - separate filter for try selectors and apply them to try chooser r=ahal,jmaher
Changes:

  - implement filtering of taskgraph items against a list of known task filters in `tasks.py`.
  - apply these filters to both `fuzzy` and `chooser` selectors, unless `--full` is specified.

Differential Revision: https://phabricator.services.mozilla.com/D70097

--HG--
extra : moz-landing-system : lando
2020-04-09 22:01:41 +00:00
Greg Tatum 5b83dca69f Bug 1612309 - Add an NS_WARNING for when nativeallocations are disabled by the bloat log; r=gerald
This makes it easier to debug when native allocations are turned on.

Differential Revision: https://phabricator.services.mozilla.com/D70075

--HG--
extra : moz-landing-system : lando
2020-04-09 21:05:08 +00:00
Mark Banner 7d3f1f3447 Bug 1626873 - Load xpcshell-test globals from the xpcshell head.js file rather than hard-code them. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D69612

--HG--
extra : moz-landing-system : lando
2020-04-09 19:20:34 +00:00
Andi-Bogdan Postelnicu 56a9802f89 Bug 1625884 - move `clang-tidy` and `clang-format` to `clang-10`. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D70065

--HG--
extra : moz-landing-system : lando
2020-04-09 14:16:44 +00:00
Andrew Halberstadt 7349bc85c9 Bug 1628810 - [tryselect] Use bugbug.debug optimization strategy by default in ./mach try auto, DONTBUILD, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D70419

--HG--
extra : moz-landing-system : lando
2020-04-09 18:31:24 +00:00
Cosmin Sabou 60934f9072 Backed out 3 changesets (bug 1625884) as requested by ANdi for causing build bustages. a=backout
Backed out changeset a35cfda6e271 (bug 1625884)
Backed out changeset 412c8c401196 (bug 1625884)
Backed out changeset 927ff250bc4b (bug 1625884)
2020-04-09 16:14:06 +03:00
Andi-Bogdan Postelnicu ffe0a6a754 Bug 1625884 - move `clang-tidy` and `clang-format` to `clang-10`. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D70065

--HG--
extra : moz-landing-system : lando
2020-04-09 05:28:34 +00:00
Mike Hommey ac5b6e6cd0 Bug 1628200 - Fix config/tests/test_mozbuild_reading.py. r=rstewart
Since the test goes through all moz.build files disregarding DIRS and
the conditions that may disable directories, in some cases, moz.builds
can fail to be evaluated properly because of missing variables in
config.status. This time (because it's not the first), it's
LLVM_DLLTOOL.

After fixing that, it turns out many of the files/directories pointed to
by Files() directives were removed or moved.

While here, make the test script python3-ready.

Differential Revision: https://phabricator.services.mozilla.com/D70157

--HG--
extra : moz-landing-system : lando
2020-04-09 00:24:29 +00:00
Chris Peterson 2834731dd4 Bug 1627490 - Replace MOZ_MUST_USE with [[nodiscard]] in tools/profiler. r=mstange
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Differential Revision: https://phabricator.services.mozilla.com/D69739

--HG--
extra : moz-landing-system : lando
2020-04-07 18:38:52 +00:00
Gerald Squelart baa5044bbb Bug 1627097 - Profiler synchronously collect processor information - r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D69922

--HG--
extra : moz-landing-system : lando
2020-04-08 22:35:54 +00:00
Ricky Stewart 6805c2f318 Bug 1625285 - A few small fixes to prevent bustage under Python 3 in lint/resource monitor/testing r=marionette-reviewers,glandium,whimboo
Update code in a few places to work with Python 3, especially with regard to how we invoke subprocesses with text output. Note that the Marionette test harness code needs to be updated so that text is written out in the correct encoding (see bug 1615748).

Differential Revision: https://phabricator.services.mozilla.com/D69012

--HG--
extra : moz-landing-system : lando
2020-04-08 11:42:52 +00:00
Neil Deakin 8d97cadc7f Bug 1614713, add a remote page manager like object that uses JSWindowActor instead. Move access management into a separate module that can be used within a child or parent process. Ensure all RPM calls go through the access manager, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D63713

--HG--
rename : toolkit/components/remotepagemanager/MessagePort.jsm => toolkit/actors/RemotePageChild.jsm
extra : moz-landing-system : lando
2020-04-08 14:08:11 +00:00
MahakBansal ee093cd087 Bug 1582666 - Enable more ESLint rules for netwerk/. r=Standard8,valentin
Differential Revision: https://phabricator.services.mozilla.com/D69257

--HG--
extra : moz-landing-system : lando
2020-04-07 16:00:03 +00:00
Bob Clary 770a924bf7 Bug 1627344 - Remove leading and trailing .* from mach try fuzzy.py's TARGET_TASK_FILTERS, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D69622

--HG--
extra : moz-landing-system : lando
2020-04-06 14:48:46 +00:00
Andreas Farre 36eaf82163 Bug 1620594 - Part 2: Use SchedulerGroup::Dispatch instead of SystemGroup::Dispatch. r=nika
Depends on D67631

Differential Revision: https://phabricator.services.mozilla.com/D67632

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:33 +00:00
Bogdan Tara 7d56f86092 Backed out changeset 916894e8b8fc (bug 1626272) for frequent test_dmd.js failures CLOSED TREE 2020-04-07 03:52:49 +03:00
Nicholas Nethercote ba62a51069 Bug 1626272 - Make `fix-stacks` initialization eager. r=erahm
Currently AWSY-with-DMD doesn't work on Windows. This is because `fix-stacks`
is initialized lazily, and by the time the initialization happens some file
descriptors for files are open, and that leads to some major Python2-on-Windows
sadness as described in the big comment in the commit.

To fix the problem, this commit adds an `init` function to `fix_stacks.py` so
that `fix-stacks` can be initialized eagerly, hopefully before any file
descriptors for files are open.

For `dmd.py`, other than fixing the AWSY problems, this has little effect,
because `fix-stacks` is always initialized.

For `utils.py`, which is used to process the output of most tests, this has a
more noticeable effect: the `fix-stacks` process is always spawned, rather than
being spawned only when needed. If no stack traces appear in the test output,
this means that `fix-stacks` is spawned unnecessarily. But it's cheap to spawn;
the expensive part only happens when stack traces start getting fixed. So I
think this change in behaviour is acceptable.

The commit also renames some things to more standard Python style, e.g.
`json_mode` instead of `jsonMode`.

Differential Revision: https://phabricator.services.mozilla.com/D69478

--HG--
extra : moz-landing-system : lando
2020-04-06 19:49:54 +00:00
Florian Quèze 67e60784ca Bug 1608556 - Expose to privileged JS an API to add markers with a start time and an associated text, r=gerald,mconley,baku.
Differential Revision: https://phabricator.services.mozilla.com/D68784

--HG--
extra : moz-landing-system : lando
2020-04-04 14:48:35 +00:00
Michael Forney b81d8b0f5d Bug 1620549 - Set stack size of profiler sampler thread to 800 KiB r=gerald,mstange
N_STACK_BYTES are needed to store backtrace information, so use
that plus some extra as the minimum stack size for the sampler
thread to ensure that it doesn't overflow.

Differential Revision: https://phabricator.services.mozilla.com/D65705

--HG--
extra : moz-landing-system : lando
2020-04-04 00:51:48 +00:00
Eric Rahm 243dfaa07e Bug 1626453 - Remove nsAutoPtr usage from tools/fuzzing. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D69124

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:32 +00:00
Narcis Beleuzu 1aa55f1914 Backed out changeset 859ae92f4110 (bug 1608556) for bustages on ProfilerMarkerPayload.h. CLOSED TREE
--HG--
extra : histedit_source : 297a94849cc019db6bc32ecadfdd119347da4ac8
2020-04-03 21:58:02 +03:00
Andrew Halberstadt 367ad2118d Bug 1627074 - [tryselect] Make it more clear that 'mach try auto' is experimental, DONTBUILD, r=marco,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D69445

--HG--
extra : moz-landing-system : lando
2020-04-02 20:43:13 +00:00
Florian Quèze d10cae0789 Bug 1608556 - Expose to privileged JS an API to add markers with a start time and an associated text, r=gerald,mconley,baku.
Differential Revision: https://phabricator.services.mozilla.com/D68784

--HG--
extra : moz-landing-system : lando
2020-04-03 13:47:25 +00:00
Tarek Ziadé 5c0481ca70 Bug 1623321 - Add perftest r=sparky,perftest-reviewers,marionette-reviewers,whimboo,ahal
mach perftest

Differential Revision: https://phabricator.services.mozilla.com/D67342

--HG--
extra : moz-landing-system : lando
2020-04-02 13:04:41 +00:00
Andrew Halberstadt ba40f078a0 Bug 1626393 - [tryselect] Catch OSError to check for file existence while invalidating task caches, r=gbrown
This prevents a race condition where the watchman hook can potentially
invalidate the cache in-between the call to 'isfile' and 'getmtime'.

Depends on D69189

Differential Revision: https://phabricator.services.mozilla.com/D69190

--HG--
extra : moz-landing-system : lando
2020-04-01 15:12:33 +00:00
Andrew Halberstadt be64ef9701 Bug 1626393 - [tryselect] Remove logic to clean up old cache dirs, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D69189

--HG--
extra : moz-landing-system : lando
2020-04-01 15:20:47 +00:00
Andrew Swan 4322e4d9e2 Bug 1625006 Add profiler markers for blocking webRequest listeners r=mixedpuppy,gerald
Differential Revision: https://phabricator.services.mozilla.com/D68278

--HG--
extra : moz-landing-system : lando
2020-04-01 16:23:53 +00:00
Andrew Halberstadt d45b3cf7a4 Bug 1624902 - [taskgraph] Implement substrategies in the bugbug scheduler for dealing with platforms, r=marco
The bugbug scheduler currently chooses which manifests are important, and we
then run *every* task that contains those manifests. This is likely overkill
and we can reduce the number of configurations we run these manifests on.

Differential Revision: https://phabricator.services.mozilla.com/D68466

--HG--
extra : moz-landing-system : lando
2020-04-01 13:43:48 +00:00
Andrew Halberstadt 1ff013f0ca Bug 1624902 - [tryselect] Validate '--strategy' argument to ./mach try auto, r=marco
This ensures we fail with invalid module paths early. Otherwise users wouldn't
find out until the decision task fails.

Differential Revision: https://phabricator.services.mozilla.com/D68464

--HG--
extra : moz-landing-system : lando
2020-04-01 13:43:30 +00:00
Andrew Halberstadt 9359f4cba8 Bug 1624902 - [taskgraph] Move experimental strategies into a common namespace, r=marco
Small cleanup to help compartmentalize these strategies.

Differential Revision: https://phabricator.services.mozilla.com/D68463

--HG--
extra : moz-landing-system : lando
2020-04-01 13:43:17 +00:00
James Graham 5eba193cb7 Bug 1624280 - Allow specifying routes in mach try fuzzy, r=ahal
These routes are applied to all tasks except the decision task. There
is currently no validity checking in the frontend, so if the provided
routes aren't valid the decision task will fail.

Differential Revision: https://phabricator.services.mozilla.com/D67828

--HG--
extra : moz-landing-system : lando
2020-03-27 19:02:07 +00:00
James Graham 28b1ea3d10 Bug 1624280 - Add support for routes in try_task_config.json, r=ahal
This adds an optional routes key to the task_task_config schema,
 which is a list of strings. Anything in this key is added to the list
of routes for tasks scheduled by the decision task.

Differential Revision: https://phabricator.services.mozilla.com/D67827

--HG--
extra : moz-landing-system : lando
2020-04-01 09:18:37 +00:00
Csoregi Natalia e1af17b6c1 Backed out 4 changesets (bug 1624902) for failures on test_optimize_strategies.py. CLOSED TREE
Backed out changeset b500403daa0c (bug 1624902)
Backed out changeset bf817363344e (bug 1624902)
Backed out changeset c7a62f2d9034 (bug 1624902)
Backed out changeset 08356d478d16 (bug 1624902)
2020-04-01 00:09:34 +03:00
Andrew Halberstadt 8787bbc73a Bug 1624902 - [taskgraph] Implement substrategies in the bugbug scheduler for dealing with platforms, r=marco
The bugbug scheduler currently chooses which manifests are important, and we
then run *every* task that contains those manifests. This is likely overkill
and we can reduce the number of configurations we run these manifests on.

Differential Revision: https://phabricator.services.mozilla.com/D68466

--HG--
extra : moz-landing-system : lando
2020-03-31 17:57:50 +00:00
Andrew Halberstadt 9d99e8d17f Bug 1624902 - [tryselect] Validate '--strategy' argument to ./mach try auto, r=marco
This ensures we fail with invalid module paths early. Otherwise users wouldn't
find out until the decision task fails.

Differential Revision: https://phabricator.services.mozilla.com/D68464

--HG--
extra : moz-landing-system : lando
2020-03-31 17:57:42 +00:00
Andrew Halberstadt 9a971df100 Bug 1624902 - [taskgraph] Move experimental strategies into a common namespace, r=marco
Small cleanup to help compartmentalize these strategies.

Differential Revision: https://phabricator.services.mozilla.com/D68463

--HG--
extra : moz-landing-system : lando
2020-03-31 18:06:58 +00:00
Jan-Erik Rediger 311c2d9ea7 Bug 1623300 - Replace fogotype with the actual FOG crate now. r=chutten
This also upgrades the vendored Glean version, which thanks to our
upstream work doesn't change anything else (except one small
Mozilla-developed dependency)

It's still feature-gated to nightly.
In C++ there's now a `MOZ_GLEAN` define.
For Rust it's behind the `glean` feature (enabled on nightly only).
The `fog` crate is empty, so no Glean is actually instantiated.

Differential Revision: https://phabricator.services.mozilla.com/D68539

--HG--
rename : third_party/rust/glean-preview/src/metrics/mod.rs => toolkit/components/glean/src/lib.rs
extra : moz-landing-system : lando
2020-03-31 08:24:40 +00:00
Razvan Maries b243785ac5 Backed out 6 changesets (bug 1623300, bug 1623306) for build bustages. CLOSED TREE
Backed out changeset 5267e6e2015d (bug 1623300)
Backed out changeset 45fadf903140 (bug 1623300)
Backed out changeset 46949083a8c8 (bug 1623306)
Backed out changeset cbcb3bb23090 (bug 1623300)
Backed out changeset c04dbe8dd337 (bug 1623300)
Backed out changeset d2673451da54 (bug 1623300)

--HG--
rename : toolkit/components/glean/src/lib.rs => third_party/rust/glean-preview/src/metrics/mod.rs
2020-03-31 11:19:31 +03:00
Jan-Erik Rediger 1a47da3ae3 Bug 1623300 - Replace fogotype with the actual FOG crate now. r=chutten
This also upgrades the vendored Glean version, which thanks to our
upstream work doesn't change anything else (except one small
Mozilla-developed dependency)

It's still feature-gated to nightly.
In C++ there's now a `MOZ_GLEAN` define.
For Rust it's behind the `glean` feature (enabled on nightly only).
The `fog` crate is empty, so no Glean is actually instantiated.

Differential Revision: https://phabricator.services.mozilla.com/D68539

--HG--
rename : third_party/rust/glean-preview/src/metrics/mod.rs => toolkit/components/glean/src/lib.rs
extra : moz-landing-system : lando
2020-03-30 19:09:43 +00:00
Simon Fraser 5736cab8ce Bug 1625933 Only complain about unmanaged fzf if it was found r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D68792

--HG--
extra : moz-landing-system : lando
2020-03-30 13:49:57 +00:00
André Bargull 14ca007916 Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

Differential Revision: https://phabricator.services.mozilla.com/D68561

--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull 13bfe75b97 Bug 1625138 - Part 40: Replace remaining mozilla::IsSame with std::is_same. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68560

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:21 +00:00
André Bargull ebec34a898 Bug 1625138 - Part 16: Replace mozilla::IsIntegral with std::is_integral. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68371

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull 1f5d157732 Bug 1625138 - Part 15: Replace mozilla::IsFloatingPoint with std::is_floating_point. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68370

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull aae2042c40 Bug 1625138 - Part 9: Replace mozilla::IsArithmetic with std::is_arithmetic. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68363

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:13 +00:00
Andi-Bogdan Postelnicu 3b3116571d Bug 1608396 - for `Coverity Analysis` disable checker `STRAY_SEMICOLON` due to the noise that it creates with `if constexpr`. r=froydnj
We disable this checker until Synopsis fixes this or provides a valid workaround.

Differential Revision: https://phabricator.services.mozilla.com/D68429

--HG--
extra : moz-landing-system : lando
2020-03-26 17:40:45 +00:00
Myeongjun Go d83a7f3703 Bug 1614443 - added browsertime usage command(--browsertime-help) r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D67985

--HG--
extra : moz-landing-system : lando
2020-03-26 12:44:08 +00:00
Gregory Mierzwinski 61a0db5200 Bug 1623055 - Update in-tree browsertime to 8.3.0. r=perftest-reviewers,tarek,AlexandruIonescu
This patch updates the in-tree browsertime to v8.3.0.

Differential Revision: https://phabricator.services.mozilla.com/D67170

--HG--
extra : moz-landing-system : lando
2020-03-26 07:58:39 +00:00
byron jones 8559ac6776 Bug 1623544 - Install python3-pip on Debian during bootstrap; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D68160

--HG--
extra : moz-landing-system : lando
2020-03-25 15:31:09 +00:00
Jon Bauman 6ec77fef76 Bug 1624057 - Update mp4parse-rust to 63ca8c6. r=kinetik
Also update the update-rust.sh script in a couple ways:
- Stop copying the source for mp4parse_fallible into the tree; use crates.io
- Include submodules in mp4parse-rust checkout; needed for tests
- Exclude unnecessary build.rs from mp4parse_fallible, it was causing problems
- Update mp4rust_capi/Cargo.toml patch to exclude cdylib. It's only necessary for test_ffi and causes build problems otherwise

Differential Revision: https://phabricator.services.mozilla.com/D68139

--HG--
extra : moz-landing-system : lando
2020-03-26 02:08:51 +00:00
Simon Fraser ba6f2afbaa Bug 1623197 Change fzf management check to avoid side effects r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D67830

--HG--
extra : moz-landing-system : lando
2020-03-25 10:07:26 +00:00
Simon Fraser f02a5bdd6c Bug 1623328 Handle missing target_task_set in try estimates r=ahal
I'm unsure of the root cause as the file should exist if generate_tasks has worked, but this should avoid errors in the meantime while we investigate.

Differential Revision: https://phabricator.services.mozilla.com/D67833

--HG--
extra : moz-landing-system : lando
2020-03-24 16:39:37 +00:00
Kartikaya Gupta 5867f01980 Bug 1624307 - Add a try preset for a Linux/Android F-push. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D67858

--HG--
extra : moz-landing-system : lando
2020-03-24 17:05:57 +00:00
James Willcox 2ef4e466f8 Bug 1291377 - Don't use custom linker on Android 6.0+ r=glandium
We still need it for Android < 6.0 (API 23) because otherwise we don't
have a way to hook up mozalloc.

Differential Revision: https://phabricator.services.mozilla.com/D66993

--HG--
extra : moz-landing-system : lando
2020-03-20 15:35:48 +00:00
Sylvestre Ledru ec872314a4 Bug 1624355 - coding style doc: Remove some leftover files r=sg
Moved to docs/code-quality/coding-style

Differential Revision: https://phabricator.services.mozilla.com/D67880

--HG--
extra : moz-landing-system : lando
2020-03-24 09:35:23 +00:00
Sylvestre Ledru 94abcf9c31 Bug 1624038 - mozlint/shell test - Fix a regression in the lint r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D67704

--HG--
extra : moz-landing-system : lando
2020-03-23 19:15:15 +00:00
Dave Townsend 6ed37285b4 Bug 1622717: When parsing an AST allow the chosen parser to override the default scope manager and visitor keys. r=Standard8
There appears to be a bug in babel-eslint where it still uses the old
`ExperimentalSpreadProperty` and `ExperimentalRestProperty` node types when
babel itself (and hence the AST visitor keys) have switched to `SpreadElement`
and `RestElement`. I suspect there isn't much point in filing a babel-eslint
issue for this, they are currently in the process of working on v11 which does
fix the issue but is currently only available as a beta release.

There are three alternatives:

1. Use the beta babel-eslint.
2. Hack the visitor keys to include the old node types.
3. Traverse the AST changing the nodes from the old types to the new types.

Using a beta version is probably not a great idea so this patch does 2 which is
the simplest of the other options. It does have the drawback however that if
any eslint rules we use rely on the new node type names they will fail to work.

Differential Revision: https://phabricator.services.mozilla.com/D66998

--HG--
extra : moz-landing-system : lando
2020-03-23 12:58:28 +00:00
Tarek Ziadé 5fb873ad16 Bug 1607522 - improve dependency detection r=sefeng,perftest-reviewers,sparky
When a package is installed with "pip --user", the import works right after the virtualenv activation.
Even if we force its install via mozbuild virtualenv it will fail. This patch checks if the installed package is **inside** or
**outside** the virtualenv. If it's outside, it forces its installation **inside**.

Notice that we might want to move that logic in mozbuild/virtualenv.py

Differential Revision: https://phabricator.services.mozilla.com/D67592

--HG--
extra : moz-landing-system : lando
2020-03-20 14:16:34 +00:00
Sylvestre Ledru 79fdde2eb7 Bug 1623320 - mozlint - Run license analysis on dotfiles r=linter-reviewers,ahal DONTBUILD
Depends on D67316

Differential Revision: https://phabricator.services.mozilla.com/D67318

--HG--
extra : moz-landing-system : lando
2020-03-21 10:20:32 +00:00
Sylvestre Ledru 00ce6e0715 no bug - mozlint/flake8 - Show the flake8 version in debug mode r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D67322

--HG--
extra : moz-landing-system : lando
2020-03-20 18:49:09 +00:00
Sylvestre Ledru 7cfa120eb9 Bug 1623320 - Add support to run mozlint on dotfile r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D67316

--HG--
extra : moz-landing-system : lando
2020-03-20 21:51:03 +00:00
Anurag Aggarwal dead557566 Bug 1614820 - Fixed normandy docs not re rendering.r=sylvestre,ahal
Differential Revision: https://phabricator.services.mozilla.com/D66911

--HG--
extra : moz-landing-system : lando
2020-03-20 20:21:07 +00:00
Mark Banner b9bfdfd17c Bug 1623862 - Properly handle errors when the ESLint process fails. r=ahal
In the failure case, errors has value, but output doesn't. So previously we were printing the errors but returning success to the lint handler.

Differential Revision: https://phabricator.services.mozilla.com/D67670

--HG--
extra : moz-landing-system : lando
2020-03-20 19:33:46 +00:00
Rob Lemley 4543cab9bf Bug 1622974 - Add global exclude file for Thunderbird mozlint tests. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D67078

--HG--
extra : moz-landing-system : lando
2020-03-20 16:51:35 +00:00
Rob Lemley c7061b9ab3 Bug 1622974 - Add mozlint parameter to set additional config file path. r=ahal
Adds --config-paths parameter to mach mozlint where test configuration
files (.yml) can be located. The default path "tools/lint" is set automatically
and additional paths have preference over the default.
This allows Thunderbird to run mozlint-based tests in Taskcluster with a
different configuration.

Differential Revision: https://phabricator.services.mozilla.com/D67077

--HG--
extra : moz-landing-system : lando
2020-03-20 17:12:27 +00:00
Bogdan Tara 05377fcd08 Backed out changeset fe0c22951e7c (bug 1291377) for mozglue related Android bustages CLOSED TREE 2020-03-20 16:39:42 +02:00
James Willcox e2c25ee165 Bug 1291377 - Don't use custom linker on Android 6.0+ r=glandium
We still need it for Android < 6.0 (API 23) because otherwise we don't
have a way to hook up mozalloc.

Differential Revision: https://phabricator.services.mozilla.com/D66993

--HG--
extra : moz-landing-system : lando
2020-03-20 14:20:48 +00:00
Bogdan Tara a3db8af185 Backed out 3 changesets (bug 1602832) for assertion failing on IOInterposer.cpp CLOSED TREE
Backed out changeset 9123faab0d42 (bug 1602832)
Backed out changeset 4c3764b3d7bc (bug 1602832)
Backed out changeset 9c955a99c95d (bug 1602832)
2020-03-20 14:03:28 +02:00
Kershaw Chang 2086e3d17b Bug 1602832 - P3: Skip failed tests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67448

--HG--
extra : moz-landing-system : lando
2020-03-19 15:01:44 +00:00
Sylvestre Ledru e6ccb2916d Bug 1623287 - mozlint/license: Fix test for real by generating an incorrect license
Differential Revision: https://phabricator.services.mozilla.com/D67573

--HG--
extra : moz-landing-system : lando
2020-03-19 22:46:30 +00:00
Michael Forney 48e9b9c824 Bug 1615713 - Update breakpad to upstream revision 5bba75bfd6ec386b8e3af0b91332388a378135bf r=gsvelto
This includes several fixes required to build against musl libc.

Conflicts were resolved in 00-arm-exidx-rollup.patch and
10-json-upload.patch. 08-dont-add-sp-to-clobber-list.patch was
applied upstream and is no longer needed. The others applied cleanly.

breakpad_getcontext.S is now built conditionally based upon the
available of getcontext() from libc, rather than only on Android.
The profiler was updated to reflect this change.

Differential Revision: https://phabricator.services.mozilla.com/D67108

--HG--
rename : toolkit/crashreporter/breakpad-patches/09-gnu-alt-form-minimal-support.patch => toolkit/crashreporter/breakpad-patches/08-gnu-alt-form-minimal-support.patch
rename : toolkit/crashreporter/breakpad-patches/10-json-upload.patch => toolkit/crashreporter/breakpad-patches/09-json-upload.patch
rename : toolkit/crashreporter/google-breakpad/src/common/android/breakpad_getcontext.S => toolkit/crashreporter/google-breakpad/src/common/linux/breakpad_getcontext.S
rename : toolkit/crashreporter/google-breakpad/src/common/android/breakpad_getcontext_unittest.cc => toolkit/crashreporter/google-breakpad/src/common/linux/breakpad_getcontext_unittest.cc
extra : moz-landing-system : lando
2020-03-19 22:52:26 +00:00
Ed Lee 83b72d6d87 Bug 1623741 - [mozlint] Use python3 and include mozfile now that mozversioncontrol uses it r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D67551

--HG--
extra : moz-landing-system : lando
2020-03-19 21:34:11 +00:00
Sylvestre Ledru 76c375bf85 Bug 1622328 - license list: remove the refreshed items r=ahal
+ Bring back the gpl definition (no issue)

Differential Revision: https://phabricator.services.mozilla.com/D66835

--HG--
extra : moz-landing-system : lando
2020-03-19 21:18:55 +00:00
Andrew Halberstadt 3315f2c93c Bug 1623433 - [mozlint] Create a LintProcess utility class to consolidate some of our lint implementations, r=linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D67410

--HG--
extra : moz-landing-system : lando
2020-03-19 14:47:34 +00:00
Sylvestre Ledru be18fd4dba Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D67319

--HG--
extra : moz-landing-system : lando
2020-03-19 13:47:51 +00:00
André Bargull 55764bc9be Bug 1610512 - Part 4: Update Gecko to Unicode 13. r=jfkthame
Add generated files to "Generated.txt" to exclude them from being linted to
avoid a "trailing whitespace" error in a comment copied over from the original
Unicode files.

Depends on D66557

Differential Revision: https://phabricator.services.mozilla.com/D66558

--HG--
extra : moz-landing-system : lando
2020-03-17 14:09:20 +00:00
Sylvestre Ledru 1e0b6c9c84 Bug 1623287 - mozlint/license: Remove a string which valid GPLv3
Differential Revision: https://phabricator.services.mozilla.com/D67300

--HG--
extra : moz-landing-system : lando
2020-03-18 22:08:27 +00:00
Andrew Halberstadt f4ff3c2181 Bug 1623339 - [lint.flake8] Fix path filtering bug when specifying subdirectory of excluded path, r=linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D67335

--HG--
rename : tools/lint/test/files/flake8/subdir/exclude/bad.py => tools/lint/test/files/flake8/subdir/exclude/exclude_subdir/bad.py
extra : moz-landing-system : lando
2020-03-18 17:02:34 +00:00
Andrew Halberstadt 9ad2608875 Bug 1623339 - [lint] Honour --no-filter in the flake8 linter, r=linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D67333

--HG--
extra : moz-landing-system : lando
2020-03-18 17:02:22 +00:00
William Lachance e4da848fd8 Bug 1623132 - Rewrite printconfigsetting to use configparser, python 3 r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D67210

--HG--
extra : moz-landing-system : lando
2020-03-18 15:07:24 +00:00
Sylvestre Ledru 3f086df181 Bug 1622328 - Add some new license/generated code patterns r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66801

--HG--
extra : moz-landing-system : lando
2020-03-16 11:57:16 +00:00
Julien Wajsberg 90a5bc29a0 Bug 1623067 - Uses a padding for 6 characters instead of 5 for the help of the features bitfield r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D67144

--HG--
extra : moz-landing-system : lando
2020-03-17 22:55:36 +00:00
Chris Fronk d5b004443b Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
Markus Stange de0a0463d6 Bug 1557570 - Make baseprofiler/core/shared-libraries-linux.cc compile on Android. r=glandium
Stop including "Linker.h" and always include <link.h> instead, which also comes with ElfW() and other things that this code needs.
Also fix up "!/" path detection code.

Differential Revision: https://phabricator.services.mozilla.com/D64997

--HG--
extra : moz-landing-system : lando
2020-03-17 03:26:57 +00:00
Gerald Squelart bc32add109 Bug 1622179 - Replace direct dependencies on BlocksRingBuffer with ProfileBufferEntryWriter's where possible - r=canaltinova
This removes most dependencies on BlocksRingBuffer, to ease the transition to
the upcoming Fission-friendly profile buffer, including:
- Length type,
- SumBytes(),
- Gecko extensions of serialization.

Differential Revision: https://phabricator.services.mozilla.com/D66722

--HG--
rename : tools/profiler/public/BlocksRingBufferGeckoExtensions.h => tools/profiler/public/ProfileBufferEntrySerializationGeckoExtensions.h
extra : moz-landing-system : lando
2020-03-16 20:32:35 +00:00
Kartikaya Gupta 8881acea8d Bug 1621718 - Use proper email parsing library for parsing patches. r=ahal
This uses the `email` module to parse the .patch file that Github generates,
so that it properly decodes encoded-words in the headers. Also using this
module is better with python3, so this patch also takes the command off the
python2 whitelist and makes it python3-compatible.

Differential Revision: https://phabricator.services.mozilla.com/D66621

--HG--
extra : moz-landing-system : lando
2020-03-16 19:46:13 +00:00
Simon Fraser 77fba7508b Bug 1616354 Change priority order for |mach try| push estimates target set r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D66575

--HG--
extra : moz-landing-system : lando
2020-03-16 18:32:11 +00:00
Julian Descottes d58c991801 Bug 1621576 - Add a linter rule to check unbalanced addObserver/removeObserver r=Standard8
Depends on D66369

Differential Revision: https://phabricator.services.mozilla.com/D66378

--HG--
extra : moz-landing-system : lando
2020-03-16 12:42:54 +00:00
Nicholas Nethercote 9a11249061 Bug 1621468 - Stop using `fix_stack_using_bpsyms.py` in `dmd.py`. r=gsvelto
This uses `fix-stacks`'s new Breakpad symbols support from
https://github.com/mozilla/fix-stacks/pull/16.

The patch also updates some comments in `dmd.py` to account for some very
slight changes in `fix-stacks`'s output.

Differential Revision: https://phabricator.services.mozilla.com/D66363

--HG--
extra : moz-landing-system : lando
2020-03-16 01:15:27 +00:00
Zibi Braniecki 3f8c67d7fd Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-14 22:14:13 +00:00
Dave Townsend 8aefbf2bdc Bug 1617959: Switch to the babel-eslint parser and turn on support for optional chaining and nullish coalescing operator syntaxes. r=Standard8
The babel-eslint parser defaults to assuming all scripts are modules. Although
we're moving in that direction it seems reasonable to set the default as regular
scripts for now. All the places that were previously overriding the parser are
already specifying the sourceType in their eslint configs.

I chose to put the babel config in a file that babel itself won't look to avoid
the risk of this config impacting the use of babel elsewhere in the tree.

Differential Revision: https://phabricator.services.mozilla.com/D66127

--HG--
extra : moz-landing-system : lando
2020-03-13 19:15:11 +00:00
Razvan Maries a34f5e0ded Backed out 2 changesets (bug 1560038) for perma failures on browser_application_panel_list-single-worker.js. CLOSED TREE
Backed out changeset 7cd88f40fc85 (bug 1560038)
Backed out changeset 54dbe282c9ac (bug 1560038)
2020-03-14 00:43:41 +02:00
Sylvestre Ledru 70e97e578f Bug 1622405 - Remove ConEmu r=dmajor
Depends on D66829

Differential Revision: https://phabricator.services.mozilla.com/D66830

--HG--
extra : moz-landing-system : lando
2020-03-13 21:15:53 +00:00
Andrew Halberstadt 41e1cf03ee Bug 1603463 - [tryselect] Ignore 'auto' and 'empty' selectors in estimates and history, r=gbrown
Neither of these selectors involve the user choosing tasks, so showing
estimates or saving them in the 'mach try again' history doesn't make much
sense.

Differential Revision: https://phabricator.services.mozilla.com/D66628

--HG--
extra : moz-landing-system : lando
2020-03-13 20:33:51 +00:00
Andrew Halberstadt 2cf0c4fbc5 Bug 1603463 - [tryselect] Add the ability to run 'mach try auto' with alternative scheduling algorithms, r=tomprince
This allows us to change the default optimization strategy used in try pushes.
While probably not super useful to developers, it can help us easily test
changes to new and experimental optimizations on try.

This also changes the default to the 'bugbug_push_schedules' strategy, since
SETA is more or less random and shouldn't be used by 'mach try auto'. In the
future, we'll switch this back to simply using the default optimization as the
default will ideally be the best one that we have.

Differential Revision: https://phabricator.services.mozilla.com/D65746

--HG--
extra : moz-landing-system : lando
2020-03-13 20:32:14 +00:00
Andrew Halberstadt 56ba8a9ddf Bug 1603463 - Implement |mach try auto| which selects tasks on try automatically, r=tomprince
The 'auto' in 'mach try auto' stands for two things:

1. It automatically picks tasks for you.
2. It runs the same scheduling algorithms as autoland.

It accomplishes this by creating a new target_tasks method that spoofs the
'project' parameter to autoland.

Differential Revision: https://phabricator.services.mozilla.com/D60184

--HG--
extra : moz-landing-system : lando
2020-03-13 20:35:43 +00:00
Zibi Braniecki 44eca5f333 Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-11 23:29:05 +00:00
Nicholas Nethercote d17a9a9a55 Bug 1602717 - Re-enable stackwalking on local macOS builds. r=erahm
Now that `fix_stacks.py` is being used instead of `fix_macosx_stack.py`,
stack-fixing time has dropped from about 14 minutes to about 30 seconds on my
new MacBook Pro.

Also, print a warning about stacks not being fixed if `MOZ_DISABLE_STACK_FIX`
is set. This warning shows up at the start of the test run.

Also, print a warning about stack fixing slowness, because 30 seconds is long
enough to possibly be surprising. This warning shows up just before the first
stack frame is fixed, like this:
```
Assertion failure: false (BEEP BOOP), at /home/njn/moz/au3/dom/base/nsGlobalWindowOuter.cpp:1342
Initializing stack-fixing for the first stack frame, this may take a while...
#01: nsGlobalWindowOuter::nsGlobalWindowOuter(unsigned long) (/home/njn/moz/au3/dom/base/nsGlobalWindowOuter.cpp:1342)
#02: ...
```

Differential Revision: https://phabricator.services.mozilla.com/D65676

--HG--
extra : moz-landing-system : lando
2020-03-12 22:03:19 +00:00
Bob Owen 22f20a8d00 Bug 1557282 Part 2: Fix profiler issues when using SetLockdownDefaultDacl. r=dmajor
When we are running from a network drive the new feature in part 1 doesn't work.
So this uses DuplicateHandle instead of OpenThread to get the thread handle used
by the profiler.
It also removes a DuplicateHandle THREAD_ALL_ACCESS call that also fails and a
DuplicateHandle to get a real process handle, which only seems to have been to
fix something on Windows XP.
The handle passed in is always the profiler one, so already has the necessary
permissions. If no thread handle is passed then the pseudo handle is used.

Differential Revision: https://phabricator.services.mozilla.com/D66611

--HG--
extra : moz-landing-system : lando
2020-03-12 20:40:50 +00:00
Kartikaya Gupta ebd6e5d20f Bug 1621967 - Set a more appropriate bug component for tools/vcs. r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D66582

--HG--
extra : moz-landing-system : lando
2020-03-12 16:36:59 +00:00
Narcis Beleuzu feebca4edf Backed out 4 changesets (bug 1557282) as requested by tjr . CLOSED TREE
Backed out changeset deabd1e1018b (bug 1557282)
Backed out changeset 25e5b5ba8ac3 (bug 1557282)
Backed out changeset 30afcaf2782a (bug 1557282)
Backed out changeset f83095f739e0 (bug 1557282)

--HG--
extra : rebase_source : 1730b805fbd8d0b786f7dcec71aa9c02a8f7a93a
2020-03-12 19:39:27 +02:00
Bob Owen f25e4ba8c6 Bug 1557282 Part 2: Fix profiler issues when using SetLockdownDefaultDacl.
When we are running from a network drive the new feature in part 1 doesn't work.
So this uses DuplicateHandle instead of OpenThread to get the thread handle used
by the profiler.
It also removes a DuplicateHandle THREAD_ALL_ACCESS call that also fails and a
DuplicateHandle to get a real process handle, which only seems to have been to
fix something on Windows XP.
The handle passed in is always the profiler one, so already has the necessary
permissions. If no thread handle is passed then the pseudo handle is used.

Depends on D66610

Differential Revision: https://phabricator.services.mozilla.com/D66611

--HG--
extra : moz-landing-system : lando
2020-03-12 16:57:45 +00:00
Simon Fraser dfdd97e607 Bug 1621658 Update |mach try fuzzy| fzf version check r=ahal
Add filename support for plain display

Update fzf version in tests

Update tooltool url for fzf

Differential Revision: https://phabricator.services.mozilla.com/D66571

--HG--
extra : moz-landing-system : lando
2020-03-12 12:56:35 +00:00
Arthur Iakab 2e0a8fbbf5 Backed out changeset d40b5da02500 (bug 1620549) for causing xpcshell failures on test_active_configuration.js. 2020-03-12 03:59:02 +02:00
Michael Forney 50c0810128 Bug 1620549 - Set stack size of profiler sampler thread to N_STACK_BYTES + 80 KiB r=gerald,mstange
N_STACK_BYTES are needed to store backtrace information, so use
that plus some extra as the minimum stack size for the sampler
thread to ensure that it doesn't overflow.

Differential Revision: https://phabricator.services.mozilla.com/D65705

--HG--
extra : moz-landing-system : lando
2020-03-11 21:04:31 +00:00
Gerald Squelart 9e0576b94c Bug 1620515 - Replace BlocksRingBuffer::EntryReader/Writer with ProfileBufferEntryReader/Writer - r=canaltinova
The new ProfileBufferEntryReader/Writer are now used everywhere, including in
the profilers and tests.
The old EntryReader/Writer have been removed.

Differential Revision: https://phabricator.services.mozilla.com/D65697

--HG--
extra : moz-landing-system : lando
2020-03-11 21:59:19 +00:00
Mihai Alexandru Michis a3ed8c38b3 Backed out changeset 396cfd215808 (bug 1560038) for causing dt failures in browser_application_panel_list-single-worker.js
CLOSED TREE
2020-03-12 00:32:24 +02:00
Zibi Braniecki 7c466415ee Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-11 15:42:07 +00:00
shindli b02b3a6e1a Backed out changeset a08637fb30c8 (bug 1143478) for causing bustages in /builds/worker/checkouts/gecko/ipc/mscom/Registration.cpp CLOSED TREE
--HG--
rename : mfbt/CompactPair.h => mfbt/Pair.h
2020-03-11 14:30:54 +02:00
Chris Fronk a27e438c2d Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-11 12:18:13 +00:00
Sylvestre Ledru a3d37d446e Bug 1563915 - rustmft: Move from a include list to a skip list r=ahal
Depends on D65903

Differential Revision: https://phabricator.services.mozilla.com/D37154

--HG--
extra : moz-landing-system : lando
2020-03-10 09:29:25 +00:00
Daniel Varga a2cbf61a81 Backed out 9 changesets (bug 1560038) for causing build bustage
CLOSED TREE

Backed out changeset 12069dae9b8d (bug 1560038)
Backed out changeset a0845cf79487 (bug 1560038)
Backed out changeset dc2406d01a63 (bug 1560038)
Backed out changeset 1b11616a5ee5 (bug 1560038)
Backed out changeset 06cdc27a39a7 (bug 1560038)
Backed out changeset a390456d9d26 (bug 1560038)
Backed out changeset 7e3d839a3e9d (bug 1560038)
Backed out changeset 0678db762fed (bug 1560038)
Backed out changeset 3b9b16532bf3 (bug 1560038)
2020-03-11 04:53:10 +02:00
Zibi Braniecki 4d2733ee86 Bug 1560038 - Switch uses of FluentBundle to use fluent-rs.
Differential Revision: https://phabricator.services.mozilla.com/D57403

Depends on D61048

--HG--
extra : rebase_source : 0be62fa98f0a91274c96a509eeafceb6da667894
2020-03-10 20:03:59 +02:00
Nicholas Nethercote 821fa0d573 Bug 1619837 - Make `fix_stacks.py` more like `fix_linux_stacks.py`. r=erahm
Specifically:
- handle input that doesn't end in a newline;
- only pass lines that match the regexp to `fix-stacks`.

These changes are needed for `utils.py` to use `fix_stacks.py` without
problems.

Differential Revision: https://phabricator.services.mozilla.com/D65944

--HG--
extra : moz-landing-system : lando
2020-03-10 06:19:21 +00:00
Emilio Cobos Álvarez 980c6f3033 Bug 1621044 - Update rkv. r=vporof
See last patch of this bug for the third_party/ changes.

Differential Revision: https://phabricator.services.mozilla.com/D66279

--HG--
extra : moz-landing-system : lando
2020-03-10 21:04:51 +00:00
Daniel Varga 22ab1c2ce6 Backed out 9 changesets (bug 1560038) for causing build bustages.
CLOSED TREE

Backed out changeset 350df98095f8 (bug 1560038)
Backed out changeset 56dd15fbeced (bug 1560038)
Backed out changeset 570aa7aaceb5 (bug 1560038)
Backed out changeset fc4da4a1c192 (bug 1560038)
Backed out changeset 7c69b0e5fd93 (bug 1560038)
Backed out changeset 1caf41590caf (bug 1560038)
Backed out changeset b4bf28bec6a8 (bug 1560038)
Backed out changeset e923de659c2b (bug 1560038)
Backed out changeset 7f1be4424898 (bug 1560038)
2020-03-10 22:22:40 +02:00
Zibi Braniecki e61d360bfc Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-10 18:03:59 +00:00
Simon Fraser 54f21ea31e Bug 1619554 Improve performance of |mach try fuzzy| preview r=ahal
Remove use of requests module in preview pane

Reformat task duration data to avoid reprocessing in preview pane

Avoid loading task durations json more than once.

Increase required fzf version, use temporary file instead of arglist

Differential Revision: https://phabricator.services.mozilla.com/D65094

--HG--
extra : moz-landing-system : lando
2020-03-05 19:58:43 +00:00
Simon Giesecke fcd4872d20 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in tools. r=mstange
Depends on D66013

Differential Revision: https://phabricator.services.mozilla.com/D66015

--HG--
extra : moz-landing-system : lando
2020-03-10 08:48:24 +00:00
Narcis Beleuzu 365aeaff76 Backed out changeset 4074abe0bef9 (bug 1620549) for asan failures on platform.cpp . CLOSED TREE
--HG--
extra : rebase_source : 53b0bfc09cc480c1bec00e450f8e212bbf278af8
2020-03-10 00:42:18 +02:00
Michael Forney 2f52a5db77 Bug 1620549 - Set stack size of profiler sampler thread to N_STACK_BYTES + 20 KiB r=gerald,mstange
N_STACK_BYTES are needed to store backtrace information, so use
that plus some extra as the minimum stack size for the sampler
thread to ensure that it doesn't overflow.

Differential Revision: https://phabricator.services.mozilla.com/D65705

--HG--
extra : moz-landing-system : lando
2020-03-09 20:23:16 +00:00
Gijs Kruitbosch f1a04bd343 Bug 1618188 - remove XML backend for plugin and add-on blocklisting, r=mconley,perftest-reviewers,whimboo
This removes the obsolete backend. Notes on some of the less obvious changes
made as part of this patch:

- some of the gFoo style getters in Blocklist.jsm were only used by the XML
  version of the blocklist; I've removed them and tried to remove spurious
  settings of those properties in the remaining tests.
- some utility methods (e.g. distribution information getters) were also only
  used for the XML version (for the update URL).
- it's no longer necessary to test switching implementations.
- in browser/base/content/test/plugins/, we ran some tests from two manifests
  in order to run them with both blocklist backends. The simplest way of
  reducing this back down to one was to remove the remote-settings one. If I'd
  been more future-oriented when I created the duplication, perhaps I would
  have moved the XML version out into a different manifest instead, but I
  didn't, so now it looks like we're removing the modern one, whereas really
  we're going to be running the modern one as part of the "normal" tests and
  we're no longer running the "old" tests.
- removed all mentions I could see of extensions.blocklist.url which is no
  longer used for anything.
- per https://bugzilla.mozilla.org/show_bug.cgi?id=1016555#c23, updated
  references for the OneCRL timing and how it relates to blocklist updates.

Differential Revision: https://phabricator.services.mozilla.com/D64933

--HG--
extra : moz-landing-system : lando
2020-03-09 12:02:17 +00:00
Sylvestre Ledru 260f01d445 no bug - mozlint/codespell - Add two docs directories in the list + fix typos r=marco DONTBUILD
Depends on D65911

Differential Revision: https://phabricator.services.mozilla.com/D65912

--HG--
extra : moz-landing-system : lando
2020-03-09 10:43:14 +00:00
Sylvestre Ledru 3baed30511 Bug 1620860 - mozlint/yamllint - Fix the python path include r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D65908

--HG--
extra : moz-landing-system : lando
2020-03-09 10:13:45 +00:00
Mark Banner c33838afba Bug 1620218 - Update Prettier to 1.18.2 and other ESLint modules to the latest versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D65510

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:23 +00:00
Mark Banner 2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Tom Prince 5a52cec97c No bug: Fix missing space in `mach try syntax` help text.
Differential Revision: https://phabricator.services.mozilla.com/D65840

--HG--
extra : moz-landing-system : lando
2020-03-07 01:27:13 +00:00
Arthur Iakab 7944f5d0c9 Backed out changeset 9930f4d0e821 (bug 1620549) for causing build bustages on platform-linux-android.cpp
CLOSED TREE
2020-03-07 03:47:44 +02:00
Michael Forney 4fa7b340c0 Bug 1620549 - Set stack size of profiler sampler thread to N_STACK_BYTES + 20 KiB r=gerald,mstange
N_STACK_BYTES are needed to store backtrace information, so use
that plus some extra as the minimum stack size for the sampler
thread to ensure that it doesn't overflow.

Differential Revision: https://phabricator.services.mozilla.com/D65705

--HG--
extra : moz-landing-system : lando
2020-03-07 01:16:28 +00:00
alexandru.ionescu 2ac76df563 Bug 1620163 Fix perfdocs to not skip missing tests r=sparky,perftest-reviewers
There is a logic error in the code that is not catching missing tests. Also, the manifest path for each test needs to be added along with the test name so the logger can be able to print it.

Differential Revision: https://phabricator.services.mozilla.com/D65473

--HG--
extra : moz-landing-system : lando
2020-03-05 13:13:00 +00:00
Nicholas Nethercote c22c891c55 Bug 1604095 - Add `fix_stacks.py`, which uses `fix-stacks`, and use it in DMD. r=gsvelto
On Linux and Mac, this makes `dmd.py` *much* faster when it is first run on a
DMD data file.

On Windows, this makes DMD actually usable locally. Previously the stacks
weren't fixed and so were rubbish.

Differential Revision: https://phabricator.services.mozilla.com/D57271

--HG--
extra : moz-landing-system : lando
2020-03-05 00:24:23 +00:00
Edwin Takahashi 6e6db2f667 Bug 1620044 - remove unnecessary debian and ubuntu-bionic codepaths r=jmaher
Changes:

Remove `ubuntu-bionic` flag that was used during development to enable use of ubuntu1804-test docker image.

Remove unnecessary conditional and in the process rewrite how `runtests.py` checks the environment for `pactl` prior to running mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D65389

--HG--
extra : moz-landing-system : lando
2020-03-04 20:47:43 +00:00
Mike Hommey 1a58a0ff4f Bug 1619865 - Support pdb paths with forward slashes. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D65286

--HG--
extra : moz-landing-system : lando
2020-03-04 08:02:42 +00:00
Nazım Can Altınova eb62d34bc6 Bug 1616622 - Increase the buffer limit and refactor the java code r=gerald,julienw
Differential Revision: https://phabricator.services.mozilla.com/D64754

--HG--
extra : moz-landing-system : lando
2020-03-03 17:14:19 +00:00
Nazım Can Altınova d0a7abbc3d Bug 1616622 - Remove the SparseArray from the samples array since we only profile the main thread. r=julienw
Currently we only profile the Java Main Thread, and don't profile anything
else. This is not ideal, but this is how it works right now. And inside the
code index `0` was hardcoded on the most parts of the code. We can rollback
this patch once we want to implement profiling more than one thread, or we can
think about something more clever.

Differential Revision: https://phabricator.services.mozilla.com/D64752

--HG--
extra : moz-landing-system : lando
2020-03-03 17:10:19 +00:00
Dorel Luca 61edf989ef Backed out changeset 156832378185 (bug 1619094) for build bustages. CLOSED TREE
--HG--
extra : amend_source : 9470c89b8508ee8d4834b11a75e5c88106718388
2020-03-03 19:19:08 +02:00
Sylvestre Ledru a3f90e6cec Bug 1619094 - move dom/webauthn/libudev-sys in third_party/rust r=jcj
And move from 0.1.3 to 0.1.4

Differential Revision: https://phabricator.services.mozilla.com/D64877

--HG--
extra : moz-landing-system : lando
2020-03-03 16:52:09 +00:00
Sylvestre Ledru 8afe4a17d7 Bug 1578058 - Disable the yaml test on Mac r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D63029

--HG--
extra : moz-landing-system : lando
2020-02-21 17:06:14 +00:00
Sylvestre Ledru 0701436c73 Bug 1617369 - Reformat tools/profiler/rust-helper/ using rustfmt r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D64869

--HG--
extra : moz-landing-system : lando
2020-03-02 17:53:48 +00:00
Alessio Placitelli 9b5a7488a6 Bug 1602773 - Fix ./mach lint -l yaml to use the vendored yamllint. r=ahal CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D64400

Depends on D64320

--HG--
extra : histedit_source : 9bfa3dd3884466fab6bec130692b362fe0ba0f4e
2020-03-02 15:40:04 +00:00
Mihai Alexandru Michis ca56e2705d Backed out 3 changesets (bug 1602773) for causing lint failures.
CLOSED TREE

Backed out changeset 01548614184b (bug 1602773)
Backed out changeset 430c8e6b0c5a (bug 1602773)
Backed out changeset 1b4e2b044fcd (bug 1602773)
2020-03-02 18:29:16 +02:00
Alessio Placitelli f02eb5ecda Bug 1602773 - Fix ./mach lint -l yaml to use the vendored yamllint. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D64400

--HG--
extra : moz-landing-system : lando
2020-03-02 15:40:04 +00:00
Sylvestre Ledru 74847a316b Bug 1619159 - Reference the code coverage doc r=marco
Depends on D64903

Differential Revision: https://phabricator.services.mozilla.com/D64904

--HG--
extra : moz-landing-system : lando
2020-03-02 15:43:38 +00:00
Sylvestre Ledru 5c0647fe0a Bug 1619159 - Refresh the code coverage doc r=marco
Depends on D64902

Differential Revision: https://phabricator.services.mozilla.com/D64903

--HG--
extra : moz-landing-system : lando
2020-03-02 15:43:20 +00:00
Sylvestre Ledru 30bee79d50 Bug 1619159 - Import the code coverage doc from mdn to in-tree r=marco
No change:
$ pandoc -trst https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Testing/Measuring_Code_Coverage_on_Firefox\?raw\=1 > index.rst

Differential Revision: https://phabricator.services.mozilla.com/D64902

--HG--
extra : moz-landing-system : lando
2020-03-02 15:42:14 +00:00
Gerald Squelart 6a8de0643e Bug 1618406 - Replace BlocksRingBuffer::BlockIndex with ProfileBufferBlockIndex - r=gregtatum,canaltinova
To facilitate the upcoming transition to a new Fission-friendly storage, all
uses of `BlocksRingBuffer::{,Block}Index` are replaced with
`ProfileBuffer{,Block}Index`.

`BlocksRingBuffer::{,Block}Index` are not needed anymore.

Differential Revision: https://phabricator.services.mozilla.com/D64516

--HG--
extra : moz-landing-system : lando
2020-03-02 05:34:26 +00:00
Mike Hommey f9285c1941 Bug 1618760 - Remove MSVC-specific include hacks in header wrappers. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D64708

--HG--
extra : moz-landing-system : lando
2020-02-28 21:41:18 +00:00
Andrew Halberstadt 8649491808 Bug 1618633 - Add --disable-target-task-filter to |mach try fuzzy| to bypass task filtering, r=jgraham
In |mach try fuzzy| there's a TARGET_TASK_FILTERS variable that we use to make
it more difficult to run certain kinds of expensive / resource constrained
tasks. The problem is that the only way to run these is to use '--full' at
which point there's no way to distinguish which tasks are "valid" (i.e run on
mozilla-central) and which tasks don't.

This adds a flag that will ensure the default set truly matches what we run
on central.

Differential Revision: https://phabricator.services.mozilla.com/D64648

--HG--
extra : moz-landing-system : lando
2020-02-28 20:56:10 +00:00