aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-04 11:31:31 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-04 11:31:31 +0100
commit9118cb4ae262a67fa4a87c24adc3acebf8d1084f (patch)
tree5ff996565ff634770d2013c2c5cbac186b68e846
parent84a6637d281c4e14578ff2f64d51ec2e995dd45e (diff)
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.
-rw-r--r--syz-ci/syzupdater.go2
1 files changed, 1 insertions, 1 deletions
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 {