act_runner/pkg/model
psa 3ac2b726f2
Fix bug in processing jobs on platforms without Docker (#1834)
* Log incoming jobs.

Log the full contents of the job protobuf to make debugging jobs easier

* Ensure that the parallel executor always uses at least one thread.

The caller may mis-calculate the number of CPUs as zero, in which case
ensure that at least one thread is spawned.

* Use runtime.NumCPU for CPU counts.

For hosts without docker, GetHostInfo() returns a blank struct which
has zero CPUs and causes downstream trouble.

---------

Co-authored-by: Paul Armstrong <psa@users.noreply.gitea.com>
Co-authored-by: Jason Song <i@wolfogre.com>
2023-06-06 03:00:54 +00:00
..
testdata
action.go
github_context.go fix: ghc assignment typo (#1729) 2023-04-13 14:09:29 +00:00
github_context_test.go fix: correct ref and ref_name (#1672) 2023-03-09 20:03:13 +00:00
job_context.go
planner.go
planner_test.go
step_result.go
workflow.go Fix bug in processing jobs on platforms without Docker (#1834) 2023-06-06 03:00:54 +00:00
workflow_test.go Avoid using `log.Fatal` in `pkg/*` (#1705) 2023-04-18 14:17:36 +00:00