containers / fetchit

FetchIt is used to manage the life cycle and configuration of Podman containers
https://fetchit.readthedocs.io/
GNU Affero General Public License v3.0
124 stars 23 forks source link

Rollback to known good commits (or not) #242

Open sallyom opened 2 years ago

sallyom commented 2 years ago

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 :)