Commit Graph

823 Commits

Author SHA1 Message Date
Chris H-C
cfa0027b5d Bug 1767040 - Reorganize glean and telemetry ping definitions r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D158061
2022-09-23 21:01:02 +00:00
Csoregi Natalia
e3b0970cdf Backed out changeset 6f1d00d07032 (bug 1767040) for causing build bustages. CLOSED TREE 2022-09-23 19:17:30 +03:00
Chris H-C
7d87dfd426 Bug 1767040 - Support runtime-registered pings in Glean r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D158023
2022-09-23 15:49:33 +00:00
Jan-Erik Rediger
f64efa480c Bug 1790046 - Split up metrics_index into lists by product. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D157434
2022-09-20 15:10:10 +00:00
pmcmanis
a7599890a4 Bug 1790894 - Add error handling to timespan FOG metric r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D157666
2022-09-20 14:07:22 +00:00
Andreea Pavel
fb54a47509 Backed out changeset 8f84cc961e80 (bug 1790046) for multiple failures on a CLOSED TREE 2022-09-20 14:50:21 +03:00
Jan-Erik Rediger
134690d500 Bug 1790046 - Split up metrics_index into lists by product. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D157434
2022-09-20 09:36:21 +00:00
Iulian Moraru
99848d1c9a Bug 1777638 - additional intermittent test failure r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D156576
2022-09-13 15:30:38 +00:00
Nika Layzell
9bfde124ad Bug 1789902 - Part 2: Use XPCOM static components instead of Services in Rust, r=xpcom-reviewers,necko-reviewers,barret,valentin
Differential Revision: https://phabricator.services.mozilla.com/D156891
2022-09-13 13:47:13 +00:00
Jan-Erik Rediger
1f85ca4b91 Bug 1788040 - Update to Glean v51.2.0. r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156937
2022-09-13 12:57:58 +00:00
Chris H-C
f504deed34 Bug 1789917 - Use a full mozbuild config to find glean tags r=saschanaz,janerik
Also, update tags to include newly-added and newly-revealed components.

Differential Revision: https://phabricator.services.mozilla.com/D156888
2022-09-09 15:09:39 +00:00
Olli Pettay
048bd344c4 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
Andrew Creskey
d8de30ef83 Bug 1782743 - Create a glean metrics.yaml at the root of netwerk r=necko-reviewers,valentin
Since we want one glean metrics definition for all of necko, we will ultimately migrate the existing metrics to this one.

Differential Revision: https://phabricator.services.mozilla.com/D156231
2022-09-02 13:03:09 +00:00
Chris H-C
dce78022dd Bug 1787589 - Avoid flushing FOG IPC too late in shutdown r=perry.mcmanis
Differential Revision: https://phabricator.services.mozilla.com/D155848
2022-08-29 15:58:26 +00:00
pmcmanis
f491328f89 Bug 1777638 - intermittent test failure caused by adding two cast values caused test result to fall below expected minimum r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D155842
2022-08-29 14:29:07 +00:00
pmcmanis
287b9c7d0b Bug 1772537 - intermittent test failure caused by adding two numbers truncated by cast caused test value to fall below expected minimum r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D155745
2022-08-29 14:29:07 +00:00
Chris H-C
7f84eaa68e Bug 1785251 - Submit a Glean 'pseudo-main' ping when Telemetry submits a 'main' ping r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D154922
2022-08-24 18:29:03 +00:00
Cristian Tuns
6c64ffc8e1 Backed out changeset e143f0342f09 (bug 1785251) for causing xpcshell failures on test_TelemetryController.js CLOSED TREE 2022-08-23 17:51:59 -04:00
Chris H-C
1b4e6fc73a Bug 1785251 - Submit a Glean 'pseudo-main' ping when Telemetry submits a 'main' ping r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D154922
2022-08-23 21:05:33 +00:00
Nika Layzell
dfcd7ebf57 Bug 1783282 - Use a custom attribute instead of derive for implementing xpcom interfaces in rust, r=xpcom-reviewers,necko-reviewers,dragana,barret
Differential Revision: https://phabricator.services.mozilla.com/D153801
2022-08-18 13:57:35 +00:00
Chris H-C
0e89d4563f Bug 1784551 - Remove unnecessary and vocal build-time print r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D154560
2022-08-15 12:48:48 +00:00
Chris H-C
6870201be3 Bug 1784283 - Specify which getting started doc the Using FOG doc is talking about r=janerik,sylvestre DONTBUILD
Otherwise we may link to the Getting Started (with NSS) doc.

