Skip to content

Commit

Permalink
[CI] Updated clang 17 to 18 for c++ tests (grpc#37592)
Browse files Browse the repository at this point in the history
Closes grpc#37592

PiperOrigin-RevId: 668633593
  • Loading branch information
veblush authored and copybara-github committed Aug 28, 2024
1 parent 9657acf commit a374ef3
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM silkeh/clang:17-bookworm
FROM silkeh/clang:18-bookworm

RUN apt update && apt -y upgrade && apt install -y build-essential curl git time wget zip && apt clean
<%include file="../../git_avoid_dubious_ownership_error.include"/>
Expand Down
2 changes: 1 addition & 1 deletion tools/bazelify_tests/dockerimage_current_versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ DOCKERIMAGE_CURRENT_VERSIONS = {
"tools/dockerfile/test/csharp_debian11_arm64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/csharp_debian11_arm64@sha256:4d4bc5f15e03f3d3d8fd889670ecde2c66a2e4d2dd9db80733c05c1d90c8a248",
"tools/dockerfile/test/csharp_debian11_x64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/csharp_debian11_x64@sha256:0763d919b17b4cfe5b65aff3bf911c04e9e4d46d11649858742033facd9f534f",
"tools/dockerfile/test/cxx_alpine_x64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_alpine_x64@sha256:10587bea5d163bf5c34c6157ebd1863d22863d9d38bbaf5135ffc6fbf2b73004",
"tools/dockerfile/test/cxx_clang_17_x64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_clang_17_x64@sha256:f4e88cdfe074ee33abbe01f97f945ded0f144693f1eeac4d541a256a7812a21a",
"tools/dockerfile/test/cxx_clang_18_x64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_clang_18_x64@sha256:46beb9901d0c480a40724a3934677ef5e8d6b2f177517c98e67ccff5d881503f",
"tools/dockerfile/test/cxx_clang_6_x64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_clang_6_x64@sha256:eebbaf353522d523ec9a7acb34bb3ae194e22ea7493c85c01437719e30da205d",
"tools/dockerfile/test/cxx_debian11_openssl102_x64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_debian11_openssl102_x64@sha256:477ae0da7ff7faa9cf195c0d32472fec4cf8b7325505c63e00b5c794c9a4b1a7",
"tools/dockerfile/test/cxx_debian11_openssl111_x64.current_version": "docker://us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_debian11_openssl111_x64@sha256:d383e66d4a089f9305768e3037faa2a887ff91565b0f3ddd96985dca94e9754f",
Expand Down
2 changes: 1 addition & 1 deletion tools/bazelify_tests/test/portability_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def generate_run_tests_portability_tests(name):
["gcc_12_openssl309", "--cmake_configure_extra_args=-DgRPC_SSL_PROVIDER=package", "tools/dockerfile/test/cxx_debian12_openssl309_x64.current_version"],
["gcc_musl", "", "tools/dockerfile/test/cxx_alpine_x64.current_version"],
["clang_6", "--cmake_configure_extra_args=-DCMAKE_C_COMPILER=clang --cmake_configure_extra_args=-DCMAKE_CXX_COMPILER=clang++", "tools/dockerfile/test/cxx_clang_6_x64.current_version"],
["clang_17_cxx23", "--cmake_configure_extra_args=-DCMAKE_C_COMPILER=clang --cmake_configure_extra_args=-DCMAKE_CXX_COMPILER=clang++ --cmake_configure_extra_args=-DCMAKE_CXX_STANDARD=23", "tools/dockerfile/test/cxx_clang_17_x64.current_version"],
["clang_18_cxx23", "--cmake_configure_extra_args=-DCMAKE_C_COMPILER=clang --cmake_configure_extra_args=-DCMAKE_CXX_COMPILER=clang++ --cmake_configure_extra_args=-DCMAKE_CXX_STANDARD=23", "tools/dockerfile/test/cxx_clang_18_x64.current_version"],
]

for compiler_name, args, docker_image_version in compiler_configs:
Expand Down
1 change: 0 additions & 1 deletion tools/dockerfile/test/cxx_clang_17_x64.current_version

This file was deleted.

1 change: 1 addition & 0 deletions tools/dockerfile/test/cxx_clang_18_x64.current_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
us-docker.pkg.dev/grpc-testing/testing-images-public/cxx_clang_18_x64:a3f9bea542d5048a4b0d7fdf91e9253705edb4f2@sha256:46beb9901d0c480a40724a3934677ef5e8d6b2f177517c98e67ccff5d881503f
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM silkeh/clang:17-bookworm
FROM silkeh/clang:18-bookworm

RUN apt update && apt -y upgrade && apt install -y build-essential curl git time wget zip && apt clean
#=================
Expand Down
6 changes: 3 additions & 3 deletions tools/run_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ def _compiler_options(
return ("alpine", [])
elif compiler == "clang6":
return ("clang_6", self._clang_cmake_configure_extra_args())
elif compiler == "clang17":
return ("clang_17", self._clang_cmake_configure_extra_args())
elif compiler == "clang18":
return ("clang_18", self._clang_cmake_configure_extra_args())
else:
raise Exception("Compiler %s not supported." % compiler)

Expand Down Expand Up @@ -1673,7 +1673,7 @@ def _build_and_run(
"gcc12_openssl309",
"gcc_musl",
"clang6",
"clang17",
"clang18",
# TODO: Automatically populate from supported version
"python3.7",
"python3.8",
Expand Down
2 changes: 1 addition & 1 deletion tools/run_tests/run_tests_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def _create_portability_test_jobs(
"gcc12_openssl309",
"gcc_musl",
"clang6",
"clang17",
"clang18",
]:
test_jobs += _generate_jobs(
languages=["c", "c++"],
Expand Down

0 comments on commit a374ef3

Please sign in to comment.