Skip to content

Commit a7392b1

Browse files
authored
Merge pull request #160019 from rickystewart/blathers/backport-release-24.3-160014
release-24.3: ci-stress: skip stressing if there are no tests
2 parents ba26ae7 + cf092e7 commit a7392b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cmd/ci-stress/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ func mainImpl(baseRef string, bazelArgs []string) error {
152152
return err
153153
}
154154
pkgToTests := getPkgToTests(diff)
155+
if len(pkgToTests) == 0 {
156+
fmt.Println("could not find any eligible tests to stress, exiting")
157+
return nil
158+
}
155159
return runTests(ctx, pkgToTests, bazelArgs)
156160
}
157161

0 commit comments

Comments
 (0)