Skip to content

Commit 69b9b7b

Browse files
ci: retire private Actions runners and use GitHub-hosted capacity (#56)
1 parent 4181723 commit 69b9b7b

18 files changed

Lines changed: 54 additions & 183 deletions

β€Ž.github/scripts/private-linux-routing.test.pyβ€Ž

Lines changed: 0 additions & 88 deletions
This file was deleted.

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# open: if the diff cannot be resolved, everything runs.
2323
changes:
2424
name: Changes
25-
runs-on: blacksmith-2vcpu-ubuntu-2404
25+
runs-on: ubuntu-24.04
2626
timeout-minutes: 5
2727
outputs:
2828
typecheck: ${{ steps.detect.outputs.typecheck }}
@@ -75,7 +75,7 @@ jobs:
7575
contents: read
7676
id-token: write
7777
name: Lint
78-
runs-on: blacksmith-8vcpu-ubuntu-2404
78+
runs-on: ubuntu-24.04
7979
timeout-minutes: 10
8080
steps:
8181
- name: Checkout
@@ -131,7 +131,7 @@ jobs:
131131
name: Build and Typecheck
132132
needs: changes
133133
if: ${{ !cancelled() && (needs.changes.outputs.build != 'false' || needs.changes.outputs.typecheck != 'false') }}
134-
runs-on: blacksmith-8vcpu-ubuntu-2404
134+
runs-on: ubuntu-24.04
135135
timeout-minutes: 10
136136
steps:
137137
- name: Checkout
@@ -230,7 +230,7 @@ jobs:
230230
name: Test
231231
needs: changes
232232
if: ${{ !cancelled() && needs.changes.outputs.test != 'false' }}
233-
runs-on: blacksmith-8vcpu-ubuntu-2404
233+
runs-on: ubuntu-24.04
234234
timeout-minutes: 10
235235
steps:
236236
- name: Checkout
@@ -306,7 +306,7 @@ jobs:
306306
name: Test Web
307307
needs: changes
308308
if: ${{ !cancelled() && needs.changes.outputs.test_web != 'false' }}
309-
runs-on: blacksmith-8vcpu-ubuntu-2404
309+
runs-on: ubuntu-24.04
310310
timeout-minutes: 10
311311
steps:
312312
- name: Checkout
@@ -370,7 +370,7 @@ jobs:
370370
contents: read
371371
id-token: write
372372
name: Test Server ${{ matrix.shard }}
373-
runs-on: blacksmith-4vcpu-ubuntu-2404
373+
runs-on: ubuntu-24.04
374374
# Shards take 2-5 minutes. When the shared task cache throttles reads, each
375375
# failed fetch stalls vp for 15-90s, which pushed shards past 10 minutes.
376376
timeout-minutes: 20
@@ -491,7 +491,7 @@ jobs:
491491
name: Rust
492492
needs: changes
493493
if: ${{ !cancelled() && needs.changes.outputs.rust != 'false' }}
494-
runs-on: blacksmith-4vcpu-ubuntu-2404
494+
runs-on: ubuntu-24.04
495495
timeout-minutes: 10
496496
steps:
497497
- name: Checkout
@@ -529,7 +529,7 @@ jobs:
529529
name: Mobile Native Static Analysis
530530
needs: changes
531531
if: ${{ !cancelled() && needs.changes.outputs.mobile_native != 'false' }}
532-
runs-on: blacksmith-6vcpu-macos-26
532+
runs-on: macos-26
533533
timeout-minutes: 10
534534
steps:
535535
- name: Checkout
@@ -562,7 +562,7 @@ jobs:
562562
name: Release Smoke
563563
needs: changes
564564
if: ${{ !cancelled() && needs.changes.outputs.release_smoke != 'false' }}
565-
runs-on: blacksmith-8vcpu-ubuntu-2404
565+
runs-on: ubuntu-24.04
566566
timeout-minutes: 10
567567
steps:
568568
- name: Checkout
@@ -602,7 +602,7 @@ jobs:
602602
mobile_native_static_analysis,
603603
release_smoke,
604604
]
605-
runs-on: blacksmith-2vcpu-ubuntu-2404
605+
runs-on: ubuntu-24.04
606606
timeout-minutes: 5
607607
steps:
608608
- name: Require every job to pass

