-
Notifications
You must be signed in to change notification settings - Fork 737
[CI] Support multi-Python version build (3.10/3.11/3.12) #7230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,8 +16,22 @@ jobs: | |
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| build: | ||
| name: FD-Build-Linux | ||
| # build_310: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Bug Python 3.10 构建被注释掉,但没有说明原因。 Python 3.10 是目前最常用的版本之一,移除它的构建可能影响用户使用。 建议:
|
||
| # name: FD-Build-Linux-Py310 | ||
| # needs: clone | ||
| # uses: ./.github/workflows/_build_linux.yml | ||
| # with: | ||
| # DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-build-cuda126-manylinux | ||
| # FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| # COMPILE_ARCH: "90" | ||
| # WITH_NIGHTLY_BUILD: "OFF" | ||
| # FD_VERSION: "0.0.0" | ||
| # PYTHON_VERSION: "3.10" | ||
| # secrets: | ||
| # github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| build_311: | ||
| name: FD-Build-Linux-Py311 | ||
| needs: clone | ||
| uses: ./.github/workflows/_build_linux.yml | ||
| with: | ||
|
|
@@ -26,86 +40,102 @@ jobs: | |
| COMPILE_ARCH: "90" | ||
| WITH_NIGHTLY_BUILD: "OFF" | ||
| FD_VERSION: "0.0.0" | ||
| PYTHON_VERSION: "3.11" | ||
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| resultshow: | ||
| name: Use Build Output | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Print wheel path | ||
| run: | | ||
| echo "The built wheel is located at: ${{ needs.build.outputs.wheel_path }}" | ||
|
|
||
| unittest_coverage: | ||
| name: Run FastDeploy Unit Tests and Coverage | ||
| needs: [clone,build] | ||
| uses: ./.github/workflows/_unit_test_coverage.yml | ||
| with: | ||
| DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }} | ||
| MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| four_cards_test: | ||
| name: Run Four Cards Tests | ||
| needs: [clone,build] | ||
| uses: ./.github/workflows/_gpu_4cards_case_test.yml | ||
| with: | ||
| DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }} | ||
| MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| logprob_test: | ||
| name: Run FastDeploy LogProb Tests | ||
| needs: [build] | ||
| uses: ./.github/workflows/_logprob_test_linux.yml | ||
| with: | ||
| DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| PADDLETEST_ARCHIVE_URL: "https://xly-devops.bj.bcebos.com/PaddleTest/PaddleTest.tar.gz" | ||
| FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }} | ||
| MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| pre_ce_test: | ||
| name: Extracted partial CE model tasks to run in CI. | ||
| needs: [clone,build] | ||
| uses: ./.github/workflows/_pre_ce_test.yml | ||
| build_312: | ||
| name: FD-Build-Linux-Py312 | ||
| needs: clone | ||
| uses: ./.github/workflows/_build_linux.yml | ||
| with: | ||
| DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-dailyupdate | ||
| DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-build-cuda126-manylinux | ||
| FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }} | ||
| MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| COMPILE_ARCH: "90" | ||
| WITH_NIGHTLY_BUILD: "OFF" | ||
| FD_VERSION: "0.0.0" | ||
| PYTHON_VERSION: "3.12" | ||
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| base_test: | ||
| name: Run Base Tests | ||
| needs: [clone,build] | ||
| uses: ./.github/workflows/_base_test.yml | ||
| with: | ||
| DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }} | ||
| MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| resultshow: | ||
| name: Use Build Output | ||
| needs: [build_311, build_312] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Print wheel paths | ||
| run: | | ||
| echo "Py311 wheel: ${{ needs.build_311.outputs.wheel_path }}" | ||
| echo "Py312 wheel: ${{ needs.build_312.outputs.wheel_path }}" | ||
|
|
||
| stable_test: | ||
| name: Run Stable Tests | ||
| needs: [clone,build] | ||
| uses: ./.github/workflows/_stable_test.yml | ||
| with: | ||
| DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-dailyupdate | ||
| FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }} | ||
| MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| secrets: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| # unittest_coverage: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Bug 所有测试任务都被注释掉,合并后 CI 将不再运行任何测试。
这个 PR 的目标是「支持多 Python 版本构建」,但没有任何测试来验证构建产物的正确性。 建议:
|
||
| # name: Run FastDeploy Unit Tests and Coverage | ||
| # needs: [clone,build_310] | ||
| # uses: ./.github/workflows/_unit_test_coverage.yml | ||
| # with: | ||
| # DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| # FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| # FASTDEPLOY_WHEEL_URL: ${{ needs.build_310.outputs.wheel_path }} | ||
| # MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| # secrets: | ||
| # github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| # | ||
| # four_cards_test: | ||
| # name: Run Four Cards Tests | ||
| # needs: [clone,build_310] | ||
| # uses: ./.github/workflows/_gpu_4cards_case_test.yml | ||
| # with: | ||
| # DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| # FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| # FASTDEPLOY_WHEEL_URL: ${{ needs.build_310.outputs.wheel_path }} | ||
| # MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| # secrets: | ||
| # github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| # | ||
| # logprob_test: | ||
| # name: Run FastDeploy LogProb Tests | ||
| # needs: [build_310] | ||
| # uses: ./.github/workflows/_logprob_test_linux.yml | ||
| # with: | ||
| # DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| # PADDLETEST_ARCHIVE_URL: "https://xly-devops.bj.bcebos.com/PaddleTest/PaddleTest.tar.gz" | ||
| # FASTDEPLOY_WHEEL_URL: ${{ needs.build_310.outputs.wheel_path }} | ||
| # MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| # secrets: | ||
| # github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| # | ||
| # pre_ce_test: | ||
| # name: Extracted partial CE model tasks to run in CI. | ||
| # needs: [clone,build_310] | ||
| # uses: ./.github/workflows/_pre_ce_test.yml | ||
| # with: | ||
| # DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-dailyupdate | ||
| # FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| # FASTDEPLOY_WHEEL_URL: ${{ needs.build_310.outputs.wheel_path }} | ||
| # MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| # secrets: | ||
| # github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| # | ||
| # base_test: | ||
| # name: Run Base Tests | ||
| # needs: [clone,build_310] | ||
| # uses: ./.github/workflows/_base_test.yml | ||
| # with: | ||
| # DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-paddle-dev | ||
| # FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| # FASTDEPLOY_WHEEL_URL: ${{ needs.build_310.outputs.wheel_path }} | ||
| # MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| # secrets: | ||
| # github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| # | ||
| # stable_test: | ||
| # name: Run Stable Tests | ||
| # needs: [clone,build_310] | ||
| # uses: ./.github/workflows/_stable_test.yml | ||
| # with: | ||
| # DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-dailyupdate | ||
| # FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }} | ||
| # FASTDEPLOY_WHEEL_URL: ${{ needs.build_310.outputs.wheel_path }} | ||
| # MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData" | ||
| # secrets: | ||
| # github-token: ${{ secrets.GITHUB_TOKEN }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Bug
arctic_inference只有cp310-cp310wheel,在 Python 3.11/3.12 上会跳过安装。这可能导致:
建议:
arctic_inference是否是必须依赖