Skip to content

Commit

Permalink
Merge branch 'PMM-2.0' into PMM-12757-environment-summary-error
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff authored Feb 21, 2024
2 parents f4e217a + ca0d3a9 commit 3e3b768
Show file tree
Hide file tree
Showing 16 changed files with 84 additions and 19 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/pmm2-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,22 +187,29 @@ jobs:
- name: Run Setup for PSMDB 4.4
working-directory: pmm-integration
if: ${{ matrix.db-type == 'modb4.4' }}
run: sudo npx ts-node ./integration-setup.ts --ci --addclient=modb,1 --mo-version=4.4
run: |
sudo npx ts-node ./integration-setup.ts --ci --addclient=modb,1 --mo-version=4
sudo -E bash -x ../pmm-tests/pmm-framework.sh --addclient=modb,1 --mo-version=4 --with-shard --mongomagic
- name: Run Setup for PSMDB 5
working-directory: pmm-integration
if: ${{ matrix.db-type == 'modb5' }}
run: sudo npx ts-node ./integration-setup.ts --ci --addclient=modb,1 --mo-version=5
run: |
sudo npx ts-node ./integration-setup.ts --ci --addclient=modb,1 --mo-version=5
sudo -E bash -x ../pmm-tests/pmm-framework.sh --addclient=modb,1 --mo-version=5 --with-shard --mongomagic
- name: Run Setup for PSMDB 6
working-directory: pmm-integration
if: ${{ matrix.db-type == 'modb6' }}
run: sudo npx ts-node ./integration-setup.ts --ci --addclient=modb,1 --mo-version=6
run: |
sudo npx ts-node ./integration-setup.ts --ci --addclient=modb,1 --mo-version=6
sudo -E bash -x ../pmm-tests/pmm-framework.sh --addclient=modb,1 --mo-version=6 --with-shard --mongomagic
- name: Run CLI tests for PSMDB
if: ${{ matrix.db-type == 'modb6' || matrix.db-type == 'modb5' || matrix.db-type == 'modb4.4' }}
working-directory: ./pmm-ui-tests/cli
run: npx playwright test pmm-ui-tests/cli/tests/mongoDb-psmdb.spec.ts --quiet
run: |
npx playwright test pmm-ui-tests/cli/tests/mongoDb-psmdb.spec.ts --quiet
# TODO: Add setup for the official MongoDB and run "npx playwright test pmm-ui-tests/cli/tests/mongoDb.spec.ts"

Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/pmm2-ui-tests-fb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@ jobs:
# 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/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' }}
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: '--mongo-replica-for-backup'
tags_for_tests: '@mongodb-exporter|@exporters'

instances:
name: Instances UI tests
uses: ./.github/workflows/ui-tests.yml
Expand Down Expand Up @@ -215,3 +229,39 @@ jobs:
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'

dump_tool:
name: Dump Tool 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' }}
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'
tags_for_tests: '@dump'

tarball_install:
name: Tarball Install test
uses: Percona-QA/package-testing/.github/workflows/pmm-package-test-fb.yml@master
secrets: inherit
with:
package_testing_branch: 'master'
pmm_server_image: ${{ inputs.pmm_server_image }}
pmm_client_tarball: ${{ inputs.client_version || 'dev-latest' }}
playbook: 'pmm2-client_integration_custom_port'
test_name: 'Tarball install'

tarball_upgrade:
name: Tarball Upgrade test
uses: Percona-QA/package-testing/.github/workflows/pmm-package-test-fb.yml@master
secrets: inherit
with:
package_testing_branch: 'master'
pmm_server_image: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_tarball: ${{ inputs.client_version || 'dev-latest' }}
playbook: 'pmm2-client_integration_upgrade_custom_path'
test_name: 'Tarball upgrade'
8 changes: 8 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
SERVER_IMAGE: ${{ inputs.server_image || 'perconalab/pmm-server:dev-latest' }}
CLIENT_IMAGE: ${{ inputs.client_image || 'perconalab/pmm-client:dev-latest' }}
CLIENT_VERSION: ${{ inputs.client_version || 'dev-latest' }}
PMM_CLIENT_VERSION: ${{ inputs.client_version || 'dev-latest' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ADMIN_PASSWORD: 'admin-password'
PMM_QA_BRANCH: ${{ inputs.pmm_qa_branch || 'main' }}
Expand Down Expand Up @@ -144,6 +145,13 @@ jobs:
return `artifacts_for_${process.env.TAGS_FOR_TESTS.replaceAll('|', '')}`
result-encoding: string

- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: ${{ steps.artifact_name.outputs.result }}
path: |
pmm-ui-tests/tests/output/*.png
- name: Create status check
if: ${{ github.event_name != 'pull_request' && always() }}
uses: percona/gh-action-github-status-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[submodule "mongodb_exporter"]
path = sources/mongodb_exporter/src/github.com/percona/mongodb_exporter
url = https://github.com/percona/mongodb_exporter.git
branch = release-0.40.0
branch = main
[submodule "postgres_exporter"]
path = sources/postgres_exporter/src/github.com/percona/postgres_exporter
url = https://github.com/percona/postgres_exporter
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.41.1
2.41.2
2 changes: 1 addition & 1 deletion ci-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ deps:
component: client

- name: mongodb_exporter
branch: release-0.40.0
branch: main
path: sources/mongodb_exporter/src/github.com/percona/mongodb_exporter
url: https://github.com/percona/mongodb_exporter
component: client
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pyaml==23.9.5
GitPython==3.1.40
PyGithub==1.59.1
pyaml==23.12.0
GitPython==3.1.42
PyGithub==2.2.0
2 changes: 1 addition & 1 deletion sources/grafana-dashboards
Submodule grafana-dashboards updated 63 files
+2,648 −0 dashboards/Experimental/MongoDB_Instance_Summary_(new).json
+1,868 −2,024 dashboards/Kubernetes (experimental)/Kubernetes_DB_Cluster.json
+4 −0 dashboards/MongoDB/MongoDB_ReplSet_Summary.json
+148 −5 panels/grafana-clickhouse-datasource/CHANGELOG.md
+19 −20 panels/grafana-clickhouse-datasource/MANIFEST.txt
+80 −33 panels/grafana-clickhouse-datasource/README.md
+56 −76 panels/grafana-clickhouse-datasource/dashboards/cluster-analysis.json
+63 −79 panels/grafana-clickhouse-datasource/dashboards/data-analysis.json
+46 −50 panels/grafana-clickhouse-datasource/dashboards/query-analysis.json
+11 −10 panels/grafana-clickhouse-datasource/go_plugin_build_manifest
+ panels/grafana-clickhouse-datasource/gpx_clickhouse_linux_amd64
+ panels/grafana-clickhouse-datasource/img/logo.png
+8 −1 panels/grafana-clickhouse-datasource/img/logo.svg
+15 −13 panels/grafana-clickhouse-datasource/module.js
+1 −1 panels/grafana-clickhouse-datasource/module.js.map
+9 −8 panels/grafana-clickhouse-datasource/plugin.json
+2 −0 setup-page/.gitignore
+0 −14 setup-page/build/asset-manifest.json
+ setup-page/build/favicon.56900fff.ico
+ setup-page/build/favicon.6143911e.ico
+27,818 −0 setup-page/build/index.0140dfce.js
+1 −0 setup-page/build/index.0140dfce.js.map
+2 −0 setup-page/build/index.0ae7c038.js
+1 −0 setup-page/build/index.0ae7c038.js.map
+2 −0 setup-page/build/index.13911db3.js
+1 −0 setup-page/build/index.13911db3.js.map
+352 −0 setup-page/build/index.3cb2e880.css
+1 −0 setup-page/build/index.3cb2e880.css.map
+2 −0 setup-page/build/index.69371c57.js
+1 −0 setup-page/build/index.69371c57.js.map
+2 −0 setup-page/build/index.77122661.js
+1 −0 setup-page/build/index.77122661.js.map
+2 −0 setup-page/build/index.915e2269.css
+1 −0 setup-page/build/index.915e2269.css.map
+2 −0 setup-page/build/index.a02eddff.css
+1 −0 setup-page/build/index.a02eddff.css.map
+24 −1 setup-page/build/index.html
+2 −0 setup-page/build/index.runtime.33c4f9da.js
+1 −0 setup-page/build/index.runtime.33c4f9da.js.map
+2 −0 setup-page/build/index.runtime.415a9680.js
+1 −0 setup-page/build/index.runtime.415a9680.js.map
+2 −0 setup-page/build/index.runtime.4e4175cf.js
+1 −0 setup-page/build/index.runtime.4e4175cf.js.map
+2 −0 setup-page/build/index.runtime.caf568a5.js
+1 −0 setup-page/build/index.runtime.caf568a5.js.map
+0 −15 setup-page/build/manifest.json
+1 −0 setup-page/build/manifest.webmanifest
+1 −0 setup-page/build/pmm-logo.0bf882e7.svg
+6 −7 setup-page/build/pmm-logo.4bc613f1.svg
+0 −2 setup-page/build/robots.txt
+0 −2 setup-page/build/static/css/main.fc23d837.css
+0 −1 setup-page/build/static/css/main.fc23d837.css.map
+0 −3 setup-page/build/static/js/main.938fcb0a.js
+0 −43 setup-page/build/static/js/main.938fcb0a.js.LICENSE.txt
+0 −1 setup-page/build/static/js/main.938fcb0a.js.map
+1 −1 setup-page/entrypoint.sh
+7,692 −24,992 setup-page/package-lock.json
+21 −13 setup-page/package.json
+4 −3 setup-page/public/index.html
+2 −2 setup-page/public/manifest.json
+ setup-page/public/percona-favicon.ico
+17 −6 setup-page/src/App.jsx
+5 −4 setup-page/src/index.jsx
2 changes: 1 addition & 1 deletion sources/grafana/src/github.com/grafana/grafana
Submodule mysqld_exporter updated 5 files
+1 −1 .promu.yml
+13 −12 go.mod
+27 −44 go.sum
+166 −122 tools/go.mod
+376 −2,127 tools/go.sum
2 changes: 1 addition & 1 deletion sources/pmm-ui-tests/src/github.com/percona/pmm-ui-tests
Submodule pmm-ui-tests updated 42 files
+1 −2 .github/workflows/ci.yml
+1 −1 .github/workflows/pmm-upgrade-ui-tests-matrix-full.yml
+1 −1 .github/workflows/pmm-upgrade-ui-tests-matrix.yml
+2 −1 .github/workflows/pmm-upgrade-ui-tests.yml
+6 −2 .github/workflows/pmm-version-getter.yml
+2 −0 cli/.eslintrc
+0 −91 cli/package-lock.json
+0 −1 cli/package.json
+9 −3 cli/tests/generic.spec.ts
+1 −48 cli/tests/haproxy.spec.ts
+115 −0 cli/tests/help.spec.ts
+65 −59 cli/tests/mongoDb-psmdb.spec.ts
+28 −50 cli/tests/mongoDb.spec.ts
+4 −10 cli/tests/mysql-conf-file.spec.ts
+39 −102 cli/tests/mysql.spec.ts
+71 −176 cli/tests/perconaMySqlServer.spec.ts
+34 −7 cli/tests/pmm-server-docker-generic.spec.ts
+3 −3 cli/tests/pmm-server-only.spec.ts
+11 −11 cli/tests/postgreSql-pdpgsql.spec.ts
+10 −10 cli/tests/postgreSql.spec.ts
+7 −7 cli/tests/proxySql.spec.ts
+3 −3 cli/tests/unregister.spec.ts
+2 −0 codeceptConfigHelper.js
+419 −21 package-lock.json
+2 −0 package.json
+1 −1 tests/QAN/filters_test.js
+1 −1 tests/QAN/overview_test.js
+2 −1 tests/configuration/pages/pmmSettingsPage.js
+22 −0 tests/configuration/verifyPMMSettingsPageElements_test.js
+5 −3 tests/dashboards/verifyMysqlDashboards_test.js
+11 −11 tests/ia/alertRules_test.js
+21 −9 tests/metrics/verifyMongoDBCollectionFlags_test.js
+8 −20 tests/metrics/verifyMongoDBExperimental_test.js
+10 −6 tests/metrics/verifyMongoDB_test.js
+111 −0 tests/pages/api/dumpAPI.js
+1 −4 tests/pages/dashboardPage.js
+71 −0 tests/pages/dumpPage.js
+4 −4 tests/qa-integration/pmm_pgsm_integration_test.js
+26 −30 tests/qa-integration/pmm_psmdb_integration_test.js
+190 −0 tests/verifyDump_test.js
+3 −2 tests/verifyRemoteInstances_test.js
+35 −16 tests/verifyTLSPostgresRemoteInstance_test.js
2 changes: 1 addition & 1 deletion sources/pmm/src/github.com/percona/pmm
Submodule pmm updated 352 files

0 comments on commit 3e3b768

Please sign in to comment.