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
[CI] [GHA] Correctly report statuses of skipped jobs that have `inputs` from `needs` (#30305)
Andrei Kashchikhin1e97fa1253d9
diff --git a/.github/workflows/android_arm64.yml b/.github/workflows/android_arm64.ymlindex 951fc0a151b..758926a1cc6 100644--- a/.github/workflows/android_arm64.yml+++ b/.github/workflows/android_arm64.yml@@ -44,20 +44,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_build\":{\"ubuntu_22_04_android\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/android_x64.yml b/.github/workflows/android_x64.ymlindex a2ec069d904..844c51484d8 100644--- a/.github/workflows/android_x64.yml+++ b/.github/workflows/android_x64.yml@@ -47,20 +47,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_build\":{\"ubuntu_22_04_android\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/debian_10_arm.yml b/.github/workflows/debian_10_arm.ymlindex 17c7d99bf6d..2da5dea80ca 100644--- a/.github/workflows/debian_10_arm.yml+++ b/.github/workflows/debian_10_arm.yml@@ -49,20 +49,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-8gb-arm-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"debian_10_arm\":\"mock\"},\"ov_build\":{\"debian_10_arm\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |@@ -73,7 +79,7 @@ jobs:changed_components: ${{ needs.smart_ci.outputs.changed_components }}Build:- needs: [Docker, Smart_CI]+ needs: [Smart_CI, Docker]if: "!needs.smart_ci.outputs.skip_workflow"uses: ./.github/workflows/job_build_linux.ymlwith:diff --git a/.github/workflows/fedora_29.yml b/.github/workflows/fedora_29.ymlindex 0f8b6c7a4a9..801c4a48a35 100644--- a/.github/workflows/fedora_29.yml+++ b/.github/workflows/fedora_29.yml@@ -49,20 +49,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"fedora_33\":\"mock\"},\"ov_build\":{\"fedora_29\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.ymlindex e4fbfe3db68..a41d468a55e 100644--- a/.github/workflows/linux_arm64.yml+++ b/.github/workflows/linux_arm64.yml@@ -53,20 +53,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-8gb-arm-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"ubuntu_20_04_arm64\":\"mock\"},\"ov_build\":{\"ubuntu_20_04_arm64\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/linux_conditional_compilation.yml b/.github/workflows/linux_conditional_compilation.ymlindex 2e28ba7f8c9..e885b9a95cd 100644--- a/.github/workflows/linux_conditional_compilation.yml+++ b/.github/workflows/linux_conditional_compilation.yml@@ -54,20 +54,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"ubuntu_22_04_x64\":\"mock\"},\"ov_build\":{\"ubuntu_22_04_x64_cc\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/linux_riscv.yml b/.github/workflows/linux_riscv.ymlindex 389579ee5c5..3a483cb1362 100644--- a/.github/workflows/linux_riscv.yml+++ b/.github/workflows/linux_riscv.yml@@ -55,19 +55,25 @@ jobs:Docker:needs: Smart_CIruns-on: aks-linux-4-cores-16gb-docker-build- if: "!needs.smart_ci.outputs.skip_workflow"container:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_build\":{\"ubuntu_22_04_riscv\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/manylinux_2014.yml b/.github/workflows/manylinux_2014.ymlindex 7e9dd0c2d0e..fa6c85d6626 100644--- a/.github/workflows/manylinux_2014.yml+++ b/.github/workflows/manylinux_2014.yml@@ -52,20 +52,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"ubuntu_20_04_x64_py313\":\"mock\"},\"ov_test\":{\"ubuntu_22_04_x64\":\"mock\"},\"ov_test\":{\"ubuntu_24_04_x64\":\"mock\"},\"ov_test\":{\"fedora_33\":\"mock\"},\"ov_test\":{\"debian_10_py310\":\"mock\"},\"ov_build\":{\"ubuntu_22_04_x64_docker\":\"mock\",\"ov_build\":{\"manylinux2014_x86_64\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/ubuntu_20.yml b/.github/workflows/ubuntu_20.ymlindex 4098986c12a..25b0d91ed9e 100644--- a/.github/workflows/ubuntu_20.yml+++ b/.github/workflows/ubuntu_20.yml@@ -55,20 +55,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"ubuntu_20_04_x64\":\"mock\"},\"ov_build\":{\"ubuntu_20_04_x64\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |@@ -180,4 +186,4 @@ jobs:contains(needs.*.result, 'failure') ||contains(needs.*.result, 'cancelled')}}- run: exit 1+ run: exit 1\ No newline at end of filediff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.ymlindex 6ab62090cf7..85040bd44b7 100644--- a/.github/workflows/ubuntu_22.yml+++ b/.github/workflows/ubuntu_22.yml@@ -57,20 +57,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"ubuntu_22_04_x64\":\"mock\"},\"ov_build\":{\"ubuntu_22_04_x64\":\"mock\",\"ov_build\":{\"ubuntu_22_04_x64_nvidia\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/ubuntu_22_dpcpp.yml b/.github/workflows/ubuntu_22_dpcpp.ymlindex 1fdfc5f6ac8..158fe078e74 100644--- a/.github/workflows/ubuntu_22_dpcpp.yml+++ b/.github/workflows/ubuntu_22_dpcpp.yml@@ -45,20 +45,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_build\":{\"ubuntu_22_04_x64_dpcpp\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.ymlindex f688281710f..075db939a0e 100644--- a/.github/workflows/ubuntu_24.yml+++ b/.github/workflows/ubuntu_24.yml@@ -52,20 +52,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_test\":{\"ubuntu_24_04_x64\":\"mock\"},\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |diff --git a/.github/workflows/webassembly.yml b/.github/workflows/webassembly.ymlindex 350df3113b0..e483e950050 100644--- a/.github/workflows/webassembly.yml+++ b/.github/workflows/webassembly.yml@@ -49,20 +49,26 @@ jobs:Docker:needs: Smart_CI- if: "!needs.smart_ci.outputs.skip_workflow"runs-on: aks-linux-4-cores-16gb-docker-buildcontainer:image: openvinogithubactions.azurecr.io/docker_build:0.2volumes:- /mount:/mountoutputs:- images: "${{ steps.handle_docker.outputs.images }}"+ images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"steps:+ - name: Set mock output images if pipeline should be skipped+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}+ id: mock_image+ run: echo "images={\"ov_build\":{\"webassembly\":\"mock\"}}" >> "$GITHUB_OUTPUT"+- name: Checkout+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2timeout-minutes: 15- uses: ./.github/actions/handle_docker+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}id: handle_dockerwith:images: |