From e5e7d9aa2a347f1ee43d0959364993a327967f1b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 8 Jun 2021 09:16:13 +0200 Subject: syz-ci: poll commits more regularly --- syz-ci/jobs.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go index 37e0b6e72..a552f31f9 100644 --- a/syz-ci/jobs.go +++ b/syz-ci/jobs.go @@ -60,12 +60,19 @@ func (jp *JobProcessor) loop() { loop: for { // Check jp.stop separately first, otherwise if stop signal arrives during a job execution, - // we can grab the next one with 50% probability. + // we can still grab the next job with 50% probability. select { case <-jp.stop: break loop default: } + // Similar for commit polling: if we grab 2-3 bisect jobs in a row, + // it can delay commit polling by days. + select { + case <-commitTicker.C: + jp.pollCommits() + default: + } select { case <-jobTicker.C: if len(kernelBuildSem) != 0 { -- cgit mrf-deployment