-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix: broken Git file generator caching (fixes #13440) #13452
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #13452 +/- ##
==========================================
- Coverage 49.15% 49.15% -0.01%
==========================================
Files 248 248
Lines 42891 42893 +2
==========================================
Hits 21082 21082
- Misses 19691 19693 +2
Partials 2118 2118
☔ View full report in Codecov by Sentry. |
1ecf858
to
a11c620
Compare
@gdsoumya can you please take a look? |
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.
LGTM!
Thanks for the fix!
Head branch was pushed to by a user without write access
a11c620
to
9aba418
Compare
Signed-off-by: Denis Dupeyron <denis.dupeyron@gmail.com>
Head branch was pushed to by a user without write access
9aba418
to
94562a0
Compare
Signed-off-by: Denis Dupeyron <denis.dupeyron@gmail.com>
Head branch was pushed to by a user without write access
94562a0
to
1521782
Compare
…oj#13452) * chore: add .*.swp to .gitignore for Vim users Signed-off-by: Denis Dupeyron <denis.dupeyron@gmail.com> * fix: add search pattern to Git file generator cache key (argoproj#13440) Signed-off-by: Denis Dupeyron <denis.dupeyron@gmail.com> --------- Signed-off-by: Denis Dupeyron <denis.dupeyron@gmail.com>
The Git file generator currently assumes that only a single Git file generator will ever exist for any repository. If multiple generators exist the cache will always return the results of the first file search that randomly happened to all subsequent searches.
This PR adds the search pattern to the Git file generator cache key in order to individualize cache entries for the Git file generator.
Note that
reposerver/cache/types.go
is deleted since it is no longer needed.Fixes #13440
Checklist: