Skip to content

Commit 601a7de

Browse files
[CI] Use cached_checkouts for E2E tests on Linux (#10307)
This change better aligns checkout between build/e2e-tests. Next step would be to make them use the same commit for the merge but I plan to do that in a separate PR.
1 parent 377ce24 commit 601a7de

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/workflows/linux_matrix_e2e_on_nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
target_devices: ${{ matrix.target_devices }}
5353
ref: ${{ inputs.ref }}
5454
reset_gpu: ${{ matrix.reset_gpu }}
55+
# TODO: should we do the merge?
56+
merge: false
5557

5658
aws_start:
5759
name: AWS Start
@@ -74,6 +76,8 @@ jobs:
7476
target_devices: all
7577
ref: ${{ inputs.ref }}
7678
reset_gpu: false
79+
# TODO: should we do the merge?
80+
merge: false
7781

7882
aws_stop:
7983
name: AWS Stop

.github/workflows/linux_single_e2e.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
type: string
2020
reset_gpu:
2121
type: string
22+
merge:
23+
type: string
2224

2325
sycl_toolchain_artifact:
2426
type: string
@@ -50,13 +52,17 @@ jobs:
5052
sudo bash -c 'echo 1 > /sys/kernel/debug/dri/0/i915_wedged'
5153
- uses: actions/checkout@v3
5254
with:
53-
path: llvm
5455
ref: ${{ inputs.ref }}
5556
sparse-checkout: |
5657
devops/actions
57-
devops/scripts/get_release.py
58-
sycl/test-e2e
59-
llvm/utils
58+
- name: Register cleanup after job is finished
59+
uses: ./devops/actions/cleanup
60+
- uses: ./devops/actions/cached_checkout
61+
with:
62+
path: llvm
63+
ref: ${{ inputs.ref }}
64+
cache_path: "/__w/repo_cache/"
65+
merge: ${{ inputs.merge }}
6066
- name: Install drivers
6167
if: env.compute_runtime_tag != ''
6268
run: |
@@ -65,8 +71,6 @@ jobs:
6571
sudo cp llvm/devops/scripts/get_release.py /opt/
6672
sudo -E /opt/install_drivers.sh --all
6773
fi
68-
- name: Register cleanup after job is finished
69-
uses: ./llvm/devops/actions/cleanup
7074
- name: Source OneAPI TBB vars.sh
7175
shell: bash
7276
run: |

.github/workflows/sycl_linux_build_and_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ jobs:
232232
target_devices: ${{ matrix.targets }}
233233
ref: ${{ inputs.build_ref || github.sha }}
234234
reset_gpu: ${{ contains(matrix.runs-on, 'gen9') && contains(matrix.runs-on, 'Linux') }}
235+
merge: ${{ inputs.merge }}
235236

236237
sycl_toolchain_artifact: sycl_linux_${{ inputs.build_artifact_suffix }}
237238
sycl_toolchain_archive: ${{ inputs.artifact_archive_name }}

0 commit comments

Comments
 (0)