Skip to content

Commit

Permalink
build: extend pebble metamorphic timeout; lower operation count
Browse files Browse the repository at this point in the history
The Pebble metamorphic test runs have been timing out due to single runs
taking longer for worst-case configurations. Increase the governing
timeout from just over three hours to four hours. This gives more time
to a metamorphic test run that started close to the end of the three
hour window to complete.

Lower the upper bound on the operation count random distribution from
25k ops to 10k ops. This will shorten the time for each run, on average,
while allowing more configurations to be tested overall.

Update the reproduction message in the Pebble formatter.

Related to cockroachdb/pebble#1514.

Release note: None
  • Loading branch information
nicktrav committed Feb 15, 2022
1 parent 1452123 commit 31d2b2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ exit_status=0
# correct flags in the reproduction command.
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci test \
@com_github_cockroachdb_pebble//internal/metamorphic:metamorphic_test -- \
--test_timeout=11000 '--test_filter=TestMeta$' \
--test_timeout=14400 '--test_filter=TestMeta$' \
--define gotags=bazel,invariants \
"--test_env=GO_TEST_JSON_OUTPUT_FILE=$GO_TEST_JSON_OUTPUT_FILE" \
--run_under "@com_github_cockroachdb_stress//:stress -bazel -shardable-artifacts 'GO_TEST_JSON_OUTPUT_FILE=cat,XML_OUTPUT_FILE=$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci merge-test-xmls' -maxtime 3h -maxfails 1 -stderr -p 1" \
--test_arg -dir --test_arg $ARTIFACTS_DIR \
--test_arg -ops --test_arg "uniform:5000-25000" \
--test_arg -ops --test_arg "uniform:5000-10000" \
|| exit_status=$?

BAZEL_SUPPORT_EXTRA_GITHUB_POST_ARGS=--formatter=pebble-metamorphic process_test_json \
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/github-post/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func formatPebbleMetamorphicIssue(
s = strings.TrimSpace(s)
s = strings.TrimSpace(s[:strings.Index(s, "\n")])
repro = fmt.Sprintf("go test -mod=vendor -tags 'invariants' -exec 'stress -p 1' "+
`-timeout 0 -test.v -run TestMeta$ ./internal/metamorphic -seed %s -ops "uniform:5000-25000"`, s)
`-timeout 0 -test.v -run TestMeta$ ./internal/metamorphic -seed %s -ops "uniform:5000-10000"`, s)
}
}
return issues.UnitTestFormatter, issues.PostRequest{
Expand Down

0 comments on commit 31d2b2f

Please sign in to comment.