1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-06 17:40:58 +00:00
Forgejo runner - alpha release, should not be considered secure enough to deploy in production
Find a file
Markus Wolf 0cd9ec8998 feat: run jobs in parallel (#1003)
* feat: run jobs in parallel

This changes fixes and restructures the parallel execution of jobs.
The previous changes limiting the parallel execution did break this
and allowed only one job in parallel.

While we run #CPU jobs in parallel now, the jobs added per job-matrix
add to this. So we might over-commit to the capacity, but at least
it is limited.

* fix: correctly build job pipeline

The job pipeline should just append all required pipeline steps.
The parallelism will be handled by the ParallelExecutor and we
shouldn't handle it during building the pipelines.

Also this adds a test, that the ParallelExecutor does run
a limited amount of parallel goroutines.

* test: correct test implementation

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-25 18:47:16 +00:00
.github ci: replace superlinter with megalinter (#923) 2021-12-22 09:29:43 -08:00
act feat: run jobs in parallel (#1003) 2022-02-25 18:47:16 +00:00
cmd fix: print line after password prompt (#1014) 2022-02-25 16:47:49 +00:00
main.go Initial commit with support for GitHub actions 2019-01-12 20:45:25 -08:00