Skip to content

Commit e4b55ef

Browse files
authored
Using runners with less RAM where possible (#33127)
### Details: Tests on `aks-linux-8-cores-64gb` self-hosted runners don't consume that much memory, metrics and my tests (#32993) show it. Switching them to 32 GB RAM runners to optimize costs. Windows Debug builds are also not limited by the amount of RAM, unlike Windows Conditional Compilation builds). In my measurements the duration increase was negligible (within 2 minutes), so switching them to lower RAM runner version as well. CC_Build job in Windows Conditional Compilation workflow runs perfectly fine on standard Windows build runner (aks-win-16-cores-32gb-build), although it takes 5 minutes longer, it's not a big deal, because CPU Functional Tests job runs in parallel with it and takes around 40 minutes.
1 parent 28775eb commit e4b55ef

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

.github/workflows/job_build_windows.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
runs-on: ${{ inputs.runner }}
4444
env:
4545
CMAKE_BUILD_TYPE: ${{ inputs.build-type }}
46-
CMAKE_CXX_COMPILER_LAUNCHER: ccache
47-
CMAKE_C_COMPILER_LAUNCHER: ccache
46+
CMAKE_CXX_COMPILER_LAUNCHER: ${{ inputs.build-type != 'Debug' && 'ccache' || '' }}
47+
CMAKE_C_COMPILER_LAUNCHER: ${{ inputs.build-type != 'Debug' && 'ccache' || '' }}
4848
CCACHE_REMOTE_DIR: C:\\mount\\caches\\ccache\\windows2022_x86_64_${{ inputs.build-type }}\\${{ inputs.target-branch }}
4949
CCACHE_DIR: ${{ github.workspace }}\\ccache
5050
CCACHE_MAXSIZE: 3G
@@ -84,7 +84,7 @@ jobs:
8484
pip-cache-path: ${{ env.PIP_CACHE_PATH }}
8585
should-setup-pip-paths: 'true'
8686
self-hosted-runner: 'true'
87-
87+
8888
- name: Setup NodeJS
8989
if: ${{ fromJSON(inputs.affected-components).JS_API }}
9090
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
@@ -137,6 +137,7 @@ jobs:
137137
python3 -m pip install certifi
138138
139139
- name: Download and install ccache
140+
if: ${{ inputs.build-type != 'Debug' }}
140141
run: |
141142
Invoke-WebRequest -Uri 'https://github.com/ccache/ccache/releases/download/v4.9.1/ccache-4.9.1-windows-x86_64.zip' -OutFile 'ccache.zip'
142143
Expand-Archive -Path 'ccache.zip' -DestinationPath 'C:\temp\ccache'
@@ -156,6 +157,7 @@ jobs:
156157

157158
- name: Setup ccache
158159
uses: ./openvino/.github/actions/cache
160+
if: ${{ inputs.build-type != 'Debug' }}
159161
with:
160162
save-always: ${{ github.event_name == 'push' && 'true' || 'false' }}
161163
cleanup-always: ${{ github.event_name == 'push' && 'true' || 'false' }}
@@ -183,12 +185,14 @@ jobs:
183185
Invoke-Expression $cmakeCommand
184186
185187
- name: Clean ccache stats
188+
if: ${{ inputs.build-type != 'Debug' }}
186189
run: '& ccache --zero-stats'
187190

188191
- name: Cmake build - OpenVINO
189192
run: cmake --build ${{ env.BUILD_DIR }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel $ENV:NUMBER_OF_PROCESSORS --verbose
190193

191194
- name: Show ccache stats
195+
if: ${{ inputs.build-type != 'Debug' }}
192196
run: '& ccache --show-stats'
193197

194198
- name: Cmake install - OpenVINO
@@ -274,7 +278,7 @@ jobs:
274278
DestinationPath = "${{ env.BUILD_DIR }}/developer_package.zip"
275279
}
276280
Compress-Archive @compress
277-
281+
278282
$file=Get-ChildItem -Path "${{ env.INSTALL_TEST_DIR }}"
279283
$compress = @{
280284
Path = $file
@@ -320,7 +324,7 @@ jobs:
320324
DestinationPath = "${{ env.BUILD_DIR }}/openvino_js_package.zip"
321325
}
322326
Compress-Archive @compress
323-
327+
324328
- name: Pack openvino_node_npm_package
325329
if: ${{ fromJSON(inputs.affected-components).JS_API }}
326330
run: |
@@ -368,7 +372,7 @@ jobs:
368372
name: openvino_tests
369373
path: ${{ env.BUILD_DIR }}/openvino_tests.zip
370374
if-no-files-found: 'error'
371-
375+
372376
- name: Upload OpenVINO developer package
373377
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
374378
with:

.github/workflows/ubuntu_22.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ jobs:
414414
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
415415
uses: ./.github/workflows/job_tensorflow_models_tests.yml
416416
with:
417-
runner: 'aks-linux-8-cores-64gb'
417+
runner: 'aks-linux-8-cores-32gb'
418418
model_scope: 'nightly_tf_hub'
419419
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
420420

@@ -424,7 +424,7 @@ jobs:
424424
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
425425
uses: ./.github/workflows/job_tensorflow_models_tests.yml
426426
with:
427-
runner: 'aks-linux-8-cores-64gb'
427+
runner: 'aks-linux-8-cores-32gb'
428428
model_scope: 'nightly_hf'
429429
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
430430

@@ -434,7 +434,7 @@ jobs:
434434
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
435435
uses: ./.github/workflows/job_pytorch_models_tests.yml
436436
with:
437-
runner: 'aks-linux-8-cores-64gb'
437+
runner: 'aks-linux-8-cores-32gb'
438438
model_scope: 'precommit'
439439
image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
440440

.github/workflows/windows_conditional_compilation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ jobs:
330330
defaults:
331331
run:
332332
shell: pwsh
333-
runs-on: aks-win-32-cores-128gb-build
333+
runs-on: aks-win-16-cores-32gb-build
334334
env:
335335
CMAKE_BUILD_TYPE: 'Release'
336336
CMAKE_TOOLCHAIN_FILE: "${{ github.workspace }}\\openvino\\cmake\\toolchains\\onecoreuap.toolchain.cmake"

.github/workflows/windows_vs2022_debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
if: "!needs.smart_ci.outputs.skip_workflow"
6666
uses: ./.github/workflows/job_build_windows.yml
6767
with:
68-
runner: 'aks-win-32-cores-128gb-build'
68+
runner: 'aks-win-32-cores-64gb-build'
6969
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
7070
build-type: 'Debug'
7171
target-branch: ${{ needs.smart_ci.outputs.target_branch }}

0 commit comments

Comments
 (0)