From c7192a2f9a8eb9f99abe0b2878d4756d8bcc7b53 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 28 May 2020 14:11:21 +0200 Subject: syz-ci: serialize syzkaller build/test syzkaller testing may be slowed down by concurrent kernel builds too much and cause timeout failures, so we serialize it with other builds: https://groups.google.com/forum/#!msg/syzkaller-openbsd-bugs/o-G3vEsyQp4/f_nFpoNKBQAJ --- syz-ci/updater.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/syz-ci/updater.go b/syz-ci/updater.go index 9acdcc4c7..92c29f13d 100644 --- a/syz-ci/updater.go +++ b/syz-ci/updater.go @@ -213,6 +213,12 @@ func (upd *SyzUpdater) pollAndBuild(lastCommit string) string { } func (upd *SyzUpdater) build(commit *vcs.Commit) error { + // syzkaller testing may be slowed down by concurrent kernel builds too much + // and cause timeout failures, so we serialize it with other builds: + // https://groups.google.com/forum/#!msg/syzkaller-openbsd-bugs/o-G3vEsyQp4/f_nFpoNKBQAJ + kernelBuildSem <- struct{}{} + defer func() { <-kernelBuildSem }() + if upd.descriptions != "" { files, err := ioutil.ReadDir(upd.descriptions) if err != nil { -- cgit mrf-deployment