Closed Bug 1791615 Opened 2 years ago Closed 2 years ago

Pocket newtab cache time update experiment

Categories

(Firefox :: Pocket, enhancement)

enhancement

Tracking

()

VERIFIED FIXED
107 Branch
Tracking Status
firefox106 + verified
firefox107 --- verified

People

(Reporter: thecount, Assigned: thecount)

References

Details

Attachments

(1 file)

We want to run an experiment that reduces the cache time for sponsored content from 30 mins to something lower, like 10 minutes.

The goal is to fix pacing issues and find any potential negative impact with this change.

Assignee: nobody → sdowne
Pushed by sdowne@getpocket.com:
https://hg.mozilla.org/integration/autoland/rev/98461e4a690c
Pocket newtab configurable cache time. r=gvn
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
Blocks: 1792735

[Tracking Requested - why for this release]: Ideally, we want this for an experiment in ff106.

Comment on attachment 9296032 [details]
Bug 1791615 - Pocket newtab configurable cache time.

Beta/Release Uplift Approval Request

  • User impact if declined: Experiment that changes how long a user sees certain content before seeing fresh content.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. Set browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true.
  1. Ensure you can see spocs.

  2. Open about:newtab#devtools-ds

  3. Scroll down to the spocs section, and find "Data last fetched 30 minutes ago"

  4. It should be around 40 minutes or less.

  5. Leave it on until it has been fetched greater than 40 minutes.

  6. Expected: It should never get above 40 minutes (you might have to refresh the devtools page)

  7. New test, create the pref browser.newtabpage.activity-stream.discoverystream.spocs.cacheTimeout with the string value of 5.

  8. Go through steps 3-4 again.

  9. Expected: If you leave it now, it should never go above 10 minutes. (cache times are usually 5-30 minutes, but there is a system tick that's another 5 minutes, so in practice the expire time can have another 5 minutes added onto it.)

  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): I think it's a small patch, but more than a 1 liner, and it has been on nightly for a week. We've looked at nightly telemetry and it looks like nothing has changed. I have also done extensive QA locally.

I think though the biggest risk isn't something that would come by landing it sooner or later. The primary risks for a change like this are likely to not be noticed until it hits release/has been on release for a bit.

  • String changes made/needed: None
  • Is Android affected?: No
Attachment #9296032 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9296032 [details]
Bug 1791615 - Pocket newtab configurable cache time.

Approved for 106.0b8, thanks.

Attachment #9296032 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I've managed to verify this issue on Beta 106.0b8 with macOS 11 and Win 10 x64, but I've encountered some potential issues regarding the data last fetched time, which is exceeding 10 minutes after modifying the pref browser.newtabpage.activity-stream.discoverystream.spocs.cacheTimeout.

I've pinged Scott on slack regarding this, and he will look into it as well.

I was able to properly verify this on Beta 106.0b9, after bug 1792735 landed as well. I've checked this on Nightly 107.0a1 too, using Win 11 x64, macOS 11 and Ubuntu 18.04 x64.

Thanks Scott, for the extra details provided on slack.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: