-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
122048: workflows: make `unit tests` build mandatory in GitHub Actions r=rail a=rickystewart And delete related TC scripts. Note that the unit tests job in GitHub Actions subsumes the unit test jobs in TC as well as the UI lint and UI test job. Epic: CRDB-8308 Release note: None 122727: workflows: add staging branches to the patterns r=rickystewart a=rail Previously, the actions on the staging-* branches were ignored. These branches are used for extraordinary releases. This PR adjusts the patterns to include the staging branches. Epic: none Release note: None 122903: workload/tpcc: match against correct ErrNoRows in delivery txn r=RaduBerinde a=nvanbenschoten Fixes #122891. `sql.ErrNoRows` is not the same as `pgx.ErrNoRows`. As a result, this logic has been broken since TPC-C was ported to use pgx in d15637c (2018). This commit fixes the broken logic by matching on the correct error. Release note: None Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Rail Aliiev <[email protected]> Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information
Showing
14 changed files
with
75 additions
and
129 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
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
EXTRA_PARAMS="" | ||
|
||
if [ "$GITHUB_ACTIONS_BRANCH" == "staging" ]; then | ||
# enable up to 1 retry (2 attempts, worst-case) per test executable to report flakes but only on release branches and staging. | ||
EXTRA_PARAMS=" --flaky_test_attempts=2" | ||
fi | ||
|
||
|
||
bazel test //pkg:all_tests //pkg/ui:lint //pkg/ui:test \ | ||
--config crosslinux --jobs 300 --remote_download_minimal \ | ||
--bes_keywords ci-unit-test --config=use_ci_timeouts \ | ||
--build_event_binary_file=bes.bin $(./build/github/engflow-args.sh) \ | ||
$EXTRA_PARAMS |
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
5 changes: 0 additions & 5 deletions
5
build/teamcity/cockroach/ci/tests-gcp-linux-x86_64-bigvm/unit_tests.sh
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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