Open Bug 1942797 Opened 18 days ago Updated 16 days ago

Generate server-knobs config to be applied in tests when otherwise a subset of metrics is used

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P2)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: janerik, Assigned: janerik)

References

Details

This is essentially the plan as discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1931277#c15

At build time we know the set of interesting metrics, which means we can also determine the set of uninteresting metrics.
In the same build step we generate a build artifact listing those.
Then for all tests where Glean is initialized, given we can positively identify those as test runs, we read this file and pass in this list of uninteresting metrics (potentially as a Server Knobs config) to re-enable them.
This means test will work because all the expected metrics are enabled.
Production builds as shipped (1) won't have this build artifact, (2) aren't test runs, and thus the metrics stay disabled.

That way no adjustement is needed as new metrics are added to Gecko, but not Thunderbird.
It's minimal changes only in FOG (no Glean changes) and likely doable relatively soon.
It won't affect developer builds for manual testing either.

I have some early work done on this to try it out. Not yet ready for landing, but I see that I get that cleaned up and pushed next week.

Assignee: nobody → jrediger
Status: NEW → ASSIGNED
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.