adobe / adobe/rules_gitops

Race condition on creating a deployment PR

オープン
#128 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
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

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

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