Skip to content

Commit 397db57

Browse files
authored
Merge branch 'PaddlePaddle:develop' into 0520-update
2 parents 0e2332d + 4762002 commit 397db57

58 files changed

Lines changed: 9221 additions & 172 deletions

Some content is hidden

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

.github/workflows/CheckPRTemplate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
check:
1111
name: Check PR Template
1212
if: ${{ github.repository_owner == 'PaddlePaddle' }}
13-
runs-on: ubuntu-latest
13+
runs-on:
14+
group: APPROVAL
1415
env:
1516
PR_ID: ${{ github.event.pull_request.number }}
1617
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}

.github/workflows/Codestyle-Check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
pre-commit:
1111
name: Pre Commit
1212
if: ${{ github.repository_owner == 'PaddlePaddle' }}
13-
runs-on: ubuntu-latest
13+
runs-on:
14+
group: APPROVAL
1415
env:
1516
PR_ID: ${{ github.event.pull_request.number }}
1617
BRANCH: ${{ github.event.pull_request.base.ref }}

.github/workflows/_unit_test_coverage.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,15 @@ jobs:
416416
diff_coverage_report:
417417
needs: run_tests_with_coverage
418418
if: always()
419-
runs-on: ubuntu-latest
419+
runs-on:
420+
group: APPROVAL
420421
timeout-minutes: 15
421422
env:
422423
all_cov_file_url: ${{ needs.run_tests_with_coverage.outputs.all_cov_file_url }}
423424
steps:
425+
- name: Cleanup
426+
run: |
427+
rm -rf * .[^.]*
424428
- name: Clone FastDeploy
425429
uses: actions/checkout@v6
426430
with:

.github/workflows/_xpu_coverage_report.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,15 @@ jobs:
265265
xpu_codecov_upload:
266266
needs: xpu_coverage_combine
267267
if: always()
268-
runs-on: ubuntu-latest
268+
runs-on:
269+
group: APPROVAL
269270
timeout-minutes: 15
270271
env:
271272
xpu_cov_xml_url: ${{ needs.xpu_coverage_combine.outputs.xpu_cov_xml_url }}
272273
steps:
274+
- name: Cleanup
275+
run: |
276+
rm -rf * .[^.]*
273277
- name: Clone FastDeploy
274278
uses: actions/checkout@v6
275279
with:

.github/workflows/approve.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ jobs:
1313
Approval:
1414
name: Approval
1515
if: ${{ github.repository_owner == 'PaddlePaddle' }}
16-
runs-on: ubuntu-latest
16+
runs-on:
17+
group: APPROVAL
1718
env:
1819
PR_ID: ${{ github.event.pull_request.number }}
1920
BRANCH: ${{ github.event.pull_request.base.ref }}
2021
steps:
22+
- name: Cleanup
23+
run: |
24+
rm -rf * .[^.]*
2125
- name: Checkout base repo
2226
uses: actions/checkout@v6
2327
with:

.github/workflows/cancel_ci_iluvatar.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ concurrency:
1313
jobs:
1414
cancel:
1515
name: Cancel ILUVATAR-CI for ${{ github.event.pull_request.number }}
16-
runs-on: ubuntu-latest
16+
runs-on:
17+
group: APPROVAL
1718
steps:
19+
- name: Cleanup
20+
run: |
21+
rm -rf * .[^.]*
1822
- name: Cancel ILUVATAR-CI
1923
run: |
2024
exit 0

.github/workflows/cancel_ci_xpu.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ concurrency:
1313
jobs:
1414
cancel:
1515
name: Cancel CI_XPU for ${{ github.event.pull_request.number }}
16-
runs-on: ubuntu-latest
16+
runs-on:
17+
group: APPROVAL
1718
steps:
19+
- name: Cleanup
20+
run: |
21+
rm -rf * .[^.]*
1822
- name: Cancel CI_XPU
1923
run: |
2024
exit 0

.github/workflows/cancel_pr_build_and_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ concurrency:
1212
jobs:
1313
cancel:
1414
name: Cancel PR Build and Test for ${{ github.event.pull_request.number }}
15-
runs-on: ubuntu-latest
15+
runs-on:
16+
group: APPROVAL
1617
steps:
18+
- name: Cleanup
19+
run: |
20+
rm -rf * .[^.]*
1721
- name: Cancel PR Build and Test
1822
run: |
1923
exit 0

.github/workflows/ce_job.yml

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ concurrency:
1414

1515
jobs:
1616
ce_job_pre_check:
17-
runs-on: ubuntu-latest
17+
runs-on:
18+
group: APPROVAL
1819
env:
1920
COMPILE_BRANCH: ${{ vars.COMPILE_BRANCH }}
2021
CE_COMPILE_SELECTION: ${{ vars.CE_COMPILE_SELECTION }}
@@ -26,6 +27,9 @@ jobs:
2627
sm8090_match: ${{ steps.set_output.outputs.sm8090_match }}
2728

