docs: add MAINTAINERS.md with maintainers and committers list #5124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pika | |
| on: | |
| push: | |
| branches: [ "unstable", "3.5" , "4.0"] | |
| pull_request: | |
| branches: [ "unstable", "3.5" , "4.0"] | |
| env: | |
| # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
| BUILD_TYPE: RelWithDebInfo | |
| ARTIFACT_PIKA_NAME: artifact-pika | |
| jobs: | |
| build_on_ubuntu: | |
| # The CMake configure and build commands are platform-agnostic and should work equally well on Windows or Mac. | |
| # You can convert this to a matrix build if you need cross-platform coverage. | |
| # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Free Disk Space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /usr/local/share/boost | |
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
| df -h | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.19 | |
| - name: ccache | |
| uses: hendrikmuhs/[email protected] | |
| with: | |
| key: ubuntu-latest | |
| - name: Install Deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y autoconf libprotobuf-dev protobuf-compiler clang-tidy | |
| - name: Configure CMake | |
| # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | |
| # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DUSE_PIKA_TOOLS=ON -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache | |
| - name: Build | |
| # Build your program with the given configuration | |
| run: cmake --build build --config ${{ env.BUILD_TYPE }} | |
| - name: Cleanup Build Trees | |
| run: | | |
| rm -rf ./buildtrees | |
| rm -rf ./deps | |
| df -h | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.ARTIFACT_PIKA_NAME }} | |
| path: ${{ github.workspace }}/build/pika | |
| - name: Test | |
| working-directory: ${{ github.workspace }}/build | |
| # Execute tests defined by the CMake configuration. | |
| # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
| run: ctest -C ${{ env.BUILD_TYPE }} --verbose | |
| - name: Unit Test | |
| working-directory: ${{ github.workspace }} | |
| run: ./pikatests.sh all clean | |
| - name: Cleanup Build Artifacts | |
| run: | | |
| find ./build -name "*.o" -type f -delete | |
| find ./build -name "*.a" -type f -delete | |
| rm -rf ./build/CMakeFiles | |
| rm -rf ./build/_deps | |
| df -h | |
| # master on port 9221, slave on port 9231, all with 2 db | |
| - name: Start codis, pika master and pika slave | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| echo "hello" | |
| chmod +x ../tests/integration/start_master_and_slave.sh | |
| ../tests/integration/start_master_and_slave.sh | |
| chmod +x ../tests/integration/start_codis.sh | |
| ../tests/integration/start_codis.sh | |
| - name: Run Go E2E Tests | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| cd ../tools/pika_keys_analysis/ | |
| go test -v ./... | |
| cd ../../tests/integration/ | |
| chmod +x integrate_test.sh | |
| sh integrate_test.sh | |
| - name: Cleanup Test Data | |
| if: always() | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| pkill -9 pika || true | |
| pkill -9 codis || true | |
| rm -rf master_data slave_data rename_data acl1_data acl2_data acl3_data | |
| rm -rf codis_data_1 codis_data_2 | |
| rm -rf *.conf *.conf.bak | |
| df -h | |
| build_on_centos: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: cheniujh/pika-centos7-ci:v5 | |
| steps: | |
| - name: Free Disk Space | |
| run: | | |
| rm -rf /usr/share/dotnet | |
| rm -rf /opt/ghc | |
| rm -rf /usr/local/share/boost | |
| find / -type f -name "*.log" -delete 2>/dev/null || true | |
| find / -type f -name "*.tmp" -delete 2>/dev/null || true | |
| find / -name '*cache*' -type d -exec rm -rf {} + 2>/dev/null || true | |
| find / -name '*.bak' -type f -delete 2>/dev/null || true | |
| df -h | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure CMake | |
| run: | | |
| source /opt/rh/devtoolset-10/enable | |
| cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DUSE_PIKA_TOOLS=ON -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address | |
| - name: Build | |
| run: | | |
| source /opt/rh/devtoolset-10/enable | |
| cmake --build build --config ${{ env.BUILD_TYPE }} | |
| - name: Cleanup Build Trees | |
| run: | | |
| rm -rf ./buildtrees | |
| rm -rf ./deps | |
| # Clean build intermediate files but keep binaries | |
| find ./build -name "*.o" -type f -delete || true | |
| find ./build -name "*.a" -type f -delete || true | |
| df -h | |
| - name: Test | |
| working-directory: ${{ github.workspace }}/build | |
| run: ctest -C ${{ env.BUILD_TYPE }} | |
| - name: Unit Test | |
| working-directory: ${{ github.workspace }} | |
| run: ./pikatests.sh all clean | |
| - name: Cleanup After Unit Test | |
| run: | | |
| # Clean up test data to free space before integration tests | |
| rm -rf ./log* ./db* ./dump* ./dbsync* || true | |
| df -h | |
| - name: Extreme Disk Cleanup | |
| run: | | |
| rm -rf /__w/pikiwidb/pikiwidb/buildtrees 2>/dev/null || true | |
| rm -rf /__w/pikiwidb/pikiwidb/deps 2>/dev/null || true | |
| find /__w/pikiwidb/pikiwidb -type f \( -name "librocksdb.a" -o -name "libprotoc.a" -o -name "libprotobuf.a" \) -delete 2>/dev/null || true | |
| find /__w/pikiwidb/pikiwidb -type f \( -name "*.o" -o -name "*.a" -o -name "*.la" -o -name "*.so" -o -name "*_test" \) ! -path "*/build/pika" -delete 2>/dev/null || true | |
| rm -rf /__w/pikiwidb/pikiwidb/.git 2>/dev/null || true | |
| df -h | |
| - name: Create Log Directories | |
| run: | | |
| mkdir -p /__w/pikiwidb/pikiwidb/codis/admin/../log | |
| mkdir -p /__w/pikiwidb/pikiwidb/log | |
| mkdir -p ./bin || true | |
| df -h | |
| - name: Start codis, pika master and pika slave | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| chmod +x ../tests/integration/start_master_and_slave.sh | |
| ../tests/integration/start_master_and_slave.sh | |
| chmod +x ../tests/integration/start_codis.sh | |
| ../tests/integration/start_codis.sh | |
| - name: Run Go E2E Tests | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| cd ../tools/pika_keys_analysis/ | |
| go test -v ./... | |
| cd ../../tests/integration/ | |
| chmod +x integrate_test.sh | |
| sh integrate_test.sh | |
| - name: Cleanup Test Data | |
| if: always() | |
| working-directory: ${{ github.workspace }}/build | |
| run: | | |
| rm -rf master_data slave_data rename_data acl1_data acl2_data acl3_data | |
| rm -rf codis_data_1 codis_data_2 | |
| rm -rf *.conf *.conf.bak | |
| df -h | |
| build_on_macos: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.19 | |
| - name: ccache | |
| uses: hendrikmuhs/[email protected] | |
| with: | |
| key: macos-14 | |
| - name: Install Deps | |
| run: | | |
| brew list --versions cmake && brew uninstall --ignore-dependencies --force cmake || true | |
| brew install gcc@13 automake cmake make binutils | |
| - name: Configure CMake | |
| run: | | |
| GCC_PREFIX=$(brew --prefix gcc@13) | |
| export CC=$GCC_PREFIX/bin/gcc-13 | |
| cmake -B build -DCMAKE_C_COMPILER=$GCC_PREFIX/bin/gcc-13 -DUSE_PIKA_TOOLS=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache | |
| - name: Build | |
| run: | | |
| cmake --build build --config ${{ env.BUILD_TYPE }} | |
| - name: Cleanup | |
| run: | | |
| cp deps/lib/libz.1.dylib . | |
| cp deps/lib/libz.1.dylib tests/integration/ | |
| rm -rf ./buildtrees | |
| find tests -name "*.tcl" -exec sed -i '' 's/exec leaks/exec echo "0 leaks"/g' {} + | |
| - name: Test | |
| working-directory: ${{ github.workspace }}/build | |
| run: ctest -C ${{ env.BUILD_TYPE }} --verbose | |
| - name: Unit Test | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| ./pikatests.sh all clean | |
| - name: Start codis, pika master and pika slave | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| cd tests/integration/ | |
| chmod +x start_master_and_slave.sh | |
| ./start_master_and_slave.sh | |
| chmod +x start_codis.sh | |
| ./start_codis.sh | |
| - name: Run Go E2E Tests | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| cd tests/integration/ | |
| chmod +x integrate_test.sh | |
| # sh integrate_test.sh | |
| build_pika_image: | |
| name: Build Pika Docker image | |
| runs-on: ubuntu-latest | |
| needs: build_on_ubuntu | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | |
| with: | |
| images: pikadb/pika | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: ${{ env.ARTIFACT_PIKA_NAME }} | |
| path: artifact/ | |
| - name: Build Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: ./ci/Dockerfile | |
| push: false | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |