Skip to content

Commit 73f8c7f

Browse files
authored
Merge pull request #3647 from autonomys/ci-instance-range
Improve CI reliability and add S3 cache for speed
2 parents 8dcdae9 + c0fb27e commit 73f8c7f

File tree

6 files changed

+175
-74
lines changed

6 files changed

+175
-74
lines changed

.github/runs-on.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
runners:
22
self-hosted-ubuntu-22.04-x86-64:
3-
cpu: [16, 32, 64]
4-
ram: [64, 128, 192]
3+
# A range from lowest to highest
4+
cpu: [16, 64]
5+
ram: [64, 192]
56
disk: default
6-
family: ["c7a", "c7i", "m7a", "m7i"]
7+
# Don't allow ARM machines, because they are slower (and switching architectures randomly could be confusing)
8+
# Also don't use older processor generations, because they are slower
9+
family: ["c7a", "c7i", "m7a", "m7i", "r7a", "r7i"]
10+
# Don't allow runner interruption
711
spot: false
12+
# Prefer instances with high capacity (low interruption risk), then low cost
13+
#spot: capacity-optimized
814
image: ubuntu22-full-x64
915
# Give runner SSH access to the GitHub SSH keys of these accounts
1016
admins:

.github/workflows/chain-spec-snapshot-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
chains-spec:
1616
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
17-
'"runs-on=${{ github.run_id }}/runner=self-hosted-ubuntu-22.04-x86-64"' || '"ubuntu-22.04"') }}
17+
'"runs-on=${{ github.run_id }}-${{ github.run_attempt }}/runner=self-hosted-ubuntu-22.04-x86-64/spot=false"' || '"ubuntu-22.04"') }}
1818
permissions:
1919
contents: write
2020
packages: write

.github/workflows/domain-genesis-storage-snapshot-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
domain-genesis-storage:
1616
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
17-
'"runs-on=${{ github.run_id }}/runner=self-hosted-ubuntu-22.04-x86-64"' || '"ubuntu-22.04"') }}
17+
'"runs-on=${{ github.run_id }}-${{ github.run_attempt }}/runner=self-hosted-ubuntu-22.04-x86-64/spot=false"' || '"ubuntu-22.04"') }}
1818
permissions:
1919
contents: write
2020
packages: write

.github/workflows/runtime-snapshot-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
runtime:
1717
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' &&
18-
'"runs-on=${{ github.run_id }}/runner=self-hosted-ubuntu-22.04-x86-64"' || '"ubuntu-22.04"') }}
18+
'"runs-on=${{ github.run_id }}-${{ github.run_attempt }}/runner=self-hosted-ubuntu-22.04-x86-64/spot=false"' || '"ubuntu-22.04"') }}
1919
permissions:
2020
contents: write
2121
packages: write

0 commit comments

Comments
 (0)