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

Rollback to known good commits (or not) #242

Open
sallyom opened this issue Sep 2, 2022 · 0 comments
Open

Rollback to known good commits (or not) #242

sallyom opened this issue Sep 2, 2022 · 0 comments

Comments

@sallyom
Copy link
Collaborator

sallyom commented Sep 2, 2022

  • Should fetchIt rollback to a last know good commit when it encounters an Apply error?
  • Should fetchIt track back commits and refuse to checkout a bad commit?

In previous discussions we thought yes to both and there is a PR in the works for this ^^ however I think we should not track bad commits at this time, because it is impossible for FetchIt to know what a bad commit is.

I think rollback is useful, but tracking bad commits might be out of scope. Here's why:
If rollback & TrackBadCommits is enabled - but the fix is outside the git code - like, a directory is supposed to exist on the host that doesn't - that would result in a workflow that can never progress to a good state because it's not the commit that's broken, it's the host. So, I think this means we can never confidently enable TrackBadCommits - there is no way for fetchit to know if the issue is the code in the commit or something else on the host.

btw, I'll point out that it was my (bad?) idea to track bad commits in the first place :)

@sallyom sallyom mentioned this issue Sep 2, 2022
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