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

Updates for pmm2 agent script for upgrade issues #656

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d85336e
Updates for pmm2 agent upgrade issue package
saikumar-vs Feb 20, 2024
00c3d45
Udpates
saikumar-vs Feb 20, 2024
6b33600
Updates
saikumar-vs Feb 25, 2024
d9d8a1b
PMM-12921 added suites (#657)
vyarosh Feb 23, 2024
6bff805
PMM-12921 fix suites (#658)
vyarosh Feb 23, 2024
82ce5aa
PMM-12921 fixes (#659)
vyarosh Feb 23, 2024
063ae61
PMM-12921 fb integration fixes (#660)
vyarosh Feb 25, 2024
b4aedf4
PMM-12921 more args fixes for FB calls (#661)
vyarosh Feb 26, 2024
2d4f3a8
PMM-7 attach screenshots for codeceptjs tests (#662)
yurkovychv Feb 28, 2024
c7e5627
PMM-12926 cleanup duplicated jobs and fixed conditional (#663)
vyarosh Mar 1, 2024
ace3159
PMM-7 fix portal secrets usage (#668)
yurkovychv Mar 13, 2024
619e46e
PMM-7 Adding support for Noble (#677)
puneet0191 May 9, 2024
b6e3ad3
PMM-7 fix workflows (#679)
yurkovychv May 20, 2024
d5dc2c3
PMM-7 upgrade playwright tests runner tweak (#681)
yurkovychv May 23, 2024
a13a07d
PMM-7: Update deprecated actions in Playwright tests (#682)
peterSirotnak May 23, 2024
4b76697
Fix innodb metrics for upstream (#683)
saikumar-vs May 28, 2024
5d29150
Userstat does not exit in upstream (#684)
saikumar-vs May 28, 2024
e2caab0
PMM-13075 Adding Support for Nobel (#680)
puneet0191 May 30, 2024
75724fe
Fix's for PSMDB and SSL setup (#685)
saikumar-vs Jun 5, 2024
bcfcea8
Fix PSMDB Ansible permission (#686)
saikumar-vs Jun 6, 2024
86bc02b
PMM-9403 (#687)
peterSirotnak Jun 11, 2024
8d1a851
PMM-11278: Add pipeline (#688)
peterSirotnak Jun 12, 2024
c2fff28
PMM-7: Update dependencies (#692)
peterSirotnak Jun 13, 2024
65ba30d
PMM-13170 fix helm tests (#694)
yurkovychv Jun 19, 2024
65e38fc
Updates for pmm2-client repo in v2 (#699)
saikumar-vs Jul 2, 2024
692fffd
PMM-13188 use pmm2-client repo for package tests (#698)
yurkovychv Jul 2, 2024
f2a17e6
Updates
saikumar-vs Jul 10, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
default: 'perconalab/pmm-server:dev-latest'
required: true
pmm_client_version:
description: 'PMM Client version to test (dev-latest|pmm2-latest|pmm2-rc|x.xx.x)'
description: 'PMM Client version (dev-latest|pmm2-latest|pmm2-rc|x.xx.x|https...)'
default: 'dev-latest'
required: true

Expand All @@ -32,7 +32,7 @@ jobs:
pmm_test_flag: '@rbac'
pmm_server_version: ${{ github.event.inputs.pmm_server_version || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ github.event.inputs.pmm_client_version || 'dev-latest' }}
pmm_clients: '--addclient=ps,1 --addclient=pdpgsql,1'
setup_services: '--addclient=ps,1 --addclient=pdpgsql,1'
pmm_qa_branch: ${{ github.event.inputs.pmm_qa_branch || 'main' }}

portal:
Expand All @@ -44,7 +44,7 @@ jobs:
pmm_test_flag: '@portal'
pmm_server_version: ${{ github.event.inputs.pmm_server_version || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ github.event.inputs.pmm_client_version || 'dev-latest' }}
pmm_clients: ''
setup_services: ''
pmm_qa_branch: ${{ github.event.inputs.pmm_qa_branch || 'main' }}

inventory:
Expand All @@ -56,5 +56,5 @@ jobs:
pmm_test_flag: '@inventory'
pmm_server_version: ${{ github.event.inputs.pmm_server_version || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ github.event.inputs.pmm_client_version || 'dev-latest' }}
pmm_clients: '--addclient=modb,1 --addclient=ps,1 --addclient=pdpgsql,1'
setup_services: '--addclient=modb,1 --addclient=ps,1 --addclient=pdpgsql,1'
pmm_qa_branch: ${{ github.event.inputs.pmm_qa_branch || 'main' }}
273 changes: 273 additions & 0 deletions .github/workflows/fb-e2e-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
name: _FB e2e tests

on:
workflow_dispatch:
inputs:
pmm_ui_tests_branch:
description: 'pmm-ui-tests repository branch(CLI tests)'
default: 'main'
required: false
type: string
pmm_qa_branch:
description: 'pmm-qa repository branch(for setup)'
default: 'main'
required: false
type: string
pmm_server_image:
description: 'PMM Server docker image'
default: 'perconalab/pmm-server:dev-latest'
required: true
type: string
pmm_client_image:
description: 'pmm2-client docker image'
default: 'perconalab/pmm-client:dev-latest'
required: false
type: string
pmm_client_version:
description: 'PMM Client version (dev-latest|pmm2-latest|pmm2-rc|x.xx.x|https...)'
default: 'dev-latest'
required: false
type: string
sha:
description: "SHA (leave default if running manually)"
default: 'null'
required: false
type: string

workflow_call:
inputs:
pmm_ui_tests_branch:
required: false
type: string
pmm_qa_branch:
required: false
type: string
pmm_server_image:
required: true
type: string
pmm_client_image:
required: false
type: string
pmm_client_version:
required: false
type: string
sha:
required: false
type: string

secrets:
BACKUP_LOCATION_ACCESS_KEY:
required: false
BACKUP_LOCATION_SECRET_KEY:
required: false

jobs:
backup_management_mongo:
name: Backup Management MongoDB UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
setup_services: '--mongo-replica-for-backup'
tags_for_tests: '@bm-mongo'

# -- include backup_management_ps once setup for mysql fixed for the worker
# backup_management_ps:
# name: Backup Management PS UI tests
# uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
# secrets: inherit
# with:
# pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
# pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
# pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
# pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
# pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
# sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
# setup_services: '--mongo-replica-for-backup --setup-bm-mysql'
# tags_for_tests: '@bm-mysql'

backup_management_common:
name: Backup Management Common and Locations UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--mongo-replica-for-backup --setup-bm-mysql'
# tags_for_tests: '@bm-common|@bm-locations' -- include bm-common once setup for mysql fixed
tags_for_tests: '@bm-locations'

exporters:
name: Exporters tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--mongo-replica-for-backup'
tags_for_tests: '@mongodb-exporter|@exporters'

instances:
name: Instances UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--addclient=haproxy,1 --addclient=ps,1 --setup-external-service'
tags_for_tests: '@instances-fb'

alerting_and_settings:
name: Alerting and Settings UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--addclient=ms,1'
tags_for_tests: '@alerting-fb|@settings-fb'

user_and_password:
name: User with changed password UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--addclient=ps,1 --addclient=modb,1 --addclient=pdpgsql,1'
tags_for_tests: '@user-password'

pgsm:
name: PGSM UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--setup-pmm-pgsm-integration'
tags_for_tests: '@pgsm-pmm-integration'

pgss:
name: PGSS UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--setup-pmm-pgss-integration'
tags_for_tests: '@pgss-pmm-integration'

rbac:
name: RBAC UI tests
uses: ./.github/workflows/runner-e2e-tests-playwright.yml
secrets: inherit
with:
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main '}}
pmm_test_flag: '@rbac'
pmm_server_version: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
setup_services: '--addclient=ps,1'
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}

psmdb_arbiter:
name: PSMDB Arbiter Replica UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--mongomagic --with-arbiter'
tags_for_tests: '@pmm-psmdb-arbiter-integration'

psmdb_replica:
name: PSMDB Replica UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--mongo-replica-for-backup'
tags_for_tests: '@pmm-psmdb-replica-integration'

user_and_password_podman:
name: User with changed password UI tests
uses: ./.github/workflows/runner-e2e-tests-podman.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--addclient=ps,1 --addclient=modb,1 --addclient=pdpgsql,1'
tags_for_tests: '@user-password'

dump_tool:
name: Dump Tool UI tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--addclient=ps,1'
tags_for_tests: '@dump'

ps_integration:
name: PS UI integration tests
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--addclient=ps,1 --query-source=slowlog'
tags_for_tests: '(?=.*@pmm-ps-integration)^(?!.*@not-ui-pipeline)'
69 changes: 69 additions & 0 deletions .github/workflows/fb-integration-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: _FB integration CLI tests

on:
workflow_dispatch:
inputs:
pmm_ui_tests_branch:
description: 'pmm-ui-tests repository branch(CLI tests)'
default: 'main'
required: false
type: string
pmm_qa_branch:
description: 'pmm-qa repository branch(for setup)'
default: 'main'
required: false
type: string
pmm_server_image:
description: 'PMM Server docker image'
default: 'perconalab/pmm-server:dev-latest'
required: false
type: string
pmm_client_image:
description: 'pmm2-client docker image'
default: 'perconalab/pmm-client:dev-latest'
required: false
type: string
pmm_client_version:
description: 'PMM Client version (dev-latest|pmm2-latest|pmm2-rc|x.xx.x|https...)'
default: 'dev-latest'
required: false
type: string
sha:
description: "SHA (leave default if running manually)"
default: 'null'
required: false
type: string

workflow_call:
inputs:
pmm_ui_tests_branch:
required: false
type: string
pmm_qa_branch:
required: false
type: string
pmm_server_image:
required: true
type: string
pmm_client_image:
required: true
type: string
pmm_client_version:
required: true
type: string
sha:
required: false
type: string

jobs:
help-tests:
name: 'Integration tests'
uses: ./.github/workflows/integration-cli-tests.yml
secrets: inherit
with:
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
Loading