Skip to content

Commit c53d0f0

Browse files
committed
use gh run download for win
1 parent 268b02c commit c53d0f0

9 files changed

+240
-191
lines changed

.github/scripts/workflow_rerun/errors_to_look_for.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,9 @@
138138
{
139139
"error_text": "OperationStopped:",
140140
"ticket": 171334
141+
},
142+
{
143+
"error_text": "error writing zip archive",
144+
"ticket": 172303
141145
}
142146
]

.github/workflows/job_cxx_unit_tests.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,29 @@ jobs:
5151
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
5252
SOURCE_COMMAND: ${{ contains(inputs.runner, 'linux') && 'source' || '.' }}
5353
SETUPVARS: ${{ github.workspace }}/install/${{ contains(inputs.runner, 'win') && 'setupvars.ps1' || 'setupvars.sh' }}
54+
GH_DEBUG: 1
5455
steps:
55-
- name: Download OpenVINO artifacts (package)
56-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
57-
with:
58-
name: openvino_package
59-
path: ${{ env.INSTALL_DIR }}
60-
61-
- name: Download OpenVINO artifacts (tests)
62-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
63-
with:
64-
name: openvino_tests
65-
path: ${{ env.INSTALL_DIR }}
66-
67-
- name: Install OpenVINO dependencies (mac)
68-
if: runner.os == 'macOS'
69-
run: brew install pigz
56+
- name: Install GH CLI
57+
if: runner.os == 'Windows'
58+
run: choco install gh
59+
60+
- name: Download and extract OpenVINO artifacts (tarballs) (Win)
61+
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
62+
if: runner.os == 'Windows'
63+
with:
64+
timeout_minutes: 5
65+
max_attempts: 2
66+
command: |
67+
# Add `gh` to PATH
68+
$env:GH_TOKEN = "${{ github.token }}"
69+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
70+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_package --dir ${{ env.INSTALL_DIR }} && `
71+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_tests --dir ${{ env.INSTALL_DIR }}
72+
73+
pushd ${{ env.INSTALL_DIR }}
74+
Expand-Archive openvino_package.zip -DestinationPath . -Verbose
75+
Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
76+
popd
7077
7178
- name: Extract OpenVINO packages (Unix)
7279
if: ${{ runner.os != 'Windows' }}
@@ -75,13 +82,6 @@ jobs:
7582
pigz -dc openvino_tests.tar.gz | tar -xf - -v
7683
working-directory: ${{ env.INSTALL_DIR }}
7784

78-
- name: Extract OpenVINO packages (Windows)
79-
if: ${{ runner.os == 'Windows' }}
80-
run: |
81-
Expand-Archive openvino_package.zip -DestinationPath . -Verbose
82-
Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
83-
working-directory: ${{ env.INSTALL_DIR }}
84-
8585
#
8686
# Tests
8787
#

.github/workflows/job_jax_layer_tests.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,26 @@ jobs:
5959
sparse-checkout-cone-mode: false
6060
submodules: 'false'
6161

62-
- name: Download OpenVINO artifacts (wheels)
63-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
64-
with:
65-
name: openvino_wheels
66-
path: ${{ env.INSTALL_DIR }}
67-
68-
- name: Download OpenVINO artifacts (tests)
69-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
70-
with:
71-
name: openvino_tests
72-
path: ${{ env.INSTALL_DIR }}
62+
- name: Install GH CLI
63+
if: runner.os == 'Windows'
64+
run: choco install gh
65+
66+
- name: Download and extract OpenVINO artifacts (tarballs) (Win)
67+
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
68+
if: runner.os == 'Windows'
69+
with:
70+
timeout_minutes: 5
71+
max_attempts: 2
72+
command: |
73+
# Add `gh` to PATH
74+
$env:GH_TOKEN = "${{ github.token }}"
75+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
76+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_wheels --dir ${{ env.INSTALL_DIR }} && `
77+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_tests --dir ${{ env.INSTALL_DIR }}
78+
79+
pushd ${{ env.INSTALL_DIR }}
80+
Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
81+
popd
7382
7483
- name: Setup Variables
7584
run: |
@@ -84,11 +93,6 @@ jobs:
8493
run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
8594
working-directory: ${{ env.INSTALL_DIR }}
8695

