Closed Bug 1280196 Opened 8 years ago Closed 8 years ago

Add stable sampling JEXL filter

Categories

(Firefox :: Normandy Server, defect, P2)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mythmon, Assigned: mythmon)

References

Details

Since we are no longer sampling on the server, we need to port stable sampling to the self-repair shim's driver. This will likely take the form of a JEXL filter, used like this: [telemetry.userId, normandy.recipe.revision]|stableSample(0.0001) This would be a filter `stableSample` that takes input of something to hash (in this case, the user id and the recipe revision). It also takes a parameter of the rate to sample at. The approach the server takes is to hash the inputs, and compare that to the sample rate times 2^256, since it is using a 256 bit hashing function. The code can be seen here: https://github.com/mozilla/normandy/blob/b99cc7134330aa584d51ecab4fa8615ab0e8d071/normandy/recipes/utils.py#L27
Blocks: 1280197
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
The sampling filter isn't actually usable in JEXL expressions yet.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: nobody → mcooper
Status: REOPENED → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Product: Shield → Firefox
You need to log in before you can comment on or make changes to this bug.