Skip to content
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

Git driver silently fails to push on retry #82

Open
ljfranklin opened this issue Nov 14, 2018 · 1 comment
Open

Git driver silently fails to push on retry #82

ljfranklin opened this issue Nov 14, 2018 · 1 comment

Comments

@ljfranklin
Copy link
Contributor

We had a build CI in fail to push the bump commit using the git driver even though the put step went green. We think this is due to the retry logic here. In that event that the git commit succeeds but the git push fails, the method is retried but will exit without pushing as it thinks there is nothing to commit.

We also noticed in this that the get step does not do any sanity checking to make sure that the version passed to it via the request matches the version that's located on disk. If this mismatch were caught, we would have seen it fail in the implicit get afterwards. We think the fact that it stopped looking at disk happened in this commit. Adding this behavior might be tricky if you are dealing with storage that's eventually consistent (like S3).

ljfranklin added a commit to ljfranklin/semver-resource that referenced this issue Nov 19, 2018
@ljfranklin
Copy link
Contributor Author

Our original theory was off as on retry the resource runs reset --hard which should clear out any commits which haven't been pushed. Opened a PR here to add additional logging to help us debug this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant