From de4851c5888e88662ddccdf6f52b5233bbec5a32 Mon Sep 17 00:00:00 2001 From: Udit Agarwal Date: Fri, 6 Sep 2024 16:14:40 -0700 Subject: [PATCH] [CI] Skip dev-igc run if the PR has `ci-no-devigc` label specified (#15318) Currently, if `ci-no-devigc` label is specified, we duplicate the E2E test run with `ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest` image. This PR intends to skip the run instead of duplicating. --------- Co-authored-by: Nick Sarnie --- .github/workflows/sycl-linux-precommit.yml | 5 ++++- .github/workflows/sycl-linux-run-tests.yml | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sycl-linux-precommit.yml b/.github/workflows/sycl-linux-precommit.yml index 424ade23f1b08..b4a38a2cef24e 100644 --- a/.github/workflows/sycl-linux-precommit.yml +++ b/.github/workflows/sycl-linux-precommit.yml @@ -100,7 +100,7 @@ jobs: env: '{"LIT_FILTER":${{ needs.determine_arc_tests.outputs.arc_tests }} }' - name: E2E tests with dev igc on Intel Arc A-Series Graphics runner: '["Linux", "arc"]' - image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:${{ contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') && 'latest' || 'devigc' }} + image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:devigc image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN target_devices: level_zero:gpu;opencl:gpu reset_intel_gpu: true @@ -110,6 +110,8 @@ jobs: use_dev_igc: ${{ contains(needs.detect_changes.outputs.filters, 'devigccfg') }} extra_lit_opts: --param matrix-xmx8=True --param gpu-intel-dg2=True env: '{"LIT_FILTER":${{ needs.determine_arc_tests.outputs.arc_tests }} }' + # Run only if the PR does not have the 'ci-no-devigc' label. + skip_run: ${{ contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') }} uses: ./.github/workflows/sycl-linux-run-tests.yml with: @@ -123,6 +125,7 @@ jobs: use_dev_igc: ${{ matrix.use_dev_igc }} extra_lit_opts: ${{ matrix.extra_lit_opts }} env: ${{ matrix.env || '{}' }} + skip_run: ${{ matrix.skip_run || 'false' }} ref: ${{ github.sha }} merge_ref: '' diff --git a/.github/workflows/sycl-linux-run-tests.yml b/.github/workflows/sycl-linux-run-tests.yml index 1f3cbd5f156b1..077f7f8aac726 100644 --- a/.github/workflows/sycl-linux-run-tests.yml +++ b/.github/workflows/sycl-linux-run-tests.yml @@ -76,6 +76,11 @@ on: default: '{}' required: False + skip_run: + type: string + default: 'false' + required: False + workflow_dispatch: inputs: runner: @@ -146,6 +151,7 @@ permissions: jobs: run: + if: inputs.skip_run == 'false' name: ${{ inputs.name }} runs-on: ${{ fromJSON(inputs.runner) }} container: