Rollback to known good commits (or not)

オープン
#242 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
git, go
領域
devops

調査の方向性

まず issue の議論と PR 209 を読み、Apply エラー後のロールバックと、提案されている TrackBadCommits の動作に注目してください。プロジェクトが不正なコミットの追跡をスコープに含めるかどうかを決定し、期待されるロールバックの動作を定義するまで、作業は準備完了とはなりません。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Go
スター
178
フォーク
25
平均マージ
1日 2時間
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

containers/fetchit のほかの issue

containers/fetchit の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。