Skip to content

Commit 6c767c9

Browse files
Merge branch 'main' into supporting_excluding_labels_from_grpc_metric_export
2 parents 668676d + 6814321 commit 6c767c9

File tree

374 files changed

+22469
-2921
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

374 files changed

+22469
-2921
lines changed

.github/workflows/test-runner.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ jobs:
127127
execute-integration-tests: true
128128
secrets: inherit
129129
windows-cmake:
130+
# Disabled
131+
if: false
130132
name: Windows-CMake
131133
needs: [pre-flight]
132134
uses: ./.github/workflows/windows-cmake.yml
@@ -152,7 +154,7 @@ jobs:
152154
# macos-bazel is disabled
153155
# macos-cmake is disabled
154156
- windows-bazel
155-
- windows-cmake
157+
# windows-cmake is disabled is disabled
156158
# Run even if the other jobs failed or were skipped.
157159
if: always()
158160
runs-on: ubuntu-latest

.typos.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,7 @@ extend-ignore-identifiers-re = [
7070
"NAM4",
7171
# Metadata is mispelled in this proto message name found in
7272
# google/cloud/aiplatform/v1/vizier_service.proto
73-
"CheckTrialEarlyStoppingStateMetatdata"
73+
"CheckTrialEarlyStoppingStateMetatdata",
74+
# google/cloud/cloudsecuritycompliance/v1/deployment.proto
75+
"conrol"
7476
]

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ python.toolchain(
5555
bazel_dep(name = "googleapis", version = "0.0.0", repo_name = "com_google_googleapis")
5656
archive_override(
5757
module_name = "googleapis",
58-
integrity = "sha256-PeOhmUAO6np2YJGuuWxLhMhiZq0fkz+ZM7u3w1nnJ/4=",
58+
integrity = "sha256-19J02RR+UvY5cqIGTGDPLmMGa2VaJG9+DQJ0Xkn8HTs=",
5959
patch_strip = 1,
6060
patches = ["//bazel:googleapis.modules.patch"],
61-
strip_prefix = "googleapis-2193a2bfcecb92b92aad7a4d81baa428cafd7dfd",
61+
strip_prefix = "googleapis-659ea6e98acc7d58661ce2aa7b4cf76a7ef3fd42",
6262
urls = [
63-
"https://github.com/googleapis/googleapis/archive/2193a2bfcecb92b92aad7a4d81baa428cafd7dfd.tar.gz",
63+
"https://github.com/googleapis/googleapis/archive/659ea6e98acc7d58661ce2aa7b4cf76a7ef3fd42.tar.gz",
6464
],
6565
)
6666

bazel/workspace0.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ def gl_cpp_workspace0(name = None):
126126
http_archive,
127127
name = "com_google_googleapis",
128128
urls = [
129-
"https://github.com/googleapis/googleapis/archive/2193a2bfcecb92b92aad7a4d81baa428cafd7dfd.tar.gz",
129+
"https://github.com/googleapis/googleapis/archive/659ea6e98acc7d58661ce2aa7b4cf76a7ef3fd42.tar.gz",
130130
],
131-
sha256 = "3de3a199400eea7a766091aeb96c4b84c86266ad1f933f9933bbb7c359e727fe",
132-
strip_prefix = "googleapis-2193a2bfcecb92b92aad7a4d81baa428cafd7dfd",
131+
sha256 = "d7d274d9147e52f63972a2064c60cf2e63066b655a246f7e0d02745e49fc1d3b",
132+
strip_prefix = "googleapis-659ea6e98acc7d58661ce2aa7b4cf76a7ef3fd42",
133133
build_file = Label("//bazel:googleapis.BUILD"),
134134
# Scaffolding for patching googleapis after download. For example:
135135
# patches = ["googleapis.patch"]

ci/cloudbuild/dockerfiles/checkers.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ARG ARCH=amd64
2323

2424
RUN dnf makecache && \
2525
dnf install -y \
26-
cargo \
2726
cmake \
2827
clang-tools-extra \
2928
diffutils \
@@ -35,7 +34,11 @@ RUN dnf makecache && \
3534
python-pip \
3635
ShellCheck
3736

38-
RUN cargo install typos-cli --version 1.24.1 --root /usr/local
37+
RUN dnf makecache && \
38+
dnf install -y \
39+
cargo
40+
41+
RUN cargo install typos-cli --locked --version 1.24.1 --root /usr/local
3942

4043
RUN curl -L -o /usr/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/v6.4.0/buildifier-linux-amd64 && \
4144
chmod 755 /usr/bin/buildifier

ci/kokoro/macos/builds/cmake-vcpkg.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ readonly NCPU
2929

3030
io::log_h2 "Update or install dependencies"
3131
# Install bash and ninja
32-
brew install bash ninja
32+
ci/retry-command.sh 3 60 brew install bash ninja
3333

3434
# Install a specific version of CMake to match our GHA builds
3535
(
@@ -40,18 +40,18 @@ brew install bash ninja
4040
git init
4141

4242
# Download the Homebrew formula for CMake==3.27.2
43-
curl -fsSL -o cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/fd21fcf239bcd0231c9fed5719403ec128151af4/Formula/cmake.rb
43+
"${PROJECT_ROOT}/ci/retry-command.sh" 3 60 curl -fsSL -o cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/fd21fcf239bcd0231c9fed5719403ec128151af4/Formula/cmake.rb
4444
mv cmake.rb ./Formula/
4545

4646
git add .
4747
git commit -m "Add CMake formula"
4848

4949
# Tap the local repository
50-
brew tap user/homebrew-tap "${HOME}/user/homebrew-tap"
50+
"${PROJECT_ROOT}/ci/retry-command.sh" 3 60 brew tap user/homebrew-tap "${HOME}/user/homebrew-tap"
5151

5252
# Uninstall existing CMake and install CMake from the local tap
5353
brew uninstall cmake
54-
brew install --build-from-source user/homebrew-tap/cmake
54+
"${PROJECT_ROOT}/ci/retry-command.sh" 3 60 brew install --build-from-source user/homebrew-tap/cmake
5555
)
5656

5757
io::log_h2 "Using CMake version"

ci/kokoro/windows/builds/cmake.ps1

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,54 @@ if ($missing.count -ge 1) {
4343
$project_root = (Get-Item -Path ".\" -Verbose).FullName -replace "\\", "/"
4444
$vcpkg_root = Install-Vcpkg "${project_root}" ""
4545
$binary_dir="cmake-out/${BuildName}"
46-
# Install all dependencies from the vcpkg.json manifest file.
47-
# This mirrors the behavior of our GHA builds.
48-
& "${vcpkg_root}/vcpkg.exe" install --triplet "${env:VCPKG_TRIPLET}"
46+
47+
# The VCPKG_ROOT env var is mismatched with the vcpkg we are running,
48+
# which causes vcpkg to ignore other env vars.
49+
# We'll unset them both and pass the overlay-triplets path manually.
50+
Remove-Item env:VCPKG_ROOT -ErrorAction SilentlyContinue
51+
Remove-Item env:VCPKG_OVERLAY_TRIPLETS -ErrorAction SilentlyContinue
52+
53+
# Define the correct path to our custom triplets.
54+
$overlay_triplets_path = "${project_root}/ci/kokoro/windows/triplets"
55+
56+
# Install all dependencies, now passing the overlay path on the command line
57+
& "${vcpkg_root}/vcpkg.exe" install --triplet "${env:VCPKG_TRIPLET}" --overlay-triplets="${overlay_triplets_path}"
58+
59+
# Manually check the exit code. vcpkg might not be throwing a terminating error.
60+
if ($LastExitCode -ne 0) {
61+
Write-Host -ForegroundColor Red "----------------------------------------------------------------"
62+
Write-Host -ForegroundColor Red "vcpkg install FAILED with exit code $LastExitCode."
63+
Write-Host -ForegroundColor Red "Dumping vcpkg buildtree logs for known failing packages..."
64+
Write-Host -ForegroundColor Red "----------------------------------------------------------------"
65+
66+
# We'll check logs for *all* known problematic packages
67+
$problem_packages = @("crc32c", "yaml-cpp")
68+
69+
foreach ($pkg in $problem_packages) {
70+
Write-Host -ForegroundColor Magenta "--- Checking logs for $pkg ---"
71+
$log1 = "${vcpkg_root}/buildtrees/${pkg}/config-x64-windows-static-out.log"
72+
$log2 = "${vcpkg_root}/buildtrees/${pkg}/config-x64-windows-static-dbg-CMakeCache.txt.log"
73+
$log3 = "${vcpkg_root}/buildtrees/${pkg}/config-x64-windows-static-rel-CMakeCache.txt.log"
74+
75+
foreach ($logFile in @($log1, $log2, $log3)) {
76+
if (Test-Path $logFile) {
77+
Write-Host -ForegroundColor Red "========= Contents of $logFile ========="
78+
Get-Content $logFile
79+
Write-Host -ForegroundColor Red "========= End of $logFile ========="
80+
} else {
81+
Write-Host -ForegroundColor Yellow "Log file not found, skipping: $logFile"
82+
}
83+
}
84+
}
85+
86+
Write-Host -ForegroundColor Red "----------------------------------------------------------------"
87+
Write-Host -ForegroundColor Red "Dumping complete. Forcing build failure."
88+
Write-Host -ForegroundColor Red "----------------------------------------------------------------"
89+
# Manually fail the build with the exit code from vcpkg
90+
exit $LastExitCode
91+
}
92+
93+
Write-Host -ForegroundColor Green "vcpkg install SUCCEEDED."
4994

5095
$cmake_args=@(
5196
"-G$env:GENERATOR",
@@ -54,15 +99,23 @@ $cmake_args=@(
5499
"-DCMAKE_TOOLCHAIN_FILE=`"${vcpkg_root}/scripts/buildsystems/vcpkg.cmake`""
55100
"-DCMAKE_BUILD_TYPE=${env:CONFIG}",
56101
"-DVCPKG_TARGET_TRIPLET=${env:VCPKG_TRIPLET}",
102+
"-DVCPKG_OVERLAY_TRIPLETS=${project_root}/ci/kokoro/windows/triplets",
57103
"-DCMAKE_C_COMPILER=cl.exe",
58104
"-DCMAKE_CXX_COMPILER=cl.exe",
59105
"-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=ON",
60106
"-DGOOGLE_CLOUD_CPP_ENABLE_CTYPE_CORD_WORKAROUND=ON",
61-
"-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>"
107+
"-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>",
108+
"-DGOOGLE_CLOUD_CPP_ENABLE=universe_domain"
62109
)
63110

64111
# Configure CMake and create the build directory.
65112
Write-Host -ForegroundColor Yellow "`n$(Get-Date -Format o) Configuring CMake with $cmake_args"
113+
114+
# The VCPKG_ROOT env var is mismatched with the vcpkg we are running,
115+
# which causes vcpkg to ignore other env vars.
116+
# Unset the env var just before the cmake call, which also calls vcpkg.
117+
Remove-Item env:VCPKG_ROOT -ErrorAction SilentlyContinue
118+
66119
cmake $cmake_args
67120
if ($LastExitCode) {
68121
Write-Host -ForegroundColor Red "cmake config failed with exit code $LastExitCode"

ci/kokoro/windows/triplets/x64-windows-static.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ set(VCPKG_LIBRARY_LINKAGE static)
44
set(VCPKG_VISUAL_STUDIO_PATH
55
"C:\\Program Files (x86)\\Microsoft Visual Studio\\$ENV{MSVC_VERSION}\\BuildTools"
66
)
7+
set(VCPKG_CMAKE_CONFIGURE_OPTIONS
8+
"${VCPKG_CMAKE_CONFIGURE_OPTIONS};-DCMAKE_POLICY_VERSION_MINIMUM=3.5")

ci/kokoro/windows/triplets/x86-windows-static.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ set(VCPKG_LIBRARY_LINKAGE static)
44
set(VCPKG_VISUAL_STUDIO_PATH
55
"C:\\Program Files (x86)\\Microsoft Visual Studio\\$ENV{MSVC_VERSION}\\BuildTools"
66
)
7+
set(VCPKG_CMAKE_CONFIGURE_OPTIONS
8+
"${VCPKG_CMAKE_CONFIGURE_OPTIONS};-DCMAKE_POLICY_VERSION_MINIMUM=3.5")

ci/lib/shard.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function shard::cmake_features() {
9292
compute)
9393
echo "compute"
9494
echo "opentelemetry"
95+
echo "universe_domain"
9596
;;
9697
# If we decided to compile all libraries with clang-tidy we would need
9798
# to enable shards such as:

0 commit comments

Comments
 (0)