Skip to content
16 changes: 13 additions & 3 deletions .github/workflows/Approval-fleety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@ env:
token: ${{ vars.ACTION_GITHUB_TOKEN }}

jobs:
check-approvers:
name: Check approval
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'skip ci'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

data-storage:
name: Performance data storage
needs: check-bypass
if: false
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand All @@ -40,6 +50,6 @@ jobs:
workflow-name: approval

- name: Display Required Approvers
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
run: |
bash ci/check_approval.sh
16 changes: 12 additions & 4 deletions .github/workflows/CheckPRTemplate-fleety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ on:
types: [opened, synchronize, reopened, edited]

jobs:
check:
name: Check
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'skip ci'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

data-storage:
name: Performance data storage
needs: check-bypass
if: false
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Clone paddle
uses: actions/checkout@v4
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/Codestyle-Check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ on:
branches: [incubate/fleety**]

jobs:
pre-commit:
name: Pre Commit
if: ${{ github.repository_owner == 'PaddlePaddle' }}
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'skip ci'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

data-storage:
name: Performance data storage
needs: check-bypass
if: false
runs-on: ubuntu-latest
env:
PR_ID: ${{ github.event.pull_request.number }}
BRANCH: develop

steps:
- name: Checkout base repo
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/Warning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Warning

on:
pull_request:
types: [opened, synchronize]

env:
BRANCH: ${{ github.base_ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_ID: ${{ github.event.pull_request.number }}
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
token: ${{ vars.ACTION_GITHUB_TOKEN }}

jobs:
warning:
name: Warning
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 200

- name: Update paddle
run: |
echo "Do not code in the incubate/fleety_20250421 branch, please go to incubate/fleety_12 branch!"
echo "不要在incubate/fleety_20250421分支提交代码,请到incubate/fleety_12分支"
exit 1
2 changes: 1 addition & 1 deletion .github/workflows/_Api-Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
data-storage:
name: Performance data storage
needs: check-bypass
if: ${{ inputs.can-skip != 'true' && needs.check-bypass.outputs.can-skip != 'true' && false }}
if: false
runs-on:
group: Api-bm
steps:
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/_CE-Framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@ defaults:
shell: bash

jobs:
whl:
name: Whl
if: ${{ inputs.can-skip != 'true' }}
runs-on:
group: GZ_BD-CPU
env:
TASK: paddle-CI-${{ github.event.pull_request.number }}-CE-Framework-whl
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'skip ci'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

data-storage:
name: Performance data storage
needs: check-bypass
if: false
runs-on: ubuntu-latest
steps:
- name: Check docker image and run container
env:
Expand Down Expand Up @@ -83,7 +89,7 @@ jobs:
workflow-name: ce-whl

- name: Check whl size
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
env:
PADDLE_ROOT: ${{ github.workspace }}
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -101,7 +107,7 @@ jobs:

infer:
name: Infer
if: ${{ inputs.can-skip != 'true' }}
if: false
runs-on:
group: BD_BJ-V100
env:
Expand Down Expand Up @@ -164,7 +170,7 @@ jobs:
workflow-name: ce-infer

- name: Install paddle and dependencies
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
env:
work_dir: ${{ github.workspace }}
run: |
Expand All @@ -181,7 +187,7 @@ jobs:
'

- name: Check
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
env:
work_dir: ${{ github.workspace }}
run: |
Expand All @@ -200,7 +206,7 @@ jobs:

test:
name: Test
if: ${{ inputs.can-skip != 'true' }}
if: false
runs-on:
group: BD_BJ-V100
env:
Expand Down Expand Up @@ -264,7 +270,7 @@ jobs:
workflow-name: ce-test

- name: Install paddle and dependencies
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
env:
work_dir: ${{ github.workspace }}
run: |
Expand All @@ -280,7 +286,7 @@ jobs:
'

- name: Check
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
env:
work_dir: ${{ github.workspace }}
run: |
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/_Clone-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@ env:
BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }}

jobs:
clone:
name: Clone Paddle
if: ${{ github.repository_owner == 'PaddlePaddle' }}
outputs:
can-skip: ${{ steps.check-bypass.outputs.can-skip }}
slice-check: ${{ steps.check-execution.outputs.slice-check }}
runs-on:
group: HK-Clone
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'skip ci'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

data-storage:
name: Performance data storage
needs: check-bypass
if: false
runs-on: ubuntu-latest
steps:
- name: Clean environment
run: |
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/_Coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ defaults:
shell: bash

jobs:
build:
name: Coverage build
runs-on:
group: GZ_BD-CPU
outputs:
can-skip: ${{ steps.check-bypass.outputs.can-skip }}
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'skip ci'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

data-storage:
name: Performance data storage
needs: check-bypass
if: false
runs-on: ubuntu-latest

steps:
- name: Check docker image and run container
Expand Down Expand Up @@ -144,7 +151,7 @@ jobs:
workflow-name: coverage

- name: Build
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
run: |
docker exec -t ${{ env.container_name }} /bin/bash -c '
mkdir -p ${CFS_DIR}/.cache/coverage
Expand All @@ -155,7 +162,7 @@ jobs:
'

- name: Check added unittests
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
run: |
docker exec -t ${{ env.container_name }} /bin/bash -c '
source ~/.bashrc
Expand All @@ -164,7 +171,7 @@ jobs:
'

- name: Check coverage build size requires approval
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
run: |
docker exec -t ${{ env.container_name }} /bin/bash -c '
source ~/.bashrc
Expand All @@ -173,7 +180,7 @@ jobs:
'

- name: Clean up env
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
run: |
docker exec -t ${{ env.container_name }} /bin/bash -c '
source ~/.bashrc
Expand All @@ -194,7 +201,7 @@ jobs:
'

- name: Upload coverage product
if: steps.check-bypass.outputs.can-skip != 'true'
if: false
env:
home_path: ${{ github.workspace }}/..
bos_file: ${{ github.workspace }}/../bos_retry/BosClient.py
Expand Down Expand Up @@ -225,7 +232,7 @@ jobs:
'

- name: Terminate and delete the container
if: ${{ steps.check-bypass.outputs.can-skip != 'true' && always() }}
if: false
run: |
set +e
docker exec -t ${{ env.container_name }} /bin/bash -c 'rm -rf * .[^.]*'
Expand All @@ -235,8 +242,7 @@ jobs:

test:
name: Coverage test
needs: [build]
if: needs.build.outputs.can-skip != 'true'
if: false
runs-on:
group: BD_BJ-V100
steps:
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/_Distribute-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ defaults:
shell: bash

jobs:
build:
name: Build
outputs:
can-skip: ${{ steps.check-bypass.outputs.can-skip }}
runs-on:
group: GZ_BD-CPU
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'skip ci'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

data-storage:
name: Performance data storage
needs: check-bypass
if: false
runs-on: ubuntu-latest

steps:
- name: Check docker image and run container
Expand Down Expand Up @@ -225,8 +232,7 @@ jobs:

test:
name: Test
needs: build
if: ${{ needs.build.outputs.can-skip != 'true' }}
if: false
runs-on:
group: Distribute
steps:
Expand Down
Loading
Loading