-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjusted some adblock components update check interval #20557
Adjusted some adblock components update check interval #20557
Conversation
0de0af1
to
ac38e41
Compare
Lets change it too 100mins, the adblock component update is every hour. to keep in sync with atleast 1 adblock component update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed with @mschfh, can we make the interval configurable via a Griffin parameter? We don't know the optimal update frequency yet and we should be able to significantly shorten it once we get differential update support.
@ryanbr @antonok-edm My PR have griffin support already :) Do we want 100mins interval as a default? |
Updated to 100mins for default update interval. |
ah, somehow I missed that 😄 thanks! |
components/brave_shields/browser/ad_block_component_installer.cc
Outdated
Show resolved
Hide resolved
ebb66f9
to
5d3d3ce
Compare
5d3d3ce
to
f3e8f53
Compare
BraveOnDemandUpdater::GetInstance()->OnDemandUpdate( | ||
kAdBlockResourceComponentId); | ||
}), | ||
base::Seconds(base::RandInt(0, 10))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simonhong
I wonder why we don't synchronize all the updates.
AFAIK, the component updater is designed to process multiple updates in a bunch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atuchin-m I didn't know we coud check update multiple components at once.
Could you point the example if possible? I'll try to find how to do it also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simonhong see SequentialUpdateChecker in our code base.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simonhong see SequentialUpdateChecker in our code base.
Oh, Thanks. I'll check it out!
Verification PASSED on
Using the STR/Cases outlined via #20557 (comment), ensured the following:
Verification PASSED on
|
Resolves brave/brave-browser#32274
Check below three adblock components update every 100mins. and this value can be updated via griffin.
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Open brave://components and check
adblock default resource component
is updated every 100mins.Pass
--variations-server-url=https://variations.bravesoftware.com/seed
to use 1min update check interval for QA tesing.AdBlockComponentUpdateIntervalStudy:Enabled
is shown