Closed Bug 1868584 Opened 2 years ago Closed 2 years ago

Glean debug ping viewer doesn't work if debug tag is too long - should have input validation on the debug tag

Categories

(Toolkit :: Telemetry, defect)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

Attachments

(1 external file)

(Please fix the summary. I don't know what's wrong.)

STR:

  1. open about:glean
  2. set custom identifier to something (I picked gijs-glean-dumb-test, ymmv).
  3. change dropdown to events
  4. do some stuff that creates events
  5. click "apply settings and submit ping"
  6. check https://debug-ping-preview.firebaseapp.com/pings/gijs-glean-dumb-test
  7. do some more stuff that creates events
  8. check https://debug-ping-preview.firebaseapp.com/pings/gijs-glean-dumb-test some more
  9. wait an hour or two
  10. check https://debug-ping-preview.firebaseapp.com/pings/gijs-glean-dumb-test some more, doubting yourself

ER:

in step 6/8/10: see data

AR:
no data

I don't know how to debug this but I can try to remember not to shut down nightly for a bit in case there are debug steps that can help explain why this isn't working. On this nightly, datareporting.healthreport.uploadEnabled is set to true so that's not it...

Weird, you should be seeing a bunch of "baseline" pings in there with your debug tag, even if "events" pings weren't being manually triggered...

AH. Debug view tags need to be between 1 and 20 characters long according to the docs. gijs-glean-dumb-test is 21 characters long.

This is similar to another problem we had recently where someone added (via envvar) a debug tag with a in it.

I can't catch the envvar one (we do have logging, but it's usually turned off by the application), but I can put validation in about:glean. And for now, if you lop a char or two off the end you should be sorted. Sorry about this!

Severity: -- → S3
Summary: Glean debug ping viewer doesn't work → Glean debug ping viewer doesn't work if debug tag is too long - should have input validation on the debug tag
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED

It would probably also be nice if the glean page for the tag also had some variation of "hey by the way this tag isn't valid so there will never be results here, kthxbye" but I don't know where the code lives so I can't submit a PR for that...

The bug-shaped icon at the top-right of the debug ping viewer links to https://github.com/mozilla/debug-ping-view/issues

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

The bug-shaped icon at the top-right of the debug ping viewer links to https://github.com/mozilla/debug-ping-view/issues

Thanks for pointing this out. I don't know enough about firebase + react to help, unfortunately. I noticed https://github.com/mozilla/debug-ping-view/issues/32 and will add this to the see also here, but honestly I'm not in a position to figure out how to fix that issue. :-(

Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/82ba22163519 document debug glean ping tag restrictions in about:glean, r=chutten,fluent-reviewers,desktop-theme-reviewers,kpatenio,dao
Backout by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dc448ef3ee8c Backed out changeset 82ba22163519 as requested by Gijs. CLOSED TREE
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/95f21f70bb4a document debug glean ping tag restrictions in about:glean, r=chutten,fluent-reviewers,desktop-theme-reviewers,kpatenio,dao
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: