You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errs=append(errs, fmt.Errorf("release-blocking job must have timeout <= 2h30m and nominally run in <=2h, yet timeout is: %v", job.DecorationConfig.Timeout))
1192
1194
}
1195
+
// periodics must run with minimum frequency
1196
+
// TODO: cron ...
1197
+
ifjob.Interval!="" {
1198
+
interval:=job.GetInterval()
1199
+
ifinterval> (time.Hour*3) {
1200
+
errs=append(errs, fmt.Errorf("release-blocking job must have interval <= 3h, yet interval is: %v", interval))
1201
+
}
1202
+
}
1193
1203
iflen(errs) >0 {
1194
1204
jobsToFix++
1195
1205
}
1196
1206
for_, err:=rangeerrs {
1197
1207
t.Errorf("%v: %v", job.Name, err)
1198
1208
}
1199
1209
}
1200
-
t.Logf("summary: %4d/%4d jobs fail to meet kubernetes/kubernetes release-blocking CI policy", jobsToFix, len(jobs))
1210
+
1211
+
forrepo, postsubmits:=rangec.PostsubmitsStatic {
1212
+
for_, job:=rangepostsubmits {
1213
+
// postsubmits triggering against repos other than kubernetes/kubernetes
errs=append(errs, fmt.Errorf("release-blocking job must have timeout <= 2h30m and nominally run in <=2h, yet timeout is: %v", job.DecorationConfig.Timeout))
1237
+
}
1238
+
iflen(errs) >0 {
1239
+
jobsToFix++
1240
+
}
1241
+
for_, err:=rangeerrs {
1242
+
t.Errorf("%v: %v", job.Name, err)
1243
+
}
1244
+
}
1245
+
}
1246
+
1247
+
t.Logf("summary: %4d/%4d jobs fail to meet kubernetes/kubernetes release-blocking CI policy", jobsToFix, numJobs)
0 commit comments