0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 20:11:19 +01:00
gitea/services/actions
Giteabot f91b4dd959
Fix bugs in rerunning jobs (#29955) (#29983)
Backport #29955 by @Zettat123

Fix #28761
Fix #27884
Fix #28093

## Changes

### Rerun all jobs
When rerun all jobs, status of the jobs with `needs` will be set to
`blocked` instead of `waiting`. Therefore, these jobs will not run until
the required jobs are completed.

### Rerun a single job
When a single job is rerun, its dependents should also be rerun, just
like GitHub does
(https://github.com/go-gitea/gitea/issues/28761#issuecomment-2008620820).
In this case, only the specified job will be set to `waiting`, its
dependents will be set to `blocked` to wait the job.

### Show warning if every job has `needs`
If every job in a workflow has `needs`, all jobs will be blocked and no
job can be run. So I add a warning message.

<img
src="https://github.com/go-gitea/gitea/assets/15528715/88f43511-2360-465d-be96-ee92b57ff67b"
width="480px" />

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2024-03-22 03:57:10 +00:00
..
cleanup.go Artifacts retention and auto clean up (#26131) 2023-09-06 07:41:06 +00:00
clear_tasks.go Make Actions tasks/jobs timeouts configurable by the user (#27400) (#27402) 2023-10-03 10:26:35 +08:00
commit_status.go Fix pull request check list is limited (#26179) 2023-07-31 02:21:09 +00:00
init.go Move notification interface to services layer (#26915) 2023-09-05 18:37:47 +00:00
job_emitter.go The job should always run when if is always() (#29464) (#29469) 2024-02-28 12:22:31 +01:00
job_emitter_test.go The job should always run when if is always() (#29464) (#29469) 2024-02-28 12:22:31 +01:00
notifier.go Fix invalid link of the commit status when ref is tag (#29752) (#29908) 2024-03-20 04:36:32 +00:00
notifier_helper.go Make runs-on support variable expression (#29468) (#29782) 2024-03-14 10:19:01 +08:00
rerun.go Fix bugs in rerunning jobs (#29955) (#29983) 2024-03-22 03:57:10 +00:00
rerun_test.go Fix bugs in rerunning jobs (#29955) (#29983) 2024-03-22 03:57:10 +00:00
schedule_tasks.go Fix an actions schedule bug (#28942) (#28999) 2024-01-31 15:52:31 +00:00