Skip to content

Commit c7012a1

Browse files
authored
[CI] update trigger conditions (#2499)
1 parent 19132c5 commit c7012a1

File tree

8 files changed

+21
-104
lines changed

8 files changed

+21
-104
lines changed

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

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

1718
concurrency:
1819
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
@@ -30,6 +31,7 @@ env:
3031
jobs:
3132
build-ci-docker-images:
3233
name: build-ci-docker-images
34+
if: github.ref == 'refs/heads/develop'
3335
runs-on: [self-hosted, ernie-8gpu]
3436
outputs:
3537
run_build: ${{ steps.set_flags.outputs.run_build }}
@@ -75,7 +77,7 @@ jobs:
7577
git fetch origin pull/${PR_ID}/head
7678
git checkout -b PR_${PR_ID} FETCH_HEAD
7779
git remote add upstream https://github.com/PaddlePaddle/PaddleFormers.git
78-
git fetch upstream ${BRANCH}
80+
git fetch upstream ${BRANCH}:${BRANCH}
7981
git merge ${BRANCH} --no-edit
8082
git diff --numstat ${BRANCH} -- | awk "{print \$NF}"
8183
else

.github/workflows/ce-build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Build Whl CE
22

3-
on: [push]
4-
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
58
concurrency:
69
group: build-${{ github.workflow }}
710
cancel-in-progress: true
@@ -31,7 +34,7 @@ jobs:
3134
work_dir: ${{ github.workspace }}
3235
FLAGS_dynamic_static_unified_comm: "True"
3336
python_version: "3.10"
34-
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
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
3538
run: |
3639
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
3740
echo "container_name=${container_name}" >> "$GITHUB_ENV"
@@ -46,7 +49,7 @@ jobs:
4649
-e ce_scripts \
4750
-e no_proxy \
4851
-e CE_name \
49-
-e paddle_whl \
52+
-e paddle \
5053
-e FLAGS_dynamic_static_unified_comm \
5154
-e python_version \
5255
-w /workspace --runtime=nvidia $IMAGE_NAME

.github/workflows/ce-deadlink.yml

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

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

78
concurrency:
89
group: deadlink-${{ github.workflow }}
@@ -22,6 +23,7 @@ defaults:
2223
jobs:
2324
deadlink-ce:
2425
name: deadlink-ce
26+
if: github.ref == 'refs/heads/develop'
2527
runs-on: [self-hosted, ernie-8gpu]
2628
steps:
2729
- name: Determine Image Name
@@ -83,7 +85,6 @@ jobs:
8385
ln -sf $(which python${python_version}) /usr/bin/python3
8486
pip config set global.cache-dir "/home/.cache/pip"
8587
set -e
86-
cd /workspace/PaddleFormers && git config --global --add safe.directory $PWD
8788
python -m pip install beautifulsoup4 openpyxl
8889
bash run.sh PaddleFormers develop [email protected] PaddleFormers死链检测汇总报告
8990
'

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

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

33
on:
44
schedule:
5-
- cron: "0 16 * * 0"
5+
- cron: "0 6 * * 6"
6+
workflow_dispatch: # allow to manually trigger the workflow
67

78
concurrency:
89
group: unittest-${{ github.workflow }}
@@ -24,6 +25,7 @@ defaults:
2425
jobs:
2526
unittest-gpu-ce:
2627
name: unittest-gpu-ce
28+
if: github.ref == 'refs/heads/develop'
2729
runs-on: [self-hosted, ernie-8gpu]
2830
steps:
2931
- name: Determine Image Name
@@ -81,7 +83,7 @@ jobs:
8183
pip config set global.cache-dir "/home/.cache/pip"
8284
set -e
8385
cd /workspace/PaddleFormers && git config --global --add safe.directory $PWD
84-
timeout 1h bash scripts/unit_test/ci_unit.sh ${paddle} true
86+
timeout 2h bash scripts/unit_test/ci_unit.sh ${paddle} true
8587
'
8688
8789
- name: Upload Allure-reports & Logs

.github/workflows/pipelines.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/unittest-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
git fetch origin pull/${PR_ID}/head
6262
git checkout -b PR_${PR_ID} FETCH_HEAD
6363
git remote add upstream https://github.com/PaddlePaddle/PaddleFormers.git
64-
git fetch upstream ${BRANCH}
64+
git fetch upstream ${BRANCH}:${BRANCH}
6565
git merge ${BRANCH} --no-edit
6666
git diff --numstat ${BRANCH} -- | awk "{print \$NF}"
6767
else

.github/workflows/unittest-gpu.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ name: Unittest GPU CI
22

33
on:
44
pull_request:
5-
branches:
6-
- develop
7-
- 'release*'
85
schedule:
9-
- cron: "4 0 * * *"
6+
- cron: "3 0 * * *"
107
workflow_call:
118
inputs:
129
run_downstream:
@@ -101,7 +98,7 @@ jobs:
10198
git fetch origin pull/${PR_ID}/head
10299
git checkout -b PR_${PR_ID} FETCH_HEAD
103100
git remote add upstream https://github.com/PaddlePaddle/PaddleFormers.git
104-
git fetch upstream ${BRANCH}
101+
git fetch upstream ${BRANCH}:${BRANCH}
105102
git merge ${BRANCH} --no-edit
106103
git diff --numstat ${BRANCH} -- | awk "{print \$NF}"
107104
else

0 commit comments

Comments
 (0)