β€Ž.github/workflows/deploy-relay.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
name: Deploy production relay
2828
# A manual run from another branch would deploy that branch to production.
2929
if: github.repository == 'pingdotgg/t3code' && github.ref == 'refs/heads/main'
30-
runs-on: blacksmith-8vcpu-ubuntu-2404
30+
runs-on: ubuntu-24.04
3131
timeout-minutes: 15
3232
environment:
3333
name: production

β€Ž.github/workflows/desktop-macos-preview-publish.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ jobs:
309309
clerk_cli_oauth_client_id: ${{ needs.resolve.outputs.clerk_cli_oauth_client_id }}
310310
relay_url: ${{ needs.resolve.outputs.relay_url }}
311311
label: macOS arm64 preview
312-
runner: blacksmith-12vcpu-macos-26
312+
runner: macos-26
313313
platform: mac
314314
target: dmg
315315
arch: arm64
@@ -325,7 +325,7 @@ jobs:
325325
name: Publish anonymous download
326326
needs: [resolve, build]
327327
if: needs.resolve.outputs.eligible == 'true' && needs.build.result == 'success'
328-
runs-on: blacksmith-8vcpu-ubuntu-2404
328+
runs-on: ubuntu-24.04
329329
timeout-minutes: 10
330330
# Its own group, so a publish never cancels a newer commit's signing job
331331
# (they would share the build group) and is never cancelled mid-upload.

β€Ž.github/workflows/desktop-macos-preview.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
build:
3131
name: Build preview JS bundle
3232
if: github.event.label.name == 'preview:mac'
33-
runs-on: blacksmith-32vcpu-ubuntu-2404
33+
runs-on: ubuntu-24.04
3434
timeout-minutes: 30
3535
steps:
3636
# This repository is public, so Git needs no credentials. checkout's

β€Ž.github/workflows/fork-ci.ymlβ€Ž

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
- name: Check workflow runner labels
4646
run: |
4747
python3 -B .github/scripts/check-runner-labels.test.py
48-
python3 -B .github/scripts/private-linux-routing.test.py
4948
python3 -B .github/scripts/check-runner-labels.py
5049
5150
- name: Detect affected jobs
@@ -144,48 +143,11 @@ jobs:
144143
if: needs.changes.outputs.test_web != 'false'
145144
run: vp run --filter @t3tools/web test
146145

