Skip to content

Use gdb 18.1 in cctools image - #124241

Merged
thevar1able merged 4 commits into
masterfrom
cctools-use-gdb-18.1
Oct 6, 2026
Merged

thevar1able merged 4 commits into
masterfrom
cctools-use-gdb-18.1

Conversation

@thevar1able

@thevar1able thevar1able commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Switch to GDB 18.1, and use mirrors.kernel.org source, as previous one fails with timeout too often.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...


Workflow [PR]
Sync PR [sync-upstream/pr/124241]

Version info

  • Merged into: 26.10.1.1697-master (included in 26.10 and later)

@clickhouse-gh

clickhouse-gh Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [cb412b7]

Summary: ✅


AI Review

Summary

This PR updates ci/docker/cctools/Dockerfile to fetch GDB from mirrors.kernel.org and bumps the bundled debugger from 16.3 to 18.1. I did not find a material correctness, rollout, or PR-metadata issue in the current diff.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). labels Oct 6, 2026
@evillique evillique self-assigned this Oct 6, 2026
@thevar1able
thevar1able added this pull request to the merge queue Oct 6, 2026
Merged via the queue into master with commit 0a9fbd0 Oct 6, 2026
149 checks passed
@thevar1able
thevar1able deleted the cctools-use-gdb-18.1 branch October 6, 2026 20:04
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 6, 2026
#
ENV LD=ld.lld-${LLVM_VERSION}
ARG GDB_VERSION=16.3
ARG GDB_VERSION=18.1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to bump cctools image in dependent images:

azat:.../ch/clickhouse (workload-dynamic-spilling) {elapsed: 13s}$ gg cctools:
ci/docker/binary-builder/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad /cctools /cctools
ci/docker/binary-builder/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad \
ci/docker/fasttest/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad /opt/gdb /opt/gdb
ci/docker/integration/base/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad /opt/gdb /opt/gdb
ci/docker/integration/base/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad \
ci/docker/integration/runner/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad /opt/gdb /opt/gdb
ci/docker/integration/runner/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad \
ci/docker/performance-comparison/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad /opt/gdb /opt/gdb
ci/docker/stateless-test/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad /opt/gdb /opt/gdb
ci/docker/stateless-test/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad \
ci/docker/test-base/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad /opt/gdb /opt/gdb
ci/docker/test-base/Dockerfile:COPY --from=clickhouse/cctools:859fb360308eb8ac47ad \

And don't forget private as well

thevar1able added a commit that referenced this pull request Oct 16, 2026
The images that copy files from `clickhouse/cctools` declared the tag in their
Dockerfiles, and it had to be updated by hand in a separate commit after the
image was built. It was forgotten after the gdb update.

Make `clickhouse/cctools` a dependency of these images and take its tag from
the `CCTOOLS_TAG` build argument. A change in `cctools` now rebuilds the
dependent images automatically. The server and keeper images get the tag from
the workflow config.

Related: #124241
Related: #126291

Co-Authored-By: Claude Opus 5.5 <[email protected]>
huldarchen pushed a commit to huldarchen/ClickHouse that referenced this pull request Oct 20, 2026
…/fasttest`

`clickhouse/fasttest` and other images copy `/opt/gdb` and `/opt/openssl-fips`
from `clickhouse/cctools`, while `clickhouse/cctools` itself was built from
`clickhouse/fasttest`. Because of this cycle, the pinned `cctools` tag in the
dependent images never matched its digest, and bumping the tag changed the
`cctools` digest again.

Nothing in the build needs the `fasttest` toolchain: libtapi and cctools-port
build with any recent clang, gdb and OpenSSL with any C/C++ compiler. Build it
from the plain `ubuntu:24.04` (the same base as `fasttest`, so the copied
binaries match its glibc) with the Ubuntu clang. The `ld.lld` workaround for
binutils 2.38 is not needed with binutils 2.42 from Ubuntu 24.04.

Related: ClickHouse#124241
Related: ClickHouse#126291

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants