File tree Expand file tree Collapse file tree 2 files changed +38
-14
lines changed Expand file tree Collapse file tree 2 files changed +38
-14
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,31 @@ runs:
60
60
run : |
61
61
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
62
62
- name : SYCL End-to-end tests
63
- shell : bash {0}
63
+ id : run_e2e
64
+ continue-on-error : true
65
+ shell : bash
64
66
env :
65
67
LIT_OPTS : -v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests --param print_features=True --param test-mode=${{ inputs.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
66
68
run : |
67
69
ninja -C build-e2e check-sycl-e2e > e2e.log 2>&1
68
- exit_code=$?
70
+ # Two steps below are duplicated between Lin/Win actions, updates must change both
71
+ - name : E2E logs
72
+ if : ${{ always() }}
73
+ shell : bash
74
+ run : |
75
+ echo "::group::Show Full E2E Log"
69
76
cat e2e.log
70
- if [ $exit_code -ne 0 ]; then
71
- # This is duplicated between lin/win, updates must change both.
77
+ echo "::endgroup::"
78
+ - name : Report E2E Failures
79
+ if : steps.run_e2e.outcome != 'success'
80
+ shell : bash
81
+ # For some reason Github uses the first line from the `run: |` section for
82
+ # the folded entry when displaying instead of this step's name.
83
+ run : |
84
+ # Report E2E Failures
72
85
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
73
- fi
74
- exit $exit_code
86
+ awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log
87
+ exit 1
75
88
76
89
- name : Pack E2E binaries
77
90
if : ${{ always() && !cancelled() && inputs.binaries_artifact != '' && inputs.testing_mode != 'run-only'}}
Original file line number Diff line number Diff line change @@ -72,20 +72,31 @@ runs:
72
72
run : ls build-e2e > e2econf_files.txt
73
73
74
74
- name : Run End-to-End tests
75
- shell : bash {0}
75
+ id : run_e2e
76
+ continue-on-error : true
77
+ shell : bash
76
78
env :
77
79
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.testing_mode }} --param sycl_devices=${{ inputs.target_devices }} ${{ inputs.extra_lit_opts }}
78
80
run : |
79
- # Run E2E tests.
80
81
cmake --build build-e2e --target check-sycl-e2e > e2e.log 2>&1
81
-
82
- exit_code=$?
82
+ # Two steps below are duplicated between Lin/Win actions, updates must change both
83
+ - name : E2E logs
84
+ if : ${{ always() }}
85
+ shell : bash
86
+ run : |
87
+ echo "::group::Show Full E2E Log"
83
88
cat e2e.log
84
- if [ $exit_code -ne 0 ]; then
85
- # This is duplicated between lin/win, updates must change both.
89
+ echo "::endgroup::"
90
+ - name : Report E2E Failures
91
+ if : steps.run_e2e.outcome != 'success'
92
+ shell : bash
93
+ # For some reason Github uses the first line from the `run: |` section for
94
+ # the folded entry when displaying instead of this step's name.
95
+ run : |
96
+ # Report E2E Failures
86
97
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
87
- fi
88
- exit $exit_code
98
+ awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log
99
+ exit 1
89
100
90
101
# Github CI doesn't support containers on Windows, so we cannot guarantee
91
102
# that paths are the same between building and running systems. To avoid
You can’t perform that action at this time.
0 commit comments