Skip to content

Commit

Permalink
ci: make sure metamorphic nightly uses proper formatter for issues
Browse files Browse the repository at this point in the history
The `--formatter=pebble-metamorphic` option got lost in cockroachdb#75585.

Release note: None
  • Loading branch information
rickystewart committed Feb 7, 2022
1 parent fc1957a commit 042914e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build/teamcity-bazel-support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ _tc_release_branch() {
# `GO_TEST_JSON_OUTPUT_FILE`.
# create_tarball: whether to create a tarball with full logs. If the test's
# exit code is passed, the tarball is generated on failures.
#
# The variable BAZEL_SUPPORT_EXTRA_GITHUB_POST_ARGS can be set to add extra
# arguments to $github_post.
process_test_json() {
local testfilter=$1
local github_post=$2
Expand Down Expand Up @@ -79,7 +82,7 @@ process_test_json() {
echo "GITHUB_API_TOKEN must be set"
exit 1
else
$github_post < "$test_json"
$github_post ${BAZEL_SUPPORT_EXTRA_GITHUB_POST_ARGS:+$BAZEL_SUPPORT_EXTRA_GITHUB_POST_ARGS} < "$test_json"
fi
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci test \
--test_arg -ops --test_arg "uniform:5000-25000" \
|| exit_status=$?

process_test_json \
BAZEL_SUPPORT_EXTRA_GITHUB_POST_ARGS=--formatter=pebble-metamorphic process_test_json \
$BAZEL_BIN/pkg/cmd/testfilter/testfilter_/testfilter \
$BAZEL_BIN/pkg/cmd/github-post/github-post_/github-post \
/artifacts $GO_TEST_JSON_OUTPUT_FILE $exit_status
Expand Down

0 comments on commit 042914e

Please sign in to comment.