2829
steps:
30+
- name: Cleanup
31+
run: |
32+
rm -rf * .[^.]*
2933
- name: Set Version
3034
id: set_output
3135
env:
@@ -78,9 +82,13 @@ jobs:
7882
done
7983
8084
print_ce_job_pre_check_outputs:
81-
runs-on: ubuntu-latest
85+
runs-on:
86+
group: APPROVAL
8287
needs: ce_job_pre_check
8388
steps:
89+
- name: Cleanup
90+
run: |
91+
rm -rf * .[^.]*
8492
- name: Print outputs as JSON
8593
run: |
8694
echo '${{ toJSON(needs.ce_job_pre_check.outputs) }}'
@@ -89,12 +97,16 @@ jobs:
8997
clone:
9098
environment: CodeSync
9199
name: FD-Clone-Linux
92-
runs-on: ubuntu-latest
100+
runs-on:
101+
group: APPROVAL
93102
needs: ce_job_pre_check
94103
if: ${{ needs.ce_job_pre_check.outputs.branch_match == 'true' }}
95104
outputs:
96105
repo_archive_url: ${{ steps.set_output.outputs.repo_archive_url }}
97106
steps:
107+
- name: Cleanup
108+
run: |
109+
rm -rf * .[^.]*
98110
- name: Clone FastDeploy
99111
uses: actions/checkout@v6
100112
with:
@@ -154,8 +166,12 @@ jobs:
154166
resultshow:
155167
name: Show Code Archive Output
156168
needs: clone
157-
runs-on: ubuntu-latest
169+
runs-on:
170+
group: APPROVAL
158171
steps:
172+
- name: Cleanup
173+
run: |
174+
rm -rf * .[^.]*
159175
- name: Print repo_archive_url path
160176
run: |
161177
echo "The code archive is located at: ${{ needs.clone.outputs.repo_archive_url }}"
@@ -219,13 +235,17 @@ jobs:
219235
environment: CodeSync
220236
name: CE_UPLOAD
221237
needs: build_sm8090
222-
runs-on: ubuntu-latest
238+
runs-on:
239+
group: APPROVAL
223240
env:
224241
AK: ${{ secrets.BOS_AK }}
225242
SK: ${{ secrets.BOS_SK }}
226243
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm8090.outputs.wheel_path }}
227244
COMPILE_ARCH: "80,90"
228245
steps:
246+
- name: Cleanup
247+
run: |
248+
rm -rf * .[^.]*
229249
- uses: actions/setup-python@v6
230250
with:
231251
python-version: '3.10'
@@ -269,13 +289,17 @@ jobs:
269289
environment: CodeSync
270290
name: CE_UPLOAD_RL
271291
needs: build_sm8090_rl
272-
runs-on: ubuntu-latest
292+
runs-on:
293+
group: APPROVAL
273294
env:
274295
AK: ${{ secrets.BOS_AK }}
275296
SK: ${{ secrets.BOS_SK }}
276297
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm8090_rl.outputs.wheel_path_rl }}
277298
COMPILE_ARCH: "80,90"
278299
steps:
300+
- name: Cleanup
301+
run: |
302+
rm -rf * .[^.]*
279303
- uses: actions/setup-python@v6
280304
with:
281305
python-version: '3.10'
@@ -315,13 +339,17 @@ jobs:
315339
environment: CodeSync
316340
name: CE_UPLOAD_90RL
317341
needs: build_sm90_rl
318-
runs-on: ubuntu-latest
342+
runs-on:
343+
group: APPROVAL
319344
env:
320345
AK: ${{ secrets.BOS_AK }}
321346
SK: ${{ secrets.BOS_SK }}
322347
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm90_rl.outputs.wheel_path_rl }}
323348
COMPILE_ARCH: "90,100"
324349
steps:
350+
- name: Cleanup
351+
run: |
352+
rm -rf * .[^.]*
325353
- uses: actions/setup-python@v6
326354
with:
327355
python-version: '3.10'
@@ -361,13 +389,17 @@ jobs:
361389
environment: CodeSync
362390
name: CE_UPLOAD
363391
needs: build_sm8689
364-
runs-on: ubuntu-latest
392+
runs-on:
393+
group: APPROVAL
365394
env:
366395
AK: ${{ secrets.BOS_AK }}
367396
SK: ${{ secrets.BOS_SK }}
368397
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm8689.outputs.wheel_path }}
369398
COMPILE_ARCH: "86,89"
370399
steps:
400+
- name: Cleanup
401+
run: |
402+
rm -rf * .[^.]*
371403
- uses: actions/setup-python@v6
372404
with:
373405
python-version: '3.10'

.github/workflows/check-bypass.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ on:
1818
jobs:
1919
check-bypass:
2020
name: Check bypass
21-
runs-on: ubuntu-latest
21+
runs-on:
22+
group: APPROVAL
2223
permissions:
2324
contents: read
2425
env:
@@ -64,7 +65,9 @@ jobs:
6465
exit 0
6566
fi
6667
67-
files=$(gh pr view ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --json files --jq '.files[].path')
68+
files=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
69+
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=100" \
70+
| jq -r '.[].filename')
6871
echo "$files"
6972
7073
can_skip_docs=true

0 commit comments

Comments
 (0)