Closed Bug 1632131 Opened 5 years ago Closed 5 years ago

Implement the string metric type

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: janerik, Assigned: janerik)

References

Details

(Whiteboard: [telemetry:fog:m3])

Attachments

(2 files)

Implement a string metric for Project FOG

Blocks: 1632169

Currently there's no user, so we do some trickery to actually make sure
it gets compiled.

It also lacks any test, due to it being a bit more complex to set up a
Glean instance for a test run (we need a temporary directory and we need
the additional info and ... lots of boiler plate)

(In reply to Jan-Erik Rediger [:janerik] from comment #1)

It also lacks any test, due to it being a bit more complex to set up a
Glean instance for a test run (we need a temporary directory and we need
the additional info and ... lots of boiler plate)

Maybe this is a good reason to put this in "glean-sdk" :-P

(In reply to Alessio Placitelli [:Dexter] from comment #2)

(In reply to Jan-Erik Rediger [:janerik] from comment #1)

It also lacks any test, due to it being a bit more complex to set up a
Glean instance for a test run (we need a temporary directory and we need
the additional info and ... lots of boiler plate)

Maybe this is a good reason to put this in "glean-sdk" :-P

well, yeah, for that part (I'm less worried about it now, it's literally just forwarding the call).
But later we will have IPC in that part of the code and that will need tests (but that will then require a full firefox anyway)

A first Rust test, which should run without any interaction with
Firefox.
This will eventually break down when we get IPC in there.

Depends on D72128

Attachment #9143082 - Attachment description: Bug 1632131 - Simple smoke test for FOG's string metrci type. r?chutten! → Bug 1632131 - Simple smoke test for FOG's string metric type. r?chutten!
Pushed by jrediger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/559882b9b092 Implement a string metric for the in-tree Glean API. r=chutten https://hg.mozilla.org/integration/autoland/rev/7715960a9f53 Simple smoke test for FOG's string metric type. r=chutten

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&fromchange=7715960a9f53b7f1099cbfec01be248952bca06a&tochange=a7cafec28c8e15e7bf22b85adaaa92ce8476f5e4&searchStr=sm&selectedJob=299277833

Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=299279914&repo=autoland

Backout link: https://hg.mozilla.org/integration/autoland/rev/a7cafec28c8e15e7bf22b85adaaa92ce8476f5e4

[task 2020-04-24T16:26:29.879Z] + export RUSTFMT=/builds/worker/fetches/rustc/bin/rustfmt
[task 2020-04-24T16:26:29.879Z] + RUSTFMT=/builds/worker/fetches/rustc/bin/rustfmt
[task 2020-04-24T16:26:29.879Z] + export RUST_BACKTRACE=1
[task 2020-04-24T16:26:29.879Z] + RUST_BACKTRACE=1
[task 2020-04-24T16:26:29.879Z] + export AUTOMATION=1
[task 2020-04-24T16:26:29.879Z] + AUTOMATION=1
[task 2020-04-24T16:26:29.879Z] + cargo build --verbose --frozen --features debugmozjs
[task 2020-04-24T16:26:31.162Z] error: the lock file /builds/worker/workspace/build/src/Cargo.lock needs to be updated but --frozen was passed to prevent this
[fetches 2020-04-24T16:26:31.171Z] removing /builds/worker/fetches
[fetches 2020-04-24T16:26:31.660Z] finished
[taskcluster 2020-04-24 16:26:32.193Z] === Task Finished ===
[taskcluster 2020-04-24 16:26:32.288Z] Artifact "public/build" not found at "/builds/worker/artifacts/"
[taskcluster 2020-04-24 16:26:32.435Z] Unsuccessful task run with exit code: 101 completed in 38.993 seconds
Flags: needinfo?(jrediger)

Looks like there's an extra line in Cargo.lock. Lemme remove that and resubmit.

Flags: needinfo?(jrediger)
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/adc3d5d6d340 Implement a string metric for the in-tree Glean API. r=chutten https://hg.mozilla.org/integration/autoland/rev/d2d6233b7691 Simple smoke test for FOG's string metric type. r=chutten
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: