9388 Commits

Author SHA1 Message Date
Nihanth Subramanya
e6d5cae88b Bug 1731780 - Reject .only() chained onto add_task in tests. r=Gijs,mythmon,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D128027
2021-10-13 21:26:40 +00:00
Mathew Hodson
3df2d4789a Bug 1734971 - Add pylint requirements for Windows. r=linter-reviewers,sylvestre
This adds colorama, which is required by pylint only on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D128007
2021-10-13 17:05:42 +00:00
Renovate Bot
c9b15cac97 no bug - Update dependency flake8 to v4 r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D128092
2021-10-13 14:16:38 +00:00
Mats Palmgren
31935fdc02 Bug 1735445 - Land initial CSS Gap Decorations draft spec in tree for internal reviewing purposes. NPOTB DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D128324
2021-10-13 04:12:29 +00:00
Gerald Squelart
2570aaff04 Bug 1735273 - Continue streaming thread after an initial same-as-before sample - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D128163
2021-10-12 23:19:21 +00:00
Gerald Squelart
0998b61022 Bug 1735244 - Moved inter-thread access assertion after the thread is actually unregistered - r=canaltinova
The data-mutex lock assertion in the ThreadRegistration destructor was done too early, because that ThreadRegistration could still be publicly accessible through the ThreadRegistry at that time.
This assertion is now moved after `ThreadRegistry::UnregisterThread`, after which other threads shouldn't have access to this ThreadRegistration anymore.

This patch also adds a stress gtest that registers and unregisters a thread many times, and a separate thread attempts to access and lock the test thread data. It did trigger the previous assertion before it was moved.

Differential Revision: https://phabricator.services.mozilla.com/D128162
2021-10-12 23:14:11 +00:00
Gregory Mierzwinski
0b3a97aaf8 Bug 1733434 - Reduce browser-cycles and disable media autoplay in live site tests. r=perftest-reviewers,kimberlythegeek
CLOSED TREE

This patch reduces the number of browser-cycles that a live-site test (cnn in this case) does from 25 down to 5. Furthermore, we also disable media autoplay for all live site tests. This change required an update to browsertime to prevent default prefs from being set and overriding our prefs.

Differential Revision: https://phabricator.services.mozilla.com/D127831
2021-10-12 17:50:33 +00:00
Heitor Neiva
3a37f1b522 Bug 527670 - add named arguments to update_verify r=aki
Quality of life improvement to update_verify script and taskgraph cli arguments

Differential Revision: https://phabricator.services.mozilla.com/D128300
2021-10-12 21:11:26 +00:00
Alexandru Michis
4283df0b14 Backed out changeset e6df1ed94379 (bug 1733434) for causing btime and awsy failures.
CLOSED TREE
2021-10-13 01:12:12 +03:00
Andrei Oprea
c73cc990d7 Bug 1730924 - Upgrade ajv.js from 4.1.1 to 6.12.6 r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D127625
2021-10-12 19:41:05 +00:00
Gregory Mierzwinski
97f49d7a5e Bug 1733434 - Reduce browser-cycles and disable media autoplay in live site tests. r=perftest-reviewers,kimberlythegeek
This patch reduces the number of browser-cycles that a live-site test (cnn in this case) does from 25 down to 5. Furthermore, we also disable media autoplay for all live site tests. This change required an update to browsertime to prevent default prefs from being set and overriding our prefs.

Differential Revision: https://phabricator.services.mozilla.com/D127831
2021-10-12 17:50:33 +00:00
Alexandru Michis
ba57f54149 Backed out changeset 837ba61b9975 (bug 1730924) for causing xpcshell failures in services/sync.
CLOSED TREE
2021-10-12 20:13:05 +03:00
Andrei Oprea
db4ace8177 Bug 1730924 - Upgrade ajv.js from 4.1.1 to 6.12.6 r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D127625
2021-10-12 14:43:02 +00:00
Agi Sferro
2bd64785fc Bug 1571899 - Use google-java-format via spotless to enforce Java formatting. r=ahal,owlish
This change adds a new lint `android-format` which enforces formatting of Java
code using google-java-format.

To run the lint simply run:

./mach lint -l android-format

This command also support automatically fixing all errors running by adding
--fix:

./mach lint -l android-format --fix

This change also removes all the formatting-related checkstyle checks which are
now implicitly enforced by the formatter.

Differential Revision: https://phabricator.services.mozilla.com/D127734
2021-10-11 18:11:55 +00:00
Mark Banner
f7ee253451 Bug 1734823 - Enable ESLint rule no-unused-vars globally for xpcshell test*.js files. r=necko-reviewers,Gijs,valentin
This enables it as a warning for all files, and as an error for some files.

Differential Revision: https://phabricator.services.mozilla.com/D127944
2021-10-11 11:07:02 +00:00
Nazım Can Altınova
79e498d6d6 Bug 1733335 - Make std::vector an opaque type in the profiler Rust API r=emilio
This was causing asan and dt failures because bindgen was computing the size of
MarkerSchema as 122 bytes instead of 144 bytes. This was causing a heap buffer
overflow. After making the std::vector an opaque type, it computes the size
properly as 144 bytes.

Depends on D127114

Differential Revision: https://phabricator.services.mozilla.com/D127956
2021-10-11 07:59:11 +00:00
Nazım Can Altınova
146befbbdb Bug 1733335 - Add tracing marker type for the Rust side r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127112
2021-10-11 07:59:09 +00:00
Nazım Can Altınova
142d00a761 Bug 1733335 - Add {add,subtract}_microseconds and Clone implementations to ProfilerTime r=emilio
Clone will make the ProfilerTime easier to use. And {add,subtract}_microseconds
implementations are helpful when you need to subtract/add some duration before
adding a marker. There is a similar code in the Webrender marker code, and this
will allow them to use the new API instead of some custom code.

Differential Revision: https://phabricator.services.mozilla.com/D127111
2021-10-11 07:59:09 +00:00
Sylvestre Ledru
2949a57b84 no bug - doc: add more references to the tsan doc r=decoder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D127638
2021-10-08 08:46:03 +00:00
Daisuke Akatsuka
4ab0a903c6 Bug 1678627: Implement a mechanism to fire bookmark-time-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D125924
2021-10-07 22:10:20 +00:00
Kagami Sascha Rosylight
84ad995e6d Bug 1728604 - Normalize path before doc path comparison r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D127656
2021-10-07 12:32:57 +00:00
Sandor Molnar
ac87f8501e Backed out 4 changesets (bug 1733335) for causing multiple dt failures. CLOSED TREE
Backed out changeset 8c14ac28d042 (bug 1733335)
Backed out changeset 066819ce0e86 (bug 1733335)
Backed out changeset c44e1bb6d9ff (bug 1733335)
Backed out changeset 4cd1efb42295 (bug 1733335)
2021-10-06 17:49:47 +03:00
Nazım Can Altınova
9651c20007 Bug 1733335 - Add tracing marker type for the Rust side r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127112
2021-10-06 11:35:15 +00:00
Nazım Can Altınova
a92da6752f Bug 1733335 - Add {add,subtract}_microseconds and Clone implementations to ProfilerTime r=emilio
Clone will make the ProfilerTime easier to use. And {add,subtract}_microseconds
implementations are helpful when you need to subtract/add some duration before
adding a marker. There is a similar code in the Webrender marker code, and this
will allow them to use the new API instead of some custom code.

Differential Revision: https://phabricator.services.mozilla.com/D127111
2021-10-06 11:35:15 +00:00
Nazım Can Altınova
fd4169aaec Bug 1728539 - Add a documentation about profiler Rust API r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127430
2021-10-06 07:58:49 +00:00
Andrew Halberstadt
95449daa6d Bug 1732723 - Rename "taskgraph" Python module to "gecko_taskgraph". r=jmaher
For a long time two copies of the 'taskgraph' module have existed in parallel.
We've attempted to keep them in sync, but over time they have diverged and the
maintenance burden has increased.

In order to reduce this burden, we'd like to re-join the two code bases. The
canonical repo will be the one that lives outside of mozilla-central, and this
module will depend on it. Since they both have the same module name (taskgraph)
we need to rename the version in mozilla-central to avoid collisions.

Other consumers of 'taskgraph' (like mobile repos) have standardized on
'<project>_taskgraph' as their module names. So replicating that here as well.

Differential Revision: https://phabricator.services.mozilla.com/D127118
2021-09-30 09:50:08 -04:00
Marian-Vasile Laza
6c22452994 Backed out 4 changesets (bug 1733335) for causing build bustages. CLOSED TREE
Backed out changeset 45a3ae02f837 (bug 1733335)
Backed out changeset 41c62acfb5a6 (bug 1733335)
Backed out changeset cf3b6b6cc6c6 (bug 1733335)
Backed out changeset b919d9cfb8e5 (bug 1733335)
2021-10-05 15:07:44 +03:00
Nazım Can Altınova
aae1952697 Bug 1733335 - Add tracing marker type for the Rust side r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D127112
2021-10-05 11:34:27 +00:00
Nazım Can Altınova
91c01ff2f9 Bug 1733335 - Add {add,subtract}_microseconds and Clone implementations to ProfilerTime r=emilio
Clone will make the ProfilerTime easier to use. And {add,subtract}_microseconds
implementations are helpful when you need to subtract/add some duration before
adding a marker. There is a similar code in the Webrender marker code, and this
will allow them to use the new API instead of some custom code.

Differential Revision: https://phabricator.services.mozilla.com/D127111
2021-10-05 11:34:26 +00:00
Daisuke Akatsuka
a1a45ffa6a Bug 1678626: Implement a mechanism to fire bookmark-guid-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D125770
2021-10-05 00:53:46 +00:00
Daisuke Akatsuka
e59acf8e6b Bug 1678624: Implement a mechanism to fire bookmark-url-changed event. r=mak
Depends on D103148

Differential Revision: https://phabricator.services.mozilla.com/D103883
2021-10-05 00:53:44 +00:00
Mirko Brodesser
c61c10a2ce Bug 1731994: part 8) Rename nsIContentPermissionRequest's isHandlingUserInput to hasValidTransientUserGestureActivation. r=edgar
It's more accurate.

Differential Revision: https://phabricator.services.mozilla.com/D126916
2021-10-04 12:16:00 +00:00
Daisuke Akatsuka
d246521ee5 Bug 1678623: Implement a mechanism to fire bookmark-title-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103147
2021-10-01 12:01:29 +00:00
Gregory Mierzwinski
f3383774cc Bug 1732742 - Add an installation step for vismet requirements. r=perftest-reviewers,AlexandruIonescu
This patch adds an installation step for vismet requirements in the mach browsertime setup. Without this change, the check would falsely report that the instlalation failed even though it never actually ran. The current code has the pillow/pyssim setup being done after the check, with this change we'll be able to use --install-vismet-reqs to have them installed during the setup.

Differential Revision: https://phabricator.services.mozilla.com/D126703
2021-09-30 15:27:42 +00:00
Mitchell Hentges
76d5d89cb0 Bug 1723031: Update Jinja2 pin to be compatible with glean-parser r=ahal
`glean-parser==3.6.0` requires `Jinja2>=2.10.1`.

Differential Revision: https://phabricator.services.mozilla.com/D126283
2021-09-28 14:59:31 +00:00
Gabriele Svelto
6aa933461e Bug 1717909 - Ensure that symbol files for system libraries on Windows contain unwinding information r=calixte
This also reverts 5d32419d6b5b

Differential Revision: https://phabricator.services.mozilla.com/D126767
2021-09-28 09:26:55 +00:00
Mike Hommey
49ee506e32 Bug 1732208 - Silence the unused-but-set-variable warning in platform-linux-android.cpp. r=gerald
platform-linux-android.cpp:199:9: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable]
    int r = sem_init(&mMessage2, /* pshared */ 0, 0);
        ^
platform-linux-android.cpp:206:9: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable]
 not used [-Werror,-Wunused-but-set-variable]
    int r = sem_destroy(&mMessage2);
        ^

Differential Revision: https://phabricator.services.mozilla.com/D126459
2021-09-28 00:02:47 +00:00
criss
f2dcba95fa Backed out 10 changesets (bug 1712151, bug 1724279, bug 1730712, bug 1717051, bug 1723031, bug 1731145) for causing failures on test_yaml.py
Backed out changeset 7f64d538701b (bug 1723031)
Backed out changeset 394152994966 (bug 1723031)
Backed out changeset 9bfeb01bcc9a (bug 1723031)
Backed out changeset 3d283616a57d (bug 1730712)
Backed out changeset bc677b409650 (bug 1724279)
Backed out changeset 784c94c2f528 (bug 1723031)
Backed out changeset 6e1bde40e3b4 (bug 1723031)
Backed out changeset 7adf7e2136a3 (bug 1712151)
Backed out changeset 2aef162b9a1b (bug 1717051)
Backed out changeset 9beeb6d3d95b (bug 1731145)
2021-09-28 00:32:38 +03:00
Mitchell Hentges
46d5044ce9 Bug 1723031: Update Jinja2 pin to be compatible with glean-parser r=ahal
`glean-parser==3.6.0` requires `Jinja2>=2.10.1`.

Differential Revision: https://phabricator.services.mozilla.com/D126283
2021-09-27 20:27:21 +00:00
Alex Lopez
63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Steve Fink
c11679da97 Bug 1710408 - Do not record JSContext info if the js feature is disabled r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D126392
2021-09-27 16:40:56 +00:00
Henrik Skupin
61219bc48f Bug 1723084 - Add try preset for the remote protocol. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126231
2021-09-23 11:01:21 +00:00
Butkovits Atila
eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
Alex Lopez
a8e7083c84 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-21 20:38:16 +00:00
Alex Lopez
78a61815e0 Bug 1696251 - Rename methods that would shadow builtin functions when de-classing. r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D126275
2021-09-21 20:38:15 +00:00
Mark Banner
7ad142bf38 Bug 1445813 - Allow globalThis as a second parameter to defineLazyScriptGetter and friends. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D126071
2021-09-21 12:42:37 +00:00
Sandor Molnar
b0b9b300de Backed out changeset 539feb1c3bda (bug 1445813) for causing ES lint failure. CLOSED TREE 2021-09-21 15:19:18 +03:00
Mark Banner
1f1d768907 Bug 1445813 - Allow globalThis as a second parameter to defineLazyScriptGetter and friends. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D126071
2021-09-21 11:42:28 +00:00
Nazım Can Altınova
a15be90d61 Bug 1654413 - Deserialize and stream the markers and marker schemas r=emilio,gerald
Now we can deserialize and stream everything to the JSON.

Differential Revision: https://phabricator.services.mozilla.com/D124027
2021-09-21 11:08:12 +00:00
Nazım Can Altınova
ca180f8629 Bug 1654413 - Add add_marker Rust profiler API and serialize the marker to the buffer r=emilio,gerald
This only adds the API and then adds the profiler payload to the buffer. The
deserialization and streaming will happen in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D124026
2021-09-21 11:08:11 +00:00