jojo/services/actions/Test_tryHandleIncompleteMatrix
Mathieu Fenniak 032b0bbeda [v14.0/forgejo] fix: empty dynamic matrix can leave action run hanging incomplete (#11072)
**Backport:** #11063

Fixes #11030.

When a `strategy.matrix` needs to be evaluated on the output of another job, it can become evaluated into an empty set of jobs.  In this case, and assuming no other jobs in the run are active, the run should reach a settled state.  The logic to check the other jobs in the run and determine if this state has been hit needs to be explicitly added to the job emitter.

To accomplish this change, this action run state logic was extracted out of `UpdateRunJobWithoutNotification` where it could be reused.

(cherry picked from commit c198082975)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11072
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net>
2026-01-27 20:14:04 +01:00
..
action_run.yml [v14.0/forgejo] fix: empty dynamic matrix can leave action run hanging incomplete (#11072) 2026-01-27 20:14:04 +01:00
action_run_job.yml [v14.0/forgejo] fix: empty dynamic matrix can leave action run hanging incomplete (#11072) 2026-01-27 20:14:04 +01:00
action_task_output.yml [v14.0/forgejo] fix: empty dynamic matrix can leave action run hanging incomplete (#11072) 2026-01-27 20:14:04 +01:00