Closed Bug 1643395 Opened 4 years ago Closed 4 years ago

Add test capability for FOG to direct pings to local servers

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: chutten, Assigned: chutten)

References

Details

(Whiteboard: [telemetry:fog:m4])

Attachments

(1 file)

Integration tests of FOG-having Firefox Desktop instances will require some way to change the server that pings are uploaded to from incoming.telemetry.mozilla.org to one hosted on a port on the local machine.

I think we should be able to do this by:

  • Making a pref (marionette can set prefs) for what port we should use
  • Reading that pref on every upload
    • If that pref is absent or 0, use https://incoming.telemetry.mozilla.org
    • If that pref is present and non-0, send to http://localhost:prefport (note the protocol)

Test procedure for this patch was to add the patch to t/c/g/src/lib.rs from https://bugzilla.mozilla.org/show_bug.cgi?id=1623304#c10, build FIrefox, and run it with RUST_LOG="fog,glean" ./mach run. The log should print out the url it tried to post the ping to which, if the pref is set to a value greater than 0, is localhost.

Pushed by chutten@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/62626a107c76
Allow configuring FOG server to localhost via pref r=janerik
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: