Skip to content

Commit 2fac5a7

Browse files
[CI] Use E2E container binaries in run-only manual E2E task dispatch (#19744)
#19719 broke `workflow_dispatch` mode for manual E2E task invocation for compatibility testing as we don't have the required `binaries_artifact` input in that mode. Github limits number of input parameters in `workflow_dispatch` mode, so restore the functionality without introducing extra input.
1 parent efe036e commit 2fac5a7

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

devops/actions/run-tests/e2e/action.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
ref:
55
required: false
66
binaries_artifact:
7+
# Number of input parameters for manual 'workflow_dispatch' is limited, so
8+
# we treat empty value as 'in-container' when in 'run-only' mode via
9+
# 'workflow_dispatch'.
710
required: false
811
testing_mode:
912
required: true
@@ -19,12 +22,14 @@ inputs:
1922
sycl_compiler:
2023
required: false
2124

22-
2325
runs:
2426
using: "composite"
2527
steps:
2628
- name: Checkout E2E tests
27-
if: ${{ !(inputs.testing_mode == 'run-only' && inputs.binaries_artifact == 'in-container') }}
29+
if: |
30+
!(inputs.testing_mode == 'run-only'
31+
&& (inputs.binaries_artifact == 'in-container'
32+
|| github.event_name == 'workflow_dispatch'))
2833
uses: actions/checkout@v4
2934
with:
3035
path: llvm
@@ -33,19 +38,28 @@ runs:
3338
llvm/utils/lit
3439
sycl/test-e2e
3540
- name: Download E2E Binaries
36-
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != 'in-container' }}
41+
if: |
42+
inputs.testing_mode == 'run-only'
43+
&& !(inputs.binaries_artifact == 'in-container'
44+
|| github.event_name == 'workflow_dispatch')
3745
uses: actions/download-artifact@v4
3846
with:
3947
name: ${{ inputs.binaries_artifact }}
4048
- name: Extract E2E Binaries
41-
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != 'in-container' }}
49+
if: |
50+
inputs.testing_mode == 'run-only'
51+
&& !(inputs.binaries_artifact == 'in-container'
52+
|| github.event_name == 'workflow_dispatch')
4253
shell: bash
4354
run: |
4455
mkdir build-e2e
4556
tar -I 'zstd' -xf e2e_binaries.tar.zst -C build-e2e
4657
4758
- name: Extract E2E tests from container image
48-
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact == 'in-container' }}
59+
if: |
60+
inputs.testing_mode == 'run-only'
61+
&& (inputs.binaries_artifact == 'in-container'
62+
|| github.event_name == 'workflow_dispatch')
4963
shell: bash
5064
run: |
5165
mkdir build-e2e llvm

0 commit comments

Comments
 (0)