Skip to content

Commit 27bcab9

Browse files
authored
[CI] Refactor cleanup of built E2E tests in precommit. (#20790)
This change approaches the feedback from #20634 related to repeated cleanup.
1 parent f5c33b1 commit 27bcab9

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/sycl-linux-build.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@ jobs:
339339
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
340340
extra_lit_opts: --param sycl_build_targets="spir;nvidia;amd"
341341

342-
- name: Remove E2E tests before spirv-backend run
343-
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
344-
run: rm -rf build-e2e
345-
346342
- name: Build E2E tests with SPIR-V Backend
347343
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
348344
uses: ./devops/actions/run-tests/e2e
@@ -354,10 +350,6 @@ jobs:
354350
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
355351
extra_lit_opts: --param spirv-backend=True
356352

357-
- name: Remove E2E tests before preview-mode run
358-
if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
359-
run: rm -rf build-e2e
360-
361353
- name: Build E2E tests in Preview Mode
362354
if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
363355
uses: ./devops/actions/run-tests/e2e

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,8 @@ runs:
106106
name: ${{ inputs.binaries_artifact }}
107107
path: e2e_binaries.tar.zst
108108
retention-days: ${{ inputs.retention-days }}
109+
- name: Cleanup E2E tests
110+
if: ${{ !cancelled() }}
111+
shell: bash
112+
run: |
113+
rm -rf build-e2e

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,7 @@ runs:
121121
name: ${{ inputs.binaries_artifact }}
122122
path: e2e_bin.tar.gz
123123
retention-days: ${{ inputs.retention-days }}
124+
- name: Cleanup E2E tests
125+
if: ${{ !cancelled() }}
126+
shell: bash
127+
run: rm -rf build-e2e

0 commit comments

Comments
 (0)