Closed Bug 1955169 Opened 1 year ago Closed 1 year ago

Record missing enrollment status telemetry

Categories

(Firefox :: Nimbus Desktop Client, task, P3)

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: beth, Assigned: beth)

References

Details

Attachments

(5 files, 1 obsolete file)

We need to record the NotEnrolled enrollment status when we dont match targeting or bucketing when we unenroll from an experiment or end up not enrolling.

Summary: Record NotEnrolled enrollment status telemetry → Record missing enrollment status telemetry
Duplicate of this bug: 1955170

Previously we were recording enrollment status telemetry everywhere we
were calling into enroll and _unenroll from onRecipe and
updateEnrollment. Now we record the enrollment status telemetry from
inside NimbusTelemetry.recordEnrollment and
NimbusTelemetry.recordUnenrollment, so that the enrollment status
telemetry is recorded from every enrollment event, not just during
RemoteSettingsExperimentLoader.updateRecipes().

To help with this, a new helper has been added, UnenrollmentCause,
which carries all the metadata required to unenroll from an experiment
(similar how CheckRecipeResult carries all the metadata for enrollment
and updating enrollment) and to submit the corresponding telemetry. Now
instead of calling unenroll() with a reason string, you must call it
with an object returned from one of the UenrollmentCause utilities.
All tests that were calling unenroll() with a string like
"test" or "cleanup" have been updated to remove the reason string. When
it is not present, the UnenrollmentCause will default to an "unknown"
reason, which is good enough for test cleanup.

Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/64ae848c4a2b Simplify recording of enrollment status telemetry r=omc-reviewers,nimbus-reviewers,aminomancer,chumphreys https://hg.mozilla.org/integration/autoland/rev/ac2b71a2ef17 Record NOT_ENROLLED status telemetry r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/32059aa54193 Record OPT_IN for Firefox Labs enrollment r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/c717d831bbc4 Record OPT_OUT for Firefox Labs and about:studies opt-outs r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/a07069ddb118 Record EnrollmentStatus telemetry for all remaining unenrollment reasons r=nimbus-reviewers,chumphreys

Backed out for causing xpc failures @test_ExperimentManager_enroll.js and bc failures @browser_about_studies.js.

Flags: needinfo?(brennie)
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/669a93c90421 Simplify recording of enrollment status telemetry r=omc-reviewers,nimbus-reviewers,aminomancer,chumphreys,application-update-reviewers,nalexander https://hg.mozilla.org/integration/autoland/rev/6c18b6e1178a Record NOT_ENROLLED status telemetry r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/04666fa6a9a4 Record OPT_IN for Firefox Labs enrollment r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/6f249fd9c97e Record OPT_OUT for Firefox Labs and about:studies opt-outs r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/2260624d1529 Record EnrollmentStatus telemetry for all remaining unenrollment reasons r=nimbus-reviewers,chumphreys

Backed out 5 changesets (Bug 1955169) for causing xpcshell failures on test_RemoteSettingsExperimentLoader_updateRecipes.

Push with failures

Failure log

Backout link

Flags: needinfo?(brennie)
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7523c66cf741 Simplify recording of enrollment status telemetry r=omc-reviewers,nimbus-reviewers,aminomancer,chumphreys,application-update-reviewers,nalexander https://hg.mozilla.org/integration/autoland/rev/dec22291ce40 Record NOT_ENROLLED status telemetry r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/527cbe48536b Record OPT_IN for Firefox Labs enrollment r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/aec590ec0dcc Record OPT_OUT for Firefox Labs and about:studies opt-outs r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/c4164da0418a Record EnrollmentStatus telemetry for all remaining unenrollment reasons r=nimbus-reviewers,chumphreys
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d114660d9175 Simplify recording of enrollment status telemetry r=omc-reviewers,nimbus-reviewers,aminomancer,chumphreys,application-update-reviewers,nalexander https://hg.mozilla.org/integration/autoland/rev/123eb3f4b8fe Record NOT_ENROLLED status telemetry r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/93f874c3e8b9 Record OPT_IN for Firefox Labs enrollment r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/fe2c7eda57df Record OPT_OUT for Firefox Labs and about:studies opt-outs r=nimbus-reviewers,chumphreys https://hg.mozilla.org/integration/autoland/rev/a612a7074eb8 Record EnrollmentStatus telemetry for all remaining unenrollment reasons r=nimbus-reviewers,chumphreys
Blocks: 1959879
QA Whiteboard: [qa-triage-done-c140/b139]
Depends on: 1985109
No longer depends on: 1985109

Comment on attachment 9518477 [details]
Bug 1955169 - Request longer timeout for various nimbus tests r?#nimbus-reviewers

Revision D267658 was moved to bug 1991153. Setting attachment 9518477 [details] to obsolete.

Attachment #9518477 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: