From 76759621e97fc7fe385f27b1a2b716a6894924d8 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Thu, 23 May 2024 19:39:56 +0300 Subject: [PATCH 1/5] build(runner): use large GitHub runner --- .github/workflows/commands-handler.yml | 8 +++++--- .github/workflows/release.yml | 14 +++++++++----- .github/workflows/run-tests.yml | 14 +++++++++----- .github/workflows/run-validations.yml | 12 ++++++++---- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml index 0b5d4702b..e2262dd23 100644 --- a/.github/workflows/commands-handler.yml +++ b/.github/workflows/commands-handler.yml @@ -11,7 +11,9 @@ jobs: process: name: Process command if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m steps: - name: Check referred user id: user-check @@ -23,12 +25,12 @@ jobs: run: echo -e "\033[38;2;19;181;255mThis is regular commit which should be ignored.\033[0m" - name: Checkout repository if: steps.user-check.outputs.expected-user == 'true' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.GH_TOKEN }} - name: Checkout release actions if: steps.user-check.outputs.expected-user == 'true' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pubnub/client-engineering-deployment-tools ref: v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d2cc36ba..0ec3f5c8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,15 @@ on: jobs: check-release: name: Check release required - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true outputs: release: ${{ steps.check.outputs.ready }} steps: - name: Checkout actions - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pubnub/client-engineering-deployment-tools ref: v1 @@ -27,17 +29,19 @@ jobs: token: ${{ secrets.GH_TOKEN }} publish: name: Publish package - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m needs: check-release if: needs.check-release.outputs.release == 'true' steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # This should be the same as the one specified for on.pull_request.branches ref: master - name: Checkout actions - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pubnub/client-engineering-deployment-tools ref: v1 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 524b3c68a..05f79f0a0 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -20,7 +20,9 @@ env: jobs: tests: name: Integration and Unit tests - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m strategy: fail-fast: true matrix: @@ -31,16 +33,16 @@ jobs: env: 'ci:web' steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Checkout actions - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pubnub/client-engineering-deployment-tools ref: v1 token: ${{ secrets.GH_TOKEN }} path: .github/.release/actions - name: Setup NodeJS ${{ matrix.node }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: 'npm' @@ -54,7 +56,9 @@ jobs: uses: ./.github/.release/actions/actions/utils/fast-jobs-failure all-tests: name: Tests - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m needs: [tests] steps: - name: Tests summary diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index 7936cc669..336ca3de3 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -13,12 +13,14 @@ defaults: jobs: pubnub-yml: name: 'Validate .pubnub.yml' - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m steps: - name: Checkout project - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Checkout validator action - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pubnub/client-engineering-deployment-tools ref: v1 @@ -33,7 +35,9 @@ jobs: uses: ./.github/.release/actions/actions/utils/fast-jobs-failure all-validations: name: Validations - runs-on: ubuntu-latest + runs-on: + group: Default Larger Runners + labels: ubuntu-latest-m needs: [pubnub-yml] steps: - name: Validations summary From 35c30ad8c6e595aa9f1f513c4b9e7affb27953ad Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Mon, 27 May 2024 21:56:05 +0300 Subject: [PATCH 2/5] build(runner): use smaller GitHub runner --- .github/workflows/commands-handler.yml | 4 ++-- .github/workflows/release.yml | 8 ++++---- .github/workflows/run-tests.yml | 8 ++++---- .github/workflows/run-validations.yml | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml index e2262dd23..53664fb99 100644 --- a/.github/workflows/commands-handler.yml +++ b/.github/workflows/commands-handler.yml @@ -12,8 +12,8 @@ jobs: name: Process command if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + group: GH-runners + labels: linux-2core-publicip-1 steps: - name: Check referred user id: user-check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ec3f5c8b..fb39fb564 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,8 @@ jobs: check-release: name: Check release required runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + group: GH-runners + labels: linux-2core-publicip-1 if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true outputs: release: ${{ steps.check.outputs.ready }} @@ -30,8 +30,8 @@ jobs: publish: name: Publish package runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + group: GH-runners + labels: linux-2core-publicip-1 needs: check-release if: needs.check-release.outputs.release == 'true' steps: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 05f79f0a0..ecc547f79 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,8 +21,8 @@ jobs: tests: name: Integration and Unit tests runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + group: GH-runners + labels: linux-2core-publicip-1 strategy: fail-fast: true matrix: @@ -57,8 +57,8 @@ jobs: all-tests: name: Tests runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + group: GH-runners + labels: linux-2core-publicip-1 needs: [tests] steps: - name: Tests summary diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index 336ca3de3..65d0ad04d 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -14,8 +14,8 @@ jobs: pubnub-yml: name: 'Validate .pubnub.yml' runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + group: GH-runners + labels: linux-2core-publicip-1 steps: - name: Checkout project uses: actions/checkout@v4 @@ -36,8 +36,8 @@ jobs: all-validations: name: Validations runs-on: - group: Default Larger Runners - labels: ubuntu-latest-m + group: GH-runners + labels: linux-2core-publicip-1 needs: [pubnub-yml] steps: - name: Validations summary From 294bbcc9b85be0dc0f31807cbb6f867501592ec7 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Mon, 27 May 2024 22:07:49 +0300 Subject: [PATCH 3/5] build(runner): try runners group only --- .github/workflows/run-validations.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index 65d0ad04d..602b68eb9 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -15,7 +15,6 @@ jobs: name: 'Validate .pubnub.yml' runs-on: group: GH-runners - labels: linux-2core-publicip-1 steps: - name: Checkout project uses: actions/checkout@v4 @@ -37,7 +36,6 @@ jobs: name: Validations runs-on: group: GH-runners - labels: linux-2core-publicip-1 needs: [pubnub-yml] steps: - name: Validations summary From 31eadb4267332612c819a64f8daaa7577310fcf8 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Mon, 27 May 2024 23:24:11 +0300 Subject: [PATCH 4/5] build(runner): change runners group --- .github/workflows/commands-handler.yml | 3 +-- .github/workflows/release.yml | 6 ++---- .github/workflows/run-tests.yml | 6 ++---- .github/workflows/run-validations.yml | 4 ++-- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml index 53664fb99..e956e5784 100644 --- a/.github/workflows/commands-handler.yml +++ b/.github/workflows/commands-handler.yml @@ -12,8 +12,7 @@ jobs: name: Process command if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true runs-on: - group: GH-runners - labels: linux-2core-publicip-1 + group: ubuntu-gh steps: - name: Check referred user id: user-check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb39fb564..dfc46003e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,7 @@ jobs: check-release: name: Check release required runs-on: - group: GH-runners - labels: linux-2core-publicip-1 + group: ubuntu-gh if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true outputs: release: ${{ steps.check.outputs.ready }} @@ -30,8 +29,7 @@ jobs: publish: name: Publish package runs-on: - group: GH-runners - labels: linux-2core-publicip-1 + group: ubuntu-gh needs: check-release if: needs.check-release.outputs.release == 'true' steps: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ecc547f79..1b4c2208f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,8 +21,7 @@ jobs: tests: name: Integration and Unit tests runs-on: - group: GH-runners - labels: linux-2core-publicip-1 + group: ubuntu-gh strategy: fail-fast: true matrix: @@ -57,8 +56,7 @@ jobs: all-tests: name: Tests runs-on: - group: GH-runners - labels: linux-2core-publicip-1 + group: ubuntu-gh needs: [tests] steps: - name: Tests summary diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index 602b68eb9..a9675c4cd 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -14,7 +14,7 @@ jobs: pubnub-yml: name: 'Validate .pubnub.yml' runs-on: - group: GH-runners + group: ubuntu-gh steps: - name: Checkout project uses: actions/checkout@v4 @@ -35,7 +35,7 @@ jobs: all-validations: name: Validations runs-on: - group: GH-runners + group: ubuntu-gh needs: [pubnub-yml] steps: - name: Validations summary From ca04b8b588e2d0f261d6eeac70a0b6a8dbc3b75e Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Wed, 29 May 2024 00:09:52 +0300 Subject: [PATCH 5/5] build(workflow): use default runners group --- .github/workflows/commands-handler.yml | 2 +- .github/workflows/release.yml | 8 ++++---- .github/workflows/run-tests.yml | 4 ++-- .github/workflows/run-validations.yml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml index e956e5784..48f71d24a 100644 --- a/.github/workflows/commands-handler.yml +++ b/.github/workflows/commands-handler.yml @@ -12,7 +12,7 @@ jobs: name: Process command if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true runs-on: - group: ubuntu-gh + group: Default steps: - name: Check referred user id: user-check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfc46003e..d70eaa11e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,9 +8,9 @@ on: jobs: check-release: name: Check release required - runs-on: - group: ubuntu-gh if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true + runs-on: + group: Default outputs: release: ${{ steps.check.outputs.ready }} steps: @@ -28,10 +28,10 @@ jobs: token: ${{ secrets.GH_TOKEN }} publish: name: Publish package - runs-on: - group: ubuntu-gh needs: check-release if: needs.check-release.outputs.release == 'true' + runs-on: + group: Default steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1b4c2208f..0c8f1b0d1 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,7 +21,7 @@ jobs: tests: name: Integration and Unit tests runs-on: - group: ubuntu-gh + group: Default strategy: fail-fast: true matrix: @@ -56,7 +56,7 @@ jobs: all-tests: name: Tests runs-on: - group: ubuntu-gh + group: Default needs: [tests] steps: - name: Tests summary diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index a9675c4cd..859f64d92 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -14,7 +14,7 @@ jobs: pubnub-yml: name: 'Validate .pubnub.yml' runs-on: - group: ubuntu-gh + group: Default steps: - name: Checkout project uses: actions/checkout@v4 @@ -35,7 +35,7 @@ jobs: all-validations: name: Validations runs-on: - group: ubuntu-gh + group: Default needs: [pubnub-yml] steps: - name: Validations summary