aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-06-30 17:16:14 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-01 10:06:26 +0000
commitbfc478367b83b3fda580f54964aa9f3651beeb3d (patch)
tree6c4e82a4074f6c7074892f76bc67d22afdee8dad
parentaf3053d2643582378a817d3c9d6a96dd1623c862 (diff)
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.
-rw-r--r--syz-ci/jobs.go5
1 files changed, 0 insertions, 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()