Skip to content

Commit d0f203f

Browse files
committed
Merge branch 'develop' into merge_dsv3_pr
2 parents 49663f1 + 0ee3767 commit d0f203f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+10826
-828
lines changed

.github/workflows/build-ci-docker-images.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
# types: [opened, synchronize, reopened]
1313
# branches: [develop]
1414
schedule:
15-
- cron: "5 0 * * 0" # every Sunday at 00:05
15+
- cron: "0 16 * * 5" # UTC 16:00 = Beijing Time, Saturday at 00:00
1616
workflow_dispatch: # allow to manually trigger the workflow
1717

1818
concurrency:
@@ -25,14 +25,13 @@ env:
2525
BRANCH: ${{ github.event.pull_request.base.ref }}
2626
GITHUB_EVENT_NAME: ${{ github.event_name }}
2727
TASK: PaddleFormers-CI-${{ github.event.pull_request.number }}-build-image
28-
image_base: "iregistry.baidu-int.com/paddlecloud/base-images:paddlecloud-ubuntu18.04-gcc8.2-cuda11.8-cudnn8.6-nccl2.15.5"
29-
no_proxy: "localhost,bj.bcebos.com,su.bcebos.com,bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
28+
image_base: "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda126-dev"
3029

3130
jobs:
3231
build-ci-docker-images:
3332
name: build-ci-docker-images
3433
if: github.ref == 'refs/heads/develop'
35-
runs-on: [self-hosted, ernie-8gpu]
34+
runs-on: [self-hosted, ernie-8gpu-1]
3635
outputs:
3736
run_build: ${{ steps.set_flags.outputs.run_build }}
3837
run_downstream: ${{ steps.set_flags.outputs.run_downstream }}
@@ -45,7 +44,7 @@ jobs:
4544
run: |
4645
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
4746
echo "container_name=${container_name}" >> ${{ github.env }}
48-
docker_image="${image_base}-latest"
47+
docker_image="${image_base}"
4948
docker run -d -t --name ${container_name} --net=host -v /dev/shm:/dev/shm --shm-size=32G \
5049
-v $work_dir/../../..:$work_dir/../../.. \
5150
-v $work_dir:/workspace \
@@ -55,7 +54,7 @@ jobs:
5554
-e COMMIT_ID \
5655
-e work_dir \
5756
-e no_proxy \
58-
-w /workspace --runtime=nvidia ${docker_image}
57+
-w /workspace --runtime=nvidia --privileged ${docker_image}
5958
6059
- name: Download Code
6160
env:
@@ -139,10 +138,9 @@ jobs:
139138
- name: Write Dockerfile Inline
140139
run: |
141140
cat <<EOF > Dockerfile
142-
FROM iregistry.baidu-int.com/paddlecloud/base-images:paddlecloud-ubuntu18.04-gcc8.2-cuda11.8-cudnn8.6-nccl2.15.5-libsndfile
143-
RUN unlink /usr/bin/python3 && ln -sf python3.10 /usr/bin/python3
144-
RUN rm -rf /etc/pip.conf
141+
FROM ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda126-dev
145142
RUN python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
143+
RUN python -m pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
146144
RUN python -m pip install bce-python-sdk==0.8.74
147145
COPY PaddleFormers/ /tmp/paddleformers/
148146
WORKDIR /tmp/paddleformers
@@ -153,7 +151,6 @@ jobs:
153151
RUN python -m pip install dist/*.whl
154152
WORKDIR /
155153
RUN rm -rf /tmp/paddleformers
156-
CMD ["python3"]
157154
EOF
158155
159156
- name: Build Docker Image
@@ -180,7 +177,7 @@ jobs:
180177
clean-ci-image:
181178
name: clean-ci-image
182179
needs: [build-ci-docker-images, test-ci-docker-images]
183-
runs-on: [self-hosted, ernie-8gpu]
180+
runs-on: [self-hosted, ernie-8gpu-1]
184181
steps:
185182
- name: Remove CI Image
186183
env:
@@ -203,5 +200,5 @@ jobs:
203200
echo "$CONTAINERS"
204201
fi
205202
fi
206-
# 安全删除悬空镜像(无悬空镜像时跳过)
203+
# Safely remove dangling images (skip if no dangling images exist)
207204
docker images -f "dangling=true" -q | xargs -r docker rmi -f

.github/workflows/ce-build.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@ on:
44
push:
55
branches:
66
- develop
7-
8-
concurrency:
9-
group: build-${{ github.workflow }}
10-
cancel-in-progress: true
117

128
env:
13-
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
14-
TASK: PaddleFormers-CE-${{ github.event.pull_request.number }}-build
15-
BRANCH: ${{ github.event.pull_request.base.ref }}
9+
COMMIT_ID: ${{ github.sha }}
10+
TASK: PaddleFormers-CE-${{ github.sha }}-build
1611
CE_name: build-ce
1712
no_proxy: "localhost,bj.bcebos.com,su.bcebos.com,bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
1813

@@ -23,18 +18,18 @@ defaults:
2318
jobs:
2419
build-ce:
2520
name: build-ce
26-
runs-on: [self-hosted, ernie-8gpu]
21+
runs-on: [self-hosted, paddleformers]
2722
steps:
2823
- name: Determine Image Name
2924
run: |
30-
echo "IMAGE_NAME=iregistry.baidu-int.com/paddlecloud/base-images:paddlecloud-ubuntu18.04-gcc8.2-cuda11.8-cudnn8.6-nccl2.15.5-latest" >> "$GITHUB_ENV"
25+
echo "IMAGE_NAME=ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda126-dev-latest" >> "$GITHUB_ENV"
3126
3227
- name: Run Container
3328
env:
3429
work_dir: ${{ github.workspace }}
3530
FLAGS_dynamic_static_unified_comm: "True"
3631
python_version: "3.10"
37-
paddle: https://paddle-qa.bj.bcebos.com/paddle-pipeline/Develop-GpuSome-LinuxCentos-Gcc82-Cuda118-Cudnn86-Trt85-Py310-CENN-Compile/latest/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
32+
paddle: https://paddle-qa.bj.bcebos.com/paddle-pipeline/Develop-GpuAll-LinuxCentos-Gcc11-Cuda126-Cudnn95-Trt105-Py310-Compile/latest/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
3833
run: |
3934
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
4035
echo "container_name=${container_name}" >> "$GITHUB_ENV"
@@ -43,7 +38,6 @@ jobs:
4338
-v $work_dir:/workspace \
4439
-v /home/.cache/pip:/home/.cache/pip \
4540
-e BRANCH \
46-
-e AGILE_COMPILE_BRANCH \
4741
-e COMMIT_ID \
4842
-e work_dir \
4943
-e ce_scripts \
@@ -52,7 +46,7 @@ jobs:
5246
-e paddle \
5347
-e FLAGS_dynamic_static_unified_comm \
5448
-e python_version \
55-
-w /workspace --runtime=nvidia $IMAGE_NAME
49+
-w /workspace --runtime=nvidia --privileged $IMAGE_NAME
5650
5751
- name: Download Code
5852
run: |
@@ -68,40 +62,37 @@ jobs:
6862
git config --global user.email "[email protected]"
6963
git pull
7064
git submodule update --init --recursive --force
65+
git checkout -b $COMMIT_ID $COMMIT_ID
7166
git log --pretty=oneline -10
7267
'
7368
7469
- name: Test
7570
run: |
7671
docker exec -t $container_name /bin/bash -c '
7772
ldconfig
78-
unlink /usr/bin/python3
79-
ln -sf $(which python${python_version}) /usr/bin/python3
8073
pip config set global.cache-dir "/home/.cache/pip"
8174
set -e
8275
cd /workspace/PaddleFormers && git config --global --add safe.directory $PWD
8376
bash scripts/regression/build.sh
8477
'
8578
86-
- name: Upload Logs
79+
- name: Upload Products
8780
if: always()
8881
env:
8982
home_path: ${{ github.workspace }}/../../..
9083
bos_file: ${{ github.workspace }}/../../../bos/BosClient.py
91-
allure_file: ${{ github.workspace }}/../../../allure-2.19.0/bin/allure
9284
run: |
9385
docker exec -t $container_name /bin/bash -c '
9486
if [ ! -f "${{ env.bos_file }}" ]; then
9587
wget -q --no-proxy -O ${{ env.home_path }}/bos_new.tar.gz https://xly-devops.bj.bcebos.com/home/bos_new.tar.gz --no-check-certificate
9688
mkdir ${{ env.home_path }}/bos
9789
tar xf ${{ env.home_path }}/bos_new.tar.gz -C ${{ env.home_path }}/bos
9890
fi
99-
bos_prefix="schedule/$(date +%Y%m%d)"
100-
cd /workspace/PaddleFormers/build_logs
101-
for FILE in /workspace/PaddleFormers/build_logs/*; do
91+
cd /workspace/PaddleFormers/upload
92+
for FILE in /workspace/PaddleFormers/upload/*; do
10293
file=$(basename "$FILE")
103-
python ${{ env.bos_file }} $file paddle-github-action/PR/PaddleFormers/build/${bos_prefix}/logs
104-
echo "$file: https://paddle-github-action.bj.bcebos.com/PR/PaddleFormers/build/${bos_prefix}/logs/$file"
94+
python ${{ env.bos_file }} $file paddleformers/wheels
95+
echo "$file: https://paddleformers.bj.bcebos.com/wheels/$file"
10596
done
10697
'
10798

.github/workflows/ce-deadlink.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deadlink CE
22

33
on:
44
schedule:
5-
- cron: "0 8 * * 6" # every Saturday at 6:00 AM
5+
- cron: "0 8 * * 6" # every Saturday at 16:00
66
workflow_dispatch: # allow to manually trigger the workflow
77

88
concurrency:
@@ -24,18 +24,18 @@ jobs:
2424
deadlink-ce:
2525
name: deadlink-ce
2626
if: github.ref == 'refs/heads/develop'
27-
runs-on: [self-hosted, ernie-8gpu]
27+
runs-on: [self-hosted, paddleformers]
2828
steps:
2929
- name: Determine Image Name
3030
run: |
31-
echo "IMAGE_NAME=iregistry.baidu-int.com/paddlecloud/base-images:paddlecloud-ubuntu18.04-gcc8.2-cuda11.8-cudnn8.6-nccl2.15.5-latest" >> "$GITHUB_ENV"
31+
echo "IMAGE_NAME=ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda126-dev-latest" >> "$GITHUB_ENV"
3232
3333
- name: Run Container
3434
env:
3535
work_dir: ${{ github.workspace }}
3636
FLAGS_dynamic_static_unified_comm: "True"
3737
python_version: "3.10"
38-
paddle_whl: https://paddle-qa.bj.bcebos.com/paddle-pipeline/Develop-GpuSome-LinuxCentos-Gcc82-Cuda118-Cudnn86-Trt85-Py310-CENN-Compile/latest/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
38+
paddle_whl: https://paddle-qa.bj.bcebos.com/paddle-pipeline/Develop-GpuAll-LinuxCentos-Gcc11-Cuda126-Cudnn95-Trt105-Py310-Compile/latest/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
3939
run: |
4040
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
4141
echo "container_name=${container_name}" >> "$GITHUB_ENV"
@@ -44,7 +44,6 @@ jobs:
4444
-v $work_dir:/workspace \
4545
-v /home/.cache/pip:/home/.cache/pip \
4646
-e BRANCH \
47-
-e AGILE_COMPILE_BRANCH \
4847
-e COMMIT_ID \
4948
-e work_dir \
5049
-e ce_scripts \
@@ -53,7 +52,7 @@ jobs:
5352
-e paddle_whl \
5453
-e FLAGS_dynamic_static_unified_comm \
5554
-e python_version \
56-
-w /workspace --runtime=nvidia $IMAGE_NAME
55+
-w /workspace --runtime=nvidia --privileged $IMAGE_NAME
5756
5857
- name: Download Code
5958
run: |
@@ -81,20 +80,18 @@ jobs:
8180
run: |
8281
docker exec -t $container_name /bin/bash -c '
8382
ldconfig
84-
unlink /usr/bin/python3
85-
ln -sf $(which python${python_version}) /usr/bin/python3
8683
pip config set global.cache-dir "/home/.cache/pip"
8784
set -e
8885
python -m pip install beautifulsoup4 openpyxl
89-
bash run.sh PaddleFormers develop [email protected] PaddleFormers死链检测汇总报告
86+
source $work_dir/../../../proxy
87+
bash run.sh PaddleFormers develop [email protected] "PaddleFormers Broken Link Check Summary Report"
9088
'
9189
9290
- name: Upload Logs
9391
if: always()
9492
env:
9593
home_path: ${{ github.workspace }}/../../..
9694
bos_file: ${{ github.workspace }}/../../../bos/BosClient.py
97-
allure_file: ${{ github.workspace }}/../../../allure-2.19.0/bin/allure
9895
run: |
9996
docker exec -t $container_name /bin/bash -c '
10097
if [ ! -f "${{ env.bos_file }}" ]; then
@@ -103,8 +100,8 @@ jobs:
103100
tar xf ${{ env.home_path }}/bos_new.tar.gz -C ${{ env.home_path }}/bos
104101
fi
105102
bos_prefix="schedule/$(date +%Y%m%d)"
106-
cd /workspace/PaddleFormers/deadlink_logs
107-
for FILE in /workspace/PaddleFormers/deadlink_logs/*; do
103+
cd /workspace/result
104+
for FILE in /workspace/result/*; do
108105
file=$(basename "$FILE")
109106
python ${{ env.bos_file }} $file paddle-github-action/PR/PaddleFormers/deadlink/${bos_prefix}/logs
110107
echo "$file: https://paddle-github-action.bj.bcebos.com/PR/PaddleFormers/deadlink/${bos_prefix}/logs/$file"

.github/workflows/ce-unittest-gpu.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@ name: Unittest GPU CE
22

33
on:
44
schedule:
5-
- cron: "0 6 * * 6"
5+
- cron: "0 2 * * 6" # every Saturday at 10:00
66
workflow_dispatch: # allow to manually trigger the workflow
7+
inputs:
8+
paddle_whl:
9+
description: "paddle_whl"
10+
required: false
11+
default: "https://paddle-qa.bj.bcebos.com/paddle-pipeline/Develop-GpuAll-LinuxCentos-Gcc11-Cuda126-Cudnn95-Trt105-Py310-Compile/latest/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl"
12+
type: string
13+
repo_branch:
14+
description: "repo_branch"
15+
required: false
16+
type: string
717

818
concurrency:
919
group: unittest-${{ github.workflow }}
@@ -25,19 +35,19 @@ defaults:
2535
jobs:
2636
unittest-gpu-ce:
2737
name: unittest-gpu-ce
28-
if: github.ref == 'refs/heads/develop'
2938
runs-on: [self-hosted, ernie-8gpu]
3039
steps:
3140
- name: Determine Image Name
3241
run: |
33-
echo "IMAGE_NAME=iregistry.baidu-int.com/paddlecloud/base-images:paddlecloud-ubuntu18.04-gcc8.2-cuda11.8-cudnn8.6-nccl2.15.5-latest" >> "$GITHUB_ENV"
42+
echo "IMAGE_NAME=ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:cuda126-dev-latest" >> "$GITHUB_ENV"
3443
3544
- name: Run Container
3645
env:
3746
work_dir: ${{ github.workspace }}
3847
FLAGS_dynamic_static_unified_comm: "True"
3948
python_version: "3.10"
40-
paddle_whl: https://paddle-qa.bj.bcebos.com/paddle-pipeline/Develop-GpuSome-LinuxCentos-Gcc82-Cuda118-Cudnn86-Trt85-Py310-CENN-Compile/latest/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
49+
paddle_whl: ${{ github.event.inputs.paddle_whl || 'https://paddle-qa.bj.bcebos.com/paddle-pipeline/Develop-GpuAll-LinuxCentos-Gcc11-Cuda126-Cudnn95-Trt105-Py310-Compile/latest/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl' }}
50+
repo_branch: ${{ github.event.inputs.repo_branch || '' }}
4151
run: |
4252
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
4353
echo "container_name=${container_name}" >> "$GITHUB_ENV"
@@ -53,9 +63,10 @@ jobs:
5363
-e no_proxy \
5464
-e CE_name \
5565
-e paddle_whl \
66+
-e repo_branch \
5667
-e FLAGS_dynamic_static_unified_comm \
5768
-e python_version \
58-
-w /workspace --runtime=nvidia $IMAGE_NAME
69+
-w /workspace --runtime=nvidia --privileged $IMAGE_NAME
5970
6071
- name: Download Code
6172
run: |
@@ -69,7 +80,15 @@ jobs:
6980
cd PaddleFormers
7081
git config --global user.name "PaddleCE"
7182
git config --global user.email "[email protected]"
72-
git pull
83+
if [ -n "$repo_branch" ]; then
84+
echo "Switching to branch: $repo_branch"
85+
git fetch origin $repo_branch
86+
git checkout $repo_branch || git checkout -b $repo_branch origin/$repo_branch
87+
git pull
88+
else
89+
echo "No repo_branch provided, just pulling latest changes"
90+
git pull
91+
fi
7392
git submodule update --init --recursive --force
7493
git log --pretty=oneline -10
7594
'
@@ -78,12 +97,10 @@ jobs:
7897
run: |
7998
docker exec -t $container_name /bin/bash -c '
8099
ldconfig
81-
unlink /usr/bin/python3
82-
ln -sf $(which python${python_version}) /usr/bin/python3
83100
pip config set global.cache-dir "/home/.cache/pip"
84101
set -e
85102
cd /workspace/PaddleFormers && git config --global --add safe.directory $PWD
86-
timeout 2h bash scripts/unit_test/ci_unit.sh ${paddle} true
103+
timeout 2h bash scripts/unit_test/ci_unit.sh ${paddle_whl} true
87104
'
88105
89106
- name: Upload Allure-reports & Logs

0 commit comments

Comments
 (0)