From 2c5d907705c116a429bc209779127bc542428dab Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Fri, 11 Aug 2023 08:37:01 +0200 Subject: [PATCH] Update ci-repltests.yml --- .github/workflows/ci-repltests.yml | 77 ++---------------------------- 1 file changed, 3 insertions(+), 74 deletions(-) diff --git a/.github/workflows/ci-repltests.yml b/.github/workflows/ci-repltests.yml index 8b342480c..c4d2adbb0 100644 --- a/.github/workflows/ci-repltests.yml +++ b/.github/workflows/ci-repltests.yml @@ -20,78 +20,7 @@ concurrency: cancel-in-progress: true jobs: - build-n-test: - runs-on: ubuntu-22.04 - steps: + run: + uses: sysown/proxysql/.github/workflows/ci-repltests.yml@GH-Actions + secrets: inherit - - name: Install dependencies - run: | - sudo apt-get update -y - sudo apt-get install -y sysbench gettext - - - name: Checkout proxysql - uses: actions/checkout@v3 - with: - repository: 'sysown/proxysql' -# ref: 'v2.x' - ref: ${{ github.head_ref }} - fetch-depth: 0 - path: 'proxysql' - - - name: Checkout jenkins_build_scripts - uses: actions/checkout@v3 - with: - repository: 'proxysql/jenkins-build-scripts' - ref: 'proxysql_repl_tests' - fetch-depth: 0 - path: 'jenkins-build-scripts' - token: ${{ secrets.GH_TOKEN }} - - - name: Set GIT_VERSION - run: | - cd proxysql/ - git fetch --tags --force - echo "GIT_VERSION=$(git describe --long --abbrev=7)" >> $GITHUB_ENV - - name: Build - run: | - cd proxysql/ - make ubuntu22-dbg - - - name: Docker-hoster - run: | - cd jenkins-build-scripts/infra-docker-hoster - docker-compose up -d - - - name: Replication-tests - run: | - set +e - - cd jenkins-build-scripts - sed -i "s|#!/usr/bin/bash|#!/usr/bin/bash +e|" proxysql_repl_tests/bin/debezium-check.bash - sed -i "s|#!/usr/bin/bash|#!/usr/bin/bash +e|" proxysql_repl_tests/exec_repl_test.sh - sed -i "s|JENKINS_SCRIPTS_PATH=.*|JENKINS_SCRIPTS_PATH=${{ github.workspace }}/jenkins-build-scripts|" env.sh - sed -i "s|WORKSPACE=.*|WORKSPACE=${{ github.workspace }}/proxysql|" env.sh - - cd proxysql_repl_tests - #./exec_repl_test.sh 5.7 no-ssl debezium - RCS=0 - for N in {1..5}; do - ./exec_all_repl_tests.sh - RC=$? - RCS=$(( $RCS + $RC )) - done - - #./docker-compose-destroy.bash - sudo chmod -R 777 ${{ github.workspace }}/* - exit $RCS - - - name: Archive artifacts - if: ${{ failure() }} - uses: actions/upload-artifact@v3 - with: - name: ci-selftests-${{ env.GIT_VERSION }}-run#${{ github.run_number }} - path: | - proxysql/src/ - proxysql/ci_infra_logs/ - -