Skip to content

Commit 944c9f6

Browse files
authored
chore: downgrade linux runner size to 8 cores (#5984)
I doubt the difference in speed is worth the 2x cost.
1 parent be00e25 commit 944c9f6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ concurrency:
2929

3030
jobs:
3131
lint:
32-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
32+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v3
@@ -129,7 +129,7 @@ jobs:
129129
130130
gen:
131131
timeout-minutes: 8
132-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
132+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
133133
needs: changes
134134
if: needs.changes.outputs.docs-only == 'false'
135135
steps:
@@ -237,7 +237,7 @@ jobs:
237237
run: ./scripts/check_unstaged.sh
238238

239239
test-go:
240-
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }}
240+
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }}
241241
timeout-minutes: 20
242242
strategy:
243243
matrix:
@@ -322,7 +322,7 @@ jobs:
322322
flags: unittest-go-${{ matrix.os }}
323323

324324
test-go-psql:
325-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
325+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
326326
# This timeout must be greater than the timeout set by `go test` in
327327
# `make test-postgres` to ensure we receive a trace of running
328328
# goroutines. Setting this to the timeout +5m should work quite well
@@ -391,7 +391,7 @@ jobs:
391391

392392
deploy:
393393
name: "deploy"
394-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
394+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
395395
timeout-minutes: 30
396396
needs: changes
397397
if: |
@@ -487,7 +487,7 @@ jobs:
487487
retention-days: 7
488488

489489
test-js:
490-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
490+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
491491
timeout-minutes: 20
492492
steps:
493493
- uses: actions/checkout@v3
@@ -529,7 +529,7 @@ jobs:
529529
needs:
530530
- changes
531531
if: needs.changes.outputs.docs-only == 'false'
532-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
532+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
533533
timeout-minutes: 20
534534
steps:
535535
- uses: actions/checkout@v3

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ env:
3232
jobs:
3333
release:
3434
name: Build and publish
35-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
35+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
3636
env:
3737
# Necessary for Docker manifest
3838
DOCKER_CLI_EXPERIMENTAL: "enabled"

.github/workflows/security.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ concurrency:
2626

2727
jobs:
2828
codeql:
29-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
29+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
3030
steps:
3131
- uses: actions/checkout@v3
3232

@@ -60,7 +60,7 @@ jobs:
6060
uses: github/codeql-action/analyze@v2
6161

6262
trivy:
63-
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
63+
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores' || 'ubuntu-latest' }}
6464
steps:
6565
- uses: actions/checkout@v3
6666
with:

0 commit comments

Comments
 (0)