Closed Bug 1536792 Opened 7 years ago Closed 5 years ago

Reinstate disabled MetricsPingScheduler tests

Categories

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

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mdroettboom, Assigned: janerik)

Details

Attachments

(2 files)

As part of the work to fix intermittent glean tests failing, a handful of MetricsPingScheduler tests were disabled, since they were still failing.

We need to investigate why these tests were failing and restore them.

Assignee: nobody → mdroettboom
Priority: -- → P1
Whiteboard: [telemetry:mobilesdk:m?] → [telemetry:mobilesdk:m7]
Assignee: mdroettboom → nobody
Assignee: nobody → tlong

I am beginning to think now that the test isn’t intermittently failing (which I can control the frequency of fairly directly now through setting a delay in the background task that is calling stringMetric.set()). I think that the test is actually intermittently successfully exposing a bug because of how quickly the background task was writing. Being able to control how often it would show up though controlling how quickly the background task was writing got me to thinking that maybe there was a slight window in which we could write to a metric, and before the call to metricsPingScheduler.startupCheck() in Glean.initialize(). It looks like from when initialized is set to true in the function, to when we call .startupCheck() is several lines of code, where it looks like it may be possible to write to a metric before the window is closed and the ping built and sent.

This is suffering from some weird intermittent hangs on CI when testing that needs further investigation before I can merge and close this out.

Un-taking this and moving to M9

Assignee: tlong → nobody
Priority: P1 → P3
Whiteboard: [telemetry:mobilesdk:m7] → [telemetry:mobilesdk:m9]
Component: Telemetry → Glean: SDK
Product: Toolkit → Data Platform and Tools
Whiteboard: [telemetry:mobilesdk:m9] → [telemetry:glean-rs:m?]
Whiteboard: [telemetry:glean-rs:m?] → [telemetry:glean-rs:backlog]

Action: Determine if still relevant, and if not, remove code.

Assignee: nobody → jrediger
Priority: P3 → P2
Whiteboard: [telemetry:glean-rs:backlog]
Priority: P2 → P1
Status: NEW → RESOLVED
Closed: 5 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: