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, but this is reduced on older release branches
1196
+
branch:=kubernetesBranch(job.ExtraRefs)
1197
+
ifbranch=="master"||branch=="main" {
1198
+
// TODO: cron ...
1199
+
ifjob.Interval!="" {
1200
+
interval:=job.GetInterval()
1201
+
ifinterval> (time.Hour*3) {
1202
+
errs=append(errs, fmt.Errorf("release-blocking job must have interval <= 3h, yet interval is: %v", interval))
1203
+
}
1204
+
}
1205
+
}
1193
1206
iflen(errs) >0 {
1194
1207
jobsToFix++
1195
1208
}
1196
1209
for_, err:=rangeerrs {
1197
1210
t.Errorf("%v: %v", job.Name, err)
1198
1211
}
1199
1212
}
1200
-
t.Logf("summary: %4d/%4d jobs fail to meet kubernetes/kubernetes release-blocking CI policy", jobsToFix, len(jobs))
1213
+
1214
+
forrepo, postsubmits:=rangec.PostsubmitsStatic {
1215
+
for_, job:=rangepostsubmits {
1216
+
// 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))
1240
+
}
1241
+
iflen(errs) >0 {
1242
+
jobsToFix++
1243
+
}
1244
+
for_, err:=rangeerrs {
1245
+
t.Errorf("%v: %v", job.Name, err)
1246
+
}
1247
+
}
1248
+
}
1249
+
1250
+
t.Logf("summary: %4d/%4d jobs fail to meet kubernetes/kubernetes release-blocking CI policy", jobsToFix, numJobs)
0 commit comments