From ad296936ae513bd909bb47734d13a483a6329896 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Tue, 5 May 2026 04:50:28 +0000 Subject: [PATCH] feat(ci): add reusable workflows for CI-mysql84-gr-g[1-9] test groups --- .github/workflows/ci-mysql84-gr-g1.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g2.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g3.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g4.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g5.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g6.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g7.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g8.yml | 131 +++++++++++++++++++++++++ .github/workflows/ci-mysql84-gr-g9.yml | 131 +++++++++++++++++++++++++ 9 files changed, 1179 insertions(+) create mode 100644 .github/workflows/ci-mysql84-gr-g1.yml create mode 100644 .github/workflows/ci-mysql84-gr-g2.yml create mode 100644 .github/workflows/ci-mysql84-gr-g3.yml create mode 100644 .github/workflows/ci-mysql84-gr-g4.yml create mode 100644 .github/workflows/ci-mysql84-gr-g5.yml create mode 100644 .github/workflows/ci-mysql84-gr-g6.yml create mode 100644 .github/workflows/ci-mysql84-gr-g7.yml create mode 100644 .github/workflows/ci-mysql84-gr-g8.yml create mode 100644 .github/workflows/ci-mysql84-gr-g9.yml diff --git a/.github/workflows/ci-mysql84-gr-g1.yml b/.github/workflows/ci-mysql84-gr-g1.yml new file mode 100644 index 000000000..ec0a62dae --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g1.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g1 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g1" + export TAP_GROUP="mysql84-gr-g1" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g1 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g1" + export TAP_GROUP="mysql84-gr-g1" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g1" + export TAP_GROUP="mysql84-gr-g1" + docker logs proxysql.ci-mysql84-gr-g1 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g2.yml b/.github/workflows/ci-mysql84-gr-g2.yml new file mode 100644 index 000000000..dffa9c42d --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g2.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g2 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g2" + export TAP_GROUP="mysql84-gr-g2" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g2 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g2" + export TAP_GROUP="mysql84-gr-g2" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g2" + export TAP_GROUP="mysql84-gr-g2" + docker logs proxysql.ci-mysql84-gr-g2 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g3.yml b/.github/workflows/ci-mysql84-gr-g3.yml new file mode 100644 index 000000000..a55abdb98 --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g3.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g3 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g3" + export TAP_GROUP="mysql84-gr-g3" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g3 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g3" + export TAP_GROUP="mysql84-gr-g3" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g3" + export TAP_GROUP="mysql84-gr-g3" + docker logs proxysql.ci-mysql84-gr-g3 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g4.yml b/.github/workflows/ci-mysql84-gr-g4.yml new file mode 100644 index 000000000..e644d4b8f --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g4.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g4 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g4" + export TAP_GROUP="mysql84-gr-g4" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g4 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g4" + export TAP_GROUP="mysql84-gr-g4" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g4" + export TAP_GROUP="mysql84-gr-g4" + docker logs proxysql.ci-mysql84-gr-g4 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g5.yml b/.github/workflows/ci-mysql84-gr-g5.yml new file mode 100644 index 000000000..12fcac347 --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g5.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g5 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g5" + export TAP_GROUP="mysql84-gr-g5" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g5 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g5" + export TAP_GROUP="mysql84-gr-g5" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g5" + export TAP_GROUP="mysql84-gr-g5" + docker logs proxysql.ci-mysql84-gr-g5 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g6.yml b/.github/workflows/ci-mysql84-gr-g6.yml new file mode 100644 index 000000000..213690ef5 --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g6.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g6 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g6" + export TAP_GROUP="mysql84-gr-g6" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g6 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g6" + export TAP_GROUP="mysql84-gr-g6" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g6" + export TAP_GROUP="mysql84-gr-g6" + docker logs proxysql.ci-mysql84-gr-g6 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g7.yml b/.github/workflows/ci-mysql84-gr-g7.yml new file mode 100644 index 000000000..9b405c792 --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g7.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g7 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g7" + export TAP_GROUP="mysql84-gr-g7" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g7 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g7" + export TAP_GROUP="mysql84-gr-g7" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g7" + export TAP_GROUP="mysql84-gr-g7" + docker logs proxysql.ci-mysql84-gr-g7 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g8.yml b/.github/workflows/ci-mysql84-gr-g8.yml new file mode 100644 index 000000000..bcee76b43 --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g8.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g8 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g8" + export TAP_GROUP="mysql84-gr-g8" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g8 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g8" + export TAP_GROUP="mysql84-gr-g8" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g8" + export TAP_GROUP="mysql84-gr-g8" + docker logs proxysql.ci-mysql84-gr-g8 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/.github/workflows/ci-mysql84-gr-g9.yml b/.github/workflows/ci-mysql84-gr-g9.yml new file mode 100644 index 000000000..e7e9274a1 --- /dev/null +++ b/.github/workflows/ci-mysql84-gr-g9.yml @@ -0,0 +1,131 @@ +name: CI-mysql84-gr-g9 + +on: + workflow_dispatch: + workflow_call: + inputs: + trigger: + type: string + +env: + SHA: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }} + +jobs: + tests: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + infradb: [ 'mysql84' ] + env: + BLDCACHE: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_src + MATRIX: '(${{ matrix.infradb }})' + + steps: + + - uses: LouisBrunner/checks-action@v2.0.0 + id: checks + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: '${{ github.workflow }} / ${{ github.job }} ${{ env.MATRIX }}' + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + status: 'in_progress' + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }} + ref: ${{ env.SHA }} + path: 'proxysql' + sparse-checkout: | + test/infra + test/tap/groups + test/scripts + + - name: Cache restore src + id: cache-src + uses: actions/cache/restore@v4 + with: + key: ${{ env.BLDCACHE }} + fail-on-cache-miss: true + path: | + proxysql/src/ + + - name: Cache restore test + id: cache-test + uses: actions/cache/restore@v4 + with: + key: ${{ inputs.trigger && fromJson(inputs.trigger).event.workflow_run.head_sha || github.sha }}_ubuntu22-tap_test + fail-on-cache-miss: true + path: | + proxysql/test/ + + - name: Verify binary + run: | + chmod +x proxysql/src/proxysql + file proxysql/src/proxysql + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull CI base image + run: | + docker pull ghcr.io/sysown/proxysql-ci-base:latest + docker tag ghcr.io/sysown/proxysql-ci-base:latest proxysql-ci-base:latest + + - name: Start infrastructure + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g9" + export TAP_GROUP="mysql84-gr-g9" + export SKIP_CLUSTER_START=1 + test/infra/control/ensure-infras.bash + + - name: Run mysql84-gr-g9 tests + run: | + cd proxysql + export INFRA_ID="ci-mysql84-gr-g9" + export TAP_GROUP="mysql84-gr-g9" + export SKIP_CLUSTER_START=1 + test/infra/control/run-tests-isolated.bash + + - name: Cleanup + if: always() + run: | + set +e + cd proxysql + export INFRA_ID="ci-mysql84-gr-g9" + export TAP_GROUP="mysql84-gr-g9" + docker logs proxysql.ci-mysql84-gr-g9 2>&1 | tail -50 || true + test/infra/control/stop-proxysql-isolated.bash + test/infra/control/destroy-infras.bash + + - name: Fix artifact permissions + if: ${{ failure() && !cancelled() }} + run: | + sudo chmod -R a+rX proxysql/ci_*_logs/ 2>/dev/null || true + + - name: Archive artifacts logs + if: ${{ failure() && !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ github.workflow }}-${{ env.SHA }}-logs-run#${{ github.run_number }} + path: | + proxysql/ci_*_logs/ + + - uses: LouisBrunner/checks-action@v2.0.0 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + check_id: ${{ steps.checks.outputs.check_id }} + repo: ${{ github.repository }} + sha: ${{ env.SHA }} + conclusion: ${{ job.status }} + details_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'