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

PMM-13228 pmm client version check #706

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .github/workflows/fb-e2e-suite.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: _FB e2e tests

on:
schedule:
- cron: '0 3 * * *' # Every night at 3 AM UTC

workflow_dispatch:
inputs:
pmm_ui_tests_branch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/fb-integration-suite.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: _FB integration CLI tests

on:
schedule:
- cron: '0 3 * * *' # Every night at 3 AM UTC

workflow_dispatch:
inputs:
pmm_ui_tests_branch:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/fb-tarball-suite.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: _FB tarball tests

on:
schedule:
- cron: '0 3 * * *' # Every night at 3 AM UTC

workflow_dispatch:
inputs:
package_testing_branch:
Expand Down Expand Up @@ -74,4 +77,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' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
3 changes: 3 additions & 0 deletions .github/workflows/helm-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on:
schedule:
- cron: '0 3 * * *' # Every night at 3 AM UTC

workflow_dispatch:
inputs:
server_image:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration-cli-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: PMM Integration Tests

on:
schedule:
- cron: '0 3 * * *' # Every night at 3 AM UTC

workflow_dispatch:
inputs:
pmm_ui_tests_branch:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/runner-e2e-tests-codeceptjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,25 @@ jobs:
working-directory: ./pmm-qa
run: sudo bash -x pmm-tests/pmm2-client-setup.sh --pmm_server_ip 192.168.0.1 --client_version ${{ env.PMM_CLIENT_VERSION }} --admin_password ${{ env.ADMIN_PASSWORD }} --use_metrics_mode no

- name: Compare FullCommit for pmm-server and pmm-client
if: ${{ contains(inputs.pmm_server_image, 'dev-latest') && contains(inputs.pmm_client_version, 'dev-latest') }}
shell: bash
run: |
local_version=$(pmm-admin version --json)
local_full_commit=$(echo $local_version | jq -r '.FullCommit')
echo "local_full_commit=$local_full_commit"

container_version=$(docker exec pmm-server pmm-admin version --json)
container_full_commit=$(echo $container_version | jq -r '.FullCommit')
echo "container_full_commit=$container_full_commit"

if [[ "$local_full_commit" != "$container_full_commit" ]]; then
echo "Commits for pmm-server and pmm-client are different! Check the versions!"
echo "container pmm-admin version output is : $container_version"
echo "local pmm-admin version output is : $local_version"
exit 1
fi

- name: Run Setup for E2E Tests
working-directory: ./pmm-qa
run: sudo -E bash -x pmm-tests/pmm-framework.sh ${{ env.WIZARD_ARGS }} --pmm2
Expand Down
Loading