From b736768db49c1d92efb5f55156cc33a5d1683828 Mon Sep 17 00:00:00 2001 From: Icey <1790571317@qq.com> Date: Fri, 8 Aug 2025 03:07:37 +0000 Subject: [PATCH] Fix accuracy test create PR Signed-off-by: Icey <1790571317@qq.com> --- .github/workflows/accuracy_test.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/accuracy_test.yaml b/.github/workflows/accuracy_test.yaml index 7140f262f75..6f4f8928c46 100644 --- a/.github/workflows/accuracy_test.yaml +++ b/.github/workflows/accuracy_test.yaml @@ -225,14 +225,14 @@ jobs: outputs: model_name: ${{ steps.set_output.outputs.model_name }} - + vllm_ascend_version: ${{ env.GHA_VLLM_ASCEND_VERSION }} + create_pr: runs-on: ubuntu-latest needs: accuracy_tests if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.vllm-ascend-version == 'latest' }} env: UPSTREAM_REPO: vllm-project/vllm-ascend - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -257,7 +257,7 @@ jobs: TIMESTAMP=$(date +%Y%m%d%H%M%S) BRANCH_NAME="auto-pr/accuracy-report-${TIMESTAMP}" echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV - git checkout -B "${BRANCH_NAME}" upstream/${{ github.event.inputs.vllm-ascend-version }} + git checkout -B "${BRANCH_NAME}" upstream/main - name: Download only current run reports uses: actions/download-artifact@v4 @@ -298,7 +298,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} run: | git add ./docs/source/developer_guide/evaluation/accuracy_report/*.md - git commit -s -m "[Doc] Update accuracy reports for ${{ github.event.inputs.vllm-ascend-version }}" + git commit -s -m "[Doc] Update accuracy reports for ${{ needs.accuracy_tests.outputs.vllm_ascend_version }}" git push -f origin "${{ env.BRANCH_NAME }}" - name: Create PR in upstream via API @@ -310,8 +310,8 @@ jobs: owner: 'vllm-project', repo: 'vllm-ascend', head: `vllm-ascend-ci:${{ env.BRANCH_NAME }}`, - base: '${{ github.event.inputs.vllm-ascend-version }}', - title: `[Doc] Update accuracy reports for ${{ github.event.inputs.vllm-ascend-version }}`, + base: 'main', + title: `[Doc] Update accuracy reports for ${{ needs.accuracy_tests.outputs.vllm_ascend_version }}`, body: `The accuracy results running on NPU Altlas A2 have changed, updating reports for: All models (Qwen/Qwen3-30B-A3B, Qwen2.5-VL-7B-Instruct, Qwen3-8B-Base) - [Workflow run][1]