From 9118cb4ae262a67fa4a87c24adc3acebf8d1084f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 Dec 2017 11:31:31 +0100 Subject: syz-ci: rebuild syzkaller on restart Forced syzkaller updates is the main reason for syz-ci restarts. Reduce syzkaller freshness threshold from 6h to 1m. Rebuilding syzkaller is relatively cheap anyway. --- syz-ci/syzupdater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syz-ci/syzupdater.go b/syz-ci/syzupdater.go index 7bce21e6a..1c36537a3 100644 --- a/syz-ci/syzupdater.go +++ b/syz-ci/syzupdater.go @@ -111,7 +111,7 @@ func (upd *SyzUpdater) UpdateOnStart(shutdown chan struct{}) { os.RemoveAll(upd.currentDir) exeTag, exeMod := readTag(upd.exe + ".tag") latestTag := upd.checkLatest() - if exeTag == latestTag && time.Since(exeMod) < syzkallerRebuildPeriod/2 { + if exeTag == latestTag && time.Since(exeMod) < time.Minute { // Have a freash up-to-date build, probably just restarted. Logf(0, "current executable is up-to-date (%v)", exeTag) if err := osutil.LinkFiles(upd.latestDir, upd.currentDir, upd.syzFiles); err != nil { -- cgit mrf-deployment