Commit graph

813 commits

Author SHA1 Message Date
Chris H-C
8a50b7df98 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
93acdfad59 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
27f1120fb7 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
4a5870eeb4 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
e63c563a0f 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
9847bebbf2 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
e1b70bb8ce 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
642be079c4 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
7bbe5c251c 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
4011409c5d 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
66a9f375c8 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
dde5785db2 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
95f5a70c44 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
72b2c1829e 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
d1d0b69871 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
4b0f9347b7 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
709403b68a 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
225a507f65 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
e744c1f7a6 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
94b2463ce2 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
bf4b875752 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
c15823d075 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
c1e984d0c6 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
8dcad8e62e 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
e3d5438abb Backed out changeset 581d7209c242 (bug 1781085) for causing build bustages. CLOSED TREE 2022-07-27 12:19:52 +03:00
Jan-Erik Rediger
a3f580ed1f 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
99f074b50f Backed out changeset d4dae48f386a (bug 1779326) for causing build bustages. CLOSED TREE 2022-07-27 02:28:37 +03:00
Nika Layzell
155b049ad5 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
21fd159579 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
42b7f1a58c 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
d30576c26e 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
f52f8bd235 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
35f98c185d 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
8c397a412a 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
3ab6f3551a 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
657d21502b 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
464ec0c1df 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
dbaa55f2e3 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
564d06ab60 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
7b2f38b3b3 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
Chris H-C
e11473aa2e 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-18 14:24:33 +00:00
Chris H-C
b4a877fed5 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-18 14:24:32 +00:00
Chris H-C
41067177bd 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-18 14:24:32 +00:00
Kagami Sascha Rosylight
8a3d3826f8 Bug 1769290 - Part 18: Apply mozilla-js-handle-rooted-typedef against toolkit/components/glean/bindings r=andi
Differential Revision: https://phabricator.services.mozilla.com/D151785
2022-07-14 17:00:22 +00:00
Travis Long
2855beea72 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-14 13:11:13 +00:00
Norisz Fay
31e76fd90f Backed out changeset ce93635100b6 (bug 1772132) for causing webrender build bustage CLOSED TREE 2022-07-13 22:08:19 +03:00
Travis Long
a285a07c6e Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 18:00:35 +00:00
Bogdan Szekely
6030807e22 Backed out changeset 1ff9bb6e4a8c (bug 1772132) for causing build bustage. CLOSED TREE 2022-07-13 16:17:53 +03:00
Travis Long
e826b78da5 Bug 1772132 - Update Glean and remove cargo metadata replacement. r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151499
2022-07-13 12:59:16 +00:00
smolnar
36788ca992 Backed out changeset ab4790cd94eb (bug 1772132) for causing wrench bustage CLOSED TREE 2022-07-13 12:04:13 +03:00