mirror of https://github.com/sysown/proxysql
parent
9bcd7c0147
commit
a84476768e
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in new issue