87-
- name: Extract OpenVINO artifacts (Windows)
88-
if: runner.os == 'Windows'
89-
run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
90-
working-directory: ${{ env.INSTALL_DIR }}
91-
9296
- name: Setup Python ${{ inputs.python-version }}
9397
uses: ./.github/actions/setup_python
9498
with:

.github/workflows/job_pytorch_fx_layer_tests.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ jobs:
4747
INSTALL_DIR: ${{ github.workspace }}/install
4848
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
4949
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
50+
GH_DEBUG: 1
5051
steps:
52+
- name: Install GH CLI
53+
if: runner.os == 'Windows'
54+
run: choco install gh
55+
5156
- name: Fetch setup_python and install wheels actions
5257
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5358
timeout-minutes: 15
@@ -56,18 +61,23 @@ jobs:
5661
.github/actions
5762
sparse-checkout-cone-mode: false
5863
submodules: 'false'
59-
60-
- name: Download OpenVINO artifacts (wheels)
61-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
62-
with:
63-
name: openvino_wheels
64-
path: ${{ env.INSTALL_DIR }}
6564

66-
- name: Download OpenVINO artifacts (tests)
67-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
68-
with:
69-
name: openvino_tests
70-
path: ${{ env.INSTALL_DIR }}
65+
- name: Download and extract OpenVINO artifacts (tarballs) (Win)
66+
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
67+
if: runner.os == 'Windows'
68+
with:
69+
timeout_minutes: 5
70+
max_attempts: 2
71+
command: |
72+
# Add `gh` to PATH
73+
$env:GH_TOKEN = "${{ github.token }}"
74+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
75+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_wheels --dir ${{ env.INSTALL_DIR }} && `
76+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_tests --dir ${{ env.INSTALL_DIR }}
77+
78+
pushd ${{ env.INSTALL_DIR }}
79+
Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
80+
popd
7181
7282
- name: Setup HuggingFace Cache Directory (Windows)
7383
if: runner.os == 'Windows'
@@ -82,11 +92,6 @@ jobs:
8292
run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
8393
working-directory: ${{ env.INSTALL_DIR }}
8494

85-
- name: Extract OpenVINO artifacts (Windows)
86-
if: runner.os == 'Windows'
87-
run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
88-
working-directory: ${{ env.INSTALL_DIR }}
89-
9095
- name: Setup Python ${{ inputs.python-version }}
9196
uses: ./.github/actions/setup_python
9297
with:

.github/workflows/job_pytorch_layer_tests.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ jobs:
4747
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
4848
LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
4949
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
50+
GH_DEBUG: 1
5051
steps:
52+
- name: Install GH CLI
53+
if: runner.os == 'Windows'
54+
run: choco install gh
55+
5156
- name: Fetch setup_python and install wheels actions
5257
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5358
timeout-minutes: 15
@@ -56,18 +61,23 @@ jobs:
5661
.github/actions
5762
sparse-checkout-cone-mode: false
5863
submodules: 'false'
59-
60-
- name: Download OpenVINO artifacts (wheels)
61-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
62-
with:
63-
name: openvino_wheels
64-
path: ${{ env.INSTALL_DIR }}
65-
66-
- name: Download OpenVINO artifacts (tests)
67-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
68-
with:
69-
name: openvino_tests
70-
path: ${{ env.INSTALL_DIR }}
64+
65+
- name: Download and extract OpenVINO artifacts (tarballs) (Win)
66+
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
67+
if: runner.os == 'Windows'
68+
with:
69+
timeout_minutes: 5
70+
max_attempts: 2
71+
command: |
72+
# Add `gh` to PATH
73+
$env:GH_TOKEN = "${{ github.token }}"
74+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
75+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_wheels --dir ${{ env.INSTALL_DIR }} && `
76+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_tests --dir ${{ env.INSTALL_DIR }}
77+
78+
pushd ${{ env.INSTALL_DIR }}
79+
Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
80+
popd
7181
7282
- name: Setup Variables
7383
run: |
@@ -82,11 +92,6 @@ jobs:
8292
run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
8393
working-directory: ${{ env.INSTALL_DIR }}
8494

85-
- name: Extract OpenVINO artifacts (Windows)
86-
if: runner.os == 'Windows'
87-
run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
88-
working-directory: ${{ env.INSTALL_DIR }}
89-
9095
- name: Setup Python ${{ inputs.python-version }}
9196
uses: ./.github/actions/setup_python
9297
with:

.github/workflows/job_tensorflow_layer_tests.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ jobs:
4949
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
5050
USE_SYSTEM_CACHE: False # Using remote HuggingFace cache
5151
steps:
52+
- name: Install GH CLI
53+
if: runner.os == 'Windows'
54+
run: choco install gh
55+
5256
- name: Fetch custom actions
5357
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5458
timeout-minutes: 15
@@ -57,24 +61,24 @@ jobs:
5761
.github/actions
5862
sparse-checkout-cone-mode: false
5963
submodules: 'false'
60-
61-
- name: Download OpenVINO artifacts (wheels)
62-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
63-
with:
64-
name: openvino_wheels
65-
path: ${{ env.INSTALL_DIR }}
66-
67-
- name: Download OpenVINO artifacts (tests)
68-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
69-
with:
70-
name: openvino_tests
71-
path: ${{ env.INSTALL_DIR }}
7264

73-
- name: Download OpenVINO artifacts (tokenizers_wheel)
74-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
75-
with:
76-
name: openvino_tokenizers_wheel
77-
path: ${{ env.INSTALL_DIR }}
65+
- name: Download and extract OpenVINO artifacts (tarballs, wheels, tokenizers) (Win)
66+
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
67+
if: runner.os == 'Windows'
68+
with:
69+
timeout_minutes: 5
70+
max_attempts: 2
71+
command: |
72+
# Add `gh` to PATH
73+
$env:GH_TOKEN = "${{ github.token }}"
74+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
75+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_wheels --dir ${{ env.INSTALL_DIR }} && `
76+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_tokenizers_wheel --dir ${{ env.INSTALL_DIR }} && `
77+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_tests --dir ${{ env.INSTALL_DIR }}
78+
79+
pushd ${{ env.INSTALL_DIR }}
80+
Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
81+
popd
7882
7983
- name: Setup Variables
8084
run: |
@@ -89,11 +93,6 @@ jobs:
8993
run: pigz -dc openvino_tests.tar.gz | tar -xf - -v
9094
working-directory: ${{ env.INSTALL_DIR }}
9195

92-
- name: Extract OpenVINO artifacts (Windows)
93-
if: ${{ runner.os == 'Windows' }}
94-
run: Expand-Archive openvino_tests.zip -DestinationPath . -Verbose
95-
working-directory: ${{ env.INSTALL_DIR }}
96-
9796
- name: Setup Python ${{ inputs.python-version }}
9897
uses: ./.github/actions/setup_python
9998
with:

.github/workflows/job_tokenizers.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ jobs:
5454
INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
5555
OPENVINO_TOKENIZERS_REPO: ${{ github.workspace }}/openvino_tokenizers
5656
EXTENSION_BUILD_DIR: ${{ github.workspace }}/build
57-
57+
GH_DEBUG: 1
5858
steps:
59+
- name: Install GH CLI
60+
if: runner.os == 'Windows'
61+
run: choco install gh
62+
5963
- name: checkout actions
6064
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6165
timeout-minutes: 15

.github/workflows/windows_conditional_compilation.yml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ jobs:
331331
BUILD_DIR: "${{ github.workspace }}\\openvino_build"
332332
MODELS_PATH: "${{ github.workspace }}\\testdata"
333333
SELECTIVE_BUILD_STAT_DIR: "${{ github.workspace }}\\selective_build_stat"
334+
GH_DEBUG: 1
334335
if: "!needs.smart_ci.outputs.skip_workflow"
335336

336337
steps:
@@ -350,14 +351,29 @@ jobs:
350351
lfs: 'true'
351352
ref: ${{ env.TARGET_BRANCH }}
352353

353-
- name: Download selective build statistics package
354-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
355-
with:
356-
name: openvino_selective_build_stat
357-
path: ${{ env.SELECTIVE_BUILD_STAT_DIR }}
354+
- name: Install GH CLI
355+
run: choco install gh
358356

359-
- name: Extract selective build statistics package
360-
run: Expand-Archive ${{ env.SELECTIVE_BUILD_STAT_DIR }}/openvino_selective_build_stat.zip -DestinationPath "${{ env.SELECTIVE_BUILD_STAT_DIR }}"
357+
- name: Download and extract selective build statistics package
358+
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
359+
with:
360+
timeout_minutes: 5
361+
max_attempts: 2
362+
command: |
363+
# Add `gh` to PATH
364+
$env:GH_TOKEN = "${{ github.token }}"
365+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
366+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_selective_build_stat --dir ${{ env.SELECTIVE_BUILD_STAT_DIR }}
367+
368+
Expand-Archive ${{ env.SELECTIVE_BUILD_STAT_DIR }}/openvino_selective_build_stat.zip -DestinationPath "${{ env.SELECTIVE_BUILD_STAT_DIR }}"
369+
370+
- name: Download selective build statistics package
371+
run: |
372+
# Add `gh` to PATH
373+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
374+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_selective_build_stat --dir ${{ env.SELECTIVE_BUILD_STAT_DIR }}
375+
env:
376+
GH_TOKEN: ${{ github.token }}
361377

362378
- name: Setup Python ${{ env.PYTHON_VERSION }}
363379
uses: ./openvino/.github/actions/setup_python
@@ -411,17 +427,25 @@ jobs:
411427
INSTALL_TEST_DIR: "${{ github.workspace }}\\tests_install"
412428
PARALLEL_TEST_SCRIPT: "${{ github.workspace }}\\tests_install\\layer_tests_summary\\run_parallel.py"
413429
PARALLEL_TEST_CACHE: "${{ github.workspace }}\\tests_install\\test_cache.lst"
430+
GH_DEBUG: 1
414431
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
415432

416433
steps:
417-
- name: Download OpenVINO tests package
418-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
419-
with:
420-
name: openvino_tests
421-
path: ${{ env.INSTALL_TEST_DIR }}
422-
423-
- name: Extract OpenVINO tests package
424-
run: Expand-Archive ${{ env.INSTALL_TEST_DIR }}/openvino_tests.zip -DestinationPath "${{ env.INSTALL_TEST_DIR }}"
434+
- name: Install GH CLI
435+
run: choco install gh
436+
437+
- name: Download and extract OpenVINO tests package
438+
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
439+
with:
440+
timeout_minutes: 5
441+
max_attempts: 2
442+
command: |
443+
# Add `gh` to PATH
444+
$env:GH_TOKEN = "${{ github.token }}"
445+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
446+
gh run download "$env:GITHUB_RUN_ID" --repo "$env:GITHUB_REPOSITORY" -n openvino_tests --dir ${{ env.INSTALL_TEST_DIR }}
447+
448+
Expand-Archive ${{ env.INSTALL_TEST_DIR }}/openvino_tests.zip -DestinationPath "${{ env.INSTALL_TEST_DIR }}"
425449
426450
- name: Fetch setup_python action
427451
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)