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
This commit is contained in:
Dmitry Vyukov 2020-05-28 14:11:21 +02:00
parent 142a0957d0
commit c7192a2f9a

View File

@ -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 {