Closed Bug 1038493 Opened 11 years ago Closed 11 years ago

Translation experiment should wait 5 days before activating treatment group

Categories

(Firefox :: Translations, defect)

defect
Not set
normal
Points:
3

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Felipe, Assigned: Felipe)

References

Details

Attachments

(2 files, 2 obsolete files)

On installation, the experiment will pick (by random 50% chance) users for the treatment or control groups, and store this info in prefs+experiment branch Language detection will be activated, but the UI remain inactive. After 10 wall days, users who were chosen to be part of the treatment group will get the showUI pref flipped, and then will start seeing the translation feature. I'm storing the branch info both in prefs+experiment as a way to test the hypothesis for bug 1038174. This experiment goes with the pref as the official source, and we'll be able to see in the FHR data if the branch assignment didn't reach 100% of installs, which means it was probably set but not saved for some users.
Blocks: 1035333
Attached patch Diff from previous version (obsolete) — Splinter Review
Attachment #8455849 - Flags: review?(benjamin)
Attached file Final bootstrap.js (templated) (obsolete) —
Hi Felipe, can you provide a point value and if the bug should be marked as [qa+] or [qa-]
Iteration: --- → 33.3
QA Whiteboard: [qa?]
qa- as QA should be done in bug 1035333
Points: --- → 3
QA Whiteboard: [qa?] → [qa-]
Flags: firefox-backlog+
Now with more logging through TelemetryLog
Attachment #8455849 - Attachment is obsolete: true
Attachment #8455849 - Flags: review?(benjamin)
Comment on attachment 8455889 [details] [diff] [review] Diff from previous experiment's bootstrap.js Now with more logging through TelemetryLog
Attachment #8455889 - Attachment description: patch.diff → Diff from previous experiment's bootstrap.js
Attachment #8455889 - Flags: review?(benjamin)
Attachment #8455889 - Attachment is obsolete: true
Attachment #8455889 - Flags: review?(benjamin)
Comment on attachment 8455889 [details] [diff] [review] Diff from previous experiment's bootstrap.js (Sry for the bugspam.. it's late and I set the obsolete flag in the wrong patch) One thing to note is that it would be interesting to know (and the logs would tell) if the pref file is not being saved properly for some users. But the usage of savePrefFile which I added here will likely reduce a lot the chance of that happening in comparison with the two previous experiments. It would be an exchange of ensuring this doesn't happen to users of this experiment, vs. testing the theory (and figuring out what % of users this affects).
Attachment #8455889 - Attachment is obsolete: false
Attachment #8455889 - Flags: review?(benjamin)
Attachment #8455850 - Attachment is obsolete: true
Comment on attachment 8455889 [details] [diff] [review] Diff from previous experiment's bootstrap.js Are there no available constants for reason 7 (upgrade)? Sounds like it should at least be a constant at the top of this file. Why is pref_install_time a char pref that you then convert back into an int (instead of just being an int pref consistently)? Does that have something to do with 64-bit values? I believe the daysElapsed >= 10 case should also have a savePrefFile call. r=me with those changes or explanations.
Attachment #8455889 - Flags: review?(benjamin) → review+
I'm worried about the complication this introduces (not being entirely familiar with the branch code), and Chad's worried about the implications on the amount of data we collect (and time before we collect it). Do we really want this?
(In reply to Benjamin Smedberg [:bsmedberg] Away 19-July through 3-Aug from comment #9) > Are there no available constants for reason 7 (upgrade)? The reason constants from https://developer.mozilla.org/en-US/Add-ons/Bootstrapped_extensions#Reason_constants (e.g. ADDON_UPGRADE) are defined in all bootstrap.js scopes IIRC.
(In reply to :Gavin Sharp [email: gavin@gavinsharp.com] from comment #10) > I'm worried about the complication this introduces (not being entirely > familiar with the branch code), and Chad's worried about the implications on > the amount of data we collect (and time before we collect it). Do we really > want this? This was suggested by Saptarshi on his doc analyzing the initial data from the current experiment. I think him/Chad should talk to see how much we want this. I think the delay could be lowered to 5 days though, 10 days sounds like a lot. The branch is not really used for anything here other than helping the data report and let us understand better if the current branch code is unreliable. But it does add the complication of the pref setting, and the update path in case we need to use it. (In reply to Benjamin Smedberg [:bsmedberg] Away 19-July through 3-Aug from comment #9) > Why is pref_install_time a char pref that you then convert back into an int > (instead of just being an int pref consistently)? Does that have something > to do with 64-bit values? I tried and an int pref can't properly store the value from Date.now()
Ye(In reply to :Felipe Gomes from comment #12) > This was suggested by Saptarshi on his doc analyzing the initial data from > the current experiment. I think him/Chad should talk to see how much we want > this. I think the delay could be lowered to 5 days though, 10 days sounds > like a lot. > Yes i guess 5 days is okay. 10 days is not too much given that users dont use FF every day. When you say 5 days do you mean 5 days of use? or 5 calendar days? I understand we want more time for the actual UI to be shown. So 5 (ideally 7) calendar days is okay.
Flags: needinfo?(felipc)
The code is going by calendar days, not days of use.
Flags: needinfo?(felipc)
Since most users don't use the browser daily, I made it 5 days because that will lead the interval to naturally fall between 5 - 8 days. http://hg.mozilla.org/webtools/telemetry-experiment-server/rev/a3c4c7e073a9
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Summary: Translation experiment should wait 10 days before activating treatment group → Translation experiment should wait 5 days before activating treatment group
Backed out in http://hg.mozilla.org/webtools/telemetry-experiment-server/rev/03a66c01de63 because it was decided not to go in this direction.
Resolution: FIXED → WONTFIX
Iteration: 33.3 → ---
Flags: firefox-backlog+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: