Skip to content

Commit a0222b8

Browse files
authored
Optimize ARM runners in AKS (openvinotoolkit#27836)
### Details: - Switch Docker images builds to smaller runners - Switch compilation to newer generation of ARM VMs - Switch tests to newer generation of ARM VMs and/or smaller runners, where applicable
1 parent 25d7e7e commit a0222b8

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.github/workflows/debian_10_arm.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
Docker:
5050
needs: Smart_CI
5151
if: "!needs.smart_ci.outputs.skip_workflow"
52-
runs-on: aks-linux-16-cores-arm-docker-build
52+
runs-on: aks-linux-4-cores-8gb-arm-docker-build
5353
container:
5454
image: openvinogithubactions.azurecr.io/docker_build:0.2
5555
volumes:
@@ -75,7 +75,7 @@ jobs:
7575
if: "!needs.smart_ci.outputs.skip_workflow"
7676
uses: ./.github/workflows/job_build_linux.yml
7777
with:
78-
runner: 'aks-linux-16-cores-arm'
78+
runner: 'aks-linux-16-cores-32gb-arm'
7979
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.debian_10_arm }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
8080
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
8181
event-name: ${{ github.event_name }}
@@ -104,7 +104,7 @@ jobs:
104104
needs: [ Docker, Build, Smart_CI ]
105105
uses: ./.github/workflows/job_cxx_unit_tests.yml
106106
with:
107-
runner: 'aks-linux-16-cores-arm'
107+
runner: 'aks-linux-8-cores-16gb-arm'
108108
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.debian_10_arm }}
109109
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
110110
os: 'debian_10'
@@ -116,6 +116,8 @@ jobs:
116116
needs: [ Docker, Build, Smart_CI ]
117117
uses: ./.github/workflows/job_cpu_functional_tests.yml
118118
with:
119+
# Additional investigation needed why CPU functional tests are failing on v6 VM size's version,
120+
# so leave it as it is for now
119121
runner: 'aks-linux-16-cores-arm'
120122
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.debian_10_arm }}
121123
python-version: '3.7'

.github/workflows/linux_arm64.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
Docker:
5454
needs: Smart_CI
5555
if: "!needs.smart_ci.outputs.skip_workflow"
56-
runs-on: aks-linux-16-cores-arm-docker-build
56+
runs-on: aks-linux-4-cores-8gb-arm-docker-build
5757
container:
5858
image: openvinogithubactions.azurecr.io/docker_build:0.2
5959
volumes:
@@ -78,7 +78,7 @@ jobs:
7878
needs: [ Docker, Smart_CI ]
7979
uses: ./.github/workflows/job_build_linux.yml
8080
with:
81-
runner: 'aks-linux-16-cores-arm'
81+
runner: 'aks-linux-16-cores-32gb-arm'
8282
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
8383
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
8484
event-name: ${{ github.event_name }}
@@ -105,15 +105,15 @@ jobs:
105105
if: ${{ 'false' }}
106106
uses: ./.github/workflows/job_debian_packages.yml
107107
with:
108-
runner: 'aks-linux-16-cores-arm'
108+
runner: 'aks-linux-4-cores-8gb-arm'
109109
image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04'
110110

111111
Samples:
112112
needs: [ Build, Docker, Smart_CI ]
113113
if: fromJSON(needs.smart_ci.outputs.affected_components).samples
114114
uses: ./.github/workflows/job_samples_tests.yml
115115
with:
116-
runner: 'aks-linux-16-cores-arm'
116+
runner: 'aks-linux-8-cores-16gb-arm'
117117
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
118118
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
119119

@@ -123,7 +123,7 @@ jobs:
123123
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
124124
uses: ./.github/workflows/job_openvino_js.yml
125125
with:
126-
runner: 'aks-linux-16-cores-arm'
126+
runner: 'aks-linux-4-cores-8gb-arm'
127127
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}"}'
128128

129129
ONNX_Runtime:
@@ -133,7 +133,7 @@ jobs:
133133
needs: [ Build, Smart_CI, Docker ]
134134
uses: ./.github/workflows/job_onnx_runtime.yml
135135
with:
136-
runner: 'aks-linux-16-cores-arm'
136+
runner: 'aks-linux-16-cores-32gb-arm'
137137
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
138138
sccache-azure-key-prefix: 'ubuntu20_aarch64_onnxruntime'
139139

@@ -142,7 +142,7 @@ jobs:
142142
needs: [ Build, Docker, Smart_CI ]
143143
uses: ./.github/workflows/job_tokenizers.yml
144144
with:
145-
runner: 'aks-linux-16-cores-arm'
145+
runner: 'aks-linux-8-cores-16gb-arm'
146146
shell: bash
147147
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
148148
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
@@ -154,7 +154,7 @@ jobs:
154154
needs: [ Build, Docker, Smart_CI ]
155155
uses: ./.github/workflows/job_cxx_unit_tests.yml
156156
with:
157-
runner: 'aks-linux-16-cores-arm'
157+
runner: 'aks-linux-8-cores-16gb-arm'
158158
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
159159
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
160160
os: 'ubuntu_20_04'
@@ -164,7 +164,7 @@ jobs:
164164
needs: [ Build, Docker, Smart_CI ]
165165
uses: ./.github/workflows/job_python_unit_tests.yml
166166
with:
167-
runner: 'aks-linux-16-cores-arm'
167+
runner: 'aks-linux-8-cores-16gb-arm'
168168
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
169169
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
170170
python-version: '3.11'
@@ -174,7 +174,7 @@ jobs:
174174
needs: [ Build, Docker, Smart_CI, Openvino_tokenizers ]
175175
uses: ./.github/workflows/job_tensorflow_layer_tests.yml
176176
with:
177-
runner: 'aks-linux-16-cores-arm'
177+
runner: 'aks-linux-16-cores-32gb-arm'
178178
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
179179
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
180180
python-version: '3.11'
@@ -184,7 +184,7 @@ jobs:
184184
needs: [ Build, Docker, Smart_CI ]
185185
uses: ./.github/workflows/job_pytorch_layer_tests.yml
186186
with:
187-
runner: 'aks-linux-16-cores-arm'
187+
runner: 'aks-linux-16-cores-32gb-arm'
188188
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
189189
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
190190
python-version: '3.11'
@@ -195,6 +195,8 @@ jobs:
195195
needs: [ Build, Docker, Smart_CI ]
196196
uses: ./.github/workflows/job_cpu_functional_tests.yml
197197
with:
198+
# Additional investigation needed why CPU functional tests are failing on v6 VM size's version,
199+
# so leave it as it is for now
198200
runner: 'aks-linux-16-cores-arm'
199201
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}
200202
python-version: '3.11'
@@ -207,7 +209,7 @@ jobs:
207209
needs: [ Build, Docker, Smart_CI, Openvino_tokenizers]
208210
uses: ./.github/workflows/job_tensorflow_models_tests.yml
209211
with:
210-
runner: 'aks-linux-16-cores-arm'
212+
runner: 'aks-linux-16-cores-32gb-arm'
211213
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}"}'
212214
model_scope: 'precommit'
213215

@@ -218,7 +220,7 @@ jobs:
218220
needs: [ Build, Docker, Smart_CI ]
219221
uses: ./.github/workflows/job_pytorch_models_tests.yml
220222
with:
221-
runner: 'aks-linux-16-cores-arm'
223+
runner: 'aks-linux-16-cores-32gb-arm'
222224
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}"}'
223225
model_scope: 'precommit'
224226

0 commit comments

Comments
 (0)