This is an automated email from the ASF dual-hosted git repository.

PragmaTwice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new fcc54dc6c chore(devcontainer): update toolchain to project 
requirements (#3563)
fcc54dc6c is described below

commit fcc54dc6c54ad784f45243076d3f7b0dd6702593
Author: maoyouaa <[email protected]>
AuthorDate: Fri Jul 24 00:25:25 2026 +0800

    chore(devcontainer): update toolchain to project requirements (#3563)
    
    ## What changed
    
    - switch the development container base image from Ubuntu Noble to
    Ubuntu Resolute
    - use Resolute's packaged Go toolchain
    - install Clang Format/Tidy 18 and expose their unversioned commands to
    match CI
    
    ## Why
    
    The existing development container no longer matches the repository
    requirements. Ubuntu Noble provides Go 1.22 while the Go test module
    requires Go 1.25, and the container pins Clang Format/Tidy 14 while
    `x.py` requires version 18 or newer.
    
    ## Impact
    
    Fresh development containers provide the required Go and LLVM tooling,
    and the default format and tidy commands work without additional path
    arguments.
    
    ## Validation
    
    - full `docker build` of `.devcontainer/Dockerfile`
    - tool smoke check: Go 1.26.0, GCC 15.2.0, Clang Format/Tidy 18.1.8, and
    minica
    - `./x.py build build --unittest --ninja -j 12`
    - `./x.py test cpp build` (600 passed, 1 skipped)
    - `./x.py test go build -run TestPing`
    - `./x.py format`
    - `./x.py check format`
    - `./x.py check tidy build -j 12`
    - `git diff --check`
    
    Prepared with assistance from OpenAI Codex and verified locally.
---
 .devcontainer/Dockerfile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 6b5b486e1..f4239e3f6 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,9 +1,12 @@
-FROM ubuntu:noble
+FROM ubuntu:resolute
 RUN apt update \
     && apt install -y \
         git build-essential cmake libtool python3 libssl-dev python3-pip \
-        wget curl clang-format-14 clang-tidy-14 golang-go ninja-build \
+        wget curl clang-format-18 clang-tidy-18 golang-go ninja-build \
         redis-tools vim python3-redis redis-server clang lld mold gdb fish
+RUN ln -s /usr/bin/clang-format-18 /usr/local/bin/clang-format \
+    && ln -s /usr/bin/clang-tidy-18 /usr/local/bin/clang-tidy \
+    && ln -s /usr/bin/run-clang-tidy-18 /usr/local/bin/run-clang-tidy
 RUN BUILD_DIR=$(pwd) && git clone https://github.com/jsha/minica /opt/minica \
     && cd /opt/minica && git checkout 96a5c93723cf3d34b50b3e723a9f05cd3765bc67 
&& go build && cd $BUILD_DIR \
     && echo 'export PATH=/opt/minica:$PATH' >> $HOME/.bashrc

Reply via email to