Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PMM PXC ProxySQL2 #31

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/PMM_PROXYSQL.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PMM_PXC_PROXYSQL
name: PMM_PROXYSQL
on:
workflow_dispatch:
inputs:
Expand All @@ -11,21 +11,27 @@ on:
pmm_image:
description: "pmm_image, example: perconalab/pmm-server:dev-latest"
required: false
proxysql_version:
required: true
description: "proxysql version, example: 2.5.5"

push:
branches:
- main

- pmm-pxc-proxysql2-packages

pull_request:
branches:
- main

jobs:
PMM_PXC_TEST:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 20
env:
PXC_GLIBC: ${{ github.event.inputs.pxc_glibc || '2.35' }}
PMM_IMAGE: ${{ github.event.inputs.pmm_image || 'perconalab/pmm-server:dev-latest' }}
PROXYSQL_VERSION: ${{ github.event.inputs.proxysql_version || '2.5.5' }}
steps:
- uses: actions/checkout@v2

Expand All @@ -51,6 +57,7 @@ jobs:
echo "PXC_TARBALL_PATH=https://downloads.percona.com/downloads/TESTING/${{env.PXC_VERSION_PATH}}/Percona-XtraDB-Cluster_${{env.PXC_VERSION_TAR}}_Linux.x86_64.glibc${{env.PXC_GLIBC}}.tar.gz" >> $GITHUB_ENV
echo "PMM_QA_REPO_URL=https://github.com/percona/pmm-qa/" >> $GITHUB_ENV
echo "PMM_QA_REPO_BRANCH=main" >> $GITHUB_ENV
echo "PROXYSQL_PACKAGE_PATH=https://downloads.percona.com/downloads/proxysql2/proxysql2-${{env.PROXYSQL_VERSION}}/binary/debian/jammy/x86_64/proxysql2_${{env.PROXYSQL_VERSION}}-1.1.jammy_amd64.deb" >> $GITHUB_ENV

- name: Install Ansible and update the node
run: sudo apt-get update -y && sudo apt-get install ansible -y
Expand Down Expand Up @@ -83,8 +90,8 @@ jobs:
- name: setup pmm-admin config
run: sudo pmm-admin config --server-insecure-tls --server-url=https://admin:admin@localhost:443

- name: Run for PXC tests
run: ./pmm-framework.sh --with-proxysql --pxc-version ${{ env.PXC_VERSION }} --addclient=pxc,1 --pmm2 --pxc-tarball ${{ env.PXC_TARBALL_PATH }}
- name: Run PXC package tests with ProxySQL
run: ./pmm-framework.sh --pxc-version ${{ env.PXC_VERSION }} --addclient=pxc,1 --pmm2 --pxc-tarball ${{ env.PXC_TARBALL_PATH }} --proxysql-version="${{ env.PROXYSQL_VERSION }}" --proxysql-package="${{ env.PROXYSQL_PACKAGE_PATH }}"
working-directory: pmm-qa/pmm-tests

- name: Checkout the repo and install node packages
Expand All @@ -96,4 +103,3 @@ jobs:
- name: Run the Integration tests of PXC
run: npx codeceptjs run -c pr.codecept.js tests/qa-integration/pmm_pxc_integration_test.js --steps --debug
working-directory: pmm-ui-tests

Loading