Skip to content

Commit 53a575f

Browse files
chore(ci): reduce runner sizing to 4 core and free tier (vectordotdev#17785)
- In order to reduce CI costs, experiments were run on each of the altered workflows to understand the duration (and thus impact to DX) and changes in cost. - The two cases of concern are what checks are run on each PR commit and in the merge queue: - in the merge queue- there was a trivial change in runtime. This is because the bottleneck workflow is the mac unit test, which takes about 1 hour to run. All runner-size-reduced workflows in this PR that are in the merge queue, still run within that time frame. - on each PR commit- this PR does not affect this case. However, a sister PR (vectordotdev#17724) does, because that PR fundamentally changes the integration test workflow to introduce the runner there, and so in that PR, we reduced to 4 core. That change adds 3 minutes of duration to the integration tests, which is trivial (and integration tests only run on some PR pushes, if that PR touches integrations). - Thus the empirically anticipated outcome is a ~20% reduction in cost with a none-to-trivial increase in duration. --------- Co-authored-by: Spencer Gilbert <[email protected]>
1 parent 248ccb8 commit 53a575f

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.github/workflows/cli.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
test-cli:
8-
runs-on: [linux, ubuntu-20.04-8core]
8+
runs-on: ubuntu-latest
99
env:
1010
CARGO_INCREMENTAL: 0
1111
steps:

.github/workflows/cross.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
cross-linux:
88
name: Cross - ${{ matrix.target }}
9-
runs-on: [linux, ubuntu-20.04-8core]
9+
runs-on: ubuntu-latest
1010
env:
1111
CARGO_INCREMENTAL: 0
1212
strategy:

.github/workflows/integration-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ env:
4040

4141
jobs:
4242
test-integration:
43-
runs-on: [linux, ubuntu-20.04-8core]
44-
timeout-minutes: 30
43+
runs-on: [linux, ubuntu-20.04-4core]
44+
timeout-minutes: 40
4545
if: inputs.if || github.event_name == 'workflow_dispatch'
4646
steps:
4747
- name: (PR comment) Get PR branch

.github/workflows/k8s_e2e.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
build-x86_64-unknown-linux-gnu:
5555
name: Build - x86_64-unknown-linux-gnu
56-
runs-on: [linux, ubuntu-20.04-8core]
56+
runs-on: [linux, ubuntu-20.04-4core]
5757
needs: changes
5858
if: github.event_name != 'pull_request' || needs.changes.outputs.k8s == 'true'
5959
# cargo-deb requires a release build, but we don't need optimizations for tests
@@ -129,7 +129,7 @@ jobs:
129129
# See https://github.community/t/feature-request-and-use-case-example-to-allow-matrix-in-if-s/126067
130130
compute-k8s-test-plan:
131131
name: Compute K8s test plan
132-
runs-on: [linux, ubuntu-20.04-8core]
132+
runs-on: ubuntu-latest
133133
needs: changes
134134
if: github.event_name != 'pull_request' || needs.changes.outputs.k8s == 'true'
135135
outputs:
@@ -190,7 +190,7 @@ jobs:
190190

191191
test-e2e-kubernetes:
192192
name: K8s ${{ matrix.kubernetes_version.version }} / ${{ matrix.container_runtime }} (${{ matrix.kubernetes_version.role }})
193-
runs-on: [linux, ubuntu-20.04-8core]
193+
runs-on: [linux, ubuntu-20.04-4core]
194194
needs:
195195
- build-x86_64-unknown-linux-gnu
196196
- compute-k8s-test-plan

.github/workflows/misc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
test-misc:
8-
runs-on: [linux, ubuntu-20.04-8core]
8+
runs-on: [linux, ubuntu-20.04-4core]
99
env:
1010
CARGO_INCREMENTAL: 0
1111
steps:

.github/workflows/msrv.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313

1414
jobs:
1515
check-msrv:
16-
runs-on: [ubuntu-20.04]
16+
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v3
1919
with:

.github/workflows/regression.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ jobs:
283283

284284
build-baseline:
285285
name: Build baseline Vector container
286-
runs-on: [linux, ubuntu-20.04-8core]
286+
runs-on: [linux, ubuntu-20.04-4core]
287287
needs:
288288
- compute-metadata
289289
steps:
@@ -323,7 +323,7 @@ jobs:
323323

324324
build-comparison:
325325
name: Build comparison Vector container
326-
runs-on: [linux, soak-builder]
326+
runs-on: [linux, ubuntu-20.04-4core]
327327
needs:
328328
- compute-metadata
329329
steps:

0 commit comments

Comments
 (0)