Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GHA] Removing CC from PR-updating events (#35781)

Yury Gaydaychuk53e1550121d0
diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.yml
index 0041c6cd9d7..c96b3122cea 100644
--- a/.github/workflows/windows_conditional_compilation.yml
+++ b/.github/workflows/windows_conditional_compilation.yml
@@ -59,7 +59,9 @@ jobs:
skip_when_only_listed_labels_set: 'docs'
skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*,.github/workflows/ci-doctor.lock.yml'
- Build:
+ # check SELECTIVE_BUILD_STAT in CC 'COLLECT' AND 'ON' modes
+
+ Build_And_Run_Collect_Mode:
needs: Smart_CI
timeout-minutes: 300 # 5 hours without cache
defaults:
@@ -120,24 +122,11 @@ jobs:
should-setup-pip-paths: 'false'
self-hosted-runner: 'false'
- - name: Install python dependencies
+ - name: Install certifi
run: |
- # For running ONNX frontend unit tests
- python3 -m pip install --force-reinstall -r ${{ env.OPENVINO_REPO }}/src/frontends/onnx/tests/requirements.txt
-
- # For running TensorFlow frontend unit tests
- python3 -m pip install -r ${{ env.OPENVINO_REPO }}/src/frontends/tensorflow/tests/requirements.txt
-
- # For running TensorFlow Lite frontend unit tests
- python3 -m pip install -r ${{ env.OPENVINO_REPO }}/src/frontends/tensorflow_lite/tests/requirements.txt
-
# For getting rid of SSL issues during model downloading for unit tests
python3 -m pip install certifi
- # Disabled because of CVS-95904
- # For running Paddle frontend unit tests
- # python3 -m pip install -r ${{ env.OPENVINO_REPO }}/src/frontends/paddle/tests/requirements.txt
-
#
# Build
#
@@ -167,7 +156,7 @@ jobs:
cmake -G "${{ env.CMAKE_GENERATOR }}" `
-DBUILD_SHARED_LIBS=OFF `
-DCMAKE_CXX_STANDARD=20 `
- -DENABLE_TESTS=ON `
+ -DENABLE_TESTS=OFF `
-DENABLE_NCC_STYLE=OFF `
-DENABLE_PROFILING_ITT=FULL `
-DSELECTIVE_BUILD=COLLECT `
@@ -201,12 +190,6 @@ jobs:
cmake -G "${{ env.CMAKE_GENERATOR }}" -DOpenVINO_DIR=${{ env.BUILD_DIR }} -S ${{ env.INSTALL_DIR }}/samples/cpp -B ${{ env.BUILD_DIR }}/cpp_samples
cmake --build ${{ env.BUILD_DIR }}/cpp_samples --parallel $ENV:NUMBER_OF_PROCESSORS --config ${{ env.CMAKE_BUILD_TYPE }} --target hello_query_device -- --quiet
- - name: Ctest - OpenVINO unit tests
- shell: cmd
- run: |
- set path=%path%;${{ env.OPENVINO_REPO }}\temp\Windows_AMD64\tbb\bin;${{ env.BUILD_DIR }}\bin\${{ env.CMAKE_BUILD_TYPE }}
- ctest -C ${{ env.CMAKE_BUILD_TYPE }} --test-dir ${{ env.BUILD_DIR }} -V -L UNIT
-
- name: Perform code tracing via ITT collector
shell: cmd
run: |
@@ -255,13 +238,6 @@ jobs:
}
Compress-Archive @compress
- $compress = @{
- Path = "${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/ov_cpu_func_tests.exe", "${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/openvino_template_extension.dll", "${{ env.OPENVINO_REPO }}/src/tests/test_utils/functional_test_utils/layer_tests_summary", "${{ env.INSTALL_DIR }}/runtime/3rdparty/tbb"
- CompressionLevel = "Optimal"
- DestinationPath = "${{ env.BUILD_DIR }}/openvino_tests.zip"
- }
- Compress-Archive @compress
-
- name: Build C samples - OpenVINO install tree
run: |
# install PDB files to OpenVINO main installation folder to ensure that they are used instead of PDB files from build folder
@@ -303,14 +279,6 @@ jobs:
path: ${{ env.BUILD_DIR }}/openvino_selective_build_stat.zip
if-no-files-found: 'error'
- - name: Upload OpenVINO tests package
- if: ${{ always() }}
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- with:
- name: openvino_tests
- path: ${{ env.BUILD_DIR }}/openvino_tests.zip
- if-no-files-found: 'error'
-
- name: Upload compile_commands
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: always()
@@ -319,10 +287,10 @@ jobs:
path: ${{ env.BUILD_DIR }}/compile_commands.json
if-no-files-found: 'ignore'
- CC_Build:
+ Build_And_Run_On_Mode:
name: Conditional Compilation
timeout-minutes: 40
- needs: [Build, Smart_CI]
+ needs: [Build_And_Run_Collect_Mode, Smart_CI]
defaults:
run:
shell: pwsh
@@ -372,6 +340,7 @@ jobs:
- name: CMake configure - CC ON
run: |
cmake `
+ -DENABLE_TESTS=OFF `
-DBUILD_SHARED_LIBS=OFF `
-DSELECTIVE_BUILD=ON `
-DENABLE_TEMPLATE=OFF `
@@ -400,82 +369,9 @@ jobs:
set path=%path%;${{ env.OPENVINO_REPO }}\temp\Windows_AMD64\tbb\bin;${{ env.BUILD_DIR }}\bin\${{ env.CMAKE_BUILD_TYPE }}
${{ env.OPENVINO_REPO }}\bin\intel64\${{ env.CMAKE_BUILD_TYPE }}\benchmark_app.exe -niter 1 -nireq 1 -m ${{ env.MODELS_PATH }}\models\test_model\test_model_fp32.xml -d CPU
- CPU_Functional_Tests:
- name: CPU functional tests
- needs: [Build, Smart_CI]
- timeout-minutes: 85
- defaults:
- run:
- shell: pwsh
- runs-on: aks-win-8-cores-16gb-test
- env:
- OPENVINO_REPO: "${{ github.workspace }}\\openvino"
- INSTALL_TEST_DIR: "${{ github.workspace }}\\tests_install"
- PARALLEL_TEST_SCRIPT: "${{ github.workspace }}\\tests_install\\layer_tests_summary\\run_parallel.py"
- PARALLEL_TEST_CACHE: "${{ github.workspace }}\\tests_install\\test_cache.lst"
- if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
-
- steps:
- - name: Download OpenVINO tests package
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
- with:
- name: openvino_tests
- path: ${{ env.INSTALL_TEST_DIR }}
-
- - name: Extract OpenVINO tests package
- run: Expand-Archive ${{ env.INSTALL_TEST_DIR }}/openvino_tests.zip -DestinationPath "${{ env.INSTALL_TEST_DIR }}"
-
- - name: Fetch setup_python action
- uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries
- timeout-minutes: 15
- with:
- sparse-checkout: |
- .github/actions/setup_python/action.yml
- sparse-checkout-cone-mode: false
- path: 'openvino'
-
- - name: Setup Python ${{ env.PYTHON_VERSION }}
- uses: ./openvino/.github/actions/setup_python
- with:
- version: ${{ env.PYTHON_VERSION }}
- should-setup-pip-paths: 'false'
- self-hosted-runner: 'false'
-
- - name: Install python dependencies for run_parallel.py
- run: python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/layer_tests_summary/requirements.txt
-
- - name: Restore tests execution time
- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
- with:
- path: ${{ env.PARALLEL_TEST_CACHE }}
- key: ${{ runner.os }}-tests-functional-cpu-stamp-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-tests-functional-cpu-stamp
-
- - name: Intel CPU plugin func tests (parallel)
- shell: cmd
- run: |
- set path=%path%;${{ env.INSTALL_TEST_DIR }}\tbb\bin;${{ env.INSTALL_TEST_DIR }}\tbb;${{ env.INSTALL_TEST_DIR }}
- python3 ${{ env.PARALLEL_TEST_SCRIPT }} -e ${{ env.INSTALL_TEST_DIR }}\ov_cpu_func_tests.exe -w ${{ env.INSTALL_TEST_DIR }} -s suite -rf 0 -- --gtest_print_time=1 --gtest_filter=*smoke*
- timeout-minutes: 60
-
- - name: Upload Test Results
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
- if: ${{ !cancelled() }}
- with:
- name: test-results-functional-cpu
- path: |
- ${{ env.INSTALL_TEST_DIR }}/TEST*.xml
- ${{ env.INSTALL_TEST_DIR }}/logs/failed/*.log
- ${{ env.INSTALL_TEST_DIR }}/logs/crashed/*.log
- ${{ env.INSTALL_TEST_DIR }}/logs/hanged/*.log
- ${{ env.INSTALL_TEST_DIR }}/logs/interapted/*.log
- ${{ env.INSTALL_TEST_DIR }}/logs/disabled_tests.log
- if-no-files-found: 'error'
-
Overall_Status:
name: ci/gha_overall_status_windows_cc
- needs: [Smart_CI, Build, CC_Build, CPU_Functional_Tests]
+ needs: [Smart_CI, Build_And_Run_Collect_Mode, Build_And_Run_On_Mode]
if: ${{ always() }}
runs-on: ubuntu-latest
steps: