From 319c68a85b29c957f8f2b4f467e079a22c689991 Mon Sep 17 00:00:00 2001 From: Vasyl Yurkovych <59879559+yurkovychv@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:27:11 +0300 Subject: [PATCH] PMM-13267-split-exporters-execution (#712) * PMM-13267-split-exporters-execution * PMM-13267-split-exporters-execution * PMM-13267-split-exporters-execution * PMM-13267-split-exporters-execution --- .github/workflows/fb-e2e-suite.yml | 18 +++++++++++++++++- .github/workflows/fb-integration-suite.yml | 2 ++ .github/workflows/fb-tarball-suite.yml | 4 +++- .github/workflows/helm-tests.yml | 2 ++ .github/workflows/integration-cli-tests.yml | 2 ++ .../workflows/runner-e2e-tests-codeceptjs.yml | 7 +++++++ 6 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fb-e2e-suite.yml b/.github/workflows/fb-e2e-suite.yml index 082e0f7c..fa39b47f 100644 --- a/.github/workflows/fb-e2e-suite.yml +++ b/.github/workflows/fb-e2e-suite.yml @@ -1,6 +1,8 @@ name: _FB e2e tests on: + schedule: + - cron: '0 0 * * *' workflow_dispatch: inputs: pmm_ui_tests_branch: @@ -110,6 +112,20 @@ jobs: 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: '--setup-pmm-ps-integration --query-source=slowlog --ps-version=8.0' + tags_for_tests: '@exporters' + + mongo_exporter: + name: MongoDB Exporter 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' }} @@ -118,7 +134,7 @@ jobs: 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' + tags_for_tests: '@mongodb-exporter' instances: name: Instances UI tests diff --git a/.github/workflows/fb-integration-suite.yml b/.github/workflows/fb-integration-suite.yml index 00267b43..24f84314 100644 --- a/.github/workflows/fb-integration-suite.yml +++ b/.github/workflows/fb-integration-suite.yml @@ -1,6 +1,8 @@ name: _FB integration CLI tests on: + schedule: + - cron: '0 0 * * *' workflow_dispatch: inputs: pmm_ui_tests_branch: diff --git a/.github/workflows/fb-tarball-suite.yml b/.github/workflows/fb-tarball-suite.yml index c250d50c..245525c4 100644 --- a/.github/workflows/fb-tarball-suite.yml +++ b/.github/workflows/fb-tarball-suite.yml @@ -1,6 +1,8 @@ name: _FB tarball tests on: + schedule: + - cron: '0 0 * * *' workflow_dispatch: inputs: package_testing_branch: @@ -74,4 +76,4 @@ jobs: pmm_client_tarball: ${{ inputs.pmm_client_tarball || 'dev-latest' }} playbook: 'pmm2-client_integration_upgrade_custom_path' test_name: 'tarball upgrade' - sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }} \ No newline at end of file + sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }} diff --git a/.github/workflows/helm-tests.yml b/.github/workflows/helm-tests.yml index 360145de..69b87504 100644 --- a/.github/workflows/helm-tests.yml +++ b/.github/workflows/helm-tests.yml @@ -1,4 +1,6 @@ on: + schedule: + - cron: '0 0 * * *' workflow_dispatch: inputs: server_image: diff --git a/.github/workflows/integration-cli-tests.yml b/.github/workflows/integration-cli-tests.yml index 7d255b52..cee8fc4b 100644 --- a/.github/workflows/integration-cli-tests.yml +++ b/.github/workflows/integration-cli-tests.yml @@ -1,6 +1,8 @@ name: PMM Integration Tests on: + schedule: + - cron: '0 0 * * *' workflow_dispatch: inputs: pmm_ui_tests_branch: diff --git a/.github/workflows/runner-e2e-tests-codeceptjs.yml b/.github/workflows/runner-e2e-tests-codeceptjs.yml index 457bee02..f3b42cec 100644 --- a/.github/workflows/runner-e2e-tests-codeceptjs.yml +++ b/.github/workflows/runner-e2e-tests-codeceptjs.yml @@ -127,6 +127,12 @@ jobs: wget https://raw.githubusercontent.com/Percona-QA/percona-qa/master/get_download_link.sh chmod +x get_download_link.sh popd + - name: Cleanup disk space on a worker according to https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" - name: Setup PMM2-Server working-directory: ./pmm-ui-tests @@ -153,6 +159,7 @@ jobs: run: | npm ci npx playwright install + sudo npx playwright install-deps envsubst < env.list > env.generated.list - name: Execute e2e tests with tags ${{ env.TAGS_FOR_TESTS }}