Skip to content

Commit

Permalink
roachtest: update backup fixtures
Browse files Browse the repository at this point in the history
Previously, backup fixture creation was a manual process. Now, fixture
creation will run as a roachtest and use the fixture registry utility
added by cockroachdb#140368.

Fixture generation was reworked to use import instead of old backup
fixtures. This makes it trivial to bootstrap fixtures in new clouds and
in new fixture buckets.

Release note: none
Part of: cockroachdb#139159
  • Loading branch information
jeffswenson committed Feb 13, 2025
1 parent d7dbf95 commit 0fafe32
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 302 deletions.
3 changes: 3 additions & 0 deletions build/teamcity/util/roachtest_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if [[ "$GOOGLE_EPHEMERAL_CREDENTIALS" ]]; then
echo "$GOOGLE_EPHEMERAL_CREDENTIALS" > creds.json
gcloud auth activate-service-account --key-file=creds.json
export ROACHPROD_USER=teamcity

# Set GOOGLE_APPLICATION_CREDENTIALS so that gcp go libraries can find it.
export GOOGLE_APPLICATION_CREDENTIALS="$(pwd)/creds.json"
else
echo 'warning: GOOGLE_EPHEMERAL_CREDENTIALS not set' >&2
echo "Assuming that you've run \`gcloud auth login\` from inside the builder." >&2
Expand Down
2 changes: 2 additions & 0 deletions pkg/cmd/roachtest/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ go_library(
"//pkg/cloud",
"//pkg/cloud/amazon",
"//pkg/cloud/gcp",
"//pkg/clusterversion",
"//pkg/cmd/cmpconn",
"//pkg/cmd/roachprod-microbench/util",
"//pkg/cmd/roachtest/cluster",
Expand Down Expand Up @@ -247,6 +248,7 @@ go_library(
"//pkg/multitenant/mtinfopb",
"//pkg/roachpb",
"//pkg/roachprod",
"//pkg/roachprod/blobfixture",
"//pkg/roachprod/config",
"//pkg/roachprod/errors",
"//pkg/roachprod/install",
Expand Down
Loading

0 comments on commit 0fafe32

Please sign in to comment.