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] Adjust FE triggers for NPU Models Tests (#39257)
Alina Kladievafa91b9f5accc
diff --git a/.github/workflows/job_npu_tests.yml b/.github/workflows/job_npu_tests.ymlindex db019f0f31c..35272a1540b 100644--- a/.github/workflows/job_npu_tests.yml+++ b/.github/workflows/job_npu_tests.yml@@ -11,7 +11,12 @@ on:description: 'Components that are affected by changes in the commit defined by the Smart CI Action'type: stringrequired: false- default: '{"TF_FE":{"test":true},"JAX_FE":{"test":true},"PyTorch_FE":{"test":true}}'+ default: '{"NPU":{"test":true},"TF_FE":{"test":true},"JAX_FE":{"test":true},"PyTorch_FE":{"test":true}}'+ changed-components:+ description: 'Components that have changed in the commit defined by the Smart CI Action'+ type: string+ required: false+ default: '{}'npu-platforms:description: 'JSON list of NPU platforms to compile for (offline), each runs on its own runner. e.g. ["3720","4000","5010","5020","6010"]'type: string@@ -101,11 +106,11 @@ jobs:# --- TensorFlow ---------------------------------------------------------- name: Install TF Models tests requirements- if: fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.affected-components).TF_FE.test+ if: fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.changed-components).TF_FErun: python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}\requirements_tensorflow- name: TensorFlow Models Tests - NPU compile-only (convert_model)- if: fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.affected-components).TF_FE.test+ if: fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.changed-components).TF_FEshell: cmdrun: |set PYTHONPATH=${{ env.INSTALL_TEST_DIR }}\model_hub_tests;%PYTHONPATH%@@ -113,7 +118,7 @@ jobs:--html=${{ env.INSTALL_TEST_DIR }}\TEST-tf_fe_npu_convert_model_%NPU_PLATFORM%_%MODEL_SCOPE%.html --self-contained-html -v -s- name: TensorFlow Models Tests - NPU compile-only (read_model)- if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.affected-components).TF_FE.test) }}+ if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.changed-components).TF_FE) }}shell: cmdrun: |set PYTHONPATH=${{ env.INSTALL_TEST_DIR }}\model_hub_tests;%PYTHONPATH%@@ -122,11 +127,11 @@ jobs:# --- JAX ----------------------------------------------------------------- name: Install JAX Models tests requirements- if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.affected-components).JAX_FE.test) }}+ if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.changed-components).JAX_FE) }}run: python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}\requirements_jax- name: JAX/Flax Models Tests - NPU compile-only- if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.affected-components).JAX_FE.test) }}+ if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.changed-components).JAX_FE) }}shell: cmdrun: |set PYTHONPATH=${{ env.INSTALL_TEST_DIR }}\model_hub_tests;%PYTHONPATH%@@ -135,13 +140,13 @@ jobs:# --- PyTorch (runs after TF/JAX within the same leg) --------------------- name: Install PyTorch tests requirements- if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.affected-components).PyTorch_FE.test) }}+ if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.changed-components).PyTorch_FE) }}run: |python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}\requirements_pytorch `-r ${{ env.INSTALL_TEST_DIR }}\model_hub_tests\pytorch\envs\npu_models.txt- name: PyTorch Models Tests - NPU compile-only- if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.affected-components).PyTorch_FE.test) }}+ if: ${{ !cancelled() && (fromJSON(inputs.affected-components).NPU.test || fromJSON(inputs.changed-components).PyTorch_FE) }}shell: cmdenv:OP_REPORT_FILE: "${{ env.INSTALL_TEST_DIR }}\\TEST-pt_npu_unsupported_ops_${{ matrix.npu-platform }}.log"diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.ymlindex 4113ee7f3b3..102ffb30684 100644--- a/.github/workflows/windows_vs2022_release.yml+++ b/.github/workflows/windows_vs2022_release.yml@@ -34,6 +34,7 @@ jobs:if: github.event.pull_request.draft == false || github.run_attempt > 1outputs:affected_components: "${{ steps.smart_ci.outputs.affected_components }}"+ changed_components: "${{ steps.smart_ci.outputs.changed_components }}"skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"target_branch: ${{ steps.set_target_branch.outputs.target_branch }}steps:@@ -560,13 +561,14 @@ jobs:if: >-${{fromJSON(needs.smart_ci.outputs.affected_components).NPU.test ||- fromJSON(needs.smart_ci.outputs.affected_components).TF_FE.test ||- fromJSON(needs.smart_ci.outputs.affected_components).JAX_FE.test ||- fromJSON(needs.smart_ci.outputs.affected_components).PyTorch_FE.test+ fromJSON(needs.smart_ci.outputs.changed_components).TF_FE ||+ fromJSON(needs.smart_ci.outputs.changed_components).JAX_FE ||+ fromJSON(needs.smart_ci.outputs.changed_components).PyTorch_FE}}with:runner: 'aks-win-4-cores-8gb-test'affected-components: ${{ needs.smart_ci.outputs.affected_components }}+ changed-components: ${{ needs.smart_ci.outputs.changed_components }}CXX_Unit_Tests:name: C++ unit tests