Skip to content

Commit

Permalink
clean things
Browse files Browse the repository at this point in the history
  • Loading branch information
panchal-yash committed Sep 1, 2023
1 parent 2ec43f6 commit 16baa4e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/PMM_PS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,23 @@ jobs:
- name: PS_VERSION ENV Setup
run: |
if [[ -n "${{ github.event.inputs.ps_version }}" ]]; then
PS_VERSION="${{ github.event.inputs.ps_version }}"
PS_VERSION_PATH=$(echo "ps-$PS_VERSION")
PS_VERSION_FULL="${{ github.event.inputs.ps_version }}"
PS_VERSION_PATH=$(echo "ps-$PS_VERSION_FULL")
PS_VERSION=$(echo ${PS_VERSION_FULL%-*})
else
wget https://raw.githubusercontent.com/Percona-QA/package-testing/master/VERSIONS
PS_VERSION="$(grep 'PS80_VER' VERSIONS | cut -d = -f 2)"
PS_VERSION_PATH=$(echo "ps-$PS_VERSION")
PS_VERSION_SCRIPT=$(echo ${PS_VERSION%-*})
PS_VERSION_FULL="$(grep 'PS80_VER' VERSIONS | cut -d = -f 2)"
PS_VERSION_PATH=$(echo "ps-$PS_VERSION_FULL")
PS_VERSION=$(echo ${PS_VERSION_FULL%-*})
fi
echo "PS_VERSION=${PS_VERSION}" >> $GITHUB_ENV
echo "PS_VERSION_PATH=${PS_VERSION_PATH}" >> $GITHUB_ENV
echo "PS_VERSION_SCRIPT=${PS_VERSION_SCRIPT}" | sed 's/"//g' >> $GITHUB_ENV
echo "PS_VERSION_FULL=${PS_VERSION_FULL}" | sed 's/"//g' >> $GITHUB_ENV
- name: Concatenate values to environment file
run: |
echo "PS_TARBALL_PATH=https://downloads.percona.com/downloads/TESTING/${{env.PS_VERSION_PATH}}/Percona-Server-${{env.PS_VERSION}}-Linux.x86_64.glibc${{env.PS_GLIBC}}.tar.gz" >> $GITHUB_ENV
echo "PS_TARBALL_PATH=https://downloads.percona.com/downloads/TESTING/${{env.PS_VERSION_PATH}}/Percona-Server-${{env.PS_VERSION_FULL}}-Linux.x86_64.glibc${{env.PS_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
Expand Down Expand Up @@ -92,7 +93,7 @@ jobs:
run: sudo pmm-admin config --server-insecure-tls --server-url=https://admin:admin@localhost:443

- name: Run for PS tests
run: ./pmm-framework.sh --ps-version ${{ env.PS_VERSION_SCRIPT }} --setup-pmm-ps-integration --pmm2 --ps-tarball ${{ env.PS_TARBALL_PATH }} --query-source=slowlog
run: ./pmm-framework.sh --ps-version ${{ env.PS_VERSION }} --setup-pmm-ps-integration --pmm2 --ps-tarball ${{ env.PS_TARBALL_PATH }} --query-source=slowlog
working-directory: pmm-qa/pmm-tests

- name: Install Node js
Expand Down

0 comments on commit 16baa4e

Please sign in to comment.