-
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(appset): Don't use revision cache when reconciling after webhook (#16062) #16241
Conversation
eedc67e
to
9575fff
Compare
9575fff
to
8569613
Compare
…cile (argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
…rgoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
8569613
to
95ec130
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #16241 +/- ##
=======================================
Coverage 49.51% 49.52%
=======================================
Files 269 269
Lines 46990 46995 +5
=======================================
+ Hits 23269 23274 +5
Misses 21437 21437
Partials 2284 2284
☔ View full report in Codecov by Sentry. |
LGTM, but I am not a Code Owner |
@crenshaw-dev could you take a look when you are available. |
Awesome! Thanks for the fix! We've been waiting for this :) ❤️ |
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!
/cherry-pick release-2.9 |
/cherry-pick release-2.8 |
…16062) (#16241) * fix(appset): store sha from webhook to get latest change during reconcile (#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> * fix(appset): Don't use revision cache when reconciling after webhook(#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
Cherry-pick failed with |
…16062) (#16241) (#16536) * fix(appset): store sha from webhook to get latest change during reconcile (#16062) * fix(appset): Don't use revision cache when reconciling after webhook(#16062) --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> Co-authored-by: Dhruvang Makadia <dhruvang1@users.noreply.github.com>
…rgoproj#16062) (argoproj#16241) * fix(appset): store sha from webhook to get latest change during reconcile (argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> * fix(appset): Don't use revision cache when reconciling after webhook(argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
…16062) (#16241) (#16543) * fix(appset): store sha from webhook to get latest change during reconcile (#16062) * fix(appset): Don't use revision cache when reconciling after webhook(#16062) --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> Co-authored-by: Dhruvang Makadia <dhruvang1@users.noreply.github.com>
…rgoproj#16062) (argoproj#16241) * fix(appset): store sha from webhook to get latest change during reconcile (argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> * fix(appset): Don't use revision cache when reconciling after webhook(argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
…rgoproj#16062) (argoproj#16241) * fix(appset): store sha from webhook to get latest change during reconcile (argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> * fix(appset): Don't use revision cache when reconciling after webhook(argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
Any chance of getting a tag of 2.9.x that includes this fix? 🙏 |
…rgoproj#16062) (argoproj#16241) * fix(appset): store sha from webhook to get latest change during reconcile (argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> * fix(appset): Don't use revision cache when reconciling after webhook(argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
hi we are experiencing same issue with AppSets not reconciliating new Apps, currently we found temp fix is to do manual hard refresh on any existing App from AppSet which triggers reconcilliation immediately, but thats cumbersome and prone to pointing teams to overuse hard refresh for everything |
…rgoproj#16062) (argoproj#16241) * fix(appset): store sha from webhook to get latest change during reconcile (argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> * fix(appset): Don't use revision cache when reconciling after webhook(argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> Signed-off-by: Kevin Lyda <kevin@lyda.ie>
…rgoproj#16062) (argoproj#16241) * fix(appset): store sha from webhook to get latest change during reconcile (argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> * fix(appset): Don't use revision cache when reconciling after webhook(argoproj#16062) Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com> --------- Signed-off-by: dhruvang1 <dhruvang1@users.noreply.github.com>
Repo Server is using ref caching in
GetGitFiles
which prevents AppSet from seeing the new commit. There are few approaches to solve it:GetGitFiles
.noRevisionCache
parameter inGitFilesRequest
. On reconciliation triggered from webhook, passnoRevisionCache: true
to repo server to force the Git Server polling to get the latest commit.Explicitly pass the commit sha in request(complex as an AppSet can have multiple git generator)We store the commit sha obtained from the webhook in AppSet annotation. On next reconciliation, pass the commit sha as revision. Repo server has the logic to handle commit sha and no changes are required there.Checklist:
Fixes #16062