This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new 255189f3b build(images): build third-party images for ASan tests
(#2347)
255189f3b is described below
commit 255189f3b0878f58fc75cf2bf75233ba018f6617
Author: Dan Wang <[email protected]>
AuthorDate: Mon Jan 12 16:43:30 2026 +0800
build(images): build third-party images for ASan tests (#2347)
https://github.com/apache/incubator-pegasus/issues/2344.
As is described in https://github.com/apache/incubator-pegasus/pull/2341,
this PR is to build third-party images with ASan enabled, which are
dedicated
to ASan tests.
---
.github/workflows/build-push-thirdparty.yml | 30 +++++++++++++++++++++++++++++
docker/thirdparties-bin/Dockerfile | 3 ++-
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build-push-thirdparty.yml
b/.github/workflows/build-push-thirdparty.yml
index 2b068e99d..20566ece4 100644
--- a/.github/workflows/build-push-thirdparty.yml
+++ b/.github/workflows/build-push-thirdparty.yml
@@ -154,6 +154,36 @@ jobs:
HADOOP_BIN_PATH=hadoop-bin
ZOOKEEPER_BIN_PATH=zookeeper-bin
+ build_push_bin_test_asan_docker_images:
+ runs-on: ubuntu-latest
+ needs: build_push_src_docker_images
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v1
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v1
+ - name: Login to DockerHub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Build and push for test asan
+ uses: docker/[email protected]
+ with:
+ context: .
+ file: ./docker/thirdparties-bin/Dockerfile
+ push: true
+ tags: |
+ apache/pegasus:thirdparties-bin-test-asan-${{ inputs.osversion
}}-${{ github.ref_name }}
+ build-args: |
+ GITHUB_BRANCH=${{ github.ref_name }}
+ OS_VERSION=${{ inputs.osversion }}
+ ROCKSDB_PORTABLE=1
+ ENABLE_ASAN=ON
+ HADOOP_BIN_PATH=hadoop-bin
+ ZOOKEEPER_BIN_PATH=zookeeper-bin
+
build_push_bin_test_jemalloc_docker_images:
runs-on: ubuntu-latest
needs: build_push_src_docker_images
diff --git a/docker/thirdparties-bin/Dockerfile
b/docker/thirdparties-bin/Dockerfile
index 3c9845462..76b0c6c03 100644
--- a/docker/thirdparties-bin/Dockerfile
+++ b/docker/thirdparties-bin/Dockerfile
@@ -28,12 +28,13 @@ ARG GITHUB_BRANCH
ARG GITHUB_REPOSITORY_URL=https://github.com/apache/incubator-pegasus.git
ARG ROCKSDB_PORTABLE=native
ARG USE_JEMALLOC=OFF
+ARG ENABLE_ASAN=OFF
ARG HADOOP_BIN_PATH=hadoop-bin
ARG ZOOKEEPER_BIN_PATH=zookeeper-bin
RUN git clone --depth=1 --branch=${GITHUB_BRANCH} ${GITHUB_REPOSITORY_URL} \
&& cd incubator-pegasus/thirdparty \
&& unzip /root/thirdparties-src.zip -d . \
- && cmake -DCMAKE_BUILD_TYPE=Release -DROCKSDB_PORTABLE=${ROCKSDB_PORTABLE}
-DUSE_JEMALLOC=${USE_JEMALLOC} -B build/ . \
+ && cmake -DCMAKE_BUILD_TYPE=Release -DROCKSDB_PORTABLE=${ROCKSDB_PORTABLE}
-DUSE_JEMALLOC=${USE_JEMALLOC} -DENABLE_ASAN=${ENABLE_ASAN} -B build/ . \
&& cmake --build build/ -j $(($(nproc)/2+1)) \
&& ../admin_tools/download_hadoop.sh ${HADOOP_BIN_PATH} \
&& ../admin_tools/download_zk.sh ${ZOOKEEPER_BIN_PATH} \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]