diff --git a/.github/workflows/ci-3p-django-framework.yml b/.github/workflows/ci-3p-django-framework.yml index 67f5706ad..a96851082 100644 --- a/.github/workflows/ci-3p-django-framework.yml +++ b/.github/workflows/ci-3p-django-framework.yml @@ -34,6 +34,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -157,7 +158,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-3p-laravel-framework.yml b/.github/workflows/ci-3p-laravel-framework.yml index 0a8a1f2f7..294b988b2 100644 --- a/.github/workflows/ci-3p-laravel-framework.yml +++ b/.github/workflows/ci-3p-laravel-framework.yml @@ -34,6 +34,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -155,7 +156,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-3p-laravel-framework_mariadb.yml b/.github/workflows/ci-3p-laravel-framework_mariadb.yml deleted file mode 100644 index 47922eb04..000000000 --- a/.github/workflows/ci-3p-laravel-framework_mariadb.yml +++ /dev/null @@ -1,126 +0,0 @@ -name: CI-3p-laravel-framework_mariadb - -on: - workflow_dispatch: - workflow_call: - -env: - TESTNAME: laravel-framework - TESTDIST: debian12 - SHA: ${{ github.sha }} - -jobs: - test: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - infradb: [ 'mariadb10.5', 'mariadb10.6', 'mariadb10.11', 'mariadb11.2', 'mariadb11.4', 'mariadb11.5' ] -# infradb: [ 'mysql57', 'mysql80', 'mysql84', 'mysql90' ] - connector: [ 'mysql', 'mariadb' ] - env: - INFRADB: ${{ matrix.infradb }} - CONNECTOR: ${{ matrix.connector }} - BLDCACHE: ${{ github.sha }}_debian12_bin - - steps: - - - name: Checkout proxysql_3p_testing - uses: actions/checkout@v4 - with: - repository: 'proxysql/proxysql_3p_testing' - ref: 'main' - fetch-depth: 1 - path: 'proxysql_3p_testing' - token: ${{ secrets.gh_token }} - sparse-checkout: | - test_laravel-framework -# proxysql - - - name: Wait for cache - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - echo "Wating for cache '${BLDCACHE}' ..." - sleep $(( $RANDOM / 1024 )) - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - while [[ -z ${PROBE} ]]; do - echo "Wating for cache '${BLDCACHE}' ..." - sleep 30 - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - done - echo "Cache available '${BLDCACHE}'" - - - name: Cache restore bin - uses: actions/cache/restore@v4 - with: - key: ${{ env.BLDCACHE }} - fail-on-cache-miss: true - path: | - proxysql/binaries/ - - - name: Prepare - run: | - set +e - - cd proxysql_3p_testing/ - git sparse-checkout list - ./setup.sh test_laravel-framework/laravel-framework - - # use cached build - rm -rf ./proxysql && mv ../proxysql . - - # set minor DB image version - #sed -i "s/${INFRADB#.*}/${INFRADB}/" ./test_sqlalchemy/docker-compose.yml - sed -i "/image: ${INFRADB/[0-9]*/}:/ s/:[0-9].*/:${INFRADB/*[a-z]/}/" ./test_sqlalchemy/docker-compose.yml - - - name: Run tests - run: | - set +e - - cd proxysql_3p_testing/test_laravel-framework - #sed -i 's/docker-compose/docker compose/g' run-tests.bash - INFRADB=${INFRADB%.*} CONNECTOR=${CONNECTOR} ./run-tests.bash - RC=$? - - #sudo chmod -R 777 ${{ github.workspace }}/* - exit $RC - - - name: Check baseline - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - cd proxysql_3p_testing/test_laravel-framework - BASELINE=$(gh variable -R ${{ github.repository }} list | grep -i BASELINE_3P_LARAVEL_FRAMEWORK_${INFRADB/./}_${CONNECTOR/./} | awk '{ print $2 }') - - FAILS=$(cat logs/*run-tests.log | grep -oP '^There were \d+ failures:' | awk '{ print $3 }') - if [[ -z ${FAILS} ]]; then - FAILS=$(cat logs/*run-tests.log | grep -oP 'OK \(\d+ tests,') - if [[ -z ${FAILS} ]]; then - echo "Baseline '${BASELINE}' WARN: no results found" - exit 0 - else - FAILS=0 - fi - fi - - if [[ ${FAILS} -gt ${BASELINE:-10000} ]]; then - echo "Baseline '${BASELINE:-10000}' FAIL: FAILS = ${FAILS}" - exit 1 - else - echo "Baseline '${BASELINE:-10000}' PASS: FAILS = ${FAILS}" - MAIN=$(curl -s https://api.github.com/repos/${{ github.repository }} | jq --raw-output .default_branch) - if [[ ${MAIN} == ${{ github.ref_name }} ]]; then - gh variable -R ${{ github.repository }} set BASELINE_3P_LARAVEL_FRAMEWORK_${INFRADB/./}_${CONNECTOR/./} -b "${FAILS}" - fi - fi - - - name: Archive artifacts logs - if: ${{ failure() && !cancelled() }} - uses: actions/upload-artifact@v4 - with: - name: ${{ github.workflow }}-${{ env.SHA }}-${{ matrix.infradb }}-${{ matrix.connector }}-logs-run#${{ github.run_number }} - path: | - proxysql_3p_testing/test_laravel-framework/logs - - diff --git a/.github/workflows/ci-3p-laravel-framework_mysql.yml b/.github/workflows/ci-3p-laravel-framework_mysql.yml deleted file mode 100644 index 03c21ff55..000000000 --- a/.github/workflows/ci-3p-laravel-framework_mysql.yml +++ /dev/null @@ -1,135 +0,0 @@ -name: CI-3p-laravel-framework - -on: - workflow_dispatch: - workflow_call: - -env: - TESTNAME: laravel-framework - TESTDIST: debian12 - SHA: ${{ github.sha }} - -jobs: - test: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: -# infradb: [ 'mariadb10.5', 'mariadb10.6', 'mariadb10.11', 'mariadb11.2', 'mariadb11.4', 'mariadb11.5' ] - infradb: [ 'mysql57', 'mysql80', 'mysql84', 'mysql90' ] - connector: [ 'mysql', 'mariadb' ] - env: - INFRADB: ${{ matrix.infradb }} - CONNECTOR: ${{ matrix.connector }} - BLDCACHE: ${{ github.sha }}_debian12_bin - - steps: - - - name: Checkout proxysql_3p_testing - uses: actions/checkout@v4 - with: - repository: 'proxysql/proxysql_3p_testing' - ref: 'main' - fetch-depth: 1 - path: 'proxysql_3p_testing' - token: ${{ secrets.gh_token }} - sparse-checkout: | - test_laravel-framework -# proxysql - - - name: Wait for cache - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - echo "Wating for cache '${BLDCACHE}' ..." - sleep $(( $RANDOM / 1024 )) - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - while [[ -z ${PROBE} ]]; do - echo "Wating for cache '${BLDCACHE}' ..." - sleep 30 - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - done - echo "Cache available '${BLDCACHE}'" - - - name: Cache restore bin - uses: actions/cache/restore@v4 - with: - key: ${{ env.BLDCACHE }} - fail-on-cache-miss: true - path: | - proxysql/binaries/ - - - name: Prepare - run: | - set +e - - cd proxysql_3p_testing/ - git sparse-checkout list - ./setup.sh test_laravel-framework/laravel-framework - - # use cached build - rm -rf ./proxysql && mv ../proxysql . - - # extend timout - #cd test_laravel-framework - #sed -i 's/timeout -v -s1 800 //' run-tests.bash - - # fix permissions - #mkdir laravel/cache - #chmod -R 777 laravel/cache - - # set tested database infra - #sed -i 's/^fn_test_proxysql m/#fn_test_proxysql m/' run-tests.bash - #sed -i 's/^fn_test_proxysql_dev m/#fn_test_proxysql_dev m/' run-tests.bash - #sed -i '/^fn_start_prep$/a fn_test_proxysql_dev ${{ matrix.infradb }}' run-tests.bash - - - name: Run tests - run: | - set +e - - cd proxysql_3p_testing/test_laravel-framework - #sed -i 's/docker-compose/docker compose/g' run-tests.bash - INFRADB=${INFRADB} CONNECTOR=${CONNECTOR} ./run-tests.bash - RC=$? - - #sudo chmod -R 777 ${{ github.workspace }}/* - exit $RC - - - name: Check baseline - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - cd proxysql_3p_testing/test_laravel-framework - BASELINE=$(gh variable -R ${{ github.repository }} list | grep -i BASELINE_3P_LARAVEL_FRAMEWORK_${INFRADB/./}_${CONNECTOR/./} | awk '{ print $2 }') - - FAILS=$(cat logs/*run-tests.log | grep -oP '^There were \d+ failures:' | awk '{ print $3 }') - if [[ -z ${FAILS} ]]; then - FAILS=$(cat logs/*run-tests.log | grep -oP 'OK \(\d+ tests,') - if [[ -z ${FAILS} ]]; then - echo "Baseline '${BASELINE}' WARN: no results found" - exit 0 - else - FAILS=0 - fi - fi - - if [[ ${FAILS} -gt ${BASELINE:-10000} ]]; then - echo "Baseline '${BASELINE:-10000}' FAIL: FAILS = ${FAILS}" - exit 1 - else - echo "Baseline '${BASELINE:-10000}' PASS: FAILS = ${FAILS}" - MAIN=$(curl -s https://api.github.com/repos/${{ github.repository }} | jq --raw-output .default_branch) - if [[ ${MAIN} == ${{ github.ref_name }} ]]; then - gh variable -R ${{ github.repository }} set BASELINE_3P_LARAVEL_FRAMEWORK_${INFRADB/./}_${CONNECTOR/./} -b "${FAILS}" - fi - fi - - - name: Archive artifacts logs - if: ${{ failure() && !cancelled() }} - uses: actions/upload-artifact@v4 - with: - name: ${{ github.workflow }}-${{ env.SHA }}-${{ matrix.infradb }}-${{ matrix.connector }}-logs-run#${{ github.run_number }} - path: | - proxysql_3p_testing/test_laravel-framework/logs - - diff --git a/.github/workflows/ci-3p-mariadb-connector-c.yml b/.github/workflows/ci-3p-mariadb-connector-c.yml index a3003db35..76323d2ca 100644 --- a/.github/workflows/ci-3p-mariadb-connector-c.yml +++ b/.github/workflows/ci-3p-mariadb-connector-c.yml @@ -24,7 +24,7 @@ jobs: matrix: # infradb: [ 'mysql57', 'mysql80', 'mysql84', 'mysql90', 'mariadb10.5', 'mariadb10.6', 'mariadb10.11', 'mariadb11.2', 'mariadb11.4', 'mariadb11.5' ] infradb: [ 'mysql57', 'mysql80', 'mysql81', 'mysql82', 'mariadb10', 'mariadb11' ] - connector: [ 8.0 ] + connector: [ '8.0' ] env: INFRADB: ${{ matrix.infradb }} CONNECTOR: ${{ matrix.connector }} @@ -34,6 +34,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -148,7 +149,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-3p-mysql-connector-j.yml b/.github/workflows/ci-3p-mysql-connector-j.yml index 9f9bed7af..b332daf27 100644 --- a/.github/workflows/ci-3p-mysql-connector-j.yml +++ b/.github/workflows/ci-3p-mysql-connector-j.yml @@ -34,6 +34,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -139,7 +140,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-3p-php-pdo-mysql.yml b/.github/workflows/ci-3p-php-pdo-mysql.yml index e5d44f919..a53e84762 100644 --- a/.github/workflows/ci-3p-php-pdo-mysql.yml +++ b/.github/workflows/ci-3p-php-pdo-mysql.yml @@ -34,6 +34,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -139,7 +140,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-3p-sqlalchemy.yml b/.github/workflows/ci-3p-sqlalchemy.yml index 879f036e1..8908f2d38 100644 --- a/.github/workflows/ci-3p-sqlalchemy.yml +++ b/.github/workflows/ci-3p-sqlalchemy.yml @@ -37,6 +37,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -157,7 +158,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-3p-sqlalchemy_mariadb.yml b/.github/workflows/ci-3p-sqlalchemy_mariadb.yml deleted file mode 100644 index 81ec24d61..000000000 --- a/.github/workflows/ci-3p-sqlalchemy_mariadb.yml +++ /dev/null @@ -1,126 +0,0 @@ -name: CI-3p-sqlalchemy_mariadb - -on: - workflow_dispatch: - workflow_call: - -env: - TESTNAME: sqlalchemy - TESTDIST: debian12 - SHA: ${{ github.sha }} - -jobs: - test: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - infradb: [ 'mariadb10.5', 'mariadb10.6', 'mariadb10.11', 'mariadb11.2', 'mariadb11.4', 'mariadb11.5' ] -# infradb: [ 'mariadb10', 'mariadb11' ] - connector: [ 'pymysql', 'mysqldb', 'asyncmy', 'mariadbconnector' ] - env: - INFRADB: ${{ matrix.infradb }} - CONNECTOR: ${{ matrix.connector }} - BLDCACHE: ${{ github.sha }}_debian12_bin - - steps: - - - name: Checkout proxysql_3p_testing - uses: actions/checkout@v4 - with: - repository: 'proxysql/proxysql_3p_testing' - ref: 'main' - fetch-depth: 1 - path: 'proxysql_3p_testing' - token: ${{ secrets.gh_token }} - sparse-checkout: | - infra-docker-hoster - test_sqlalchemy -# proxysql - - - name: Wait for cache - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - echo "Wating for cache '${BLDCACHE}' ..." - sleep $(( $RANDOM / 1024 )) - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - while [[ -z ${PROBE} ]]; do - echo "Wating for cache '${BLDCACHE}' ..." - sleep 30 - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - done - echo "Cache available '${BLDCACHE}'" - - - name: Cache restore bin - uses: actions/cache/restore@v4 - with: - key: ${{ env.BLDCACHE }} - fail-on-cache-miss: true - path: | - proxysql/binaries/ - - - name: Prepare - run: | - set +e - - cd proxysql_3p_testing/ - ./setup.sh test_sqlalchemy/sqlalchemy - - # use cached build - rm -rf ./proxysql && mv ../proxysql . - - # set minor DB image version - #sed -i "s/${INFRADB#.*}/${INFRADB}/" ./test_sqlalchemy/docker-compose.yml - sed -i "/image: ${INFRADB/[0-9]*/}:/ s/:[0-9].*/:${INFRADB/*[a-z]/}/" ./test_sqlalchemy/docker-compose.yml - - - name: Run tests - run: | - set +e - - cd proxysql_3p_testing/test_sqlalchemy - #INFRADB=${{ matrix.infradb }} CONNECTOR=${{ matrix.connector }} ./run-tests.bash test/dialect - INFRADB=${INFRADB%.*} CONNECTOR=${{ matrix.connector }} ./run-tests.bash - RC=$? - - #sudo chmod -R 777 ${{ github.workspace }}/* - exit $RC - - - name: Check baseline - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - cd proxysql_3p_testing/test_sqlalchemy - BASELINE=$(gh variable -R ${{ github.repository }} list | grep -i BASELINE_3P_SQLALCHEMY_${INFRADB/./}_${CONNECTOR/./} | awk '{ print $2 }') - - FAILS=$(cat logs/*run-tests.log | grep -oP '^=+ \d+ failed, ' | awk '{ print $2 }') - if [[ -z ${FAILS} ]]; then - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE}' WARN: no results found" - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE}' WARN: no results found" >> $GITHUB_STEP_SUMMARY - exit 0 - fi - if [[ ${FAILS} -gt ${BASELINE:-10000} ]]; then - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' FAIL: FAILS = ${FAILS}" - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' FAIL: FAILS = ${FAILS}" >> $GITHUB_STEP_SUMMARY - exit 1 - else - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' PASS: FAILS = ${FAILS}" - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' PASS: FAILS = ${FAILS}" >> $GITHUB_STEP_SUMMARY - #MAIN=$(git -C ./proxysql remote show origin | grep -Po '(?<=HEAD branch: ).*') - MAIN=$(curl -s https://api.github.com/repos/${{ github.repository }} | jq --raw-output .default_branch) - #MAIN=$(gh repo view ${{ github.repository }} --json defaultBranchRef --jq .defaultBranchRef.name) - if [[ ${MAIN} == ${{ github.ref_name }} ]]; then - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Setting new BASELINE: ${FAILS} for '${MAIN}'" - gh variable -R ${{ github.repository }} set BASELINE_3P_SQLALCHEMY_${INFRADB/./}_${CONNECTOR/./} -b "${FAILS}" - fi - fi - - - name: Archive artifacts logs - if: ${{ failure() && !cancelled() }} - uses: actions/upload-artifact@v4 - with: - name: ${{ github.workflow }}-${{ env.SHA }}-${{ matrix.infradb }}-${{ matrix.connector }}-logs-run#${{ github.run_number }} - path: | - proxysql_3p_testing/test_sqlalchemy/logs - - diff --git a/.github/workflows/ci-3p-sqlalchemy_mysql.yml b/.github/workflows/ci-3p-sqlalchemy_mysql.yml deleted file mode 100644 index ba1fd886c..000000000 --- a/.github/workflows/ci-3p-sqlalchemy_mysql.yml +++ /dev/null @@ -1,122 +0,0 @@ -name: CI-3p-sqlalchemy_mysql - -on: - workflow_dispatch: - workflow_call: - -env: - TESTNAME: sqlalchemy - TESTDIST: debian12 - SHA: ${{ github.sha }} - -jobs: - test: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: -# infradb: [ 'mysql57', 'mysql80', 'mysql81', 'mysql82', 'mysql83', 'mysql84', 'mysql90', 'mariadb10', 'mariadb11' ] - infradb: [ 'mysql57', 'mysql80', 'mysql84', 'mysql90' ] - connector: [ 'pymysql', 'mysqldb', 'asyncmy', 'mariadbconnector' ] - env: - INFRADB: ${{ matrix.infradb }} - CONNECTOR: ${{ matrix.connector }} - BLDCACHE: ${{ github.sha }}_debian12_bin - - steps: - - - name: Checkout proxysql_3p_testing - uses: actions/checkout@v4 - with: - repository: 'proxysql/proxysql_3p_testing' - ref: 'main' - fetch-depth: 1 - path: 'proxysql_3p_testing' - token: ${{ secrets.gh_token }} - sparse-checkout: | - infra-docker-hoster - test_sqlalchemy -# proxysql - - - name: Wait for cache - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - echo "Wating for cache '${BLDCACHE}' ..." - sleep $(( $RANDOM / 1024 )) - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - while [[ -z ${PROBE} ]]; do - echo "Wating for cache '${BLDCACHE}' ..." - sleep 30 - PROBE="$(gh cache list --limit 300 --repo ${{ github.repository }} | grep -i ${BLDCACHE} || echo '')" - done - echo "Cache available '${BLDCACHE}'" - - - name: Cache restore bin - uses: actions/cache/restore@v4 - with: - key: ${{ env.BLDCACHE }} - fail-on-cache-miss: true - path: | - proxysql/binaries/ - - - name: Prepare - run: | - set +e - - cd proxysql_3p_testing/ - ./setup.sh test_sqlalchemy/sqlalchemy - - # use cached build - rm -rf ./proxysql && mv ../proxysql . - - - name: Run tests - run: | - set +e - - cd proxysql_3p_testing/test_sqlalchemy - #INFRADB=${{ matrix.infradb }} CONNECTOR=${{ matrix.connector }} ./run-tests.bash test/dialect - INFRADB=${{ matrix.infradb }} CONNECTOR=${{ matrix.connector }} ./run-tests.bash - RC=$? - - #sudo chmod -R 777 ${{ github.workspace }}/* - exit $RC - - - name: Check baseline - env: - GH_TOKEN: ${{ secrets.gh_token }} - run: | - cd proxysql_3p_testing/test_sqlalchemy - BASELINE=$(gh variable -R ${{ github.repository }} list | grep -i BASELINE_3P_SQLALCHEMY_${INFRADB/./}_${CONNECTOR/./} | awk '{ print $2 }') - - FAILS=$(cat logs/*run-tests.log | grep -oP '^=+ \d+ failed, ' | awk '{ print $2 }') - if [[ -z ${FAILS} ]]; then - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE}' WARN: no results found" - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE}' WARN: no results found" >> $GITHUB_STEP_SUMMARY - exit 0 - fi - if [[ ${FAILS} -gt ${BASELINE:-10000} ]]; then - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' FAIL: FAILS = ${FAILS}" - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' FAIL: FAILS = ${FAILS}" >> $GITHUB_STEP_SUMMARY - exit 1 - else - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' PASS: FAILS = ${FAILS}" - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Baseline '${BASELINE:-10000}' PASS: FAILS = ${FAILS}" >> $GITHUB_STEP_SUMMARY - #MAIN=$(git -C ./proxysql remote show origin | grep -Po '(?<=HEAD branch: ).*') - MAIN=$(curl -s https://api.github.com/repos/${{ github.repository }} | jq --raw-output .default_branch) - #MAIN=$(gh repo view ${{ github.repository }} --json defaultBranchRef --jq .defaultBranchRef.name) - if [[ ${MAIN} == ${{ github.ref_name }} ]]; then - echo "INFRADB: '${INFRADB}' CONNECTOR: '${CONNECTOR}' Setting new BASELINE: ${FAILS} for '${MAIN}'" - gh variable -R ${{ github.repository }} set BASELINE_3P_SQLALCHEMY_${INFRADB/./}_${CONNECTOR/./} -b "${FAILS}" - fi - fi - - - name: Archive artifacts logs - if: ${{ failure() && !cancelled() }} - uses: actions/upload-artifact@v4 - with: - name: ${{ github.workflow }}-${{ env.SHA }}-${{ matrix.infradb }}-${{ matrix.connector }}-logs-run#${{ github.run_number }} - path: | - proxysql_3p_testing/test_sqlalchemy/logs - - diff --git a/.github/workflows/ci-basictests.yml b/.github/workflows/ci-basictests.yml index 4177bf966..3e0e0babc 100644 --- a/.github/workflows/ci-basictests.yml +++ b/.github/workflows/ci-basictests.yml @@ -29,6 +29,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -213,7 +214,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-builds.yml b/.github/workflows/ci-builds.yml index 7d19f6797..0bb5361f7 100644 --- a/.github/workflows/ci-builds.yml +++ b/.github/workflows/ci-builds.yml @@ -81,6 +81,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -229,7 +230,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-codeql.yml b/.github/workflows/ci-codeql.yml index ee93d1ff5..88b00b2f1 100644 --- a/.github/workflows/ci-codeql.yml +++ b/.github/workflows/ci-codeql.yml @@ -34,6 +34,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -122,7 +123,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-maketest.yml b/.github/workflows/ci-maketest.yml index d556b872b..b38cca0fa 100644 --- a/.github/workflows/ci-maketest.yml +++ b/.github/workflows/ci-maketest.yml @@ -28,6 +28,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -79,7 +80,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-package-build.yml b/.github/workflows/ci-package-build.yml index a196ead84..f587c5cc7 100644 --- a/.github/workflows/ci-package-build.yml +++ b/.github/workflows/ci-package-build.yml @@ -64,6 +64,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -127,7 +128,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-repltests.yml b/.github/workflows/ci-repltests.yml index aa1fdce8f..d6632f933 100644 --- a/.github/workflows/ci-repltests.yml +++ b/.github/workflows/ci-repltests.yml @@ -28,6 +28,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -128,7 +129,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-selftests.yml b/.github/workflows/ci-selftests.yml index 60f575edd..e19c03a92 100644 --- a/.github/workflows/ci-selftests.yml +++ b/.github/workflows/ci-selftests.yml @@ -28,6 +28,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -149,7 +150,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-shuntest.yml b/.github/workflows/ci-shuntest.yml index 4eac08c8a..795d83074 100644 --- a/.github/workflows/ci-shuntest.yml +++ b/.github/workflows/ci-shuntest.yml @@ -28,6 +28,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -122,7 +123,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }} diff --git a/.github/workflows/ci-taptests-groups.yml b/.github/workflows/ci-taptests-groups.yml index 5bdd016d0..ac40172c3 100644 --- a/.github/workflows/ci-taptests-groups.yml +++ b/.github/workflows/ci-taptests-groups.yml @@ -102,6 +102,7 @@ jobs: steps: - uses: LouisBrunner/checks-action@v2.0.0 + id: checks if: always() with: token: ${{ secrets.GITHUB_TOKEN }} @@ -354,7 +355,7 @@ jobs: if: always() with: token: ${{ secrets.GITHUB_TOKEN }} - name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + check_id: ${{ steps.checks.outputs.check_id }} repo: ${{ github.repository }} sha: ${{ env.SHA }} conclusion: ${{ job.status }}