-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Support Actions concurrency
syntax
#32751
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
Draft
Zettat123
wants to merge
19
commits into
go-gitea:main
Choose a base branch
from
Zettat123:support-actions-concurrency
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d6a95ce
support concurrency
Zettat123 f713c68
Merge branch 'main' of https://github.com/go-gitea/gitea into pr/Zett…
ChristopherHX 76f58ef
fix: lint
ChristopherHX 249e315
fix: assert correct status code
ChristopherHX b012126
fix: rerun all jobs did not respect concurrency
ChristopherHX 91fccb7
Fix and Test rerun single jobs
ChristopherHX 2e6032a
Remove CancelJobsByJobConcurrency in PickTask
ChristopherHX 1a08b87
Merge branch 'main' of https://github.com/go-gitea/gitea into pr/Zett…
ChristopherHX 9bba25e
remove code
ChristopherHX e6d25e2
Merge branch 'main' of https://github.com/go-gitea/gitea into pr/Zett…
ChristopherHX dc86086
call EmitJobsIfReady when cancelling a run
Zettat123 8721155
add TestCancelConcurrentRun
Zettat123 c5444e7
improve concurrency index
Zettat123 63eaf15
modify cancel-in-progress behavior
Zettat123 96d6938
fix bugs and tests
Zettat123 ea2bc92
Merge branch 'main' into support-actions-concurrency
Zettat123 a4b76b6
update InsertRun
Zettat123 ca18672
modify cancel-in-progress behavior
Zettat123 dc003e4
fix lint
Zettat123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Queue EmitJobsIfReady from Actions Notifier Job and Workflow Completed?
(The event source used by workflow_run and workflow_job webhooks / action trigger)
I mean whatif the job is cancelled by abandoning or other reasons.
Less explicit code that has the same weakness towards all ways of cancellation
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.
When a job completes (regardless of its status being successful, failed or cancelled), we need to check for other jobs that might have been blocked by it. I add the cancelled job to the queue so that the blocked jobs can be detected.
Yes, this change cannot cover all cases where jobs are cancelled. So I am thinking that if we can do this check when a job reaches its final status (Success, Failed, Cancelled, and Skipped). Maybe we can move
UpdateRunJob
toservices
layer to allow it to callEmitJobsIfReady
when a job's status is updated.