Skip to content

Commit

Permalink
Skip dev-igc run if the PR has ci-no-devigc label
Browse files Browse the repository at this point in the history
  • Loading branch information
uditagarwal97 committed Sep 6, 2024
1 parent b466cd0 commit 19ab600
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 do not have the 'ci-no-devigc' label.
run_condition: ${{ contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') && 'false' || 'true' }}

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 || '{}' }}
run_condition: ${{ matrix.run_condition || 'true' }}

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

run_condition:
type: string
default: 'true'
required: False

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

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

0 comments on commit 19ab600

Please sign in to comment.