@@ -116,26 +116,30 @@ jobs:
116
116
if [ -f "${{ github.workspace }}/ptrace_scope.bk" ]; then
117
117
sudo cp ${{ github.workspace }}/ptrace_scope.bk /proc/sys/kernel/yama/ptrace_scope
118
118
fi
119
-
120
- host :
119
+
120
+ docker :
121
121
needs : runner
122
122
runs-on : ${{ needs.runner.outputs.runner_id }}
123
123
timeout-minutes : 1200
124
124
if : ${{ contains(inputs.ut, 'distributed') }}
125
+ container :
126
+ image : mengfeili/intel-pvc-driver:1146-1136
127
+ volumes :
128
+ - ${{ github.workspace }}:${{ github.workspace }}
129
+ options : --device=/dev/mem --device=/dev/dri --group-add video --security-opt seccomp=unconfined --cap-add=SYS_PTRACE --shm-size=8g
130
+ -u ${{ needs.runner.outputs.user_id }}:${{ needs.runner.outputs.render_id }}
131
+ -e ZE_AFFINITY_MASK
132
+ env :
133
+ AGENT_TOOLSDIRECTORY : /tmp/xpu-tool
134
+ PYTEST_ADDOPTS : -v
125
135
env :
126
- AGENT_TOOLSDIRECTORY : /tmp/xpu-tool
127
136
GH_TOKEN : ${{ github.token }}
128
137
HUGGING_FACE_HUB_TOKEN : ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
129
138
HF_TOKEN : ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
130
- PYTEST_ADDOPTS : -v
131
139
steps :
132
- - name : Init test
133
- run : |
134
- sudo find ./ |grep -v "^\./$" |xargs sudo rm -rf
135
- sudo rm -rf ~/.triton /tmp/*inductor* /tmp/tmp*
136
140
- name : Checkout torch-xpu-ops
137
141
uses : actions/checkout@v4
138
- - name : Prepare test env on ${{ needs.runner.outputs.runner_id }}
142
+ - name : Prepare test env on ${{ needs.runner.outputs.hostname }}
139
143
uses : ./.github/actions/linux-testenv
140
144
with :
141
145
pytorch : ${{ inputs.pytorch }}
@@ -152,6 +156,14 @@ jobs:
152
156
if [ -e ut_failure_list.csv ];then
153
157
cp ut_failure_list.csv ${{ github.workspace }}/ut_log/ut_failure_list.csv || true
154
158
fi
159
+ - name : UT Test Results Summary
160
+ run : |
161
+ source activate xpu_op_${ZE_AFFINITY_MASK}
162
+ pip install junitparser
163
+ cd ${{ github.workspace }}/ut_log/
164
+ python check-ut.py ${{ github.workspace }}/ut_log/*.xml \
165
+ 2>${{ github.workspace }}/ut_log/xpu_distributed/pytorch_distributed_test_summary.log | \
166
+ >> $GITHUB_STEP_SUMMARY || true
155
167
- name : Upload Inductor XPU UT Log
156
168
if : ${{ ! cancelled() }}
157
169
uses : actions/upload-artifact@v4
@@ -172,9 +184,9 @@ jobs:
172
184
if [ -f "${{ github.workspace }}/ptrace_scope.bk" ]; then
173
185
sudo cp ${{ github.workspace }}/ptrace_scope.bk /proc/sys/kernel/yama/ptrace_scope
174
186
fi
175
-
187
+
176
188
summary :
177
- needs : [docker, host ]
189
+ needs : [docker]
178
190
if : ${{ ! cancelled() && ! (endsWith(needs.docker.result, 'ed') && endsWith(needs.host.result, 'ed')) }}
179
191
runs-on : ubuntu-24.04
180
192
timeout-minutes : 30
0 commit comments