@@ -152,73 +152,19 @@ jobs:
152152 - run : |
153153 sycl-ls --verbose
154154
155- - name : Download E2E Binaries
156- if : ${{ inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'run-only' }}
157- uses : actions/download-artifact@v4
158- with :
159- name : ${{ inputs.e2e_binaries_artifact }}
160- - name : Extract E2E Binaries
161- if : ${{ inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'run-only' }}
162- shell : bash
163- run : |
164- mkdir build-e2e
165- tar -xf e2e_bin.tar.gz -C build-e2e
166-
167- - name : Configure E2E with Level Zero target
168- if : inputs.tests_selector == 'e2e'
169- shell : cmd
170- run : |
171- mkdir build-e2e
172- cmake -GNinja -B build-e2e -S.\llvm\sycl\test-e2e -DSYCL_TEST_E2E_TARGETS="level_zero:gpu" -DCMAKE_CXX_COMPILER="clang++" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py"
173-
174- - name : Keep track of files after configuring E2E step
175- if : ${{ always() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }}
176- shell : bash
177- run : ls build-e2e > e2econf_files.txt
178-
179- - name : Run End-to-End tests
155+ - name : Run E2E Tests
180156 if : inputs.tests_selector == 'e2e'
181- shell : bash {0}
182- env :
183- LIT_OPTS : -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time ${{ inputs.e2e_testing_mode == 'run-only' && 1200 || 3600 }} --time-tests --param print_features=True --param test-mode=${{ inputs.e2e_testing_mode }} ${{ inputs.extra_lit_opts }}
184- run : |
185- # Run E2E tests.
186- if [[ ${{inputs.compiler}} == 'icx' ]]; then
187- export LIT_FILTER_OUT="compile_on_win_with_mdd"
188- fi
189- cmake --build build-e2e --target check-sycl-e2e > e2e.log 2>&1
190-
191- exit_code=$?
192- cat e2e.log
193- if [ $exit_code -ne 0 ]; then
194- # This is duplicated between lin/win, updates must change both.
195- awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
196- fi
197- exit $exit_code
198-
199- # Github CI doesn't support containers on Windows, so we cannot guarantee
200- # that paths are the same between building and running systems. To avoid
201- # CMake issues related to absolute paths we reconfigure the build-e2e
202- # folder on the run system.
203- - name : Remove E2E configuration files
204- if : ${{ always() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }}
205- shell : bash
206- run : |
207- for FILE in $(cat e2econf_files.txt); do rm -r build-e2e/$FILE; done
208- rm e2econf_files.txt
209-
210- - name : Pack E2E test binaries
211- if : ${{ always() && !cancelled() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }}
212- shell : bash
213- run : |
214- tar -czf e2e_bin.tar.gz -C build-e2e .
215- - name : Upload E2E test binaries
216- if : ${{ always() && !cancelled() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }}
217- uses : actions/upload-artifact@v4
157+ uses : ./devops/actions/run-tests/windows/e2e
158+ timeout-minutes : 60
218159 with :
219- name : ${{ inputs.e2e_binaries_artifact }}
220- path : e2e_bin.tar.gz
221- retention-days : 3
160+ ref : ${{ inputs.tests_ref || inputs.repo_ref || github.sha }}
161+ binaries_artifact : ${{ inputs.e2e_binaries_artifact }}
162+ testing_mode : ${{ inputs.e2e_testing_mode }}
163+ extra_cmake_args : ${{ inputs.extra_cmake_args }}
164+ target_devices : ${{ inputs.target_devices }}
165+ extra_lit_opts : ${{ inputs.extra_lit_opts }}
166+ retention-days : ${{ inputs.artifact_retention_days }}
167+ compiler : ${{ inputs.compiler }}
222168
223169 - name : Run SYCL CTS Tests
224170 if : inputs.tests_selector == 'cts'
0 commit comments