Skip to content

Commit 5197429

Browse files
authored
Switch to the Namespace-provided Linux runners (#7746)
* Switch to the Namespace-provided Linux runners * Use Namespace for default-sized jobs * Remove unnecessary formatting command The `column` program is part of `util-linux`, not available in the Namespace images. It doesn't seem like we need this to get the check to pass on CI. * Revert runner change for CodSpeed due to incompatibility * Revert runner change for macOS KCL bindings due to incompatibility
1 parent 1d18c8f commit 5197429

23 files changed

+77
-73
lines changed

.github/workflows/build-and-store-wasm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build-and-upload:
10-
runs-on: ubuntu-latest
10+
runs-on: namespace-profile-ubuntu-2-cores
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4

.github/workflows/build-apps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
prepare-files:
21-
runs-on: ubuntu-22.04 # seperate job on Ubuntu for easy string manipulations (compared to Windows)
21+
runs-on: namespace-profile-ubuntu-2-cores
2222
outputs:
2323
version: ${{ steps.export_version.outputs.version }}
2424
notes: ${{ steps.export_notes.outputs.notes }}
@@ -250,7 +250,7 @@ jobs:
250250

251251

252252
upload-apps-release:
253-
runs-on: ubuntu-22.04
253+
runs-on: namespace-profile-ubuntu-2-cores
254254
permissions:
255255
contents: write
256256
# Equivalent to IS_RELEASE || IS_STAGING (but we can't access those env vars here)

.github/workflows/build-wasm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
jobs:
1010
npm-build-wasm:
11-
runs-on: runs-on=${{ github.run_id }}/family=i7ie.2xlarge/image=ubuntu22-full-x64
11+
runs-on: namespace-profile-ubuntu-8-cores
1212
steps:
1313
- uses: actions/checkout@v4
1414

.github/workflows/cargo-bench.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
cargo-bench:
2828
name: cargo bench
2929
runs-on: ubuntu-latest
30+
# runs-on: namespace-profile-ubuntu-2-cores
31+
# TODO: Figure out if there is a way to make CodSpeed work with Namespace
32+
# Enabling this results in the following error on GitHub Actions:
33+
# setarch: failed to set personality to x86_64: Operation not permitted
3034
steps:
3135
- uses: actions/checkout@v4
3236
- name: Use correct Rust toolchain

.github/workflows/cargo-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name: cargo check
1616
jobs:
1717
cargocheck:
1818
name: cargo check
19-
runs-on: ubuntu-latest
19+
runs-on: namespace-profile-ubuntu-2-cores
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Use correct Rust toolchain

.github/workflows/cargo-clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ name: cargo clippy
2222
jobs:
2323
cargoclippy:
2424
name: cargo clippy
25-
runs-on: ubuntu-latest
25+
runs-on: namespace-profile-ubuntu-2-cores
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: taiki-e/install-action@just

.github/workflows/cargo-fmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ name: cargo fmt
2525
jobs:
2626
cargofmt:
2727
name: cargo fmt
28-
runs-on: ubuntu-latest
28+
runs-on: namespace-profile-ubuntu-2-cores
2929
steps:
3030
- uses: actions/checkout@v4
3131
- name: Use correct Rust toolchain

.github/workflows/cargo-test.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ concurrency:
2020
jobs:
2121
build-test-artifacts:
2222
name: Build test artifacts
23-
runs-on:
24-
- runs-on=${{ github.run_id }}
25-
- runner=8cpu-linux-x64
26-
- extras=s3-cache
23+
runs-on: namespace-profile-ubuntu-8-cores
2724
steps:
2825
- uses: runs-on/action@v2
2926
- uses: actions/create-github-app-token@v2
@@ -138,10 +135,7 @@ jobs:
138135
path: rust/nextest-archive.tar.zst
139136
run-test-artifacts:
140137
name: cargo test (shard ${{ matrix.partitionIndex}})
141-
runs-on:
142-
- runs-on=${{ github.run_id }}
143-
- runner=32cpu-linux-x64
144-
- extras=s3-cache
138+
runs-on: namespace-profile-ubuntu-8-cores
145139
needs: build-test-artifacts
146140
strategy:
147141
fail-fast: false
@@ -202,10 +196,7 @@ jobs:
202196
CI_SUITE: e2e:kcl
203197
run-internal-kcl-samples:
204198
name: cargo test (internal-kcl-samples)
205-
runs-on:
206-
- runs-on=${{ github.run_id }}
207-
- runner=32cpu-linux-x64
208-
- extras=s3-cache
199+
runs-on: namespace-profile-ubuntu-8-cores
209200
steps:
210201
- uses: runs-on/action@v2
211202
- uses: actions/create-github-app-token@v2
@@ -253,7 +244,9 @@ jobs:
253244
name: Run wasm tests
254245
strategy:
255246
matrix:
256-
os: [ubuntu-latest, macos-latest]
247+
os:
248+
- namespace-profile-ubuntu-2-cores
249+
- namespace-profile-macos-6-cores
257250
fail-fast: false
258251
runs-on: ${{ matrix.os }}
259252
steps:

.github/workflows/check-kcl-header.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919

2020
jobs:
2121
check-kcl-header:
22-
runs-on: ubuntu-latest
22+
runs-on: namespace-profile-ubuntu-2-cores
2323
steps:
2424
- uses: actions/checkout@v4
2525

.github/workflows/codemirror-lang-kcl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212

1313
jobs:
1414
npm-unit-test:
15-
runs-on: ubuntu-latest
15+
runs-on: namespace-profile-ubuntu-2-cores
1616
steps:
1717
- uses: actions/checkout@v4
1818

0 commit comments

Comments
 (0)