act/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 implement volume mount for container job (#1101) 2022-04-04 18:01:13 +00:00
action.go implement pre and post steps (#1089) 2022-05-24 13:36:06 +00:00
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 refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00
planner.go fix: tolerate workflow that needs a missing job (#1595) (#1619) 2023-02-16 16:41:59 +00:00
planner_test.go refactor: remove github.com/pkg/errors dependency (#1077) 2022-06-10 21:16:42 +00:00
step_result.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
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