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