Closed Bug 1681472 Opened 3 years ago Closed 3 years ago

Re-enable MeasureInitializeTime test

Categories

(Data Platform and Tools :: Glean: SDK, defect, P1)

defect
Points:
1

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: janerik, Assigned: chutten)

References

(Regression)

Details

(Whiteboard: [telemetry:fog:m?])

Attachments

(1 file)

With the timespan implemented on top of RLB we should re-enable the MeasureInitializeTime test here: https://searchfox.org/mozilla-central/rev/71621bfa47a371f2b1ccfd33c704913124afb933/toolkit/components/glean/gtest/TestFog.cpp#39-42

However we can't because in the test just before we flip upload enabled back and forth, resulting in the deletion of stored data, including the initialization timespan.

We can't just move the test in between either, because the flip-flop is intended to run while Glean is initializing, but checking a metric would block on initialize to finish.
I don't think there is a way to keep both things right now.

With the RLB in place, I don't think testing the setting of upload enabled and disabled during init is coverage that's important for FOG, so we can remove the problematic parts of test FogInitDoesntCrash and proceed.

Assignee: nobody → chutten
Severity: -- → S4
Status: NEW → ASSIGNED
Points: --- → 1
Priority: -- → P1

Remove the flipping of the data pref during FOG init test because, with the
dispatcher now a part of the RLB, this isn't something we should test at this
level.

Pushed by chutten@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eb309cb4fb0c
Re-enabled MeasureInitializeTime test r=janerik
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: