aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-05-08 14:59:26 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-05-09 16:23:28 +0200
commite25e3643c228b131336a47ce46e0140001b98bbb (patch)
tree0a57de255a5c6d50543a08a7831d39ac6169020e /syz-ci
parent3354d81aa507bee152702604b3104e9d712401d2 (diff)
dashboard: restart failed cause bisections
If the bisection failed due to infrastructure problems, let's retry it in 7 days.
Diffstat (limited to 'syz-ci')
-rw-r--r--syz-ci/jobs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go
index b717ade4f..b01b11021 100644
--- a/syz-ci/jobs.go
+++ b/syz-ci/jobs.go
@@ -521,6 +521,9 @@ func (jp *JobProcessor) bisect(job *Job, mgrcfg *mgrconfig.Config) error {
res, err := bisect.Run(cfg)
resp.Log = trace.Bytes()
if err != nil {
+ if _, ok := err.(*bisect.InfraError); ok {
+ resp.Flags |= dashapi.BisectResultInfraError
+ }
return err
}
for _, com := range res.Commits {