Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ on:
default: 'false'
required: False

in_workflow_call_mode:
description: |
Unlike `github.event_type` that captures the original trigger, we use
this to determine how this particular workflow has been called. This
isn't supposed to be specified by a caller and only relies on the
default value.
default: 'true'
required: False
type: string

workflow_dispatch:
inputs:
runner:
Expand Down Expand Up @@ -332,7 +342,9 @@ jobs:
timeout-minutes: 60
with:
ref: ${{ inputs.tests_ref || inputs.repo_ref || github.sha }}
binaries_artifact: ${{ inputs.binaries_artifact }}
binaries_artifact: ${{ inputs.in_workflow_call_mode && inputs.binaries_artifact
|| inputs.testing_mode == 'run-only' && 'in-container'
|| '' }}
testing_mode: ${{ inputs.testing_mode }}
extra_cmake_args: ${{ inputs.extra_cmake_args }}
target_devices: ${{ inputs.target_devices }}
Expand All @@ -349,7 +361,9 @@ jobs:
ref: ${{ inputs.tests_ref || 'main' }}
extra_cmake_args: ${{ inputs.extra_cmake_args }}
testing_mode: ${{ inputs.testing_mode }}
binaries_artifact: ${{ inputs.binaries_artifact }}
binaries_artifact: ${{ inputs.in_workflow_call_mode && inputs.binaries_artifact
|| inputs.testing_mode == 'run-only' && 'in-container'
|| '' }}
target_devices: ${{ inputs.target_devices }}
retention-days: ${{ inputs.retention-days }}

Expand Down
24 changes: 5 additions & 19 deletions devops/actions/run-tests/e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ inputs:
ref:
required: false
binaries_artifact:
# Number of input parameters for manual 'workflow_dispatch' is limited, so
# we treat empty value as 'in-container' when in 'run-only' mode via
# 'workflow_dispatch'.
required: false
testing_mode:
required: true
Expand All @@ -22,14 +19,12 @@ inputs:
sycl_compiler:
required: false


runs:
using: "composite"
steps:
- name: Checkout E2E tests
if: |
!(inputs.testing_mode == 'run-only'
&& (inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch'))
if: ${{ !(inputs.testing_mode == 'run-only' && inputs.binaries_artifact == 'in-container') }}
uses: actions/checkout@v4
with:
path: llvm
Expand All @@ -38,28 +33,19 @@ runs:
llvm/utils/lit
sycl/test-e2e
- name: Download E2E Binaries
if: |
inputs.testing_mode == 'run-only'
&& !(inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch')
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != 'in-container' }}
uses: actions/download-artifact@v4
with:
name: ${{ inputs.binaries_artifact }}
- name: Extract E2E Binaries
if: |
inputs.testing_mode == 'run-only'
&& !(inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch')
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != 'in-container' }}
shell: bash
run: |
mkdir build-e2e
tar -I 'zstd' -xf e2e_binaries.tar.zst -C build-e2e

- name: Extract E2E tests from container image
if: |
inputs.testing_mode == 'run-only'
&& (inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch')
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact == 'in-container' }}
shell: bash
run: |
mkdir build-e2e llvm
Expand Down
Loading