act_runner/pkg/common
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
..
git chore: use new style octal (#1630) 2023-02-16 15:34:51 +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
dryrun.go
executor.go Fix bug in processing jobs on platforms without Docker (#1834) 2023-06-06 03:00:54 +00:00
executor_test.go Fix bug in processing jobs on platforms without Docker (#1834) 2023-06-06 03:00:54 +00:00
file.go refactor: move from io/ioutil to io and os packages (#1417) 2022-10-29 17:15:38 +00:00
job_error.go fix: continue jobs + steps after failure (#840) 2021-12-08 20:57:42 +00:00
line_writer.go
line_writer_test.go
logger.go
outbound_ip.go feat: improve GetOutboundIP (#1707) 2023-03-31 13:28:08 +00:00