Skip to content

Race condition on creating a deployment PR #128

Open
@apesternikov

Description

@apesternikov

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions