diff options
Diffstat (limited to 'syz-ci')
| -rw-r--r-- | syz-ci/jobs.go | 1 | ||||
| -rw-r--r-- | syz-ci/manager.go | 1 | ||||
| -rw-r--r-- | syz-ci/syz-ci.go | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go index 8e40ddab7..e49df1542 100644 --- a/syz-ci/jobs.go +++ b/syz-ci/jobs.go @@ -493,6 +493,7 @@ func (jp *JobProcessor) bisect(job *Job, mgrcfg *mgrconfig.Config) error { BinDir: jp.cfg.BisectBinDir, Linker: mgr.mgrcfg.Linker, Ccache: jp.cfg.Ccache, + BuildJobs: jp.cfg.BuildJobs, Kernel: bisect.KernelConfig{ Repo: req.KernelRepo, Branch: req.KernelBranch, diff --git a/syz-ci/manager.go b/syz-ci/manager.go index 218f7ecc4..108a8f909 100644 --- a/syz-ci/manager.go +++ b/syz-ci/manager.go @@ -356,6 +356,7 @@ func (mgr *Manager) build(kernelCommit *vcs.Commit) error { SysctlFile: mgr.mgrcfg.KernelSysctl, Config: mgr.configData, Build: mgr.mgrcfg.Build, + BuildJobs: mgr.cfg.BuildJobs, } details, err := build.Image(params) info := mgr.createBuildInfo(kernelCommit, details.CompilerID) diff --git a/syz-ci/syz-ci.go b/syz-ci/syz-ci.go index d27db6c6c..639a9bb8c 100644 --- a/syz-ci/syz-ci.go +++ b/syz-ci/syz-ci.go @@ -126,7 +126,9 @@ type Config struct { // The list is concatenated with the similar parameter from ManagerConfig. BisectBackports []vcs.BackportCommit `json:"bisect_backports"` Ccache string `json:"ccache"` - Managers []*ManagerConfig `json:"managers"` + // BuildJobs defines the maximum number of parallel kernel build threads. + BuildJobs int `json:"build_jobs"` + Managers []*ManagerConfig `json:"managers"` // Poll period for jobs in seconds (optional, defaults to 10 seconds) JobPollPeriod int `json:"job_poll_period"` // Set up a second (parallel) job processor to speed up processing. |
