Race condition on creating a deployment PR
- 主要言語
- Starlark
- スター
- 208
- フォーク
- 45
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
There was a race condition observed:
precondition: deployment branch deploy/name and PR exists
a new gitops workflow run that include update to the deployment
prer in the run fetches the repo with deploy/* branches and start rendering manifests
original PR 1 merged and branch automatically deleted
prer in the run pushes the updated deployment branch and creates a new PR
As a result, the newly created branch and PR includes exact copy of the commits history from the original branch which causes a merge conflict since changes are already present in the target branch (main)
コントリビューションガイド
調査の方向性
ファイルやテストは指定されていません。まず、ここで説明されている deployment-branch の fetch、manifest のレンダリング、push、PR 作成のシーケンスに沿って GitOps workflow を追跡し、その後で merge と branch 削除の間の race を再現してください。元の PR が merge された後に再実行すると、main にすでに存在するコミットを再適用したり merge conflict を発生させたりせずに deployment branch と PR が作成されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, kubernetes
- 領域
- ci-cd, devops, infrastructure
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100