AC
- A unit test is added to the org.wikimedia.metrics_platform.SamplingController tests that proves that
if a pageview/session/device is in-sample at a 1% rate, then it should be in-sample at any greater rate, e.g. 5%, 10%, 25%, 50%, etc.
if a pageview/session/device is in-sample at a 1% rate, then it should be in-sample at any greater rate, e.g. 5%, 10%, 25%, 50%, etc.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | phuedx | T304379 Non-deterministic unit test "streamInSample() - session sampling resets" | |||
Open | None | T355052 [EPIC] Increase coverage of sampling tests | |||
Open | None | T355055 [Java] Increase coverage of SamplingController tests |
@phuedx Could you please elaborate the issue little more. would love to work on it.
~ Thanks.
Hello.
There are tests for the following scenarios:
There's no test that provides that a device in-sample at a rate of 1% is also in-sample at a rate of 5%, 10%, etc.
To prove that this is true, we need to:
If you're looking for more context about this task, please see the parent epic (T355052) and linked task (T304379).