From bfc478367b83b3fda580f54964aa9f3651beeb3d Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 30 Jun 2023 17:16:14 +0200 Subject: syz-ci: don't wait for semaphore to query a job This condition is no longer really important -- build and test are anyway controlled by semaphores, so if we don't take the job, nobody else will be able to finish it sooner. Also, we reset job statuses on syz-ci restart, so it won't be a problem to take a job again. --- syz-ci/jobs.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go index b01b11021..13abcbf2b 100644 --- a/syz-ci/jobs.go +++ b/syz-ci/jobs.go @@ -162,11 +162,6 @@ loop: } select { case <-jp.jobTicker: - if buildSem.Available() == 0 { - // If normal kernel build is in progress (usually on start), don't query jobs. - // Otherwise we claim a job, but can't start it for a while. - continue loop - } jp.pollJobs() case <-jp.commitTicker: jp.pollCommits() -- cgit mrf-deployment