147-
private-linux-status:
148-
name: Request private server tests
149-
needs: changes
150-
runs-on: ubuntu-24.04
151-
timeout-minutes: 5
152-
permissions:
153-
contents: read
154-
statuses: write
155-
outputs:
156-
enabled: ${{ steps.request.outputs.enabled }}
157-
if: >-
158-
!cancelled() && vars.PRIVATE_LINUX_CI == 'true' &&
159-
github.actor_id == '25274700' && github.triggering_actor == 'ScriptedAlchemy' &&
160-
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
161-
steps:
162-
- name: Request private server capacity
163-
id: request
164-
env:
165-
GH_TOKEN: ${{ github.token }}
166-
SERVER_TESTS: ${{ needs.changes.outputs.test_server }}
167-
SOURCE_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
168-
run: |
169-
set -euo pipefail
170-
enabled=false
171-
state=success
172-
description='Hosted Linux CI selected'
173-
if [[ "$SERVER_TESTS" != false ]]; then
174-
enabled=true
175-
state=pending
176-
description="Requested private-linux:$GITHUB_REPOSITORY:$GITHUB_RUN_ID:$GITHUB_RUN_ATTEMPT:full"
177-
fi
178-
gh api --method POST "repos/$GITHUB_REPOSITORY/statuses/$SOURCE_SHA" \
179-
-f state="$state" -f context='Private Linux CI' -f description="$description" \
180-
-f target_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
181-
echo "enabled=$enabled" >> "$GITHUB_OUTPUT"
182-
183146
server:
184147
name: Server tests ${{ matrix.shard }}
185-
needs: [changes, private-linux-status]
148+
needs: [changes]
186149
if: >-
187-
!cancelled() && needs.changes.outputs.test_server != 'false' &&
188-
!(needs.private-linux-status.result == 'success' && needs.private-linux-status.outputs.enabled == 'true')
150+
!cancelled() && needs.changes.outputs.test_server != 'false'
189151
runs-on: ubuntu-24.04
190152
timeout-minutes: 30
191153
strategy:
@@ -270,7 +232,7 @@ jobs:
270232
check:
271233
name: Fork Check
272234
if: ${{ !cancelled() && github.repository != 'pingdotgg/t3code' }}
273-
needs: [changes, private-linux-status, checks, clients, server, rust, mobile_native]
235+
needs: [changes, checks, clients, server, rust, mobile_native]
274236
runs-on: ubuntu-24.04
275237
timeout-minutes: 5
276238
steps:
@@ -279,12 +241,9 @@ jobs:
279241
RESULTS: ${{ toJSON(needs) }}
280242
run: |
281243
echo "$RESULTS" | jq -r 'to_entries[] | "\(.key): \(.value.result)"'
282-
echo "$RESULTS" | jq -e '(."private-linux-status".result == "success" and ."private-linux-status".outputs.enabled == "true") as $private
283-
| .changes.outputs as $gates
244+
echo "$RESULTS" | jq -e '.changes.outputs as $gates
284245
| {clients: ["test", "test_web"], server: ["test_server"]} as $renamed
285246
| all(to_entries[];
286247
.value.result == "success"
287-
or (.key == "private-linux-status" and .value.result == "skipped")
288-
or (.key == "server" and .value.result == "skipped" and $private)
289248
or (.value.result == "skipped"
290249
and (($renamed[.key] // [.key]) | all(.[]; $gates[.] == "false"))))' > /dev/null

β€Ž.github/workflows/mobile-android-apk.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
mirror:
1717
name: Mirror beta APK
1818
if: github.repository == 'pingdotgg/t3code'
19-
runs-on: blacksmith-2vcpu-ubuntu-2404
19+
runs-on: ubuntu-24.04
2020
timeout-minutes: 10
2121
permissions:
2222
contents: write

β€Ž.github/workflows/mobile-eas-preview-fork.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if: >-
2323
github.event.pull_request.head.repo.full_name != github.repository &&
2424
github.event.label.name == 'πŸš€ Mobile Continuous Deployment'
25-
runs-on: blacksmith-8vcpu-ubuntu-2404
25+
runs-on: ubuntu-24.04
2626
concurrency:
2727
group: mobile-eas-preview-fork-${{ github.event.pull_request.number }}
2828
cancel-in-progress: true

β€Ž.github/workflows/mobile-eas-preview.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
github.event.pull_request.head.repo.full_name == github.repository &&
1313
contains(github.event.pull_request.labels.*.name, 'πŸš€ Mobile Continuous Deployment') &&
1414
(github.event.action != 'labeled' || github.event.label.name == 'πŸš€ Mobile Continuous Deployment')
15-
runs-on: blacksmith-8vcpu-ubuntu-2404
15+
runs-on: ubuntu-24.04
1616
concurrency:
1717
group: mobile-eas-preview-${{ github.event.pull_request.number }}
1818
cancel-in-progress: true

β€Ž.github/workflows/mobile-eas-production.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
production:
7777
name: EAS ${{ inputs.profile || 'production' }} ${{ github.event_name == 'push' && 'auto' || inputs.mode }}
7878
if: github.repository == 'pingdotgg/t3code'
79-
runs-on: blacksmith-8vcpu-ubuntu-2404
79+
runs-on: ubuntu-24.04
8080
permissions:
8181
contents: read
8282
env:

0 commit comments

Comments
Β (0)