Skip to content

Commit dfd5310

Browse files
committed
update
1 parent d23c3b1 commit dfd5310

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.github/workflows/_linux_ut.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,26 +116,30 @@ jobs:
116116
if [ -f "${{ github.workspace }}/ptrace_scope.bk" ]; then
117117
sudo cp ${{ github.workspace }}/ptrace_scope.bk /proc/sys/kernel/yama/ptrace_scope
118118
fi
119-
120-
host:
119+
120+
docker:
121121
needs: runner
122122
runs-on: ${{ needs.runner.outputs.runner_id }}
123123
timeout-minutes: 1200
124124
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
125135
env:
126-
AGENT_TOOLSDIRECTORY: /tmp/xpu-tool
127136
GH_TOKEN: ${{ github.token }}
128137
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
129138
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
130-
PYTEST_ADDOPTS: -v
131139
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*
136140
- name: Checkout torch-xpu-ops
137141
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 }}
139143
uses: ./.github/actions/linux-testenv
140144
with:
141145
pytorch: ${{ inputs.pytorch }}
@@ -152,6 +156,14 @@ jobs:
152156
if [ -e ut_failure_list.csv ];then
153157
cp ut_failure_list.csv ${{ github.workspace }}/ut_log/ut_failure_list.csv || true
154158
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
155167
- name: Upload Inductor XPU UT Log
156168
if: ${{ ! cancelled() }}
157169
uses: actions/upload-artifact@v4
@@ -172,9 +184,9 @@ jobs:
172184
if [ -f "${{ github.workspace }}/ptrace_scope.bk" ]; then
173185
sudo cp ${{ github.workspace }}/ptrace_scope.bk /proc/sys/kernel/yama/ptrace_scope
174186
fi
175-
187+
176188
summary:
177-
needs: [docker, host]
189+
needs: [docker]
178190
if: ${{ ! cancelled() && ! (endsWith(needs.docker.result, 'ed') && endsWith(needs.host.result, 'ed')) }}
179191
runs-on: ubuntu-24.04
180192
timeout-minutes: 30

0 commit comments

Comments
 (0)