act/pkg/common
Markus Wolf 18792f9620
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
..
cartesian.go Fix Cartesian product to return empty set if empty set is given (#503) 2021-01-23 14:55:54 -08:00
cartesian_test.go Fix indent with go fmt (#531) 2021-02-17 11:47:59 -08:00
draw.go GitHub env file support (#426) 2021-01-11 22:39:43 -08:00
dryrun.go successfully able to run simple workflows 2020-02-20 21:05:25 -05:00
executor.go feat: run jobs in parallel (#1003) 2022-02-25 18:47:16 +00:00
executor_test.go feat: run jobs in parallel (#1003) 2022-02-25 18:47:16 +00:00
file.go Add super-linter + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
git.go Fix github SSH regex for missing .git extension (#871) 2021-11-13 14:56:31 +00:00
git_test.go Fix github SSH regex for missing .git extension (#871) 2021-11-13 14:56:31 +00:00
job_error.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
line_writer.go integration test 2020-02-24 12:48:12 -08:00
line_writer_test.go integration test 2020-02-24 12:48:12 -08:00
logger.go successfully able to run simple workflows 2020-02-20 21:05:25 -05:00
outbound_ip.go Asset server implementation (#677) 2021-11-10 09:57:22 -08:00
testflag.go feat: allow existing logger from context (#898) 2021-11-27 17:45:56 +00:00