Rollback to known good commits (or not)

Abierto
#242 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
git, go
Área
devops

Línea de trabajo

Empieza leyendo la discusión del issue y el PR 209, centrándote en el rollback después de un error de Apply y en el comportamiento propuesto de TrackBadCommits. El trabajo no estará listo hasta que el proyecto decida si el seguimiento de commits incorrectos está dentro del alcance y defina el comportamiento esperado del rollback.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Go
Estrellas
178
Forks
25
Merge medio
1 d 2 h
PR fusionados (30 d)
2

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de containers/fetchit

Todos los issues de containers/fetchit

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.