aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-28 14:11:21 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-28 14:11:53 +0200
commitc7192a2f9a8eb9f99abe0b2878d4756d8bcc7b53 (patch)
tree8137a18e856cd7b9075a6b41c0b0242822bd7018
parent142a0957d03af017b31e76973bcfafaa098c2b5d (diff)
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
-rw-r--r--syz-ci/updater.go6
1 files changed, 6 insertions, 0 deletions
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 {