Skip to content

Commit

Permalink
Self host runner (opensearch-project#140)
Browse files Browse the repository at this point in the history
* feat: add self host runner

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: update

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: update

* feat: update

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: use v4

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: update

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* Revert "feat: use v4"

This reverts commit fc24867.

* feat: use auto-scaleable runners

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: use sudo

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: update

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

---------

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Mar 2, 2024
1 parent eb2b325 commit 339752d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-untriaged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
apply-label:
runs-on: ubuntu-latest
runs-on: arc-runner-set
steps:
- uses: actions/github-script@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
backport:
runs-on: ubuntu-latest
runs-on: arc-runner-set
permissions:
contents: write
pull-requests: write
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build_and_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [arc-runner-set, windows-latest]
group: [1, 2, 3, 4]
include:
- os: ubuntu-latest
- os: arc-runner-set
name: Linux
- os: windows-latest
name: Windows
Expand Down Expand Up @@ -100,13 +100,13 @@ jobs:

- name: Run linter
# ciGroup 1 of unit-tests is shorter and Linux is faster
if: matrix.group == 1 && matrix.os == 'ubuntu-latest'
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 == 'ubuntu-latest'
if: matrix.group == 1 && matrix.os == 'arc-runner-set'
id: notice-validate
run: yarn notice:validate

Expand Down Expand Up @@ -138,10 +138,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [arc-runner-set, windows-latest]
group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
include:
- os: ubuntu-latest
- os: arc-runner-set
name: Linux
- os: windows-latest
name: Windows
Expand Down Expand Up @@ -322,12 +322,12 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-latest
- os: arc-runner-set
name: Linux x64
ext: tar.gz
suffix: linux-x64
script: build-platform --linux --skip-os-packages
- os: ubuntu-latest
- os: arc-runner-set
name: Linux ARM64
ext: tar.gz
suffix: linux-arm64
Expand Down Expand Up @@ -431,7 +431,7 @@ jobs:

bwc-tests:
needs: [build-min-artifact-tests]
runs-on: ubuntu-latest
runs-on: arc-runner-set
container:
image: docker://opensearchstaging/ci-runner:ci-runner-rockylinux8-opensearch-dashboards-integtest-v2
options: --user 1001
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog_verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
# Enforces the update of a changelog file on every pull request
verify-changelog:
runs-on: ubuntu-latest
runs-on: arc-runner-set
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create_doc_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
jobs:
create-issue:
if: ${{ github.event.label.name == 'needs-documentation' }}
runs-on: ubuntu-latest
runs-on: arc-runner-set
name: Create Documentation Issue
steps:
- name: GitHub App token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
delete-branch:
runs-on: ubuntu-latest
runs-on: arc-runner-set
if: startsWith(github.event.pull_request.head.ref,'backport/')
steps:
- name: Delete merged branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-workflow-badger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
call-action:
runs-on: ubuntu-latest
runs-on: arc-runner-set
permissions:
pull-requests: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/links_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
linkchecker:

runs-on: ubuntu-latest
runs-on: arc-runner-set

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 339752d

Please sign in to comment.