Skip to content

Commit 5ad52b1

Browse files
authored
Update GitHub Actions runner selection (#24537)
* Update GitHub Actions runner selection - Use RunsOn runners for our Open build - Add RunsOn config file - Switch to ubuntu-slim for small and fast jobs * Use runs-on.yml file in graylog-project-internal instead * Fix typo * Add Node.JS memory settings
1 parent e504f2f commit 5ad52b1

File tree

9 files changed

+20
-11
lines changed

9 files changed

+20
-11
lines changed

.github/runs-on.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# See https://github.com/Graylog2/graylog-project-internal/blob/main/.github/runs-on.yml
2+
# for the shared configuration file.
3+
_extends: "graylog-project-internal"

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ env:
3535
jobs:
3636
build-artifacts:
3737
name: "Artifacts"
38-
runs-on: "${{ vars.RUNNER_4_CORE }}"
38+
runs-on: "runs-on=${{ github.run_id }}-build-artifacts/runner=ubuntu-4-core"
3939

4040
steps:
4141
- uses: "actions/checkout@v5"
@@ -48,10 +48,12 @@ jobs:
4848

4949
- name: "Build with Maven"
5050
run: "./mvnw -Pedantic clean -Dspotbugs.skip -DskipTests package javadoc:javadoc"
51+
env:
52+
NODE_OPTIONS: "--max-old-space-size=8192"
5153

5254
frontend-tests:
5355
name: "Frontend Tests"
54-
runs-on: "${{ vars.RUNNER_4_CORE }}"
56+
runs-on: "runs-on=${{ github.run_id }}-frontend-tests/runner=ubuntu-4-core"
5557

5658
steps:
5759
- uses: "actions/checkout@v5"
@@ -64,10 +66,12 @@ jobs:
6466

6567
- name: "Build with Maven"
6668
run: "./mvnw -Pedantic -Dspotbugs.skip -Dmaven.test.skip -Dskip.datanode -Dcyclonedx.skip clean test"
69+
env:
70+
NODE_OPTIONS: "--max-old-space-size=8192"
6771

6872
backend-tests:
6973
name: "Backend Tests"
70-
runs-on: "${{ vars.RUNNER_4_CORE }}"
74+
runs-on: "runs-on=${{ github.run_id }}-backend-tests/runner=ubuntu-4-core"
7175

7276
steps:
7377
- uses: "actions/checkout@v5"
@@ -83,7 +87,7 @@ jobs:
8387

8488
full-backend-tests:
8589
name: "Full Backend Tests"
86-
runs-on: "${{ vars.RUNNER_4_CORE }}"
90+
runs-on: "runs-on=${{ github.run_id }}-full-backend-tests/runner=ubuntu-4-core"
8791

8892
strategy:
8993
fail-fast: false
@@ -121,3 +125,5 @@ jobs:
121125
-Dtest.integration.search-server.distribution=${{ matrix.service.search-server-distribution || '' }}
122126
-Dtest.integration.search-server.version=${{ matrix.service.search-server-version || '' }}
123127
-Dtest.integration.mongodb.version=${{ matrix.service.mongodb-version || '' }}
128+
env:
129+
NODE_OPTIONS: "--max-old-space-size=8192"

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
test:
1313
name: "Check Changelog presence"
14-
runs-on: "ubuntu-latest"
14+
runs-on: "ubuntu-slim"
1515

1616
steps:
1717
- uses: "Graylog2/actions/changelog-check@main"

.github/workflows/dispatch-main-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
jobs:
1212
dispatchedMainBuild:
1313
name: Dispatch build
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-slim
1515

1616
steps:
1717
# TODO remove later

.github/workflows/dispatch-pr-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
dispatchedPR:
1818
name: Dispatch wait and check
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-slim
2020

2121
steps:
2222
- name: Check if PR edit changed deps string

.github/workflows/no-response.yml

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

1212
jobs:
1313
noResponse:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-slim
1515
steps:
1616
- uses: lee-dohm/no-response@v0.5.0
1717
with:

.github/workflows/notify-upgrade-notes.yml

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

1616
jobs:
1717
notify:
18-
runs-on: "ubuntu-latest"
18+
runs-on: "ubuntu-slim"
1919

2020
steps:
2121
- name: "Send Slack message"

.github/workflows/update-browserslist-db.yml

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

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-slim
1212
defaults:
1313
run:
1414
working-directory: graylog2-web-interface

.github/workflows/updating-lockfile.yml

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

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-slim
1212
defaults:
1313
run:
1414
working-directory: graylog2-web-interface

0 commit comments

Comments
 (0)