-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
tests: remove unnecessary cache clearing #16988
Conversation
This PR removes all remaining unnecessary cache clearing in tests from the codebase since we now clear all cachable classes between tests making this functionally unnecessary. Original PR to automatically clear caches: - #16746 I also moved the `Utils::Analytics` module to use cachable so that we don't have to clear caches specifically in tests anymore.
extend Cachable | ||
|
||
class << self | ||
include Context |
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.
We could potentially remove the class << self
here for consistency but that would blow up the size of the diff a lot.
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.
@apainintheneck Worth doing in follow-up PR! In general I think it's not worth blowing up size of diff if disabling whitespace changes can hide it 👍🏻
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.
Thanks once more @apainintheneck!
extend Cachable | ||
|
||
class << self | ||
include Context |
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.
@apainintheneck Worth doing in follow-up PR! In general I think it's not worth blowing up size of diff if disabling whitespace changes can hide it 👍🏻
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This PR removes all remaining unnecessary cache clearing in tests from the codebase since we now clear all cachable classes between tests making this functionally unnecessary.
Original PR to automatically clear caches:
I also moved the
Utils::Analytics
module to use cachable so that we don't have to clear caches specifically in tests anymore.