Skip to content

Commit fb70bbf

Browse files
[CI] Prebuild E2E tests as part of build workflow
1 parent 05b77fa commit fb70bbf

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

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

+21-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
build_image:
1515
type: string
1616
required: false
17-
default: "ghcr.io/intel/llvm/ubuntu2404_build:latest"
17+
default: "ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
1818
build_ref:
1919
type: string
2020
required: false
@@ -70,7 +70,7 @@ on:
7070
build_image:
7171
type: choice
7272
options:
73-
- "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
73+
- 'ghcr.io/intel/llvm/sycl_ubuntu2404_nightly:latest'
7474
cc:
7575
type: choice
7676
options:
@@ -252,3 +252,22 @@ jobs:
252252
name: sycl_linux_${{ inputs.build_artifact_suffix }}
253253
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
254254
retention-days: ${{ inputs.retention-days }}
255+
256+
- name: Copy toolchain
257+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
258+
# We must have the compiler in the same location as it will be in the E2E
259+
# run-tests job.
260+
run: cp -r $GITHUB_WORKSPACE/build/install $GITHUB_WORKSPACE/toolchain
261+
262+
- name: Build E2E tests
263+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
264+
uses: ./devops/actions/run-tests/e2e
265+
env:
266+
LIT_FILTER: bit_cast.cpp
267+
with:
268+
ref: ${{ inputs.ref || github.sha }}
269+
merge_ref: ${{ inputs.merge_ref }}
270+
e2e_testing_mode: build-only
271+
target_devices: all
272+
artifact_suffix: default
273+
cxx_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++

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

+2-17
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
build_artifact_suffix: "default"
4848
build_cache_suffix: "default"
4949
# Docker image has last nightly pre-installed and added to the PATH
50-
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
50+
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2404_nightly:latest"
5151
cc: clang
5252
cxx: clang++
5353
changes: ${{ needs.detect_changes.outputs.filters }}
@@ -74,23 +74,8 @@ jobs:
7474
echo 'arc_tests="Matrix/"' >> "$GITHUB_OUTPUT"
7575
fi
7676
77-
build_e2e_tests:
78-
needs: [build]
79-
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
80-
uses: ./.github/workflows/sycl-linux-run-tests.yml
81-
with:
82-
name: Build e2e tests
83-
runner: '["Linux", "build"]'
84-
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps
85-
image_options: -u 1001
86-
ref: ${{ github.sha }}
87-
merge_ref: ''
88-
sycl_toolchain_artifact: sycl_linux_default
89-
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
90-
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}
91-
e2e_testing_mode: 'build-only'
9277
run_prebuilt_e2e_tests:
93-
needs: [build, build_e2e_tests]
78+
needs: [build]
9479
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
9580
strategy:
9681
fail-fast: false

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ inputs:
1919
required: false
2020
retention-days:
2121
required: false
22+
cxx_compiler:
23+
required: false
2224

2325

2426
runs:
@@ -58,7 +60,7 @@ runs:
5860
if: inputs.e2e_binaries_artifact == ''
5961
shell: bash
6062
run: |
61-
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="$(which clang++)" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
63+
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.cxx_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
6264
- name: SYCL End-to-end tests
6365
shell: bash {0}
6466
env:

0 commit comments

Comments
 (0)