Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple drafts created due to GH workflow concurency #2944

Open
lemeurherve opened this issue May 17, 2022 · 0 comments
Open

Multiple drafts created due to GH workflow concurency #2944

lemeurherve opened this issue May 17, 2022 · 0 comments
Labels
pipeline-library release-drafter triage Incoming issues that need review

Comments

@lemeurherve
Copy link
Member

From release-drafter/release-drafter#1146

On the Jenkins infrastructure project, we've hit a reproductible case where we have multiple times the same draft created by release-drafter, while we have fixed the tag and release name to the static value next.

There are multiple causes that make it an "edge" case:

we define a static name for the "draft next release" so we expect only 1 at a given time
Jenkins is publishing the draft release to a given tag version, which is a parallel process to the Github workflow builds
we have the release: trigger event for release-drafter's workflow (we have a new "next release draft" published right after Jenkins publishing a given release)

In our case, since we "patch" the release, there are 3 events triggering 3 concurent builds of the GH workflow: it results in 3 different "next release draft":

image

image

We are thinking, in the short term, to enable the "concurency" feature of GH action (docs.github.com/en/actions/using-jobs/using-concurrency) so only 1 release-drafter job would be executed at once, streamlining the executions. The 2nd and 3rd builds in our case should pick the previous next release because executed AFTER.

Related:

@github-actions github-actions bot added the triage Incoming issues that need review label May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipeline-library release-drafter triage Incoming issues that need review
Projects
None yet
Development

No branches or pull requests

1 participant