Skip to content

Commit 62e8dba

Browse files
authored
Merge branch 'main' into yucai/scatter
2 parents 72974a0 + aa5b3dc commit 62e8dba

File tree

13 files changed

+298
-228
lines changed

13 files changed

+298
-228
lines changed

.github/workflows/_linux_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
DisableScratchPages: ${{ inputs.driver == 'rolling' && '1' || '0' }}
5757
outputs:
5858
TORCH_COMMIT_ID: ${{ steps.build_version.outputs.TORCH_COMMIT_ID }}
59-
timeout-minutes: 900
59+
timeout-minutes: 300
6060
steps:
6161
- name: Setup based env
6262
run: |

.github/workflows/_linux_ut.yml

Lines changed: 88 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
type: string
2424
default: ''
2525
description: UT scope. `op_regression,op_regression_dev1,op_transformers,op_extended,op_ut,torch_xpu` Delimiter is comma
26+
disabled_tests:
27+
required: false
28+
type: string
29+
default: ''
30+
description: List disabled tests, such as disable_ut or disable_distributed
2631
python:
2732
required: false
2833
type: string
@@ -43,9 +48,9 @@ permissions: read-all
4348

4449
jobs:
4550
ut_test:
46-
runs-on: ${{ inputs.runner }}
47-
if: ${{ inputs.ut != 'xpu_distributed' }}
48-
timeout-minutes: 900
51+
runs-on: ${{ inputs.runner }}
52+
if: ${{ inputs.ut != 'xpu_distributed' && !contains(inputs.disabled_tests, 'disable_ut') }}
53+
timeout-minutes: 300
4954
env:
5055
GH_TOKEN: ${{ github.token }}
5156
NEOReadDebugKeys: ${{ inputs.driver == 'rolling' && '1' || '0' }}
@@ -298,7 +303,39 @@ jobs:
298303
if [ -e "ut_failure_list.csv" ];then
299304
cp ut_failure_list.csv ${{ github.workspace }}/ut_log/ut_failure_list.csv
300305
fi
301-
- name: UT Test Results Check
306+
echo "UT_NAME=$(echo ${{ inputs.ut }} |sed 's/,/-/g')" |tee -a "${GITHUB_OUTPUT}" >> "${GITHUB_ENV}"
307+
- name: Upload Inductor XPU UT Log
308+
if: always()
309+
uses: actions/upload-artifact@v4
310+
with:
311+
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ env.UT_NAME }}
312+
path: ${{ github.workspace }}/ut_log
313+
- name: Upload XPU UT Failure list
314+
if: always()
315+
uses: actions/upload-artifact@v4
316+
with:
317+
name: XPU-UT-Failure-List-${{ github.event.pull_request.number || github.sha }}-${{ env.UT_NAME }}
318+
path: ${{ github.workspace }}/ut_log/ut_failure_list.csv
319+
320+
ut_test_results_check:
321+
needs: ut_test
322+
runs-on: ubuntu-22.04
323+
timeout-minutes: 30
324+
env:
325+
GH_TOKEN: ${{ github.token }}
326+
ut_skip_issue: 1624
327+
steps:
328+
- name: Set the UT name
329+
run: |
330+
echo "UT_NAME=$(echo ${{ inputs.ut }} |sed 's/,/-/g')" |tee -a "${GITHUB_OUTPUT}" >> "${GITHUB_ENV}"
331+
- name: Checkout torch-xpu-ops
332+
uses: actions/checkout@v4
333+
- name: Download XPU UT Logs
334+
uses: actions/download-artifact@v4
335+
with:
336+
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ env.UT_NAME }}
337+
path: ${{ github.workspace }}/ut_log
338+
- name: Check UT Results
302339
shell: bash
303340
run: |
304341
repo="${{ github.repository }}"
@@ -319,26 +356,28 @@ jobs:
319356
$contains_status
320357
cd ${{ github.workspace }}/ut_log/${ut_suite}
321358
gh --repo $repo issue view $ut_skip_issue --json body -q .body | sed '/^$/d' > Known_issue.log
359+
gh api "repos/${{ github.repository }}/issues?labels=skipped" \
360+
--jq '.[] | select(.pull_request == null) | "Issue #\(.number): \(.title)\n\(.body)\n"' \
361+
> issues.log
362+
awk '/Cases:/ {flag=1; next} /^\|\||^$/ {flag=0} flag' issues.log | grep -Eo 'test[^[:space:]]+( \|\| [^[:space:]]+)?' | sed 's/ *|| */ /g' | sort -u > issues_temp.log
363+
awk '$2 == "op_ut" {print $1}' issues_temp.log > issues_op_ut.log
364+
cat issues_temp.log | awk '{print $1}' >> Known_issue.log
365+
awk -F'::' '{print $1}' issues_op_ut.log | sort -u | paste -sd ',' >> Known_issue.log
366+
322367
cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./
323368
bash ut_result_check.sh ${ut_suite}
324369
done
325370
- name: Upload Inductor XPU UT Log
326371
if: always()
327372
uses: actions/upload-artifact@v4
328373
with:
329-
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ env.UT_NAME }}
374+
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ env.UT_NAME }}-checked
330375
path: ${{ github.workspace }}/ut_log
331-
- name: Upload XPU UT Failure list
332-
if: always()
333-
uses: actions/upload-artifact@v4
334-
with:
335-
name: XPU-UT-Failure-List-${{ github.event.pull_request.number || github.sha }}-${{ env.UT_NAME }}
336-
path: ${{ github.workspace }}/ut_log/ut_failure_list.csv
337376

338377
distributed_ut_test:
339-
runs-on: pvc_e2e
340-
if: contains(inputs.ut, 'xpu_distributed')
341-
timeout-minutes: 900
378+
runs-on: pytorch-06
379+
if: ${{ contains(inputs.ut, 'xpu_distributed') && !contains(inputs.disabled_tests, 'disable_distribute') }}
380+
timeout-minutes: 60
342381
env:
343382
GH_TOKEN: ${{ github.token }}
344383
NEOReadDebugKeys: ${{ inputs.driver == 'rolling' && '1' || '0' }}
@@ -455,7 +494,32 @@ jobs:
455494
if [ -f ptrace_scope.bk ]; then
456495
sudo cp ptrace_scope.bk /proc/sys/kernel/yama/ptrace_scope
457496
fi
458-
- name: UT Test Results Check
497+
- name: Upload Inductor XPU UT Log
498+
if: ${{ ! cancelled() }}
499+
uses: actions/upload-artifact@v4
500+
with:
501+
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-xpu_distributed
502+
path: ${{ github.workspace }}/ut_log
503+
504+
distributed_ut_test_results_check:
505+
needs: distributed_ut_test
506+
runs-on: ubuntu-22.04
507+
timeout-minutes: 30
508+
env:
509+
GH_TOKEN: ${{ github.token }}
510+
ut_skip_issue: 1624
511+
steps:
512+
- name: Set the UT name
513+
run: |
514+
echo "UT_NAME=$(echo ${{ inputs.ut }} |sed 's/,/-/g')" |tee -a "${GITHUB_OUTPUT}" >> "${GITHUB_ENV}"
515+
- name: Checkout torch-xpu-ops
516+
uses: actions/checkout@v4
517+
- name: Download XPU UT Logs
518+
uses: actions/download-artifact@v4
519+
with:
520+
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-xpu_distributed
521+
path: ${{ github.workspace }}/ut_log
522+
- name: Check UT Results
459523
shell: bash
460524
run: |
461525
repo="${{ github.repository }}"
@@ -472,11 +536,18 @@ jobs:
472536
echo "UT_NAME=$(echo ${{ inputs.ut }} |sed 's/,/-/g')" |tee -a "${GITHUB_OUTPUT}" >> "${GITHUB_ENV}"
473537
cd ${{ github.workspace }}/ut_log/xpu_distributed
474538
gh --repo $repo issue view $ut_skip_issue --json body -q .body | sed '/^$/d' > Known_issue.log
539+
gh api "repos/${{ github.repository }}/issues?labels=skipped" \
540+
--jq '.[] | select(.pull_request == null) | "Issue #\(.number): \(.title)\n\(.body)\n"' \
541+
> issues.log
542+
awk '/Cases:/ {flag=1; next} /^\|\||^$/ {flag=0} flag' issues.log | grep -Eo 'test[^[:space:]]+( \|\| [^[:space:]]+)?' | sed 's/ *|| */ /g' | sort -u > issues_temp.log
543+
awk '$2 == "op_ut" {print $1}' issues_temp.log > issues_op_ut.log
544+
cat issues_temp.log | awk '{print $1}' >> Known_issue.log
545+
awk -F'::' '{print $1}' issues_op_ut.log | sort -u | paste -sd ',' >> Known_issue.log
475546
cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./
476547
bash ut_result_check.sh 'xpu_distributed'
477548
- name: Upload Inductor XPU UT Log
478-
if: ${{ ! cancelled() }}
549+
if: always()
479550
uses: actions/upload-artifact@v4
480551
with:
481-
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-xpu_distributed
552+
name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-xpu_distributed-checked
482553
path: ${{ github.workspace }}/ut_log

