From 9e08e897e0d589f2fa0c6cdea3dc32c5ef94be9c Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Wed, 13 Sep 2023 11:06:20 +0800 Subject: [PATCH] feat: use auto-scaleable runners Signed-off-by: SuZhou-Joe --- .github/workflows/add-untriaged.yml | 2 +- .github/workflows/backport.yml | 2 +- .github/workflows/build_and_test_workflow.yml | 18 +++++++++--------- .github/workflows/changelog_verifier.yml | 2 +- .github/workflows/create_doc_issue.yml | 2 +- .github/workflows/cypress_workflow.yml | 2 +- .github/workflows/delete_backport_branch.yml | 2 +- .github/workflows/github-workflow-badger.yml | 2 +- .github/workflows/links_checker.yml | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/add-untriaged.yml b/.github/workflows/add-untriaged.yml index 2221242abde9..9f4a14bfb11f 100644 --- a/.github/workflows/add-untriaged.yml +++ b/.github/workflows/add-untriaged.yml @@ -6,7 +6,7 @@ on: jobs: apply-label: - runs-on: self-hosted + runs-on: arc-runner-set steps: - uses: actions/github-script@v6 with: diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 3ecb5666a9a2..7fd7ea23e641 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,7 +7,7 @@ on: jobs: backport: - runs-on: self-hosted + runs-on: arc-runner-set permissions: contents: write pull-requests: write diff --git a/.github/workflows/build_and_test_workflow.yml b/.github/workflows/build_and_test_workflow.yml index a343a65afd9e..878da7532e1c 100644 --- a/.github/workflows/build_and_test_workflow.yml +++ b/.github/workflows/build_and_test_workflow.yml @@ -33,10 +33,10 @@ jobs: strategy: fail-fast: false matrix: - os: [self-hosted, windows-latest] + os: [arc-runner-set, windows-latest] group: [1, 2, 3, 4] include: - - os: self-hosted + - os: arc-runner-set name: Linux - os: windows-latest name: Windows @@ -92,13 +92,13 @@ jobs: - name: Run linter # ciGroup 1 of unit-tests is shorter and Linux is faster - if: matrix.group == 1 && matrix.os == 'self-hosted' + if: matrix.group == 1 && matrix.os == 'arc-runner-set' id: linter run: yarn lint - name: Validate NOTICE file # ciGroup 1 of unit-tests is shorter and Linux is faster - if: matrix.group == 1 && matrix.os == 'self-hosted' + if: matrix.group == 1 && matrix.os == 'arc-runner-set' id: notice-validate run: yarn notice:validate @@ -130,10 +130,10 @@ jobs: strategy: fail-fast: false matrix: - os: [self-hosted, windows-latest] + os: [arc-runner-set, windows-latest] group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] include: - - os: self-hosted + - os: arc-runner-set name: Linux - os: windows-latest name: Windows @@ -217,12 +217,12 @@ jobs: strategy: matrix: include: - - os: self-hosted + - os: arc-runner-set name: Linux x64 ext: tar.gz suffix: linux-x64 script: build-platform --linux --skip-os-packages - - os: self-hosted + - os: arc-runner-set name: Linux ARM64 ext: tar.gz suffix: linux-arm64 @@ -308,7 +308,7 @@ jobs: bwc-tests: needs: [build-min-artifact-tests] - runs-on: self-hosted + runs-on: arc-runner-set container: image: docker://opensearchstaging/ci-runner:ci-runner-rockylinux8-opensearch-dashboards-integtest-v2 options: --user 1001 diff --git a/.github/workflows/changelog_verifier.yml b/.github/workflows/changelog_verifier.yml index 392c36e39ba6..fbcf411779af 100644 --- a/.github/workflows/changelog_verifier.yml +++ b/.github/workflows/changelog_verifier.yml @@ -7,7 +7,7 @@ on: jobs: # Enforces the update of a changelog file on every pull request verify-changelog: - runs-on: self-hosted + runs-on: arc-runner-set steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/create_doc_issue.yml b/.github/workflows/create_doc_issue.yml index 183c03a48ca6..2a117288a9e1 100644 --- a/.github/workflows/create_doc_issue.yml +++ b/.github/workflows/create_doc_issue.yml @@ -9,7 +9,7 @@ env: jobs: create-issue: if: ${{ github.event.label.name == 'needs-documentation' }} - runs-on: self-hosted + runs-on: arc-runner-set name: Create Documentation Issue steps: - name: GitHub App token diff --git a/.github/workflows/cypress_workflow.yml b/.github/workflows/cypress_workflow.yml index 27e82e347bc9..96ee043d5aa4 100644 --- a/.github/workflows/cypress_workflow.yml +++ b/.github/workflows/cypress_workflow.yml @@ -19,7 +19,7 @@ env: jobs: cypress-tests: - runs-on: self-hosted + runs-on: arc-runner-set container: image: docker://opensearchstaging/ci-runner:ci-runner-rockylinux8-opensearch-dashboards-integtest-v2 options: --user 1001 diff --git a/.github/workflows/delete_backport_branch.yml b/.github/workflows/delete_backport_branch.yml index 3834edb8fd2d..99c174e8e1af 100644 --- a/.github/workflows/delete_backport_branch.yml +++ b/.github/workflows/delete_backport_branch.yml @@ -6,7 +6,7 @@ on: jobs: delete-branch: - runs-on: self-hosted + runs-on: arc-runner-set if: startsWith(github.event.pull_request.head.ref,'backport/') steps: - name: Delete merged branch diff --git a/.github/workflows/github-workflow-badger.yml b/.github/workflows/github-workflow-badger.yml index 649c974f7bce..f30cb6ee18c0 100644 --- a/.github/workflows/github-workflow-badger.yml +++ b/.github/workflows/github-workflow-badger.yml @@ -7,7 +7,7 @@ on: jobs: call-action: - runs-on: self-hosted + runs-on: arc-runner-set permissions: pull-requests: write steps: diff --git a/.github/workflows/links_checker.yml b/.github/workflows/links_checker.yml index 4c74e2b3c126..ffd276bd76a0 100644 --- a/.github/workflows/links_checker.yml +++ b/.github/workflows/links_checker.yml @@ -12,7 +12,7 @@ on: jobs: linkchecker: - runs-on: self-hosted + runs-on: arc-runner-set steps: - uses: actions/checkout@v2