Commit Graph

6626 Commits

Author SHA1 Message Date
Julian Descottes
efc5cfeb74 Bug 1550213 - Fix devtools try preset r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D30430

--HG--
extra : moz-landing-system : lando
2019-05-08 22:14:20 +00:00
Mike Shal
34df9ef9e5 Bug 1548785 - Remove suggestion to pass '--git' to 'mach vcs-setup'; r=froydnj
Bug 1484243 removed the --git argument and made the VCS auto-detected,
so we should no longer suggest passing in that argument in error
messages.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 20:33:43 +00:00
Mark Banner
7893e89b5e Bug 1548922 - Fix handling of spread operators when checking the ESLint rule no-define-cc-etc. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D30168

--HG--
extra : moz-landing-system : lando
2019-05-07 16:40:23 +00:00
Gijs Kruitbosch
d8a027e065 Bug 1257565 - switch gfx blocklist over to kinto-based storage, r=leplatrem,aswan
Differential Revision: https://phabricator.services.mozilla.com/D29833

--HG--
rename : toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist.xml => toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist.json
rename : toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist2.xml => toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist2.json
rename : toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist_AllOS.xml => toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist_AllOS.json
rename : toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist_OSVersion.xml => toolkit/mozapps/extensions/test/xpcshell/data/test_gfxBlacklist_OSVersion.json
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/head.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/head.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_blocklist_gfx.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_gfx.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_Device.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Device.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_DriverNew.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_DriverNew.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_Equal_DriverNew.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Equal_DriverNew.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_Equal_DriverOld.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Equal_DriverOld.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_Equal_OK.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Equal_OK.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_GTE_DriverOld.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_GTE_DriverOld.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_GTE_OK.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_GTE_OK.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_No_Comparison.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_No_Comparison.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_OK.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OK.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_OS.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OS.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_OSVersion_match.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OSVersion_match.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_OSVersion_mismatch_DriverVersion.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OSVersion_mismatch_DriverVersion.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_OSVersion_mismatch_OSVersion.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OSVersion_mismatch_OSVersion.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_Vendor.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Vendor.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_Version.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Version.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/test_gfxBlacklist_prefs.js => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_prefs.js
rename : toolkit/mozapps/extensions/test/xpcshell/xml-blocklist/xpcshell.ini => toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/xpcshell.ini
extra : moz-landing-system : lando
2019-05-07 00:55:32 +00:00
Nick Alexander
730a0a46f2 Bug 1543247 - Part 2: Install visualmetrics.py prerequisites. r=ahal
Under the hood, browsertime invokes a certain `visualmetrics.py`
script.  That script depends on `ffmpeg` and ImageMagick's `convert`,
`compare`, and `mogrify` commands.  It also depends on certain Python
packages.

So this installs those dependencies, and then wires up the evaluation
environment such that `./mach browsertime` can find the dependencies.
It also adds a `./mach visualmetrics` command for processing a
captured MP4 file in the same way that browsertime processes such a
file.

In order to avoid downloading dependencies multiple time, the existing
artifact cache is extracted.  This is a small first step towards [Bug
1526021](https://bugzilla.mozilla.org/show_bug.cgi?id=1526021), which
might want to use this artifact cache as well.

At this time, hashes and filesizes are not verified.  During
development, the upstream files changed multiple times, and it's not
worth being completely locked down while experimenting with this
functionality.  If we start running this code in automation or in more
sensitive environments, we can build fetch tasks and TC indexes to
streamline the artifact gathering process.

It is expected that a future mach command will want to invoke
browsertime without suffering the overhead of invoking Python (and
mach, which is itself bulky) so a nod is given to exposing the
relevant environment pieces.

During testing, it was discovered that [MozillaBuild doesn't ship
git](https://bugzilla.mozilla.org/show_bug.cgi?id=1503028), so that
git repositories can't be used out-of-the-box on Windows.  So instead
we use a [tarball link from github.com/$USER/$REPO/tarball/$COMMIT-LIKE](https://github.blog/2008-03-03-tarball-downloads/).

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

--HG--
rename : python/mozbuild/mozbuild/test/test_artifacts.py => python/mozbuild/mozbuild/test/test_artifact_cache.py
extra : moz-landing-system : lando
2019-05-06 23:56:59 +00:00
Nick Alexander
a7e3d82701 Bug 1543247 - Part 1: Add mach browsertime command that installs and invokes browsertime. r=Standard8,ahal
[browsertime](https://github.com/sitespeedio/browsertime) is a harness
for running performance tests, similar to Mozilla's Raptor testing
framework.  The Performance Team is using it locally with some
success, but we're running a heavily modified toolchain that is
challenging to install.  This mach command is intended to be leverage
for getting more folks able to use browsertime easily.

In particular, the version of browsertime that this installs has
nalexander's changes to support testing GeckoView-based vehicles.  If
this approach meets with approval, I'll continue to follow-up with
additional configuration and tooling layers to make it even easier to
drive GeckoView-based vehicles.

I elected to piggy-back install on the eslint installation process,
since this is very similar.  To that end, I generalized what was there
very slightly.  I elected not to try to move the existing code into a
more obvious shared location, although it might be possible, because
it wasn't clear what contexts the existing code would be invoked
from.  In particular I wasn't certain the code could rely on a
complete mozbuild checkout.

I did need to ensure the local Node.js binary is early on the PATH;
this was an issue I ran into with my initial Node/Yarn prototyping
many months ago.  At heart the issue is that package scripts in the
wild invoke a bare `node` or `npm` command; if there was a culture of
invoking $NODE or $NPM, this wouldn't be necessary.  There's no harm
doing it for ESlint, and it will help the next person who wants to
install an NPM package for tooling in this manner.

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

--HG--
extra : moz-landing-system : lando
2019-05-06 23:56:49 +00:00
Razvan Maries
12bcfbb334 Backed out 2 changesets (bug 1543247) for build bustages. CLOSED TREE
Backed out changeset feb726e4f15d (bug 1543247)
Backed out changeset 4b3619d89abd (bug 1543247)
2019-05-04 03:10:55 +03:00
Nick Alexander
7128d7e528 Bug 1543247 - Part 2: Install visualmetrics.py prerequisites. r=ahal
Under the hood, browsertime invokes a certain `visualmetrics.py`
script.  That script depends on `ffmpeg` and ImageMagick's `convert`,
`compare`, and `mogrify` commands.  It also depends on certain Python
packages.

So this installs those dependencies, and then wires up the evaluation
environment such that `./mach browsertime` can find the dependencies.
It also adds a `./mach visualmetrics` command for processing a
captured MP4 file in the same way that browsertime processes such a
file.

In order to avoid downloading dependencies multiple time, the existing
artifact cache is extracted.  This is a small first step towards [Bug
1526021](https://bugzilla.mozilla.org/show_bug.cgi?id=1526021), which
might want to use this artifact cache as well.

At this time, hashes and filesizes are not verified.  During
development, the upstream files changed multiple times, and it's not
worth being completely locked down while experimenting with this
functionality.  If we start running this code in automation or in more
sensitive environments, we can build fetch tasks and TC indexes to
streamline the artifact gathering process.

It is expected that a future mach command will want to invoke
browsertime without suffering the overhead of invoking Python (and
mach, which is itself bulky) so a nod is given to exposing the
relevant environment pieces.

During testing, it was discovered that [MozillaBuild doesn't ship
git](https://bugzilla.mozilla.org/show_bug.cgi?id=1503028), so that
git repositories can't be used out-of-the-box on Windows.  So instead
we use a [tarball link from github.com/$USER/$REPO/tarball/$COMMIT-LIKE](https://github.blog/2008-03-03-tarball-downloads/).

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

--HG--
extra : moz-landing-system : lando
2019-05-03 22:45:22 +00:00
Nick Alexander
6df6c7ee39 Bug 1543247 - Part 1: Add mach browsertime command that installs and invokes browsertime. r=Standard8,ahal
[browsertime](https://github.com/sitespeedio/browsertime) is a harness
for running performance tests, similar to Mozilla's Raptor testing
framework.  The Performance Team is using it locally with some
success, but we're running a heavily modified toolchain that is
challenging to install.  This mach command is intended to be leverage
for getting more folks able to use browsertime easily.

In particular, the version of browsertime that this installs has
nalexander's changes to support testing GeckoView-based vehicles.  If
this approach meets with approval, I'll continue to follow-up with
additional configuration and tooling layers to make it even easier to
drive GeckoView-based vehicles.

I elected to piggy-back install on the eslint installation process,
since this is very similar.  To that end, I generalized what was there
very slightly.  I elected not to try to move the existing code into a
more obvious shared location, although it might be possible, because
it wasn't clear what contexts the existing code would be invoked
from.  In particular I wasn't certain the code could rely on a
complete mozbuild checkout.

I did need to ensure the local Node.js binary is early on the PATH;
this was an issue I ran into with my initial Node/Yarn prototyping
many months ago.  At heart the issue is that package scripts in the
wild invoke a bare `node` or `npm` command; if there was a culture of
invoking $NODE or $NPM, this wouldn't be necessary.  There's no harm
doing it for ESlint, and it will help the next person who wants to
install an NPM package for tooling in this manner.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 22:44:23 +00:00
Matthew Noorenberghe
fb5759c88d Bug 1546757 - Output statedir in code snippet for testing taskgraph watchman trigger. r=ahal
Otherwise `statedir` is always ""

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

--HG--
extra : moz-landing-system : lando
2019-05-03 18:29:57 +00:00
Boris Zbarsky
1f3596354d Bug 1547923 part 2. Remove Promise::GlobalJSObject. r=mccr8
Promise::Compartment is unused.

The callers that want to call AutoJSAPI::Init can pass it an nsIGlobalObject,
which is actually _more_ efficient, since passing a JSObject just gets an
nsIGlobalObject from it and passes that.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 18:38:04 +00:00
Andrew Halberstadt
4eeb57f7c1 Bug 1546757 - [tryselect] Always cache both the full_task_set and target_task_set when generating tasks, r=tomprince
Since we need to generate the full_task_set as a prereq to the target_task_set,
and since getting from full_task_set -> target_task_set is trivial.. we might
as well save both computed sets to the cache while we have them. This means users
that run:

$ ./mach try fuzzy

and then run:

$ ./mach try fuzzy --full

(or vice versa)

Will only incur task generation once. It also means that the 'watchman' trigger
will cache both taskgraphs.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 02:26:57 +00:00
Andrew Halberstadt
86e7b04de4 Bug 1546757 - [tryselect] Add a watchman trigger to rebuild the taskgraph cache in the background, r=tomprince
This adds a 'watchman.json' file to /tools/tryselect and some documentation on
how to use it. Tl;dr, install watchman and then:

$ cd path/to/gecko
$ watchman -j < tools/tryselect/watchman.json

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

--HG--
extra : moz-landing-system : lando
2019-05-02 16:45:19 +00:00
Andrew Halberstadt
a33e10de46 Bug 1546757 - [tryselect] Provide defaults to generate_tasks arguments, r=Callek
This allows consumers to call 'generate_tasks()' without arguments.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 16:41:47 +00:00
Nazım Can Altınova
003577d631 Bug 1542918 - Disable the assertion in profiler page registration until we fix it r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D29637

--HG--
extra : moz-landing-system : lando
2019-05-02 17:02:01 +00:00
Markus Stange
69c87a12c5 Bug 1548371 - Fix --enable-task-tracer build. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D29559

--HG--
extra : moz-landing-system : lando
2019-05-02 11:09:11 +00:00
Axel Hecht
bcc7eeb6bd Bug 1353680, create test to prevent bad content in localizable strings, r=ahal,flod
Differential Revision: https://phabricator.services.mozilla.com/D20465

--HG--
extra : moz-landing-system : lando
2019-05-02 10:50:43 +00:00
Sylvestre Ledru
e226046cb8 Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Joel Maher
6611f95ab0 Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:16:44 +00:00
Nazım Can Altınova
69592e8ad5 Bug 1543632 - Part 3: Add some tests for profile page information r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D27679

--HG--
extra : moz-landing-system : lando
2019-04-30 09:50:24 +00:00
Nazım Can Altınova
9411dd7ebb Bug 1543632 - Part 2: Add ClearAllPages function to idl and implement it for pre-test cleanup r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D27678

--HG--
extra : moz-landing-system : lando
2019-04-30 09:58:14 +00:00
Nazım Can Altınova
bf5ead8db6 Bug 1543632 - Part 1: Move xpcshell tests under tools/profiler/tests to their own dir r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D27676

--HG--
rename : tools/profiler/tests/head_profiler.js => tools/profiler/tests/xpcshell/head_profiler.js
rename : tools/profiler/tests/test_asm.js => tools/profiler/tests/xpcshell/test_asm.js
rename : tools/profiler/tests/test_enterjit_osr.js => tools/profiler/tests/xpcshell/test_enterjit_osr.js
rename : tools/profiler/tests/test_enterjit_osr_disabling.js => tools/profiler/tests/xpcshell/test_enterjit_osr_disabling.js
rename : tools/profiler/tests/test_enterjit_osr_enabling.js => tools/profiler/tests/xpcshell/test_enterjit_osr_enabling.js
rename : tools/profiler/tests/test_feature_mainthreadio.js => tools/profiler/tests/xpcshell/test_feature_mainthreadio.js
rename : tools/profiler/tests/test_get_features.js => tools/profiler/tests/xpcshell/test_get_features.js
rename : tools/profiler/tests/test_pause.js => tools/profiler/tests/xpcshell/test_pause.js
rename : tools/profiler/tests/test_run.js => tools/profiler/tests/xpcshell/test_run.js
rename : tools/profiler/tests/test_shared_library.js => tools/profiler/tests/xpcshell/test_shared_library.js
rename : tools/profiler/tests/test_start.js => tools/profiler/tests/xpcshell/test_start.js
rename : tools/profiler/tests/xpcshell.ini => tools/profiler/tests/xpcshell/xpcshell.ini
extra : moz-landing-system : lando
2019-04-30 09:49:53 +00:00
Gerald Squelart
42078ccd2f Bug 1520238 - Measure memory by default when MOZ_PROFILER_STARTUP is set - r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D25712

--HG--
extra : moz-landing-system : lando
2019-04-30 01:42:23 +00:00
Gerald Squelart
c842141dfe Bug 1520238 - Record memory counters when requested (at startup or from the add-on) - r=mstange
Memory tracks are fed from a memory counter, which is unconditionally installed
from profiler_start(). This means:
- It is installed even if memory measurements are not requested.
- Startup profiling doesn't use profiler_start() and therefore never starts
  recording memory.

Because installing the memory counter may need to take the (non-recursive)
profiler lock, it cannot simply be installed from the common
`locked_profiler_start()` function.
Instead, it will have to be installed after each `locked_profiler_start()` call.

Also, it should only be installed if the "memory" feature is requested.

That "memory" feature is now considered available only if Firefox was built with
MOZ_REPLACE_MALLOC and MOZ_PROFILER_MEMORY. (This may effectively prevent the
old RSS&USS memory reporting which doesn't depend on these #defines, but This Is
Fine as it is not used anymore and slated for removal in bug 1521929.)

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

--HG--
extra : moz-landing-system : lando
2019-04-30 01:42:05 +00:00
Gerald Squelart
3278932a1f Bug 1540114 - Use bigger buffer when MOZ_PROFILER_STARTUP is set - r=mstange
Startup-profiling usually needs to capture more data, especially on slower
systems, so the default is changed to 10 million entries when
MOZ_PROFILER_STARTUP is set.

Also:
- Changed #define into `static constexpr` with the same type as expected by
`profiler_start()`.
- Better validity check of MOZ_PROFILER_STARTUP_ENTRIES.
- Defaults are shown in MOZ_PROFILER_HELP.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 01:41:39 +00:00
Gerald Squelart
5919d66cd1 Bug 1540114 - Select all defaults in MOZ_PROFILER_STARTUP_FEATURES with keyword "default" - r=mstange
MOZ_PROFILER_FEATURES is mostly used to add features in addition to the
defaults. This will now be easier, e.g.:
`MOZ_PROFILER_STARTUP_FEATURES=default,screenshots`

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

--HG--
extra : moz-landing-system : lando
2019-04-30 01:41:19 +00:00
Gerald Squelart
fd32cddd4c Bug 1540114 - Bail out if any of the MOZ_PROFILER_STARTUP_FEATURES is not recognized - r=mstange
It is too easy to mistype a feature name, and be confused or misled by the
results. This patch will catch such errors.

The previous code was going through each possible feature, seeing if it was in
MOZ_PROFILER_STARTUP_FEATURES -- Meaning unknown names would just be ignored.
The new code is doing the reverse: Going through all names in
MOZ_PROFILER_STARTUP_FEATURES, trying to match each one with possible features;
if not found, we indicate the first name that is unknown, show the help and
exit.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 01:46:09 +00:00
Gerald Squelart
6f6c076612 Bug 1540114 - Display features in MOZ_PROFILER_HELP - r=mstange
Show the list of MOZ_PROFILER_STARTUP_FEATURES with their value, name,
description, and whether they are default and/or available on this platform.

Feature descriptions are now provided in PROFILER_FOR_EACH_FEATURE.
Available features and defaults are now defined in one place, for easier
maintenance.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 01:40:34 +00:00
Gerald Squelart
34fce39c37 Bug 1520104 - Using Hashmap instead of nsXHashTable - r=mstange
Moving to non-XPCOM data structures, to help with upcoming transfer to mozglue.

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

--HG--
extra : moz-landing-system : lando
2019-04-29 11:42:17 +00:00
Gerald Squelart
d736c2ae18 Bug 1520104 - Using Vector instead of nsTArray - r=mstange
Moving to non-XPCOM data structures, to help with upcoming transfer to mozglue.

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

--HG--
extra : moz-landing-system : lando
2019-04-29 11:41:52 +00:00
Gerald Squelart
79990a9b51 Bug 1520104 - Fix profiler non-unified build - r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D24696

--HG--
extra : moz-landing-system : lando
2019-04-29 11:41:22 +00:00
Gerald Squelart
6b4596ee89 Bug 1545351 - Add some missing namespaces in macros - r=mstange
Some macros would not work if they were used in a context where `namespace
mozilla` is not directly accessible. Fixed by added appropriate `mozilla::`
specifiers.

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

--HG--
extra : moz-landing-system : lando
2019-04-29 06:33:26 +00:00
Ola Gasidlo
902b74cd81 Bug 1543656 - Added node_modules folder in jest tests to list so it will be ignored by linter. r=ladybenko,sylvestre,jdescottes
As the third-party node modules are throwing errors while running ./mach lint, the path was added to the ignore list for third party folders / files.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 13:11:06 +00:00
Geoff Brown
105f46a3c6 Bug 1250737 - Update android mozharness 'chunked' handling, for jittest; r=bc
It turns out there are several places where the change to suite 'jittest-chunked'
causes problem. I am abandoning that approach.
Desktop uses this trick, and this returns android '-chunked' handling to a state
similar to what it was before I started messing around!

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

--HG--
extra : moz-landing-system : lando
2019-04-25 21:17:59 +00:00
Geoff Brown
450e774300 Bug 1546922 - Update tryselect unit test name for android jittest; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D28836

--HG--
extra : moz-landing-system : lando
2019-04-25 13:46:48 +00:00
Brian Grinstead
08992fb8e8 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

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

--HG--
extra : moz-landing-system : lando
2019-04-24 19:43:57 +00:00
Andrew Halberstadt
165e3bd55b Bug 1546718 - [tryselect] Add ability to post-filter fuzzy presets interactively, r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D28713

--HG--
extra : moz-landing-system : lando
2019-04-24 19:36:03 +00:00
neha
5f0ca32845 Bug 1545054 - Define a new preset for netmonitor-tests r=Honza,ahal,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D28031

--HG--
extra : moz-landing-system : lando
2019-04-23 18:31:19 +00:00
Brian Grinstead
d71db0e638 Bug 1546471 - Add a new try preset for talos when making changes to the browser chrome r=mconley
This skips a number of talos jobs that are unlikely to be affected
by due a browser-chrome specific change

Run with: `./mach try fuzzy --preset perf-chrome`

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

--HG--
extra : moz-landing-system : lando
2019-04-23 18:24:46 +00:00
Thomas Wisniewski
b6f52532c4 Bug 1500474 - Rename webcompat-reporter directory to report-site-issue r=florian,Pike
Differential Revision: https://phabricator.services.mozilla.com/D17890

--HG--
rename : browser/extensions/webcompat-reporter/.eslintrc.js => browser/extensions/report-site-issue/.eslintrc.js
rename : browser/extensions/webcompat-reporter/background.js => browser/extensions/report-site-issue/background.js
rename : browser/extensions/webcompat-reporter/experimentalAPIs/aboutConfigPrefs.js => browser/extensions/report-site-issue/experimentalAPIs/aboutConfigPrefs.js
rename : browser/extensions/webcompat-reporter/experimentalAPIs/aboutConfigPrefs.json => browser/extensions/report-site-issue/experimentalAPIs/aboutConfigPrefs.json
rename : browser/extensions/webcompat-reporter/experimentalAPIs/browserInfo.js => browser/extensions/report-site-issue/experimentalAPIs/browserInfo.js
rename : browser/extensions/webcompat-reporter/experimentalAPIs/browserInfo.json => browser/extensions/report-site-issue/experimentalAPIs/browserInfo.json
rename : browser/extensions/webcompat-reporter/experimentalAPIs/l10n.js => browser/extensions/report-site-issue/experimentalAPIs/l10n.js
rename : browser/extensions/webcompat-reporter/experimentalAPIs/l10n.json => browser/extensions/report-site-issue/experimentalAPIs/l10n.json
rename : browser/extensions/webcompat-reporter/experimentalAPIs/pageActionExtras.js => browser/extensions/report-site-issue/experimentalAPIs/pageActionExtras.js
rename : browser/extensions/webcompat-reporter/experimentalAPIs/pageActionExtras.json => browser/extensions/report-site-issue/experimentalAPIs/pageActionExtras.json
rename : browser/extensions/webcompat-reporter/experimentalAPIs/tabExtras.js => browser/extensions/report-site-issue/experimentalAPIs/tabExtras.js
rename : browser/extensions/webcompat-reporter/experimentalAPIs/tabExtras.json => browser/extensions/report-site-issue/experimentalAPIs/tabExtras.json
rename : browser/extensions/webcompat-reporter/icons/lightbulb.svg => browser/extensions/report-site-issue/icons/lightbulb.svg
rename : browser/extensions/webcompat-reporter/locales/en-US/webcompat.properties => browser/extensions/report-site-issue/locales/en-US/webcompat.properties
rename : browser/extensions/webcompat-reporter/locales/jar.mn => browser/extensions/report-site-issue/locales/jar.mn
rename : browser/extensions/webcompat-reporter/locales/moz.build => browser/extensions/report-site-issue/locales/moz.build
rename : browser/extensions/webcompat-reporter/manifest.json => browser/extensions/report-site-issue/manifest.json
rename : browser/extensions/webcompat-reporter/moz.build => browser/extensions/report-site-issue/moz.build
rename : browser/extensions/webcompat-reporter/test/browser/browser.ini => browser/extensions/report-site-issue/test/browser/browser.ini
rename : browser/extensions/webcompat-reporter/test/browser/browser_button_state.js => browser/extensions/report-site-issue/test/browser/browser_button_state.js
rename : browser/extensions/webcompat-reporter/test/browser/browser_disabled_cleanup.js => browser/extensions/report-site-issue/test/browser/browser_disabled_cleanup.js
rename : browser/extensions/webcompat-reporter/test/browser/browser_report_site_issue.js => browser/extensions/report-site-issue/test/browser/browser_report_site_issue.js
rename : browser/extensions/webcompat-reporter/test/browser/fastclick1.html => browser/extensions/report-site-issue/test/browser/fastclick1.html
rename : browser/extensions/webcompat-reporter/test/browser/fastclick2.html => browser/extensions/report-site-issue/test/browser/fastclick2.html
rename : browser/extensions/webcompat-reporter/test/browser/head.js => browser/extensions/report-site-issue/test/browser/head.js
rename : browser/extensions/webcompat-reporter/test/browser/test.html => browser/extensions/report-site-issue/test/browser/test.html
rename : browser/extensions/webcompat-reporter/test/browser/webcompat.html => browser/extensions/report-site-issue/test/browser/webcompat.html
extra : moz-landing-system : lando
2019-04-23 17:36:40 +00:00
Andrew Halberstadt
48648a7344 Bug 1523303 - Align mozharness suite names with the ones in 'moztest.resolve', r=gbrown
This officially makes 'moztest.resolve' the source of truth when it comes to
suite names. It aligns that file with the names used in both the
desktop_unittest and android_emulator_unittest scripts.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 22:32:34 +00:00
Andrew Halberstadt
14be9536c1 Bug 1523303 - [taskgraph] Define suite "categories" rather than flavours task configs, r=gbrown
Currently we have the concept of a "suite" and a "flavour" in our task
configuration.  Typically, the "suite" refers to the high-level test harness
like "mochitest" or "reftest", whereas the flavour is more specific, e.g
"browser-chrome-instrumentation" or "crashtest". However the line between suite
and flavour is not applied with any semblance of consistency which results in
inconsistent naming throughout the tree.

This patch gets rid of the concept of "flavours" entirely (at least when it
comes to task configuration). A suite is a type of test run, for example:

    - mochitest-plain
    - mochitest-devtools-chrome
    - mochitest-browser-chrome-instrumentation
    - jsreftest
    - reftest
    - firefox-ui-functional-remote
    etc

There is no confusion here between suites and flavours because flavours don't
exist. However, there are a couple of places where we *do* need to know what
"test harness" is used to run a suite. These cases are:

    1. For SCHEDULES moz.build rules
    2. For the desktop_unittest.py mozharness script which takes arguments like
       --mochitest-suite=browser (this is not a compelling use of this information
       and should be refactored to work more like the android_emulator_unittest.py
       script)

So to get this information, this patch introduces a new concept of a "category"
which is the overall "test harness" that runs the suite. For many suites, the
"category" is identical to the suite name. Unlike flavours, "categories" have
no bearing on how we call or refer to the suite.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 20:44:01 +00:00
Andrew Halberstadt
a35fbb3478 Bug 1546100 - [tryselect] Fix tools/tryselect/test/test_fuzzy.py, r=jmaher
This was regressed by bug 1544816 but the test never ran on the push that regressed.
This patch also updates the 'files-changed' for the tryselect task.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 18:38:58 +00:00
Andi-Bogdan Postelnicu
32fe00ed34 Bug 1544764 - Add description at review phase about defects found - clang-tidy. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D27669

--HG--
extra : moz-landing-system : lando
2019-04-18 08:49:52 +00:00
Andi-Bogdan Postelnicu
7f77f4efdf Bug 1544767 - Add description at review phase about defects found - coverity. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D27876

--HG--
extra : moz-landing-system : lando
2019-04-18 08:52:31 +00:00
Christian Holler
a15a27b2f0 Bug 1544400 - Update fuzzing builds to Clang 8 and use gold. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D27701

--HG--
extra : moz-landing-system : lando
2019-04-18 08:28:29 +00:00
Csoregi Natalia
feb0789249 Backed out changeset 7cefdbb63711 (bug 1544764) for static-analysis bustage on clang-analyzer-deadcode.DeadStores.cpp. CLOSED TREE 2019-04-18 00:33:29 +03:00
Andi-Bogdan Postelnicu
bbedccc1b9 Bug 1544764 - Add description at review phase about defects found - clang-tidy. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D27669

--HG--
extra : moz-landing-system : lando
2019-04-17 16:16:42 +00:00
Ian Moody
ced8871783 Bug 1544285 - tools/ automated ESLint no-throw-literal fixes. r=dbaron
Result of running:
$ mach eslint -funix tools/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-04-16 15:02:05 +00:00
Brian Grinstead
ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00