-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
98011: bazel: add `gcassert` job in TC r=healthy-pod a=rickystewart This simple job generates code then runs `gcassert` as a standalone binary. Closes #65485. Epic: none Release note: None Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
5 changed files
with
78 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" | ||
|
||
source "$dir/teamcity-support.sh" # For $root | ||
source "$dir/teamcity-bazel-support.sh" # For run_bazel | ||
|
||
tc_start_block "GcAssert" | ||
run_bazel build/teamcity/cockroach/ci/tests/gcassert_impl.sh | ||
tc_end_block "GcAssert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeuo pipefail | ||
|
||
bazel build @com_github_jordanlewis_gcassert//cmd/gcassert:gcassert --config=ci | ||
bazel run //pkg/gen:code | ||
GODIR=$(dirname $(bazel run @go_sdk//:bin/go --run_under=realpath)) | ||
echo "##teamcity[testStarted name='GcAssert' captureStandardOutput='true']" | ||
exit_status=0 | ||
PATH=$GODIR:$PATH $(bazel info bazel-bin --config=ci)/external/com_github_jordanlewis_gcassert/cmd/gcassert/gcassert_/gcassert $(cat ./pkg/testutils/lint/gcassert_paths.txt | sed 's|^|./pkg/|') || exit_status=$? | ||
if [ "$exit_status" -ne 0 ]; then | ||
echo "##teamcity[testFailed name='GcAssert']" | ||
fi | ||
echo "##teamcity[testFinished name='GcAssert']" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
col/coldata | ||
col/colserde | ||
keys | ||
kv/kvclient/rangecache | ||
kv/kvpb | ||
roachpb | ||
sql/catalog/descs | ||
sql/colcontainer | ||
sql/colconv | ||
sql/colexec | ||
sql/colexec/colexecagg | ||
sql/colexec/colexecbase | ||
sql/colexec/colexechash | ||
sql/colexec/colexecjoin | ||
sql/colexec/colexecproj | ||
sql/colexec/colexecprojconst | ||
sql/colexec/colexecsel | ||
sql/colexec/colexecspan | ||
sql/colexec/colexecwindow | ||
sql/colfetcher | ||
sql/opt | ||
sql/row | ||
storage | ||
storage/enginepb | ||
storage/pebbleiter | ||
util | ||
util/admission | ||
util/hlc | ||
util/intsets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters