-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][workflow] Support concurrency group and reusable workflow files in docbot #16060
Conversation
Multi workflows can be triggered while opened then labeled instantly, This scenario will cause inconsistent state of action. Signed-off-by: Max Xu <maxs.xu@gmail.com>
btw. please also change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #16060 (comment) . I think it makes sense to address it in the same PR.
Thanks for this great suggestion! Totally agree with this method. Just a detail: If we address it in the same PR, should we change the PR title? @lhotari |
yes that makes sense. |
Signed-off-by: Max Xu <maxs.xu@gmail.com>
@@ -46,7 +50,7 @@ jobs: | |||
go-version: 1.18 | |||
|
|||
- name: Labeling | |||
uses: apache/pulsar-test-infra/docbot@master | |||
uses: ./docbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we cannot use apache/pulsar-test-infra/docbot@master
in this case like pulsarbot?
cc @maxsxu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tisonkun I've explained that in this comment: #16060 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we adopt docker container action as described in apache/pulsar-test-infra#58, we may need not to checkout the code as well as setup-go, just use the action itself ><
Fixes #16046
Motivation
Multiple workflows can be running concurrently while
labeled
event triggered instantly afteropened
event before the docbot workflow is running.This scenario will cause an inconsistent state of action and confused results.
Modifications
Added
concurrency
concurrency.group
means workflow using the same concurrency group will be pendingconcurrency.cancel-in-progress
will cancel any currently running job or workflow in the same concurrency group. This option can resolve the inconsistent state issue.Tests
The demo can be found at open-github#12
And the workflow status