.github/workflows/_windows_ut.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ on:
3333
type: string
3434
default: '2025.1'
3535
description: Python version
36-
files-changed:
36+
src_changed:
3737
required: true
3838
type: string
3939
default: 'false'
4040
description: Check if filtered file changed
41-
has-label:
41+
has_label:
4242
required: true
4343
type: string
4444
default: 'false'
@@ -50,9 +50,9 @@ env:
5050
USE_XPU: 1
5151

5252
jobs:
53-
Torch-XPU-Windows-UT:
53+
ut_test:
5454
runs-on: ${{ inputs.runner }}
55-
if: ${{ inputs.files-changed == 'true' || inputs.has-label == 'true' }}
55+
if: ${{ inputs.src_changed == 'true' || inputs.has_label == 'true' }}
5656
timeout-minutes: 900
5757
steps:
5858
- name: Checkout torch-xpu-ops

.github/workflows/nightly_ondemand.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ concurrency:
6767

6868
jobs:
6969
Linux-Nightly-Ondemand-Build:
70+
if: ${{ github.repository_owner == 'intel' }}
7071
secrets: inherit
71-
if: ${{ ! cancelled() }}
7272
name: linux-nightly-ondemand
7373
permissions:
7474
issues: write
@@ -96,8 +96,6 @@ jobs:
9696
Linux-Nightly-Ondemand-E2E-Tests:
9797
runs-on: pvc_e2e
9898
name: linux-nightly-ondemand / e2e_test
99-
# Don't run on forked repos
100-
if: ${{ github.repository_owner == 'intel' }}
10199
needs: Linux-Nightly-Ondemand-Build
102100
timeout-minutes: 3600
103101
env:

.github/workflows/nightly_ondemand_rolling.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ concurrency:
6767

6868
jobs:
6969
Linux-Nightly-Ondemand-Build-Rolling:
70-
# Don't run on forked repos
71-
secrets: inherit
7270
if: ${{ github.repository_owner == 'intel' }}
71+
secrets: inherit
7372
name: linux-nightly-ondemand-rolling
7473
permissions:
7574
issues: write
@@ -110,8 +109,6 @@ jobs:
110109

111110
Linux-Nightly-Ondemand-E2E-Tests-Rolling:
112111
runs-on: pvc_rolling
113-
# Don't run on forked repos
114-
if: ${{ github.repository_owner == 'intel' }}
115112
name: linux-nightly-ondemand-rolling / e2e_test
116113
needs: Linux-Nightly-Ondemand-Build-Rolling
117114
timeout-minutes: 3600

.github/workflows/nightly_ondemand_whl.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ concurrency:
5757

5858
jobs:
5959
Linux-Nightly-Ondemand-UT-WHL-Tests:
60-
if: ${{ github.event_name == 'schedule' || inputs.ut != '' }}
60+
if: ${{ (github.event_name == 'schedule' || inputs.ut != '') && github.repository_owner == 'intel' }}
6161
uses: ./.github/workflows/_linux_ut.yml
6262
with:
6363
ut: ${{ github.event_name == 'schedule' && 'op_regression,op_regression_dev1,op_transformers,op_extended,op_ut' || inputs.ut }}
@@ -67,7 +67,6 @@ jobs:
6767

6868
Linux-Nightly-Ondemand-E2E-WHL-Tests:
6969
runs-on: pvc_e2e
70-
# Don't run on forked repos
7170
if: ${{ github.repository_owner == 'intel' }}
7271
timeout-minutes: 3600
7372
env:

0 commit comments

Comments
 (0)