OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA] Cleaning up after `Content-Type: Unknown` error troubleshooting on Windows (#35498)
Andrey Babushkin4ca87ea9dd8a
diff --git a/.github/actions/setup_python/action.yml b/.github/actions/setup_python/action.ymlindex 6a8b446ef99..aadd6a7e26b 100644--- a/.github/actions/setup_python/action.yml+++ b/.github/actions/setup_python/action.yml@@ -65,10 +65,3 @@ runs:$pipVersion = python3 -c "import pip; print(pip.__version__)"Write-Host "Using pip version: $pipVersion""PIP_CACHE_DIR=${{ inputs.pip-cache-path }}/$pipVersion" >> $env:GITHUB_ENV-- # See PR #34185 for details, this is just for debug purposes and will be reverted- - if: ${{ runner.os == 'Windows' }}- name: Set PIP_INSTALL_COMMAND variable for Windows- shell: pwsh- run: |- "PIP_INSTALL_COMMAND=python3 c:/pip_diag.py install" >> $env:GITHUB_ENVdiff --git a/.github/workflows/job_jax_layer_tests.yml b/.github/workflows/job_jax_layer_tests.ymlindex 9fb7856cf98..adbb8d54f4d 100644--- a/.github/workflows/job_jax_layer_tests.yml+++ b/.github/workflows/job_jax_layer_tests.yml@@ -77,7 +77,6 @@ jobs:run: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"echo "HUGGINGFACE_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"- echo "PIP_INSTALL_COMMAND=python3 -m pip install" >> "$GITHUB_ENV" # Linux and MacOS only, and just for debug purposes, will be reverted, see PR #34185- name: Install OpenVINO dependencies (mac)if: runner.os == 'macOS'@@ -110,7 +109,7 @@ jobs:- name: Install JAX Layer tests dependenciesrun: |# jax test requirements- ${{ env.PIP_INSTALL_COMMAND }} -r ${{ env.INSTALL_TEST_DIR }}/requirements_jax+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_jax- name: JAX Layer Testsif: ${{ fromJSON(inputs.affected-components).JAX_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287, 142196diff --git a/.github/workflows/job_python_unit_tests.yml b/.github/workflows/job_python_unit_tests.ymlindex 97ee30f31d0..245a0aa73e3 100644--- a/.github/workflows/job_python_unit_tests.yml+++ b/.github/workflows/job_python_unit_tests.yml@@ -88,28 +88,24 @@ jobs:wheels-dir-path: ${{ env.INSTALL_DIR }}wheels-to-install: 'openvino'- - name: Setup Variables- run: |- echo "PIP_INSTALL_COMMAND=python3 -m pip install" >> "$GITHUB_ENV" # Linux and MacOS only, and just for debug purposes, will be reverted, see PR #34185-- name: Install Python API tests dependenciesrun: |# To enable pytest parallel features- ${{ env.PIP_INSTALL_COMMAND }} pytest-xdist[psutil]- ${{ env.PIP_INSTALL_COMMAND }} -r ${INSTALL_TEST_DIR}/bindings/python/requirements_test.txt+ python3 -m pip install pytest-xdist[psutil]+ python3 -m pip install -r ${INSTALL_TEST_DIR}/bindings/python/requirements_test.txt- name: Install Python Layer tests dependencies and for OVC unit testsrun: |# For torchvision to OpenVINO preprocessing converter- ${{ env.PIP_INSTALL_COMMAND }} -r ${INSTALL_TEST_DIR}/python/preprocess/torchvision/requirements.txt+ python3 -m pip install -r ${INSTALL_TEST_DIR}/python/preprocess/torchvision/requirements.txt# layer test requirements- ${{ env.PIP_INSTALL_COMMAND }} -r ${INSTALL_TEST_DIR}/layer_tests/requirements.txt+ python3 -m pip install -r ${INSTALL_TEST_DIR}/layer_tests/requirements.txt- name: Install ONNX tests dependenciesrun: |# ONNX tests requirements- ${{ env.PIP_INSTALL_COMMAND }} -r ${INSTALL_TEST_DIR}/requirements_onnx+ python3 -m pip install -r ${INSTALL_TEST_DIR}/requirements_onnx## Testsdiff --git a/.github/workflows/job_pytorch_fx_layer_tests.yml b/.github/workflows/job_pytorch_fx_layer_tests.ymlindex 68bc3edc6eb..978c7fde5c1 100644--- a/.github/workflows/job_pytorch_fx_layer_tests.yml+++ b/.github/workflows/job_pytorch_fx_layer_tests.yml@@ -77,10 +77,6 @@ jobs:Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"Add-Content -Path $env:GITHUB_ENV -Value "HUGGINGFACE_HUB_CACHE=C:\\mount\\caches\\huggingface"- - name: Setup Variables- run: |- echo "PIP_INSTALL_COMMAND=python3 -m pip install" >> "$GITHUB_ENV" # Linux and MacOS only, and just for debug purposes, will be reverted, see PR #34185-- name: Install OpenVINO dependencies (mac)if: runner.os == 'macOS'run: brew install pigz@@ -112,7 +108,7 @@ jobs:- name: Install Pytorch FX Layer tests dependenciesrun: |# pytorch test requirements- ${{ env.PIP_INSTALL_COMMAND }} -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch- name: PyTorch torch.compile TORCHFX Layer Testsif: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.os != 'macOS' && runner.arch != 'ARM64' && runner.os != 'Windows' }} # Ticket: 126287diff --git a/.github/workflows/job_pytorch_layer_tests.yml b/.github/workflows/job_pytorch_layer_tests.ymlindex 414c988bfc4..6fbaa0826f2 100644--- a/.github/workflows/job_pytorch_layer_tests.yml+++ b/.github/workflows/job_pytorch_layer_tests.yml@@ -77,7 +77,6 @@ jobs:run: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"echo "HUGGINGFACE_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"- echo "PIP_INSTALL_COMMAND=python3 -m pip install" >> "$GITHUB_ENV" # Linux and MacOS only, and just for debug purposes, will be reverted, see PR #34185- name: Install OpenVINO dependencies (mac)if: runner.os == 'macOS'@@ -111,14 +110,14 @@ jobs:if: runner.os == 'Windows'env:PIP_INDEX_URL: "http://pip-proxy.pip-proxy.svc.cluster.local/simple/"- PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"- run: ${{ env.PIP_INSTALL_COMMAND }} --no-cache-dir -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch+ PIP_TRUSTED_HOST: "pip-proxy.pip-proxy.svc.cluster.local"+ run: python3 -m pip install --no-cache-dir -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch- name: Install Pytorch Layer tests dependenciesif: runner.os != 'Windows'run: |# pytorch test requirements- ${{ env.PIP_INSTALL_COMMAND }} -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch- name: PyTorch Layer Testsif: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287, 142196diff --git a/.github/workflows/job_tensorflow_layer_tests.yml b/.github/workflows/job_tensorflow_layer_tests.ymlindex 4fd90495711..dbb0d6d563b 100644--- a/.github/workflows/job_tensorflow_layer_tests.yml+++ b/.github/workflows/job_tensorflow_layer_tests.yml@@ -82,7 +82,6 @@ jobs:run: |echo "HF_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"echo "HUGGINGFACE_HUB_CACHE=${{ runner.os == 'Linux' && env.HF_HUB_CACHE_LIN || env.HF_HUB_CACHE_WIN }}" >> "$GITHUB_ENV"- echo "PIP_INSTALL_COMMAND=python3 -m pip install" >> "$GITHUB_ENV" # Linux and MacOS only, and just for debug purposes, will be reverted, see PR #34185- name: Install OpenVINO dependencies (mac)if: ${{ runner.os == 'macOS' }}@@ -115,7 +114,7 @@ jobs:- name: Install Python Layer tests dependenciesrun: |# tensorflow test requirements- ${{ env.PIP_INSTALL_COMMAND }} -r ${{ env.INSTALL_TEST_DIR }}/requirements_tensorflow+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_tensorflow- name: TensorFlow 1 Layer Tests - TF FEif: ${{ fromJSON(inputs.affected-components).TF_FE.test }}diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.ymlindex b5e783e55e9..c2b3dc06c95 100644--- a/.github/workflows/windows_conditional_compilation.yml+++ b/.github/workflows/windows_conditional_compilation.yml@@ -360,13 +360,6 @@ jobs:should-setup-pip-paths: 'false'self-hosted-runner: 'false'- - name: Install Python's certifi for newer ca-certificates bundle for wget- run: |- python3 c:/pip_diag.py install certifi-- - name: Set SSL_CERT_FILE for model downloading for unit tests- run: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV-- name: CMake configure - CC ONrun: |cmake `diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.ymlindex b1ab9e3a4f3..913ea6d34ad 100644--- a/.github/workflows/windows_vs2022_release.yml+++ b/.github/workflows/windows_vs2022_release.yml@@ -161,7 +161,7 @@ jobs:- name: Samples testsrun: |- python3 c:/pip_diag.py install --ignore-installed PyYAML -r ./tests/smoke_tests/requirements.txt+ python3 -m pip install --ignore-installed PyYAML -r ./tests/smoke_tests/requirements.txt. "./setupvars.ps1"$Env:PYTHONCOERCECLOCALE="warn"python3 -bb -W error -X dev -X warn_default_encoding -m pytest ./tests/smoke_tests --numprocesses auto@@ -330,25 +330,25 @@ jobs:- name: Install Python API tests dependenciesrun: |# To enable pytest parallel features- python3 c:/pip_diag.py install pytest-xdist[psutil]+ python3 -m pip install pytest-xdist[psutil]# For torchvision to OpenVINO preprocessing converter- python3 c:/pip_diag.py install -r ${{ env.INSTALL_TEST_DIR }}/python/preprocess/torchvision/requirements.txt+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/python/preprocess/torchvision/requirements.txt# For validation of Python API- python3 c:/pip_diag.py install -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt# ONNX tests requirements- python3 c:/pip_diag.py install -r ${{ env.INSTALL_TEST_DIR }}/requirements_onnx+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_onnx# For getting rid of SSL issues during model downloading for unit tests- python3 c:/pip_diag.py install certifi+ python3 -m pip install certifi- name: Set SSL_CERT_FILE for model downloading for unit testsrun: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV- name: Install Python Layer tests dependencies- run: python3 c:/pip_diag.py install -r ${{ env.LAYER_TESTS_INSTALL_DIR }}/requirements.txt+ run: python3 -m pip install -r ${{ env.LAYER_TESTS_INSTALL_DIR }}/requirements.txt- name: Python API Tests#if: fromJSON(needs.smart_ci.outputs.affected_components).Python_API.test # Ticket: 127101@@ -472,7 +472,7 @@ jobs:free-threaded-python: ${{ contains(matrix.python-version, 't') }}- name: Install Python API tests dependencies- run: python3 c:/pip_diag.py install -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt+ run: python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt- name: Python API Testsshell: cmd@@ -484,8 +484,8 @@ jobs:shell: cmdrun: |python3 -m pip uninstall -y numpy- python3 c:/pip_diag.py install "numpy>=2.0.0,<2.1.0"- python3 c:/pip_diag.py install -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt+ python3 -m pip install "numpy>=2.0.0,<2.1.0"+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/bindings/python/requirements_test.txt# for 'template' extensionset PYTHONPATH=${{ env.INSTALL_TEST_DIR }};%PYTHONPATH%set PATH=${{ env.INSTALL_TEST_DIR }};%PATH%@@ -605,7 +605,7 @@ jobs:self-hosted-runner: 'true'- name: Install python dependencies- run: python3 c:/pip_diag.py install -r ${{ github.workspace }}\install\tests\functional_test_utils\layer_tests_summary\requirements.txt+ run: python3 -m pip install -r ${{ github.workspace }}\install\tests\functional_test_utils\layer_tests_summary\requirements.txt- name: Restore tests execution timeuses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5