Differential Revision: https://phabricator.services.mozilla.com/D154570
2022-08-15 12:48:21 +00:00
Calixte
33bb13039c Bug 1782254 - Add some telemetry to measure how often users are using the pdf editing feature r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D153480
2022-08-09 17:38:37 +00:00
Jan-Erik Rediger
03c4ad04b1 Bug 1783754 - Update to Glean v51.1.0. r=TravisLong,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154088
2022-08-09 15:58:51 +00:00
Csoregi Natalia
a4c382ea54 Backed out changeset 0794c953b2f4 (bug 1782254) for causing failures on browser_pdfjs_editing_telemetry.js. CLOSED TREE 2022-08-09 14:54:06 +03:00
Calixte
2b305f8022 Bug 1782254 - Add some telemetry to measure how often users are using the pdf editing feature r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D153480
2022-08-09 09:17:15 +00:00
pmcmanis
d3aab220d9 Bug 1780621 test size limits of updated Memory Distribution Accumulate r=Dexter
Also adds a small guardrail consistent with the implementation in Timing Distribution

Differential Revision: https://phabricator.services.mozilla.com/D153384
2022-08-03 14:52:16 +00:00
Norisz Fay
78c2f016fe Backed out changeset 5fd037a32fc2 (bug 1780621) for causing xpcshell failures on test_GIFFT.js CLOSED TREE 2022-08-02 16:33:43 +03:00
pmcmanis
2c7b27502f Bug 1780621 test size limits of updated Memory Distribution Accumulate r=Dexter
Also adds a small guardrail consistent with the implementation in Timing Distribution

Differential Revision: https://phabricator.services.mozilla.com/D153384
2022-08-02 12:14:16 +00:00
Jan-Erik Rediger
85dcae1bb7 Bug 1781030 - Upgrade to Glean v51.0.1. r=perry.mcmanis,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152626
2022-08-01 10:50:47 +00:00
Joel Maher
0b37b77f65 Bug 1781782 - Run frequent xpcshell parallel failing tests sequential by default. r=ahal,necko-reviewers,extension-reviewers,application-update-reviewers,bytesized,rpl,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D153081
2022-07-30 01:33:28 +00:00
Nika Layzell
63a28ee824 Bug 1772006 - Part 5: Simplify and move the string searching APIs from ns[T]StringObsolete, r=xpcom-reviewers,necko-reviewers,eeejay,dragana,barret
The biggest set of APIs from ns[T]StringObsolete which are still heavily used
are the string searching APIs. It appears the intention was for these to be
replaced by the `FindInReadable` APIs, however that doesn't appear to have
happened.

In addition, the APIs have some quirks around their handling of mixed character
widths. These APIs generally supported both narrow strings and the native
string type, probably because char16_t string literals weren't available until
c++11. Finally they also used easy-to-confuse unlabeled boolean and integer
optional arguments to control behaviour.

These patches do the following major changes to the searching APIs:

1. The ASCII case-insensitive search method was split out as
   LowerCaseFindASCII, rather than using a boolean. This should be less
   error-prone and more explicit, and allows the method to continue to use
   narrow string literals for all string types (as only ASCII is supported).
2. The other [R]Find methods were restricted to only support arguments with
   matching character types. I considered adding a FindASCII method which would
   use narrow string literals for both wide and narrow strings but it would've
   been the same amount of work as changing all of the literals to unicode
   literals.
   This ends up being the bulk of the changes in the patch.
3. All find methods were re-implemented using std::basic_string_view's find
   algorithm or stl algorithms to reduce code complexity, and avoid the need to
   carry around the logic from nsStringObsolete.cpp.
4. The implementations were moved to nsTStringRepr.cpp.
5. An overload of Find was added to try to catch callers which previously
   called `Find(..., false)` or `Find(..., true)` to set case-sensitivity, due
   to booleans normally implicitly coercing to `index_type`. This should
   probably be removed at some point, but may be useful during the transition.

Differential Revision: https://phabricator.services.mozilla.com/D148300
2022-07-30 00:12:48 +00:00
Nika Layzell
8f7743dde3 Bug 1779326 - Handle a few more native types in rust-xpidl, r=xpcom-reviewers,kmag
This makes the logic for the rust type line up a bit more with the C++
logic for existing types, and adds support for 'char' and 'char16_t'
native types (for 'charPtr').

This specifically enables `nsIInputStream::Read` to be used from Rust.

Differential Revision: https://phabricator.services.mozilla.com/D152715
2022-07-27 14:09:52 +00:00
Jan-Erik Rediger
84f999cd3c Bug 1781085 - Update to Glean v50.1.3 r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152770
2022-07-27 10:24:48 +00:00
criss
2d3106819f Backed out changeset 581d7209c242 (bug 1781085) for causing build bustages. CLOSED TREE 2022-07-27 12:19:52 +03:00
Jan-Erik Rediger
ba68651b23 Bug 1781085 - Update to Glean v50.1.3 r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152770
2022-07-27 08:58:11 +00:00
Butkovits Atila
06afa13883 Backed out changeset d4dae48f386a (bug 1779326) for causing build bustages. CLOSED TREE 2022-07-27 02:28:37 +03:00
Nika Layzell
8974122e28 Bug 1779326 - Handle a few more native types in rust-xpidl, r=xpcom-reviewers,kmag
This makes the logic for the rust type line up a bit more with the C++
logic for existing types, and adds support for 'char' and 'char16_t'
native types (for 'charPtr').

This specifically enables `nsIInputStream::Read` to be used from Rust.

Differential Revision: https://phabricator.services.mozilla.com/D152715
2022-07-26 23:12:58 +00:00
Jan-Erik Rediger
819eaa2c21 Bug 1779992 - mach subcommand to upgrade Glean across all files. r=chutten DONTBUILD
This only modifies the files and prints the steps to be done manually.

Differential Revision: https://phabricator.services.mozilla.com/D152627
2022-07-26 13:51:31 +00:00
Emilio Cobos Álvarez
7a9e682999 Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana
This prevents copies and avoids the hack we have to avoid this, which
right now is using nsDependent{C,}String.

Non-virtual actors can still use `nsString` if they need to on the
receiving end.

Differential Revision: https://phabricator.services.mozilla.com/D152519
2022-07-25 20:19:48 +00:00
pmcmanis
7149b45ed5 Bug 1741196 - Modify MemoryDistribution::Accumulate() to take size_t instead of u_int64 r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D152308
2022-07-21 17:52:32 +00:00
Jan-Erik Rediger
dfc4088e99 Bug 1771888 - Put labeled metrics into an arc to avoid cloning. r=chutten
This means we need that Arc in boolean, counter & string,
but we avoid cloning the internal metric. Glean already made that
optimization lately.

Note 1: The actual metric types use an Arc internally in glean-core,
so we're nesting Arcs here. I don't think that's problematic though.

Note 2: No measurements have been done whether this really changes much.
Also we probably do not have that many labeled metrics yet for it to
make a measurable difference to begin with.

Differential Revision: https://phabricator.services.mozilla.com/D152017
2022-07-21 15:17:16 +00:00
Chris H-C
6d325f238f Bug 1780211 - Explain Telemetry enum conjugation in GIFFT docs r=perry.mcmanis DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152281
2022-07-20 18:09:41 +00:00
Chris H-C
952308ae86 Bug 1756057 - Write a rust-in-gtest instrumentation test for FOG r=janerik
Now that we're no longer testing FOG init instrumentation via rust-in-gtest, we
need a new thing to test in this manner or we'll delete this code and (in my
case) completely forget how we used to do this.

So let's replace the real instrumentation test with a boring one that doesn't
actually require all the boilerplate, but isn't harmed by it either.

Depends on D147450

Differential Revision: https://phabricator.services.mozilla.com/D147451
2022-07-20 14:54:58 +00:00
Chris H-C
ec8059bf47 Bug 1756057 - For GTest create FOGFixture for ensuring FOG is properly set up for your test case r=janerik
Depends on D147449

Differential Revision: https://phabricator.services.mozilla.com/D147450
2022-07-20 14:54:57 +00:00
Chris H-C
8f80ffae31 Bug 1756057 - In GTest have FOG init when the runner runs, instead of in some random test r=janerik
Depends on D147448

Differential Revision: https://phabricator.services.mozilla.com/D147449
2022-07-20 14:54:57 +00:00
Chris H-C
f088252bac Bug 1756057 - Move FOG init instrumentation test to xpcshell. r=janerik
This instrumentation test has been disabled since bug 1763474 because delaying
init to this test meant that the preinit queue would overflow.

Because GoogleTest runs all at once and in its own decided order, we shouldn't
write any test that depends on FOG init happening at a specific time unless we
make it happen before the test suite even runs.

...and if we do that, the test resets that we perform in between will
obliterate the value in the init instrumentation, meaning we can't test it
anyway.

Note also that we skip-OK this test near local 4AM in case a properly-but-
inconveniently-timed "metrics" ping clears the value between FOG init and the
test run.

Now I thought we could put this in mochi, but it turns out that we reuse
browsers between test files. This means previous files' init of FOG and wiping
of all data causes the test to permafail when not run in isolation.

So here we are in xpcshell where we control init ourselves.

Differential Revision: https://phabricator.services.mozilla.com/D147448
2022-07-20 14:54:56 +00:00
smolnar
826704c92f Backed out 4 changesets (bug 1756057) for causing xpc failures in toolkit/components/glean/tests/xpcshell/test_FOGInit.js CLOSED TREE
Backed out changeset 9a0c99591eb4 (bug 1756057)
Backed out changeset 414e2fb866f2 (bug 1756057)
Backed out changeset f56dc6857da7 (bug 1756057)
Backed out changeset 76096ec38942 (bug 1756057)
2022-07-18 18:51:20 +03:00
pmcmanis
b2c3ae579e Bug 1696388 - Add tests for labled metric accessors including custom accessors for JS style accessors r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D151922
2022-07-18 14:53:19 +00:00
Chris H-C
fa51741d3c Bug 1756057 - Write a rust-in-gtest instrumentation test for FOG r=janerik
Now that we're no longer testing FOG init instrumentation via rust-in-gtest, we
need a new thing to test in this manner or we'll delete this code and (in my
case) completely forget how we used to do this.

So let's replace the real instrumentation test with a boring one that doesn't
actually require all the boilerplate, but isn't harmed by it either.

Depends on D147450

Differential Revision: https://phabricator.services.mozilla.com/D147451
2022-07-18 14:24:33 +00:00