mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[CI] Fix: incorrect downstream job execution when only build_gpu/xpu is skipped (#6958)
* [CI] Fix: incorrect downstream job execution when only build_gpu/xpu is skipped * [CI] Fix: avoid skipping required jobs by moving skip logic to steps * [CI] Fix: Invalid secret, github-token is not defined
This commit is contained in:
@@ -42,7 +42,7 @@ jobs:
|
||||
base_tests:
|
||||
runs-on: [self-hosted, GPU-h20-1Cards]
|
||||
needs: check_bypass
|
||||
if: ${{ needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Code Prepare
|
||||
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
run_4_cards_tests:
|
||||
runs-on: [self-hosted, GPU-h20-4Cards]
|
||||
needs: check_bypass
|
||||
if: ${{ needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Code Prepare
|
||||
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
run_tests_logprob:
|
||||
runs-on: [self-hosted, GPU-h20-1Cards]
|
||||
needs: check_bypass
|
||||
if: ${{ needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Code Prepare
|
||||
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
run_ce_cases:
|
||||
runs-on: [self-hosted, PRE_CE_RUN_2Card]
|
||||
needs: check_bypass
|
||||
if: ${{ needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Print current runner name
|
||||
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
stable_tests:
|
||||
runs-on: [self-hosted, GPU-h20-2Cards]
|
||||
needs: check_bypass
|
||||
if: ${{ needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Code Prepare
|
||||
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
runs-on: [self-hosted, GPU-h1z1-2Cards]
|
||||
timeout-minutes: 105
|
||||
needs: check_cov_skip
|
||||
if: needs.check_cov_skip.outputs.can-skip != 'true'
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_cov_skip.outputs.can-skip != 'true' }}
|
||||
outputs:
|
||||
all_cov_file_url: ${{ steps.cov_upload.outputs.all_cov_file_url }}
|
||||
unittest_failed_url: ${{ steps.cov_upload.outputs.unittest_failed_url }}
|
||||
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
run_xpu_4cards_cases:
|
||||
runs-on: [self-hosted, XPU-P800-4Cards]
|
||||
needs: check_bypass
|
||||
if: ${{ needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Print current runner name
|
||||
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
run_xpu_8cards_cases:
|
||||
runs-on: [self-hosted, XPU-P800-8Cards]
|
||||
needs: check_bypass
|
||||
if: ${{ needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
if: ${{ inputs.FASTDEPLOY_WHEEL_URL != '' && needs.check_bypass.outputs.can-skip != 'true' }}
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Print current runner name
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
env:
|
||||
CI_TEAM_MEMBERS: '["yuanlehome","YuanRisheng","Jiang-Jia-Jun","DDDivano","XieYunshen","EmmonsCurse","CSWYF3634076"]'
|
||||
CI_TEAM_MEMBERS: '["yuanlehome","YuanRisheng","Jiang-Jia-Jun","DDDivano","XieYunshen","EmmonsCurse","CSWYF3634076","plusNew001"]'
|
||||
outputs:
|
||||
can-skip: ${{ steps.final-output.outputs.can-skip }}
|
||||
can-skip-docs: ${{ steps.final-output.outputs.can-skip-docs }}
|
||||
|
||||
@@ -519,8 +519,6 @@ jobs:
|
||||
FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }}
|
||||
FASTDEPLOY_WHEEL_URL: ${{ needs.build_cu126.outputs.wheel_path }}
|
||||
MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData"
|
||||
secrets:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
stable_test:
|
||||
name: Run Stable Tests
|
||||
|
||||
Reference in New Issue
Block a user