Skip to content

Commit

Permalink
[CI] Skip dev-igc run if the PR has ci-no-devigc label specified (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
uditagarwal97 and sarnex committed Sep 6, 2024
1 parent 0d2c8eb commit de4851c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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: ''
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ on:
default: '{}'
required: False

skip_run:
type: string
default: 'false'
required: False

workflow_dispatch:
inputs:
runner:
Expand Down Expand Up @@ -146,6 +151,7 @@ permissions:

jobs:
run:
if: inputs.skip_run == 'false'
name: ${{ inputs.name }}
runs-on: ${{ fromJSON(inputs.runner) }}
container:
Expand Down

0 comments on commit de4851c

Please sign in to comment.