Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
108536: roachtest: pass artifacts-literal flag to local roachtests r=DarrylWong a=DarrylWong

Previously, the --artifacts-literal flag was not passed in for local roachtests. In the event of a test failure, roachtest should immediately publish artifacts so they are available to the TeamCity UI before the entire build finishes. Without explicitly passing in the artifacts directory, roachtest is unable to tell TeamCity where to collect a test's artifacts and the immediate publish fails. To address this, an artifacts-literal flag is now passed for local roachtests.

Fixes: cockroachdb#103778

Epic: None

Release note: None

Co-authored-by: DarrylWong <darryl@cockroachlabs.com>
  • Loading branch information
craig[bot] and DarrylWong committed Aug 16, 2023
2 parents 6716e92 + 31a09ce commit 673bde5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/teamcity/cockroach/ci/tests/local_roachtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ source "$dir/teamcity-support.sh" # For $root
source "$dir/teamcity-bazel-support.sh" # For run_bazel

tc_start_block "Run local roachtests"
BAZEL_SUPPORT_EXTRA_DOCKER_ARGS="-e COCKROACH_DEV_LICENSE -e BUILD_VCS_NUMBER -e TC_BUILD_ID -e TC_BUILD_BRANCH" \
BAZEL_SUPPORT_EXTRA_DOCKER_ARGS="-e LITERAL_ARTIFACTS_DIR=$root/artifacts -e COCKROACH_DEV_LICENSE -e BUILD_VCS_NUMBER -e TC_BUILD_ID -e TC_BUILD_BRANCH" \
run_bazel build/teamcity/cockroach/ci/tests/local_roachtest_impl.sh
tc_end_block "Run local roachtests"
2 changes: 1 addition & 1 deletion build/teamcity/cockroach/ci/tests/local_roachtest_fips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ source "$dir/teamcity-support.sh" # For $root
source "$dir/teamcity-bazel-support.sh" # For run_bazel

tc_start_block "Run local roachtests"
BAZEL_SUPPORT_EXTRA_DOCKER_ARGS="-e COCKROACH_DEV_LICENSE -e BUILD_VCS_NUMBER -e TC_BUILD_ID -e TC_BUILD_BRANCH" \
BAZEL_SUPPORT_EXTRA_DOCKER_ARGS="-e LITERAL_ARTIFACTS_DIR=$root/artifacts -e COCKROACH_DEV_LICENSE -e BUILD_VCS_NUMBER -e TC_BUILD_ID -e TC_BUILD_BRANCH" \
run_bazel_fips build/teamcity/cockroach/ci/tests/local_roachtest_fips_impl.sh
tc_end_block "Run local roachtests"
1 change: 1 addition & 0 deletions build/teamcity/cockroach/ci/tests/local_roachtest_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ $BAZEL_BIN/pkg/cmd/roachtest/roachtest_/roachtest run acceptance kv/splits cdc/b
--cockroach "$BAZEL_BIN/pkg/cmd/cockroach-short/cockroach-short_/cockroach-short" \
--workload "$BAZEL_BIN/pkg/cmd/workload/workload_/workload" \
--artifacts /artifacts \
--artifacts-literal="${LITERAL_ARTIFACTS_DIR:-}" \
--teamcity

0 comments on commit 673bde5

Please sign in to comment.