-
Notifications
You must be signed in to change notification settings - Fork 5.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
Sync clash with failed to diff ... git diff ...
when using ManifestGeneratePaths and syncedRevision proceeds targetRevision
#21014
Comments
failed to diff ... git diff ...
when using ManifestGeneratePaths and syncedRevision proceeds targetRevisionfailed to diff ... git diff ...
when using ManifestGeneratePaths and syncedRevision proceeds targetRevision
Should we just not fail flow ( sync or reconcile ) in case if we were not able to update revision paths? i think it was mainly for performance optimization |
We can do that, but I think |
Thanks for the fix in #21015! We've been experiencing the error daily, is there a timeline to merge and release that? |
@pasha-codefresh |
…rgoproj#21015) Signed-off-by: toyamagu2021 <toyamagu2021@gmail.com> Signed-off-by: toyamagu-2021 <toyamagu2021@gmail.com> Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
…rgoproj#21015) Signed-off-by: toyamagu2021 <toyamagu2021@gmail.com> Signed-off-by: toyamagu-2021 <toyamagu2021@gmail.com>
…rgoproj#21015) Signed-off-by: toyamagu2021 <toyamagu2021@gmail.com> Signed-off-by: toyamagu-2021 <toyamagu2021@gmail.com> Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Checklist:
argocd version
.Describe the bug
481fbe3e687c8f339c0ecca000ee7ee7666a7aab
proceeds85dd68870f5c09225ae05c2b81e9136af7bce397
.ComparisonError: Failed to load target state: failed to compare revisions for source 1 of 1: rpc error: code = Internal desc = unable to get changed files for repo https://github.com/xxx/xxx.git with revision 85dd68870f5c09225ae05c2b81e9136af7bce397: failed to diff 481fbe3e687c8f339c0ecca000ee7ee7666a7aab..85dd68870f5c09225ae05c2b81e9136af7bce397: git diff --name-only 481fbe3e687c8f339c0ecca000ee7ee7666a7aab..85dd68870f5c09225ae05c2b81e9136af7bce397` failed exit status 128: fatal: Invalid revision range 481fbe3e687c8f339c0ecca000ee7ee7666a7aab..85dd68870f5c09225ae05c2b81e9136af7bce397 (retried 3 times).`
Root cause
argo-cd/reposerver/repository/repository.go
Line 2778 in 27d1e64
UpdateRevisionForPaths
update cache key with commit shaB and change syncRevision to shaB.UpdateRevisionForPaths
comparesgit diff shaB..shaA
by syncOperation.sha B
, so the error is thrown.git fetch origin
is skipped in some cases by feat(reposerver): Skip calling git fetch if commit to checkout exists locally #18657*To Reproduce
Described in root cause. Note that we need more than two repo-servers to reproduce this issue.
Expected behavior
Screenshots
Version
ArgoCD v2.13.1
Logs
The text was updated successfully, but these errors were encountered: