From 10c1af418984de5cc6f881586d8814e5be7dde87 Mon Sep 17 00:00:00 2001 From: Austin Barrington Date: Fri, 27 Nov 2026 19:55:28 +0000 Subject: [PATCH] Pin libchdb to v26.9.0 in CI and the image The libchdb installer takes the latest release. v26.11.1 (16 Nov) makes the lib test binary crash with SIGSEGV on main, twice in a row; the last green run, on v26.9.0, had the same chdb-rust commit. 0.9.4 shipped with v26.9.0. --- .github/scripts/rust-container-setup.sh | 5 ++++- Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/scripts/rust-container-setup.sh b/.github/scripts/rust-container-setup.sh index a4f23f8..91bd1b3 100755 --- a/.github/scripts/rust-container-setup.sh +++ b/.github/scripts/rust-container-setup.sh @@ -14,8 +14,11 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ llvm-dev \ pkg-config +# Pinned: the installer otherwise takes the latest release, and libchdb +# v26.11.1 crashes the lib test binary (SIGSEGV) where v26.9.0, which 0.9.4 +# ships, passes. Keep in step with the Dockerfile. curl -fsSL https://lib.chdb.io -o /tmp/install-chdb.sh -bash /tmp/install-chdb.sh +INSTALL_VERSION="${LIBCHDB_VERSION:-v26.9.0}" bash /tmp/install-chdb.sh # Install sccache so cargo's RUSTC_WRAPPER works inside the container. The # compiled-object cache lives in the bind-mounted SCCACHE_DIR (see diff --git a/Dockerfile b/Dockerfile index 5015ae9..beb9724 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,10 @@ ENV PATH="/root/.cargo/bin:${PATH}" ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse ENV CARGO_INCREMENTAL=0 -RUN curl -sL https://lib.chdb.io | bash +# Pinned with .github/scripts/rust-container-setup.sh: the installer takes +# the latest release otherwise, and v26.11.1 crashes the test binary. +ARG LIBCHDB_VERSION=v26.9.0 +RUN curl -sL https://lib.chdb.io | INSTALL_VERSION=${LIBCHDB_VERSION} bash # NOTE: this image builds from the PARENT directory as its context (the dir # containing both `hyperbytedb/` and `chdb-rust/`), because hyperbytedb depends