act/pkg/runner
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
..
res Add super-linter + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
testdata Expression evaluator fixes (#1009) 2022-02-25 18:39:50 +00:00
action.go refactor: extract setupAction into ActionReader (#986) 2022-02-08 20:17:59 +00:00
action_test.go refactor: extract setupAction into ActionReader (#986) 2022-02-08 20:17:59 +00:00
command.go fix: ::stop-commands:: should continue to print the lines (#920) 2021-12-09 15:10:56 +00:00
command_test.go refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00
expression.go Expression evaluator fixes (#1009) 2022-02-25 18:39:50 +00:00
expression_test.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
job_executor.go fix: always execute closeContainer() executor (#988) 2022-02-10 16:54:58 +00:00
job_executor_test.go fix: always execute closeContainer() executor (#988) 2022-02-10 16:54:58 +00:00
logger.go feat: allow existing logger from context (#898) 2021-11-27 17:45:56 +00:00
run_context.go Expression evaluator fixes (#1009) 2022-02-25 18:39:50 +00:00
run_context_test.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
runner.go feat: run jobs in parallel (#1003) 2022-02-25 18:47:16 +00:00
runner_test.go fix: deep evaluate matrix strategy (#964) 2022-02-15 16:35:02 +00:00
step_context.go Expression evaluator fixes (#1009) 2022-02-25 18:39:50 +00:00
step_context_test.go refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00