Skip to content

Commit a4e2118

Browse files
authored
ARM runners for all database setups (#9312)
## What changed? Use only ARM runners for running tests. ## Why? They are faster and cheaper and are available faster. <img width="390" height="249" alt="Screenshot 2026-02-12 at 8 02 58 PM" src="https://github.com/user-attachments/assets/0de5865e-971a-4d7c-8dd1-a57860412f12" /> ## How did you test it? - [ ] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) Tested explicitly on all databases.
1 parent dab5283 commit a4e2118

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
outputs:
3434
job_matrix: ${{ steps.build_matrix.outputs.job_matrix }}
3535
full_test_reason: ${{ steps.determine_scope.outputs.full_test_reason }}
36-
runner_x64: ${{ steps.configure_runners.outputs.runner_x64 }}
3736
runner_arm: ${{ steps.configure_runners.outputs.runner_arm }}
3837
steps:
3938
- name: Checkout Code
@@ -103,17 +102,11 @@ jobs:
103102
run: |
104103
# Use 8-core runners for temporalio org, standard runners for forks
105104
if [[ "${{ github.repository_owner }}" == "temporalio" ]]; then
106-
runner_x64="ubuntu-latest-8-cores"
107105
runner_arm="ubuntu-24.04-arm64-8-cores"
108106
else
109-
runner_x64="ubuntu-latest"
110107
runner_arm="ubuntu-24.04-arm"
111108
fi
112-
113-
{
114-
echo "runner_x64=$runner_x64"
115-
echo "runner_arm=$runner_arm"
116-
} >> "$GITHUB_OUTPUT"
109+
echo "runner_arm=$runner_arm" >> "$GITHUB_OUTPUT"
117110
118111
# Primary DBs always get full tests, extended DBs get smoke tests (1 job) in abridged PRs.
119112
- name: Build job matrix
@@ -125,7 +118,6 @@ jobs:
125118
persistence_type: nosql
126119
persistence_driver: cassandra
127120
containers: [cassandra, elasticsearch]
128-
arch: arm
129121
required: true
130122
cass_es8:
131123
persistence_type: nosql
@@ -143,7 +135,6 @@ jobs:
143135
persistence_type: sql
144136
persistence_driver: sqlite
145137
containers: []
146-
arch: arm
147138
mysql8:
148139
persistence_type: sql
149140
persistence_driver: mysql8
@@ -152,7 +143,6 @@ jobs:
152143
persistence_type: sql
153144
persistence_driver: postgres12
154145
containers: [postgresql]
155-
arch: arm
156146
required: true
157147
postgres12_pgx:
158148
persistence_type: sql
@@ -222,12 +212,9 @@ jobs:
222212
echo "Generated $(jq length <<< "$MATRIX") jobs"
223213
224214
pre-build:
225-
name: Pre-build for cache (${{ matrix.arch }})
215+
name: Pre-build for cache
226216
needs: test-setup
227-
strategy:
228-
matrix:
229-
arch: [x64, arm]
230-
runs-on: ${{ matrix.arch == 'arm' && needs.test-setup.outputs.runner_arm || needs.test-setup.outputs.runner_x64 }}
217+
runs-on: ${{ needs.test-setup.outputs.runner_arm }}
231218
steps:
232219
- uses: actions/checkout@v6
233220
with:
@@ -380,7 +367,7 @@ jobs:
380367
integration-test:
381368
name: Integration test
382369
needs: [pre-build, test-setup]
383-
runs-on: ${{ needs.test-setup.outputs.runner_x64 }}
370+
runs-on: ${{ needs.test-setup.outputs.runner_arm }}
384371
steps:
385372
- uses: actions/checkout@v6
386373
with:
@@ -479,7 +466,7 @@ jobs:
479466
fail-fast: false
480467
matrix:
481468
include: ${{ fromJson(needs.test-setup.outputs.job_matrix) }}
482-
runs-on: ${{ matrix.arch == 'arm' && needs.test-setup.outputs.runner_arm || needs.test-setup.outputs.runner_x64 }}
469+
runs-on: ${{ needs.test-setup.outputs.runner_arm }}
483470
env:
484471
PERSISTENCE_TYPE: ${{ matrix.persistence_type }}
485472
PERSISTENCE_DRIVER: ${{ matrix.persistence_driver }}

develop/github/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ services:
4444
- ES_JAVA_OPTS=-Xms1g -Xmx1g
4545

4646
elasticsearch8:
47-
image: elasticsearch:8.0.0
47+
image: elasticsearch:8.5.0
4848
ports:
4949
- "9200:9200"
5050
environment:

0 commit comments

Comments
 (0)