Skip to content

Commit 1369002

Browse files
authored
ci: migrate to depot.dev runners (#13467)
1 parent 313d4e0 commit 1369002

File tree

7 files changed

+23
-24
lines changed

7 files changed

+23
-24
lines changed

.github/actions/setup-go/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
using: "composite"
1010
steps:
1111
- name: Setup Go
12-
uses: buildjet/setup-go@v5
12+
uses: actions/setup-go@v5
1313
with:
1414
go-version: ${{ inputs.version }}
1515

.github/actions/setup-node/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
with:
1616
version: 8
1717
- name: Setup Node
18-
uses: buildjet/setup-node@v4.0.1
18+
uses: actions/setup-node@v4.0.1
1919
with:
2020
node-version: 18.19.0
2121
# See https://github.com/actions/setup-node#caching-global-packages-data

.github/workflows/ci.yaml

+15-16
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
update-flake:
121121
needs: changes
122122
if: needs.changes.outputs.gomod == 'true'
123-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
123+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
124124
steps:
125125
- name: Checkout
126126
uses: actions/checkout@v4
@@ -139,7 +139,7 @@ jobs:
139139
lint:
140140
needs: changes
141141
if: needs.changes.outputs.offlinedocs-only == 'false' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
142-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
142+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
143143
steps:
144144
- name: Checkout
145145
uses: actions/checkout@v4
@@ -160,7 +160,7 @@ jobs:
160160
echo "LINT_CACHE_DIR=$dir" >> $GITHUB_ENV
161161
162162
- name: golangci-lint cache
163-
uses: buildjet/cache@v4
163+
uses: actions/cache@v4
164164
with:
165165
path: |
166166
${{ env.LINT_CACHE_DIR }}
@@ -193,7 +193,7 @@ jobs:
193193
194194
gen:
195195
timeout-minutes: 8
196-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
196+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
197197
needs: changes
198198
if: needs.changes.outputs.docs-only == 'false' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
199199
steps:
@@ -243,7 +243,7 @@ jobs:
243243
fmt:
244244
needs: changes
245245
if: needs.changes.outputs.offlinedocs-only == 'false' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
246-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
246+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
247247
timeout-minutes: 7
248248
steps:
249249
- name: Checkout
@@ -270,7 +270,7 @@ jobs:
270270
run: ./scripts/check_unstaged.sh
271271

272272
test-go:
273-
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'buildjet-4vcpu-ubuntu-2204' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'macos-latest-xlarge' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-16-cores' || matrix.os }}
273+
runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || matrix.os == 'macos-latest' && github.repository_owner == 'coder' && 'macos-latest-xlarge' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-16-cores' || matrix.os }}
274274
needs: changes
275275
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
276276
timeout-minutes: 20
@@ -326,7 +326,7 @@ jobs:
326326
api-key: ${{ secrets.DATADOG_API_KEY }}
327327

328328
test-go-pg:
329-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
329+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
330330
needs:
331331
- changes
332332
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
@@ -361,7 +361,7 @@ jobs:
361361
api-key: ${{ secrets.DATADOG_API_KEY }}
362362

363363
test-go-race:
364-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
364+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
365365
needs: changes
366366
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
367367
timeout-minutes: 25
@@ -396,7 +396,7 @@ jobs:
396396
# These tests are skipped in the main go test jobs because they require root
397397
# and mess with networking.
398398
test-go-tailnet-integration:
399-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
399+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
400400
needs: changes
401401
# Unnecessary to run on main for now
402402
if: needs.changes.outputs.tailnet-integration == 'true' || needs.changes.outputs.ci == 'true'
@@ -418,7 +418,7 @@ jobs:
418418
run: make test-tailnet-integration
419419

420420
test-js:
421-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
421+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
422422
needs: changes
423423
if: needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
424424
timeout-minutes: 20
@@ -435,7 +435,7 @@ jobs:
435435
working-directory: site
436436

437437
test-e2e:
438-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-16vcpu-ubuntu-2204' || 'ubuntu-latest' }}
438+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
439439
needs: changes
440440
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
441441
timeout-minutes: 20
@@ -579,7 +579,7 @@ jobs:
579579
offlinedocs:
580580
name: offlinedocs
581581
needs: changes
582-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
582+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
583583
if: needs.changes.outputs.offlinedocs == 'true' || needs.changes.outputs.ci == 'true' || needs.changes.outputs.docs == 'true'
584584

585585
steps:
@@ -677,11 +677,10 @@ jobs:
677677
678678
build:
679679
# This builds and publishes ghcr.io/coder/coder-preview:main for each commit
680-
# to main branch. We are only building this for amd64 platform. (>95% pulls
681-
# are for amd64)
680+
# to main branch.
682681
needs: changes
683682
if: github.ref == 'refs/heads/main' && needs.changes.outputs.docs-only == 'false' && !github.event.pull_request.head.repo.fork
684-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
683+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
685684
env:
686685
DOCKER_CLI_EXPERIMENTAL: "enabled"
687686
outputs:
@@ -887,7 +886,7 @@ jobs:
887886
# runs sqlc-vet to ensure all queries are valid. This catches any mistakes
888887
# in migrations or sqlc queries that makes a query unable to be prepared.
889888
sqlc-vet:
890-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
889+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
891890
needs: changes
892891
if: needs.changes.outputs.db == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
893892
steps:

.github/workflows/nightly-gauntlet.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
# While GitHub's toaster runners are likelier to flake, we want consistency
1212
# between this environment and the regular test environment for DataDog
1313
# statistics and to only show real workflow threats.
14-
runs-on: "buildjet-8vcpu-ubuntu-2204"
14+
runs-on: "depot-ubuntu-22.04-8"
1515
# This runner costs 0.016 USD per minute,
1616
# so 0.016 * 240 = 3.84 USD per run.
1717
timeout-minutes: 240
@@ -40,7 +40,7 @@ jobs:
4040

4141
go-timing:
4242
# We run these tests with p=1 so we don't need a lot of compute.
43-
runs-on: "buildjet-2vcpu-ubuntu-2204"
43+
runs-on: "depot-ubuntu-22.04"
4444
timeout-minutes: 10
4545
steps:
4646
- name: Checkout

.github/workflows/pr-deploy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
needs: get_info
190190
# Run build job only if there are changes in the files that we care about or if the workflow is manually triggered with --build flag
191191
if: needs.get_info.outputs.BUILD == 'true'
192-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
192+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
193193
# This concurrency only cancels build jobs if a new build is triggred. It will avoid cancelling the current deployemtn in case of docs chnages.
194194
concurrency:
195195
group: build-${{ github.workflow }}-${{ github.ref }}-${{ needs.get_info.outputs.BUILD }}

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ env:
3939
jobs:
4040
release:
4141
name: Build and publish
42-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
42+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
4343
env:
4444
# Necessary for Docker manifest
4545
DOCKER_CLI_EXPERIMENTAL: "enabled"

.github/workflows/security.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323

2424
jobs:
2525
codeql:
26-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
26+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
@@ -56,7 +56,7 @@ jobs:
5656
"${{ secrets.SLACK_SECURITY_FAILURE_WEBHOOK_URL }}"
5757
5858
trivy:
59-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
59+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
6060
steps:
6161
- name: Checkout
6262
uses: actions/checkout@v4

0 commit comments

Comments
 (0)