Closed Bug 1917939 Opened 2 years ago Closed 1 year ago

Add telemetry metric for vivo partnership

Categories

(Firefox for Android :: Experimentation and Telemetry, task)

All
Android
task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox132 --- fixed
firefox133 --- fixed

People

(Reporter: joberhauser, Assigned: joberhauser)

References

Details

(Whiteboard: [fxdroid])

Attachments

(2 files, 3 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Ensure these metrics are in place

first_session.distribution_id
metrics.distribution_id

Remove app_opened event extra key: deal_id

Assignee: nobody → joberhauser
Whiteboard: [fxdroid]
Attachment #9424527 - Attachment description: WIP: Bug 1917939: Adding string metric first_session.deal_id to help track vivo distributions → Bug 1917939: Adding string metric first_session.deal_id to help track vivo distributions
Attachment #9424527 - Attachment description: Bug 1917939: Adding string metric first_session.deal_id to help track vivo distributions → Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes.
Attachment #9424527 - Attachment description: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. → WIP: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes.
Attachment #9424527 - Attachment description: WIP: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. → Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes.
Pushed by joberhauser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3410ee200ff1 Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. r=android-reviewers,gmalekpour,twhite
Pushed by joberhauser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e901496a2979 Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. r=android-reviewers,gmalekpour,twhite
Attachment #9424527 - Attachment description: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. → WIP: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes.
Attachment #9424527 - Attachment description: WIP: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. → Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes.
Attachment #9424527 - Attachment description: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. → WIP: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes.
Attachment #9424527 - Attachment description: WIP: Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. → Bug 1917939: Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes.
Pushed by joberhauser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c1a6577204f Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. r=android-reviewers,gmalekpour,twhite

Backed out for causing fenix failures related to FirstSessionPingTest.checkAndSend().

[task 2024-10-03T22:16:34.690Z] SUITE: org.mozilla.fenix.components.metrics.FirstSessionPingTest
[task 2024-10-03T22:16:34.690Z]   TEST: WHEN build version is more than R THEN installSourcePackage returns the set package name
[task 2024-10-03T22:16:35.189Z]   SUCCESS
[task 2024-10-03T22:16:35.190Z] 
[task 2024-10-03T22:16:35.190Z]   TEST: checkAndSend() triggers the ping if it wasn't marked as triggered
[task 2024-10-03T22:16:35.489Z]     Exception in thread "DefaultDispatcher-worker-3 @coroutine#550" io.mockk.MockKException: no answer found for BrowserStore(#1383).getState() among the configured answers: ()
[task 2024-10-03T22:16:35.490Z]     at io.mockk.impl.stub.MockKStub.defaultAnswer(MockKStub.kt:93)
[task 2024-10-03T22:16:35.490Z]     at io.mockk.impl.stub.MockKStub.answer(MockKStub.kt:44)
[task 2024-10-03T22:16:35.490Z]     at io.mockk.impl.recording.states.AnsweringState.call(AnsweringState.kt:16)
[task 2024-10-03T22:16:35.490Z]     at io.mockk.impl.recording.CommonCallRecorder.call(CommonCallRecorder.kt:53)
[task 2024-10-03T22:16:35.490Z]     at io.mockk.impl.stub.MockKStub.handleInvocation(MockKStub.kt:271)
[task 2024-10-03T22:16:35.490Z]     at io.mockk.impl.instantiation.JvmMockFactoryHelper$mockHandler$1.invocation(JvmMockFactoryHelper.kt:24)
[task 2024-10-03T22:16:35.490Z]     at io.mockk.proxy.jvm.advice.Interceptor.call(Interceptor.kt:21)
[task 2024-10-03T22:16:35.490Z]     at mozilla.components.lib.state.Store.getState(Store.kt:67)
[task 2024-10-03T22:16:35.490Z]     at org.mozilla.fenix.distributions.DistributionIdUtilKt.getDistributionId(DistributionIdUtil.kt:36)
[task 2024-10-03T22:16:35.490Z]     at org.mozilla.fenix.distributions.DistributionIdUtilKt.getDistributionId$default(DistributionIdUtil.kt:32)
[task 2024-10-03T22:16:35.490Z]     at org.mozilla.fenix.components.metrics.FirstSessionPing$triggerPing$1.invokeSuspend(FirstSessionPing.kt:71)
[task 2024-10-03T22:16:35.490Z]     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
[task 2024-10-03T22:16:35.490Z]     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
[task 2024-10-03T22:16:35.490Z]     at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
[task 2024-10-03T22:16:35.490Z]     at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
[task 2024-10-03T22:16:35.490Z]     at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
[task 2024-10-03T22:16:35.490Z]     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
[task 2024-10-03T22:16:35.490Z]     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
[task 2024-10-03T22:16:35.490Z]     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
[task 2024-10-03T22:16:35.490Z]     Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [CoroutineId(550), "coroutine#550":StandaloneCoroutine{Cancelling}@7416dfbf, Dispatchers.IO]
[task 2024-10-03T22:16:40.590Z]   TEST-UNEXPECTED-FAIL | org.mozilla.fenix.components.metrics.FirstSessionPingTest.checkAndSend() triggers the ping if it wasn't marked as triggered | java.lang.AssertionError: Verification failed: call 1 of 1: FirstSessionPing(#1384).markAsTriggered$app_fenixDebug()) was not called.
Pushed by joberhauser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/614abe81fac6 Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. r=android-reviewers,gmalekpour,twhite
Pushed by joberhauser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e3b744666cdc Using metrics.distribution_id and first_session.distribution_id metrics to help track vivo distributions. Removing the deal_id extra key from the app_opened event because it's no longer needed. Updating some naming of classes. r=android-reviewers,gmalekpour,twhite
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Flags: needinfo?(joberhauser)
Attachment #9431643 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: No user impact. Only business related impact.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: QE testing happened in nightly
  • Risk associated with taking this patch: minimal
  • Explanation of risk level: Patches touch telemetry and add vendor specific google search codes. Unit tests and QA have shown no regressions.
  • String changes made/needed: none
  • Is Android affected?: yes
Attachment #9431702 - Flags: approval-mozilla-beta?
Attachment #9431643 - Attachment is obsolete: true
Attachment #9431643 - Flags: approval-mozilla-beta?
Attachment #9431708 - Flags: approval-mozilla-beta?
Attachment #9431708 - Attachment is obsolete: true
Attachment #9431708 - Flags: approval-mozilla-beta?
Attachment #9431715 - Flags: approval-mozilla-beta?
Attachment #9431702 - Attachment is obsolete: true
Attachment #9431702 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: No user impact. Only business related impact.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: QE testing happened in nightly
  • Risk associated with taking this patch: minimal
  • Explanation of risk level: Patches touch telemetry and add vendor specific google search codes. Unit tests and QA have shown no regressions.
  • String changes made/needed: none
  • Is Android affected?: yes
Attachment #9431715 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: