-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix(sync): auto-sync loop when FailOnSharedResource #23357
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(sync): auto-sync loop when FailOnSharedResource #23357
Conversation
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-2.14 #23357 +/- ##
================================================
+ Coverage 55.31% 55.35% +0.04%
================================================
Files 339 339
Lines 57374 57373 -1
================================================
+ Hits 31735 31760 +25
+ Misses 22942 22926 -16
+ Partials 2697 2687 -10 ☔ View full report in Codecov by Sentry. |
/cherry-pick release-3.0 |
Cherry-pick failed with |
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
…rgoproj#23641) Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
…rgoproj#23641) Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Signed-off-by: enneitex <etienne.divet@gmail.com>
This PR fixes a loop when auto-sync is on and the application is configured to
FailOnSharedResource
.Auto-sync will try to compare the revisions in the sync results. However, the syncResult is not initialized on errors returned this early in SyncAppState.
In general, the errors happening early are validation also performed before auto-sync runs, but not in this case.
The real fix to prevent this from happening is #23356