Skip to content

Commit 90b473f

Browse files
authored
Merge branch 'main' into feat/dp-gci
2 parents 4f958c1 + 6c82dc0 commit 90b473f

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

generator/discovery/update_discovery_doc.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ if ! curl -fsSL "${COMPUTE_DISCOVERY_DOCUMENT_URL}" >"${TEMP_JSON}"; then
101101
exit 1
102102
fi
103103

104+
# Ensure the discovery document ends with a trailing newline.
105+
if [[ -s "${TEMP_JSON}" && -n "$(tail -c 1 "${TEMP_JSON}")" ]]; then
106+
echo >>"${TEMP_JSON}"
107+
fi
108+
104109
REVISION=$(sed -En 's/ \"revision\": \"([[:digit:]]+)\",/\1/p' "${TEMP_JSON}")
105110
if [[ -z "${REVISION}" ]]; then
106111
io::log_red "Could not parse revision from fetched discovery document."

google/cloud/bigtable/data_connection.cc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,6 @@ DataConnectionComponents MakeDataConnectionComponents(
157157

158158
std::shared_ptr<bigtable::DataConnection> MakeSingleStubDataConnection(
159159
DataConnectionComponents components) {
160-
#ifdef GOOGLE_CLOUD_CPP_BIGTABLE_WITH_OTEL_METRICS
161-
if (components.direct_access_compatibility != nullptr) {
162-
components.direct_access_compatibility->Record(
163-
opentelemetry::context::RuntimeContext::GetCurrent(), 0,
164-
bigtable_internal::DirectAccessCompatibilityLabels{
165-
"", "manually_disabled"});
166-
}
167-
#endif
168160
std::shared_ptr<bigtable_internal::BigtableStub> stub =
169161
bigtable_internal::CreateBigtableStub(std::move(components.auth),
170162
components.background->cq(),
@@ -194,7 +186,7 @@ std::shared_ptr<bigtable::DataConnection> MakeInstanceAffinityDataConnection(
194186
affinity_stubs = bigtable_internal::CreateBigtableAffinityStubs(
195187
instances, stub_creation_fn);
196188
#ifdef GOOGLE_CLOUD_CPP_BIGTABLE_WITH_OTEL_METRICS
197-
if (components.direct_access_compatibility != nullptr) {
189+
if (!instances.empty() && components.direct_access_compatibility != nullptr) {
198190
components.direct_access_compatibility->Record(
199191
opentelemetry::context::RuntimeContext::GetCurrent(), 0,
200192
bigtable_internal::DirectAccessCompatibilityLabels{

google/cloud/ftp/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
2727
NAME ftp_quickstart
2828
COMMAND cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
2929
$<TARGET_FILE:ftp_quickstart> GOOGLE_CLOUD_PROJECT)
30-
set_tests_properties(ftp_quickstart
31-
PROPERTIES LABELS "integration-test;quickstart")
30+
set_tests_properties(
31+
ftp_quickstart PROPERTIES DISABLED "True" LABELS
32+
"integration-test;quickstart")
3233
endif ()

0 commit comments

Comments
 (0)