-
Notifications
You must be signed in to change notification settings - Fork 94
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
Consider skip parameter during preloading of configs on caching #1622
Conversation
…skip parameters set to true
E2E Test Results 4 files - 1 270 suites - 134 44m 14s ⏱️ - 29m 10s Results for commit 82890e7. ± Comparison against base commit 7ec89f8. This pull request removes 2 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
@@ -359,3 +359,50 @@ func Test_ScopedConfigsAreNotCached(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
func Test_gatherPreloadConfigTypeEntries_WithSkipParam(t *testing.T) { |
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.
What is your opinion if we divide this test into 3 subtests:
- skip = true
- skip = false
- skip is not defined (aka default value)
Is it going to be more readable?
82890e7
to
218316e
Compare
4777f90
to
bfe13fd
Compare
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
What this PR does / Why we need it:
Skip caching for configs of type classic and setting that have the skip parameter set to true. As the configs won't be deployed there is no need to chache them. With this being skipped, we also prevent performance degradation compared to the previous version.
Special notes for your reviewer:
Does this PR introduce a user-facing change?