From 4f056813e0218991d0fafbedbb09c28294a2dc5e Mon Sep 17 00:00:00 2001 From: Puneet Kala Date: Fri, 3 Jun 2022 16:41:15 +0530 Subject: [PATCH] PMM-9951 Checking with forked repo and custom branch (#251) PMM-9951 Fix for forked Repo PMM-9951 Checking with forked repo and custom branch PMM-9951 fix the branch PMM-9951 testing the github properties PMM-9951 testing PMM-9951 testing the changes PMM-9951 changing permissions PMM-9951 handle the repo PMM-9951 permissions check PMM-9951 permissions check PMM-9951 remove not needed ones PMM-9951 checks permissions PMM-9951 testing PMM-9951 testing another workflow PMM-9951 test changes PMM-9951 Final Push with all changes PMM-9951 --- .github/workflows/postgresql-11-pmm.yaml | 18 +++++------------- .github/workflows/postgresql-12-pmm.yaml | 18 +++++------------- .github/workflows/postgresql-13-pmm.yaml | 21 +++++---------------- .github/workflows/postgresql-14-pmm.yaml | 18 +++++------------- .gitignore | 3 +++ 5 files changed, 23 insertions(+), 55 deletions(-) diff --git a/.github/workflows/postgresql-11-pmm.yaml b/.github/workflows/postgresql-11-pmm.yaml index 43c57fc..ca03432 100644 --- a/.github/workflows/postgresql-11-pmm.yaml +++ b/.github/workflows/postgresql-11-pmm.yaml @@ -5,7 +5,7 @@ jobs: build: name: pg-11-pgsm-pmm-integration-test runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 20 steps: - name: Clone QA Integration repository uses: actions/checkout@v2 @@ -13,20 +13,12 @@ jobs: repository: 'Percona-Lab/qa-integration' ref: 'main' - # print branch name - - name: Get branch name - run: echo 'The branch name is' ${{ github.head_ref }} + # print branch and Repo name + - name: Get branch and Repo Name + run: echo 'The branch and Repo Name is' ${{ github.head_ref }} ${{ github.actor }}/pg_stat_monitor - name: Run PMM & PGSM Setup, E2E Tests - run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=11 --pgstat-monitor-branch=${{ github.head_ref }} - - - name: Test Report - uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed - with: - name: Codeceptjs E2E Tests # Name of the check run which will be created - path: ./pmm-ui-tests/tests/output/*.xml # Path to test results - reporter: java-junit + run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=11 --pgstat-monitor-branch=${{ github.head_ref }} --pgstat-monitor-repo=${{ github.actor }}/pg_stat_monitor - name: Get PMM-Agent Logs from the Container if: success() || failure() # run this step even if previous step failed diff --git a/.github/workflows/postgresql-12-pmm.yaml b/.github/workflows/postgresql-12-pmm.yaml index c28324e..e5a1881 100644 --- a/.github/workflows/postgresql-12-pmm.yaml +++ b/.github/workflows/postgresql-12-pmm.yaml @@ -5,7 +5,7 @@ jobs: build: name: pg-12-pgsm-pmm-integration-test runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 20 steps: - name: Clone QA Integration repository uses: actions/checkout@v2 @@ -13,20 +13,12 @@ jobs: repository: 'Percona-Lab/qa-integration' ref: 'main' - # print branch name - - name: Get branch name - run: echo 'The branch name is' ${{ github.head_ref }} + # print branch and Repo name + - name: Get branch and Repo Name + run: echo 'The branch and Repo Name is' ${{ github.head_ref }} ${{ github.actor }}/pg_stat_monitor - name: Run PMM & PGSM Setup, E2E Tests - run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=12 --pgstat-monitor-branch=${{ github.head_ref }} - - - name: Test Report - uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed - with: - name: Codeceptjs E2E Tests # Name of the check run which will be created - path: ./pmm-ui-tests/tests/output/*.xml # Path to test results - reporter: java-junit + run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=12 --pgstat-monitor-branch=${{ github.head_ref }} --pgstat-monitor-repo=${{ github.actor }}/pg_stat_monitor - name: Get PMM-Agent Logs from the Container if: success() || failure() # run this step even if previous step failed diff --git a/.github/workflows/postgresql-13-pmm.yaml b/.github/workflows/postgresql-13-pmm.yaml index bc71a38..1ffbea7 100644 --- a/.github/workflows/postgresql-13-pmm.yaml +++ b/.github/workflows/postgresql-13-pmm.yaml @@ -5,7 +5,7 @@ jobs: build: name: pg-13-pgsm-pmm-integration-test runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 20 steps: - name: Clone QA Integration repository uses: actions/checkout@v2 @@ -13,23 +13,12 @@ jobs: repository: 'Percona-Lab/qa-integration' ref: 'main' - # print branch name - - name: Get branch name - run: echo 'The branch name is' ${{ github.head_ref }} - - - name: Get current path - run: pwd + # print branch and Repo name + - name: Get branch and Repo Name + run: echo 'The branch and Repo Name is' ${{ github.head_ref }} ${{ github.actor }}/pg_stat_monitor - name: Run PMM & PGSM Setup, E2E Tests - run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=13 --pgstat-monitor-branch=${{ github.head_ref }} - - - name: Test Report - uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed - with: - name: Codeceptjs E2E Tests # Name of the check run which will be created - path: ./pmm-ui-tests/tests/output/*.xml # Path to test results - reporter: java-junit + run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=13 --pgstat-monitor-branch=${{ github.head_ref }} --pgstat-monitor-repo=${{ github.actor }}/pg_stat_monitor - name: Get PMM-Agent Logs from the Container if: success() || failure() # run this step even if previous step failed diff --git a/.github/workflows/postgresql-14-pmm.yaml b/.github/workflows/postgresql-14-pmm.yaml index c518407..ca70e94 100644 --- a/.github/workflows/postgresql-14-pmm.yaml +++ b/.github/workflows/postgresql-14-pmm.yaml @@ -5,7 +5,7 @@ jobs: build: name: pg-14-pgsm-pmm-integration-test runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 20 steps: - name: Clone QA Integration repository uses: actions/checkout@v2 @@ -13,20 +13,12 @@ jobs: repository: 'Percona-Lab/qa-integration' ref: 'main' - # print branch name - - name: Get branch name - run: echo 'The branch name is' ${{ github.head_ref }} + # print branch and Repo name + - name: Get branch and Repo Name + run: echo 'The branch and Repo Name is' ${{ github.head_ref }} ${{ github.actor }}/pg_stat_monitor - name: Run PMM & PGSM Setup, E2E Tests - run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=14 --pgstat-monitor-branch=${{ github.head_ref }} - - - name: Test Report - uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed - with: - name: Codeceptjs E2E Tests # Name of the check run which will be created - path: ./pmm-ui-tests/tests/output/*.xml # Path to test results - reporter: java-junit + run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=14 --pgstat-monitor-branch=${{ github.head_ref }} --pgstat-monitor-repo=${{ github.actor }}/pg_stat_monitor - name: Get PMM-Agent Logs from the Container if: success() || failure() # run this step even if previous step failed diff --git a/.gitignore b/.gitignore index d7926f3..f8b1f92 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,6 @@ modules.order Module.symvers Mkfile.old dkms.conf + +## IDE +.idea \ No newline at end of file