Skip to content

Commit b26093c

Browse files
authored
Fix CI build issue (#1451)
1. No need submodules for launch 2. Build torch commit
1 parent eae9f31 commit b26093c

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.github/workflows/_linux_build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ on:
3636
outputs:
3737
whl_name:
3838
description: The name of the wheel file
39-
value: ${{ jobs.Torch-XPU-Build.outputs.whl_name }}
39+
value: ${{ jobs.build.outputs.whl_name }}
4040
torch_commit_id:
4141
description: The commit id of the torch build
42-
value: ${{ jobs.Torch-XPU-Build.outputs.TORCH_COMMIT_ID }}
42+
value: ${{ jobs.build.outputs.TORCH_COMMIT_ID }}
4343

4444
permissions:
4545
issues: write
@@ -116,7 +116,7 @@ jobs:
116116
WERROR=1 python setup.py bdist_wheel 2>&1 | tee pytorch_${current_commit}_build.log
117117
118118
if [[ ${is_fork_pr} == "false" ]]; then
119-
if [ -f dist/torch*.whl && "${last_commit}" != "${current_commit}"] && [[ "${{ inputs.pytorch }}" == "main" || "${{ inputs.pytorch }}" == "release/"* ]]; then
119+
if [ -f dist/torch*.whl && "${last_commit}" != "${current_commit}" ] && [[ "${{ inputs.pytorch }}" == "main" || "${{ inputs.pytorch }}" == "release/"* ]]; then
120120
echo "Wheel build successful, update last commit in the issue https://github.com/intel/torch-xpu-ops/issues/1280"
121121
gh --repo $repo issue view $commit_issue --json body -q .body | sed "s;${last_commit};${current_commit};g" | sed '/^$/d' > new_body.txt
122122
gh --repo $repo issue edit $commit_issue --body-file new_body.txt

.github/workflows/nightly_ondemand.yml

-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ jobs:
142142
pip install requests
143143
python ../torch-xpu-ops/.github/scripts/apply_torch_pr.py
144144
git status && git show -s
145-
git submodule sync && git submodule update --init --recursive
146145
if [[ ${{ env.keep_torch_xpu_ops }} == 'true' ]]; then
147146
echo "Don't replace torch-xpu-ops!"
148147
else

.github/workflows/nightly_ondemand_rolling.yml

-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ jobs:
147147
pip install requests
148148
python ../torch-xpu-ops/.github/scripts/apply_torch_pr.py
149149
git status && git show -s
150-
git submodule sync && git submodule update --init --recursive
151150
if [[ ${{ env.keep_torch_xpu_ops }} == 'true' ]]; then
152151
echo "Don't replace torch-xpu-ops!"
153152
else

.github/workflows/pull.yml

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ jobs:
9797
# https://github.com/mengfei25/pytorch/pull/18 internal use only for subset model list
9898
python ../torch-xpu-ops/.github/scripts/apply_torch_pr.py -e https://github.com/mengfei25/pytorch/pull/18
9999
git status && git show -s
100-
git submodule sync && git submodule update --init --recursive
101100
rm -rf third_party/torch-xpu-ops && cp -r ../torch-xpu-ops third_party/
102101
# Workaround for torch-xpu-ops ci test
103102
sed -i "s/checkout --quiet \${TORCH_XPU_OPS_COMMIT}/log -n 1/g" caffe2/CMakeLists.txt

0 commit comments

Comments
 (0)