Closed
Bug 1389249
Opened 7 years ago
Closed 7 years ago
Autophone - handle cache properly on android
Categories
(Testing Graveyard :: Autophone, defect)
Testing Graveyard
Autophone
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bc, Assigned: bc)
References
Details
Attachments
(2 files)
860 bytes,
patch
|
jmaher
:
review+
snorp
:
feedback+
|
Details | Diff | Splinter Review |
1000 bytes,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
As noted in Bug 1388883, the cache used by Fennec is located in the /data/data/<appname> directory and not in the profile. If this is right, this means that our recreating the profile for each initial uncached measurement does not give us the real uncached behavior. In addition, the fact that we can run tests from autoland, inbound, mozilla-central, mozilla-beta, mozilla-release means we could also be hitting the specific issues with cached stale unit test files being served to the wrong builds. So should we ... 1. use the pref browser.cache.disk.parent_directory in bug 1388883 comment 3 to set the location of the cache to a location where we can delete it without root permissions or.. 2. use adb shell pm clear <app> suggested in bug 1388883 comment 2 though this may require root? It seems #1 is the better choice in that we can put the cache somewhere we can delete it. Snorp, any opinion?
Flags: needinfo?(snorp)
Yeah, option #1 seems fine to me.
Flags: needinfo?(snorp)
Assignee | ||
Comment 2•7 years ago
|
||
This patch sets the pref to place the cache underneath the <profile>/cache directory. The actual path to the cache files will be <profile>/cache/cache2. Snorp: Is this ok or is there a need to place the cache directory outside of the profile? It tests ok.
Attachment #8933646 -
Flags: review?(gbrown)
Attachment #8933646 -
Flags: feedback?(snorp)
Assignee | ||
Comment 3•7 years ago
|
||
Geoff, this patch is a belt & suspenders patch which uses the optional argument to install_profile properly and prevents the use of a "default" profile created by mozprofile by raising an exception in install_profile if the profile is not specified.
Attachment #8933647 -
Flags: review?(gbrown)
Attachment #8933646 -
Flags: feedback?(snorp) → feedback+
Assignee | ||
Updated•7 years ago
|
Attachment #8933646 -
Flags: review?(gbrown) → review?(jmaher)
Assignee | ||
Updated•7 years ago
|
Attachment #8933647 -
Flags: review?(gbrown) → review?(jmaher)
Comment 4•7 years ago
|
||
Comment on attachment 8933646 [details] [diff] [review] bug-1389249-v1.patch Review of attachment 8933646 [details] [diff] [review]: ----------------------------------------------------------------- code wise this is fine, sounds like snorp f+ this as well.
Attachment #8933646 -
Flags: review?(jmaher) → review+
Comment 5•7 years ago
|
||
Comment on attachment 8933647 [details] [diff] [review] bug-1389249-profile-v1.patch Review of attachment 8933647 [details] [diff] [review]: ----------------------------------------------------------------- I see this as problematic, but effective for now.
Attachment #8933647 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 6•7 years ago
|
||
https://github.com/mozilla/autophone/commit/440ef6cadae62a9a65ac8faf39682f53bfd5080c https://github.com/mozilla/autophone/commit/37cf1ce4ad22a25cdbdb5445fe1ba91157bee904 deploying shortly.
Blocks: autophone-deployments
Assignee | ||
Updated•7 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•2 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•