Closed Bug 747163 Opened 12 years ago Closed 12 years ago

TelemetryHistogramType returns failure for HISTOGRAM_FLAG

Categories

(Toolkit :: Telemetry, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: graememcc, Assigned: graememcc)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch v1 (obsolete) — Splinter Review
...and here's why!
Attachment #616736 - Flags: review?(taras.mozilla)
Comment on attachment 616736 [details] [diff] [review]
v1

This needs Telemetry.histogramFrom testcase added for a flag histogram. I'm guessing you stumbled upon this because it caused an error on startup?
Attachment #616736 - Flags: review?(taras.mozilla) → review+
Attached patch With testsSplinter Review
> I'm guessing you stumbled upon this because it caused an error on startup?

I added a telemetry flag in bug 724513, which had "cache" in the description, which caused it to get picked up by gatherStartupInfo in TelemetryPing.js, so test_TelemetryPing started failing in the histogramFrom/TelemetryHistogramType call.

I've added a test to exercise histogramFrom for all types, however it uncovered bug 747379. Bugs all the way down!
Attachment #616736 - Attachment is obsolete: true
Attachment #616988 - Flags: review?(taras.mozilla)
Comment on attachment 616988 [details] [diff] [review]
With tests

Graeme, I only see additional implicit {} moving around in this patch, are you sure that's the right patch?
Comment on attachment 616988 [details] [diff] [review]
With tests

nm. r+ with pointless {} changes undone.
Attachment #616988 - Flags: review?(taras.mozilla) → review+
Blocks: 724513
Not sure how those brace changes got in there. I probably thought I'd added them when debugging the test failure that became 747379.

Anyway, https://hg.mozilla.org/integration/mozilla-inbound/rev/304cd5d5124b
Status: NEW → ASSIGNED
Flags: in-testsuite+
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/7ce462a9693d
Status: ASSIGNED → RESOLVED
Closed: 12 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: