Closed Bug 1673665 Opened 5 years ago Closed 5 years ago

Add a "test mode" to the RLB Dispatcher

Categories

(Data Platform and Tools :: Glean: SDK, task, P3)

task

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Dexter, Unassigned)

References

Details

(Whiteboard: [telemetry:fog:m6])

In the current implementation, we go through some hoops to write unit tests using the dispatcher and the Glean singleton.

We need some sort of "test mode" like we have for the other language bindings. We either need to run tasks synchronously or have some way to reset the state.

See Also: → 1673672

So far we've been doing without synchronous mode in an effort to not overuse it. We have exposed a blocking function to wait for the operations to clear which may serve the same purpose?

(In reply to Chris H-C :chutten from comment #1)

So far we've been doing without synchronous mode in an effort to not overuse it. We have exposed a blocking function to wait for the operations to clear which may serve the same purpose?

This has a set of problems / bugs we uncovered today with Jan-Erik so, at the very least, this has to change a bit. Jan-Erik is going to tackle this and expand as needed :-D

Whiteboard: [telemetry:glean-rs:m?][telemetry:fog:m6] → [telemetry:fog:m6]

Looks to me as thogh test_reset_glean and friends might take care of this for the RLB. Alessio, do they serve the purposes you had in mind?

Flags: needinfo?(alessio.placitelli)

Yes!

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(alessio.placitelli)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.