Fixup old non-number values & expressions in histogram.json
Old histogram.json files contain non-number values & expressions for fields as "n_values". We need to properly handle these and convert the literals to useful values.
We should also test coverage for this, to make sure it doesn't regress.
In order to get the buckets back we had to disable in #63 we can do:
- Turn strings into ints (when possible, e.g.
"10000"). - Ignore expressions (
"16 * 1024") and assume0(so it's easy) - everything new has proper ints anyway so we can generate the buckets
For now we could also just ignore a specific set of old probes that had string expressions. Per bug 1245910 this should only affect Histograms.json fields and only Firefox releases before Fx 47.
If we wanted to fix these properly in the future and get real values out... We could have a "fixup preprocessing step" specific to the hg.m.o Histograms.json source.