Skip to content

Commit

Permalink
Merge branch 'v3' into PMM-12155-sync-node-exporter-with-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk authored Oct 10, 2024
2 parents fbbe5e7 + e366e3e commit ca6d2a0
Show file tree
Hide file tree
Showing 28 changed files with 393 additions and 136 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

2 changes: 1 addition & 1 deletion .github/workflows/jenkins-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.PMM_QA_BRANCH }}
repository: percona/pmm-qa
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pmm-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.PMM_BRANCH }}
repository: percona/pmm
Expand All @@ -42,13 +42,13 @@ jobs:
- name: Unzip client
run: |
tar -xzf ${{ env.PMM_CLIENT_TAR }}
echo "PMM_CLIENT_BASEDIR=$(ls -1td pmm2-client-* 2>/dev/null | grep -v ".tar" | head -n1)" >> $GITHUB_ENV
echo "PMM_CLIENT_BASEDIR=$(ls -1td pmm-client-* 2>/dev/null | grep -v ".tar" | head -n1)" >> $GITHUB_ENV
- name: Rename client folder
run: mv ${{ env.PMM_CLIENT_BASEDIR }} pmm2-client
run: mv ${{ env.PMM_CLIENT_BASEDIR }} pmm-client

- name: Check pmm version output
working-directory: pmm2-client
working-directory: pmm-client
run: |
echo "export PATH=$PATH:$PWD/bin" >> ~/.bash_profile
source ~/.bash_profile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: pmm2 integration tests pipeline
name: pmm integration tests pipeline
on:
# run with default inputs
workflow_dispatch:
inputs:
server_image:
description: "pmm-server docker image, default perconalab/pmm-server:dev-latest"
description: "pmm-server docker image, default perconalab/pmm-server:3-dev-latest"
required: false
type: string
client_version:
description: "pmm2-client version Tarball or Dev-latest, default is dev-latest"
description: "pmm-client version Tarball or Dev-latest, default is 3-dev-latest"
required: false
type: string
client_image:
description: "pmm2-client docker image, default perconalab/pmm-client:dev-latest"
description: "pmm-client docker image, default perconalab/pmm-client:3-dev-latest"
required: false
type: string
pmm_qa_branch:
Expand All @@ -30,15 +30,15 @@ on:
workflow_call:
inputs:
server_image:
description: "pmm-server docker image, default perconalab/pmm-server:dev-latest"
description: "pmm-server docker image, default perconalab/pmm-server:3-dev-latest"
required: false
type: string
client_version:
description: "pmm2-client version Tarball or Dev-latest, default is dev-latest"
description: "pmm-client version Tarball or Dev-latest, default is 3-dev-latest"
required: false
type: string
client_image:
description: "pmm2-client docker image, default perconalab/pmm-client:dev-latest"
description: "pmm-client docker image, default perconalab/pmm-client:3-dev-latest"
required: false
type: string
pmm_qa_branch:
Expand All @@ -59,14 +59,14 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 40
env:
SERVER_IMAGE: ${{ github.event.inputs.server_image || inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
CLIENT_IMAGE: ${{ github.event.inputs.client_image || inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
CLIENT_VERSION: ${{ github.event.inputs.client_version || inputs.client_version || 'dev-latest' }}
SERVER_IMAGE: ${{ github.event.inputs.server_image || inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
CLIENT_IMAGE: ${{ github.event.inputs.client_image || inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
CLIENT_VERSION: ${{ github.event.inputs.client_version || inputs.client_version || '3-dev-latest' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PMM_QA_BRANCH: ${{ github.event.inputs.pmm_qa_branch || inputs.pmm_qa_branch || 'main' }}
PMM_UI_BRANCH: ${{ github.event.inputs.pmm_ui_branch || inputs.pmm_ui_branch || 'main' }}
DOCKER_VERSION: ${{ github.event.inputs.server_image || inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
CLIENT_DOCKER_VERSION: ${{ github.event.inputs.client_image || inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
DOCKER_VERSION: ${{ github.event.inputs.server_image || inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
CLIENT_DOCKER_VERSION: ${{ github.event.inputs.client_image || inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
SHA: ${{ github.event.inputs.sha || inputs.sha || github.event.pull_request.head.sha || github.event.pull_request.head.sha || github.sha || 'null' }}
strategy:
fail-fast: false
Expand All @@ -88,14 +88,14 @@ jobs:
sha: ${{ env.SHA }}

- name: Checkout PMM-QA tests ${{ env.PMM_QA_BRANCH }} branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.PMM_QA_BRANCH }}
repository: percona/pmm-qa
path: ./

- name: Checkout PMM UI tests
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.PMM_UI_BRANCH }}
repository: percona/pmm-ui-tests
Expand All @@ -120,17 +120,17 @@ jobs:
wget https://raw.githubusercontent.com/Percona-QA/percona-qa/master/get_download_link.sh
chmod +x get_download_link.sh
- name: Setup PMM2-Server
- name: Setup PMM3-Server
run: |
docker create -v /srv --name pmm-server-data ${{ env.SERVER_IMAGE }}
docker run -d -p 80:80 -p 443:443 -p 9000:9000 -e PERCONA_TEST_PLATFORM_ADDRESS=https://check-dev.percona.com:443 -e PERCONA_TEST_PLATFORM_PUBLIC_KEY=RWTg+ZmCCjt7O8eWeAmTLAqW+1ozUbpRSKSwNTmO+exlS5KEIPYWuYdX --volumes-from pmm-server-data --name pmm-server --restart always ${{ env.SERVER_IMAGE }}
sleep 30
- name: healthcheck PMM2-server
- name: healthcheck PMM3-server
run: timeout 100 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost/ping)" != "200" ]]; do sleep 5; done' || false

- name: Setup PMM2-Client
run: sudo -E bash -x ./pmm-tests/pmm2-client-setup.sh --pmm_server_ip 127.0.0.1 --client_version ${{ env.CLIENT_VERSION }} --admin_password admin --use_metrics_mode no
- name: Setup PMM3-Client
run: sudo -E bash -x ./pmm-tests/pmm-client-setup.sh --pmm_server_ip 127.0.0.1 --client_version ${{ env.CLIENT_VERSION }} --admin_password admin --use_metrics_mode no

- name: Setup npm modules for the integration setup
working-directory: pmm-integration
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
- name: Run Client Container Setup
if: ${{ matrix.db-type == 'clientContainer' }}
run: |
sudo -E bash -x ./pmm-tests/pmm-framework.sh --setup-pmm-client-docker --pmm2
sudo -E bash -x ./pmm-tests/pmm-framework.sh --setup-pmm-client-docker --pmm
- name: Run CLI tests for Generic Scenarios
if: ${{ matrix.db-type == 'generic' }}
Expand All @@ -233,7 +233,7 @@ jobs:
run: |
export CLIENT_VERSION=${{ env.CLIENT_VERSION }}
export CLIENT_DOCKER_VERSION=${{ env.CLIENT_DOCKER_VERSION }}
sudo -E bash -x ./pmm-tests/pmm-framework.sh --addclient=haproxy,1 --pmm2
sudo -E bash -x ./pmm-tests/pmm-framework.sh --addclient=haproxy,1 --pmm
- name: Run CLI tests for Client Container Scenarios
if: ${{ matrix.db-type == 'haproxy' }}
Expand All @@ -242,7 +242,7 @@ jobs:

- name: Run Setup for ProxySQL
if: ${{ matrix.db-type == 'proxysql' }}
run: sudo -E bash -x ./pmm-tests/pmm-framework.sh --addclient=pxc,1 --pmm2 --pxc-version=5.7
run: sudo -E bash -x ./pmm-tests/pmm-framework.sh --addclient=pxc,1 --pmm --pxc-version=5.7

- name: Run CLI tests for ProxySQL
if: ${{ matrix.db-type == 'proxysql' }}
Expand All @@ -251,7 +251,7 @@ jobs:

- name: Run Setup for MySQL 8.0
if: ${{ matrix.db-type == 'ms8.0' }}
run: sudo -E bash -x ./pmm-tests/pmm-framework.sh --addclient=ms,1 --pmm2 --ms-version=8.0
run: sudo -E bash -x ./pmm-tests/pmm-framework.sh --addclient=ms,1 --pmm --ms-version=8.0

- name: Run MySQL specific CLI tests
if: ${{ matrix.db-type == 'ms8.0' }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: pmm2-ui-tests-fb pipeline
on:
name: pmm-ui-tests-fb

on:
workflow_dispatch:
inputs:
server_image:
description: "pmm-server docker image, default perconalab/pmm-server:dev-latest"
description: "pmm-server docker image, default perconalab/pmm-server:3-dev-latest"
required: false
type: string
client_version:
description: "pmm2-client version Tarball or Dev-latest, default is dev-latest"
description: "pmm-client version Tarball or Dev-latest, default is 3-dev-latest"
required: false
type: string
client_image:
description: "pmm2-client docker image, default perconalab/pmm-client:dev-latest"
description: "pmm-client docker image, default perconalab/pmm-client:3-dev-latest"
required: false
type: string
pmm_qa_branch:
Expand All @@ -31,15 +31,15 @@ on:
workflow_call:
inputs:
server_image:
description: "pmm-server docker image, default perconalab/pmm-server:dev-latest"
description: "pmm-server docker image, default perconalab/pmm-server:3-dev-latest"
required: false
type: string
client_version:
description: "pmm2-client version Tarball URL or Dev-latest, default is dev-latest"
description: "pmm-client version Tarball URL or Dev-latest, default is 3-dev-latest"
required: false
type: string
client_image:
description: "pmm2-client docker image, default perconalab/pmm-client:dev-latest"
description: "pmm-client docker image, default perconalab/pmm-client:3-dev-latest"
required: false
type: string
pmm_qa_branch:
Expand All @@ -61,17 +61,15 @@ on:
BACKUP_LOCATION_SECRET_KEY:
required: false


jobs:

backup_management_mongo:
name: Backup Management MongoDB UI tests
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
client_version: ${{ inputs.client_version || 'dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
Expand All @@ -84,9 +82,9 @@ jobs:
# uses: ./.github/workflows/ui-tests.yml
# secrets: inherit
# with:
# server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
# client_version: ${{ inputs.client_version || 'dev-latest' }}
# client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
# server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
# client_version: ${{ inputs.client_version || '3-dev-latest' }}
# client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
# pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
# pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
# sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
Expand All @@ -98,9 +96,9 @@ jobs:
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
client_version: ${{ inputs.client_version || 'dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
Expand All @@ -113,9 +111,9 @@ jobs:
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
client_version: ${{ inputs.client_version || 'dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
Expand All @@ -127,22 +125,23 @@ jobs:
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
client_version: ${{ inputs.client_version || 'dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
client_flags: '--addclient=ms,1'
tags_for_tests: '@alerting-fb|@settings-fb'

user_and_password:
name: User with changed password UI tests
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
client_version: ${{ inputs.client_version || 'dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
Expand All @@ -154,9 +153,9 @@ jobs:
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
client_version: ${{ inputs.client_version || 'dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
Expand All @@ -168,9 +167,9 @@ jobs:
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
client_version: ${{ inputs.client_version || 'dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
Expand All @@ -184,8 +183,35 @@ jobs:
with:
pmm_ui_tests_branch: ${{ inputs.pmm_ui_branch || 'main '}}
pmm_test_flag: '@rbac'
pmm_server_version: 'dev-latest'
pmm_server_docker_tag: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.client_version || 'dev-latest' }}
pmm_server_version: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
pmm_client_version: ${{ inputs.client_version || '3-dev-latest' }}
pmm_clients: '--addclient=ps,1'
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}

psmdb_arbiter:
name: PSMDB Arbiter Replica UI tests
uses: ./.github/workflows/ui-tests.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
client_flags: '--mongomagic --with-arbiter'
tags_for_tests: '@pmm-psmdb-arbiter-integration'

user_and_password_podman:
name: User with changed password UI tests
uses: ./.github/workflows/ui-tests-podman.yml
secrets: inherit
with:
server_image: ${{ inputs.server_image || 'perconalab/pmm-server:3-dev-latest' }}
client_version: ${{ inputs.client_version || '3-dev-latest' }}
client_image: ${{ inputs.client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_branch: ${{ inputs.pmm_ui_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
client_flags: '--addclient=ps,1 --addclient=modb,1 --addclient=pdpgsql,1'
tags_for_tests: '@user-password'
Loading

0 comments on commit ca6d2a0

Please sign in to comment.