Skip to content

Commit

Permalink
Merge pull request #114280 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.2-114269
  • Loading branch information
rickystewart authored Nov 15, 2023
2 parents 9bf37a0 + 2322365 commit 145c0bd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/cmd/github-pull-request-make/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ func main() {
target, ok := os.LookupEnv(targetEnv)
var duration time.Duration
if ok && target == "stressrace" {
duration = (40 * time.Minute) / time.Duration(len(pkgs))
} else {
duration = (30 * time.Minute) / time.Duration(len(pkgs))
} else {
duration = (20 * time.Minute) / time.Duration(len(pkgs))
}
minDuration := (2 * time.Minute) * time.Duration(len(pkg.tests))
if duration < minDuration {
Expand Down Expand Up @@ -354,12 +354,11 @@ func main() {
}
args = append(args, fmt.Sprintf("--test_filter=%s", strings.Join(filters, "|")))
args = append(args, "--test_env=COCKROACH_NIGHTLY_STRESS=true")
args = append(args, "--test_arg=-test.timeout", fmt.Sprintf("--test_arg=%s", timeout))
// Give the entire test 1 more minute than the duration to wrap up.
args = append(args, fmt.Sprintf("--test_timeout=%d", int((duration+1*time.Minute).Seconds())))
args = append(args, "--test_output", "streamed")

args = append(args, "--run_under", fmt.Sprintf("%s -bazel -shardable-artifacts 'XML_OUTPUT_FILE=%s merge-test-xmls' -stderr -maxfails 1 -maxtime %s -p %d", bazelStressTarget, bazciPath, duration, parallelism))
args = append(args, "--run_under", fmt.Sprintf("%s -bazel -shardable-artifacts 'XML_OUTPUT_FILE=%s merge-test-xmls' -stderr -maxfails 1 -maxtime %s -p %d -timeout %s", bazelStressTarget, bazciPath, duration, parallelism, timeout))
cmd := exec.Command("bazci", args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit 145c0bd

Please sign in to comment.