Skip to content

Commit 5a2b4a1

Browse files
authored
[CI] Add no_proxy for all yaml (#72514)
* test=document_fix no_proxy * test=document_fix log
1 parent f5b260c commit 5a2b4a1

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

.github/workflows/_Coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
PADDLE_ROOT: /paddle
1616
GIT_PR_ID: ${{ github.event.pull_request.number }}
1717
CI_name: coverage
18+
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
1819

1920
defaults:
2021
run:
@@ -123,6 +124,7 @@ jobs:
123124
-e GITHUB_TOKEN \
124125
-e GITHUB_API_TOKEN \
125126
-e UT_RUN_TYPE_SETTING \
127+
-e no_proxy \
126128
-w /paddle --network host ${docker_image}
127129
128130
- name: Build
@@ -288,6 +290,7 @@ jobs:
288290
-e COVERAGE_FILE \
289291
-e GITHUB_TOKEN \
290292
-e GITHUB_API_TOKEN \
293+
-e no_proxy \
291294
-w /paddle --network host ${docker_image}
292295
293296
- name: Download paddle.tar.gz and update test branch

.github/workflows/_Inference.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
work_dir: /paddle
1313
PADDLE_ROOT: /paddle
1414
BRANCH: ${{ github.event.pull_request.base.ref }}
15+
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
1516

1617
defaults:
1718
run:
@@ -100,6 +101,7 @@ jobs:
100101
-e ci_scripts \
101102
-e CUDA_ARCH_NAME \
102103
-e PADDLE_CUDA_INSTALL_REQUIREMENTS \
104+
-e no_proxy \
103105
-w /paddle --network host ${docker_image} /bin/bash
104106
105107
- name: Download paddle.tar.gz and update test branch
@@ -237,6 +239,7 @@ jobs:
237239
-e CUDA_ARCH_NAME \
238240
-e PADDLE_CUDA_INSTALL_REQUIREMENTS \
239241
-e GITHUB_API_TOKEN \
242+
-e no_proxy \
240243
-w /paddle --network host ${docker_image} /bin/bash
241244
242245
- name: Download paddle.tar.gz

.github/workflows/_Linux-CPU.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
ci_scripts: ${{ github.workspace }}/ci
1515
BRANCH: ${{ github.event.pull_request.base.ref }}
1616
CI_name: cpu
17+
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
1718

1819
defaults:
1920
run:
@@ -81,6 +82,7 @@ jobs:
8182
-e ci_scripts \
8283
-e WITH_AVX \
8384
-e CCACHE_DIR \
85+
-e no_proxy \
8486
-w /paddle --network host ${docker_image}
8587
8688
- name: Download paddle.tar.gz and merge target branch

.github/workflows/_Linux-XPU.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
PADDLE_ROOT: /paddle
1515
BRANCH: ${{ github.event.pull_request.base.ref }}
1616
CI_name: xpu
17+
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
1718

1819
defaults:
1920
run:
@@ -75,7 +76,6 @@ jobs:
7576
CCACHE_DIR: /root/.ccache
7677
CCACHE_MAXSIZE: 150G
7778
CCACHE_LIMIT_MULTIPLE: 0.8
78-
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
7979
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8080
home_dir: ${{ github.workspace }}/../../../..
8181
run: |
@@ -146,8 +146,10 @@ jobs:
146146
cd ..
147147
tar --use-compress-program="pigz" -cpf build.tar.gz Paddle
148148
# source /home/opt/deck/1.0/etc/bashrc
149+
echo "Uploading build.tar.gz"
149150
python3 ${bos_file} build.tar.gz paddle-github-action/PR/xpu/${{ env.PR_ID }}/${{ env.COMMIT_ID }}
150151
rm build.tar.gz
152+
echo "Uploading paddle_whl"
151153
cp ${{ github.workspace }}/dist/$paddle_whl .
152154
python3 ${bos_file} ${paddle_whl} paddle-github-action/PR/xpu/${{ env.PR_ID }}/${{ env.COMMIT_ID }}
153155
rm ${paddle_whl}
@@ -204,7 +206,6 @@ jobs:
204206
CCACHE_DIR: /root/.ccache
205207
CCACHE_MAXSIZE: 150G
206208
CCACHE_LIMIT_MULTIPLE: 0.8
207-
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
208209
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
209210
home_dir: ${{ github.workspace }}/../../../..
210211
FLAGS_use_stride_kernel: "0"

.github/workflows/_SOT.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
TASK: paddle-CI-${{ github.event.pull_request.number }}-sot
1212
ci_scripts: /paddle/ci
1313
CI_name: sot
14+
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
1415

1516
defaults:
1617
run:
@@ -92,6 +93,7 @@ jobs:
9293
-e ci_scripts \
9394
-e WITH_AVX \
9495
-e CCACHE_DIR \
96+
-e no_proxy \
9597
-w /paddle --network host ${docker_image}
9698
9799
- name: Download paddle.tar.gz and merge target branch

ci/run_setup.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ EOF
283283
fi
284284
ccache -z
285285
cd ..
286-
echo "::group::Build Paddle"
287286
if [ "${PYTHON_EXECUTABLE}" != "" ];then
288287
if [ "$SYSTEM" == "Darwin" ]; then
289288
${PYTHON_EXECUTABLE} setup.py $1 --plat-name=macosx_10_9_x86_64;build_error=$?
@@ -297,7 +296,6 @@ EOF
297296
python setup.py $1;build_error=$?
298297
fi
299298
fi
300-
echo "::endgroup::"
301299

302300
# ci will collect ccache hit rate
303301
collect_ccache_hits

0 commit comments

Comments
 (0)