[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:
YuBaoku
2026-03-22 17:00:18 +08:00
committed by GitHub
parent 0b4c1cba9b
commit fdd12ff5ba
10 changed files with 9 additions and 11 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 }}
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 }}
-2
View File
@@ -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