Skip to content

Commit 7bbae2d

Browse files
authored
ci: enable (most) GCS+gRPC integration tests (#9809)
There are several tests still disabled, but we have specific bugs to track them. Most of them are just waiting for changes to roll out in production.
1 parent 4d1cbc3 commit 7bbae2d

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

ci/cloudbuild/builds/gcs-grpc.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ excluded_rules=(
3030
)
3131

3232
mapfile -t args < <(bazel::common_args)
33-
# Run as many of the integration tests as possible using production and gRPC:
34-
# "media" says to use the hybrid gRPC/REST client. For more details see
35-
# https://github.com/googleapis/google-cloud-cpp/issues/6268
36-
readonly GOOGLE_CLOUD_CPP_STORAGE_GRPC_CONFIG=media
33+
# Run as many of the integration tests as possible using production and gRPC.
34+
readonly GOOGLE_CLOUD_CPP_STORAGE_GRPC_CONFIG=metadata
3735
mapfile -t integration_args < <(integration::bazel_args)
3836
bazel test "${args[@]}" "${integration_args[@]}" -- //google/cloud/storage/... "${excluded_rules[@]}"

ci/etc/integration-tests-config.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ $env:GOOGLE_CLOUD_CPP_BIGTABLE_TEST_SERVICE_ACCOUNT="bigtable-test-iam-sa@${env:
4444
$env:GOOGLE_CLOUD_CPP_BIGTABLE_TEST_QUICKSTART_TABLE="quickstart"
4545

4646
# Cloud Storage configuration parameters
47-
$env:GOOGLE_CLOUD_CPP_STORAGE_TEST_BUCKET_NAME="cloud-cpp-testing-bucket"
48-
$env:GOOGLE_CLOUD_CPP_STORAGE_TEST_DESTINATION_BUCKET_NAME="cloud-cpp-testing-regional"
47+
$env:GOOGLE_CLOUD_CPP_STORAGE_TEST_BUCKET_NAME="gcs-grpc-team-cloud-cpp-testing-bucket"
48+
$env:GOOGLE_CLOUD_CPP_STORAGE_TEST_DESTINATION_BUCKET_NAME="gcs-grpc-team-cloud-cpp-testing-regional"
4949
$env:GOOGLE_CLOUD_CPP_STORAGE_TEST_REGION_ID="us-central1"
5050
$env:GOOGLE_CLOUD_CPP_STORAGE_TEST_LOCATION="${env:GOOGLE_CLOUD_CPP_STORAGE_TEST_REGION_ID}"
5151
$env:GOOGLE_CLOUD_CPP_STORAGE_TEST_SERVICE_ACCOUNT="storage-test-iam-sa@${env:GOOGLE_CLOUD_PROJECT}.iam.gserviceaccount.com"

ci/etc/integration-tests-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ export GOOGLE_CLOUD_CPP_BIGTABLE_TEST_QUICKSTART_TABLE="quickstart"
5353

5454
# Cloud Storage configuration parameters
5555
# An existing bucket, used in small tests that do not change the bucket metadata.
56-
export GOOGLE_CLOUD_CPP_STORAGE_TEST_BUCKET_NAME="cloud-cpp-testing-bucket"
56+
export GOOGLE_CLOUD_CPP_STORAGE_TEST_BUCKET_NAME="gcs-grpc-team-cloud-cpp-testing-bucket"
5757
# A bucket with a different location and/or storage class from
5858
# `cloud-cpp-testing-bucket`, some requests (object copy and rewrite) succeed
5959
# immediately with buckets in the same location, and we want to demonstrate we
6060
# can handle partial success.
61-
export GOOGLE_CLOUD_CPP_STORAGE_TEST_DESTINATION_BUCKET_NAME="cloud-cpp-testing-regional"
61+
export GOOGLE_CLOUD_CPP_STORAGE_TEST_DESTINATION_BUCKET_NAME="gcs-grpc-team-cloud-cpp-testing-regional"
6262
export GOOGLE_CLOUD_CPP_STORAGE_TEST_REGION_ID="us-central1"
6363
export GOOGLE_CLOUD_CPP_STORAGE_TEST_LOCATION="${GOOGLE_CLOUD_CPP_STORAGE_TEST_REGION_ID}"
6464
export GOOGLE_CLOUD_CPP_STORAGE_TEST_SERVICE_ACCOUNT="storage-test-iam-sa@${GOOGLE_CLOUD_PROJECT}.iam.gserviceaccount.com"

google/cloud/storage/benchmarks/benchmark_utils.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ std::string ToString(ExperimentTransport v) {
153153
return "";
154154
}
155155

156-
std::string RandomBucketPrefix() { return "cloud-cpp-testing-bm"; }
156+
std::string RandomBucketPrefix() {
157+
return "gcs-grpc-team-cloud-cpp-testing-bm";
158+
}
157159

158160
std::string MakeRandomBucketName(google::cloud::internal::DefaultPRNG& gen) {
159161
return storage::testing::MakeRandomBucketName(gen, RandomBucketPrefix());

google/cloud/storage/benchmarks/throughput_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct ThroughputOptions {
2929
std::string project_id;
3030
std::string labels;
3131
std::string region;
32-
std::string bucket_prefix = "cloud-cpp-testing-bm";
32+
std::string bucket_prefix = "gcs-grpc-team-cloud-cpp-testing-bm";
3333
std::chrono::seconds duration =
3434
std::chrono::seconds(std::chrono::minutes(15));
3535
int thread_count = 1;

google/cloud/storage/examples/storage_examples_common.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ bool UsingEmulator() {
3232
.has_value();
3333
}
3434

35-
std::string BucketPrefix() { return "cloud-cpp-testing-examples"; }
35+
std::string BucketPrefix() {
36+
return "gcs-grpc-team-cloud-cpp-testing-examples";
37+
}
3638

3739
std::string MakeRandomBucketName(google::cloud::internal::DefaultPRNG& gen) {
3840
return google::cloud::storage::testing::MakeRandomBucketName(gen,

google/cloud/storage/testing/storage_integration_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ std::unique_ptr<RetryPolicy> StorageIntegrationTest::TestRetryPolicy() {
146146
}
147147

148148
std::string StorageIntegrationTest::RandomBucketNamePrefix() {
149-
return "cloud-cpp-testing";
149+
return "gcs-grpc-team-cloud-cpp-testing";
150150
}
151151

152152
std::string StorageIntegrationTest::MakeRandomBucketName() {

google/cloud/storage/tests/grpc_bucket_metadata_integration_test.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ class GrpcBucketMetadataIntegrationTest
4848
TEST_F(GrpcBucketMetadataIntegrationTest, ObjectMetadataCRUD) {
4949
ScopedEnvironment grpc_config("GOOGLE_CLOUD_CPP_STORAGE_GRPC_CONFIG",
5050
"metadata");
51-
// TODO(#5673) - restore gRPC integration tests against production
52-
if (!UsingEmulator()) GTEST_SKIP();
5351

5452
auto const project_name = GetEnv("GOOGLE_CLOUD_PROJECT").value_or("");
5553
ASSERT_THAT(project_name, Not(IsEmpty()))

0 commit comments

Comments
 (0)