Commit Graph

348 Commits

Author SHA1 Message Date
Mike Hommey
e1455a4347 Bug 1803483 - Remove clippy-specific workarounds in toolkit/components/glean/api. r=chutten
We now have a wrapper (`mach cargo clippy`) that, among other things,
make the gecko objdir available to clippy, so the workarounds are not
necessary anymore. It also seems those workarounds are outdated, and
were failing to make clippy work anyways.

Differential Revision: https://phabricator.services.mozilla.com/D163543
2022-12-01 21:46:39 +00:00
Chris H-C
642bb99e15 Bug 1799442 - Update Glean to v51.8.2, rkv to 0.18 r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D162345
2022-11-18 13:56:27 +00:00
Marian-Vasile Laza
0e3a56bb1a Backed out changeset 75acc8e81d81 (bug 1799442) for causing WR tidy bustage. CLOSED TREE 2022-11-18 14:23:58 +02:00
Chris H-C
a24456748e Bug 1799442 - Update Glean to v51.8.2, rkv to 0.18 r=janerik,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D162345
2022-11-18 10:15:40 +00:00
Chris H-C
8b0455bd2e Bug 1800741 - Update Glean to v51.8.1 r=perry.mcmanis,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D162150
2022-11-16 14:18:48 +00:00
Jan-Erik Rediger
cbd5456a46 Bug 1799129 - Vendor Glean v51.8.0 and glean_parser 6.3.0 r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161276
2022-11-08 15:53:07 +00:00
Chris H-C
8a5ea0e8a7 Bug 1797363 - Vendor Glean SDK v51.7.0 r=TravisLong,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D160269
2022-10-26 13:02:54 +00:00
Jan-Erik Rediger
4e5372b0ce Bug 1796087 - Update to Glean v51.5.0 and UniFFI 0.21.0. r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D159689
2022-10-20 12:42:47 +00:00
Chris H-C
8f877b6f06 Bug 1767039 - Expand JOG to support event metrics r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D158060
2022-10-12 16:35:28 +00:00
pmcmanis
301cf95360 Bug 1793786 - Update Glean version to 51.4.0 r=chutten,supply-chain-reviewers,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158759
2022-10-07 20:19:49 +00:00
Butkovits Atila
bc46a753df Backed out changeset a5df97f61fec (bug 1793786) for causing build bustages. CLOSED TREE 2022-10-07 16:35:21 +03:00
pmcmanis
68a06439b1 Bug 1793786 - Update Glean version to 51.4.0 r=chutten,supply-chain-reviewers,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158759
2022-10-07 13:05:21 +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
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
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
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
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
Travis Long
3248e25004 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
cb23b29e60 Backed out changeset ce93635100b6 (bug 1772132) for causing webrender build bustage CLOSED TREE 2022-07-13 22:08:19 +03:00
Travis Long
45b430b958 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
3f3ff21488 Backed out changeset 1ff9bb6e4a8c (bug 1772132) for causing build bustage. CLOSED TREE 2022-07-13 16:17:53 +03:00
Travis Long
464b4a3db3 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
03f912e7ed Backed out changeset ab4790cd94eb (bug 1772132) for causing wrench bustage CLOSED TREE 2022-07-13 12:04:13 +03:00
Travis Long
458cd6f54c 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 08:43:41 +00:00
pmcmanis
6bde647b97 Bug 1766515 - Implemented new glean Boolean error handling behavior on Labeled Booleans collected in Glean, and updated tests r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D150493
2022-07-06 15:49:16 +00:00
Bogdan Szekely
b4ac86e146 Backed out changeset 4dd17a60cad0 (bug 1766515) for causing xpcshell failures on test_JOG.js 2022-06-28 12:48:36 +03:00
pmcmanis
022fc119e7 Bug 1766515 - Implemented new glean Boolean error handling behavior on Labeled Booleans collected in Glean, and updated tests r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D149569
2022-06-28 08:45:57 +00:00
Noemi Erli
856ade60d2 Backed out changeset 37a07f2d420d (bug 1766515) for causing failures in test_GIFFT.js CLOSED TREE 2022-06-22 18:31:00 +03:00
pmcmanis
55f95dbc31 Bug 1766515 - Implemented new glean Boolean error handling behavior on Labeled Booleans collected in Glean, and updated tests r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D149569
2022-06-22 13:41:18 +00:00
Chris H-C
5510ea4ae6 Bug 1698184 - Support runtime-registered metrics in FOG IPC r=janerik
I feel as though there's a refactor where both IPC and FFI can reuse the same
macros, but for now this is a fairly copy-pasta-heavy change.

Differential Revision: https://phabricator.services.mozilla.com/D144966
2022-06-21 20:34:55 +00:00
Chris H-C
e7f970d3b3 Bug 1698184 - Augment FOG's FFI to support runtime-defined metrics r=janerik
We go from one place where metrics can be (the static maps) to two
(we throw in the factory's dynamic maps (warehouses?))

(( Actually from two to three when you consider the submetric maps ))

Thanks to how we architected things, the necessary macro changes are nice and
small.

Differential Revision: https://phabricator.services.mozilla.com/D143049
2022-06-21 20:34:55 +00:00
Chris H-C
d0a181d9f3 Bug 1698184 - Build a factory for runtime-defined metrics r=janerik
Pieces include
* A script for collecting all the ids for metric _types_
* A template for generating the factory that can build each of those types
* mozbuild integration

Differential Revision: https://phabricator.services.mozilla.com/D143048
2022-06-21 20:34:54 +00:00
Chris H-C
bb292484a9 Bug 1698184 - Move submetrics to 2^25 to make room for dynamic metrics r=janerik
Previously we used the 27th bit to signal if a metric instance was actually a
labeled_* metric's "submetric". This bit is actually part of the metric type
part of the lower (upper?) 32 bits of the metric_entry_t, but that was okay
because builtin metrics all have their top 5 bits scrubbed.

itsFreeRealEstate.jpg

This can no longer work, though, since JOG will need to be able to have its
own submetrics that don't conflict _and_ will need to keep the type bits
around so we know what instances to build.

(( Yes, yes, I could've designed the system so that we didn't need to,
but this was the less complicated way. We can go down this route when we
provision the 34 Millionth metric and run out of space. ))

So that means taking two bits away from the id portion: one for runtime (we'll
give it 2^26) and one for submetric (2^25).

Differential Revision: https://phabricator.services.mozilla.com/D143044
2022-06-21 20:34:52 +00:00
Emilio Cobos Álvarez
f71e0c7024 Bug 1774489 - Fix fog event test APIs to not leak. r=chutten
This is also simpler.

Differential Revision: https://phabricator.services.mozilla.com/D149638
2022-06-17 15:58:18 +00:00
Jan-Erik Rediger
e447a2597f Bug 1773255 - Update to Glean v50.1.0 r=chutten,supply-chain-reviewers
Including glean_parser 6.1.1

Two important things in there:
* glean_parser: [data-review] Include extra keys' names and descriptions in data review template
* Glean: Derive `serde::{Deserialize, Serialize}` on `Lifetime` and `CommonMetricData`

Differential Revision: https://phabricator.services.mozilla.com/D149381
2022-06-15 15:39:33 +00:00
Jan-Erik Rediger
4ca6841988 Bug 1768834 - Switch to Glean with UniFFI integration r=glandium,chutten
Upgrades to Glean v50.0.1, which comes with a rewritten core and
UniFFI-powered bindings.
Glean has some API changes, so we swap it over to that. Mostly mechanical changes.
Also upgrades to inherent v1.0 in fog.
This matches what Glean uses internally and gets rid of one duplicated crate.

Also upgrades to glean-parser==6.0.1

One crate duplication now (change in `python/mozbuild/mozbuild/vendor/vendor_rust.py` required).
Some new crates now vendored.
These are transitive dependencies of Glean dependencies, all with valid
licenses and already used in other products (mobile).

Differential Revision: https://phabricator.services.mozilla.com/D146062
2022-06-07 12:37:20 +00:00
Chris H-C
a0c6f025d7 Bug 1767016 - Be a little more clear about when and how to edit metrics.rs r=Dexter DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D147430
2022-05-26 14:43:40 +00:00
Alessio Placitelli
ce5636eb29 Bug 1766980 - Implement the URL type in FOG. r=chutten
This adds both the core Rust implementation and the
code to enable the needed language bindings. This
additionally enables GIFFT on the URL type, mirroring
them to a string scalar.

Differential Revision: https://phabricator.services.mozilla.com/D145215
2022-05-02 16:05:55 +00:00
Chris H-C
ad3310802e Bug 1764549 - Update Glean SDK to v44.1.1 r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D143749
2022-04-14 20:35:08 +00:00
Jan-Erik Rediger
05d0f00624 Bug 1763602 - Update to Glean v44.1.0. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D143162
2022-04-11 08:25:00 +00:00
Bas Schouten
c4641507da Bug 1759863: Expose API for collecting time intervals directly into timing distribution metrics. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D142290
2022-03-31 20:17:03 +00:00
Cristian Tuns
52188369e8 Backed out 2 changesets (bug 1759863) for causing build bustages CLOSED TREE
Backed out changeset 45242f5e8a43 (bug 1759863)
Backed out changeset f49fc149b138 (bug 1759863)
2022-03-31 16:05:06 -04:00
Bas Schouten
d5c27c8b4d Bug 1759863: Expose API for collecting time intervals directly into timing distribution metrics. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D142290
2022-03-31 19:48:20 +00:00
criss
5ae547c9ea Backed out 2 changesets (bug 1759863) for causing build bustages. CLOSED TREE
Backed out changeset cf0fcf2f2bca (bug 1759863)
Backed out changeset 3b3f1eda4f7d (bug 1759863)
2022-03-31 20:52:29 +03:00
Bas Schouten
4f2209de60 Bug 1759863: Expose API for collecting time intervals directly into timing distribution metrics. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D142290
2022-03-31 17:31:34 +00:00