[CI] DEBUG validate installation of paddleformers[paddlefleet]==1.1.0.dev20260507#7916
[CI] DEBUG validate installation of paddleformers[paddlefleet]==1.1.0.dev20260507#7916xiaoguoguo626807 wants to merge 3 commits into
Conversation
|
Thanks for your contribution! |
2e8fc12 to
e87813c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #7916 +/- ##
==========================================
Coverage ? 63.64%
==========================================
Files ? 467
Lines ? 64965
Branches ? 9962
==========================================
Hits ? 41347
Misses ? 20810
Partials ? 2808
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CI报告基于以下代码生成(30分钟更新一次): 1 任务总览Required 任务有 1 个失败、0 个运行中/等待中,当前不建议合入;可选任务有 2 个失败、1 个等待中,仅供参考。
2 任务状态汇总2.1 Required任务 : 9/10 通过
2.2 可选任务 — 29/32 通过
3 失败详情(仅 required)Run FastDeploy Unit Tests and Coverage / run_tests_with_coverage — 依赖问题/测试失败(置信度: 高)Run FastDeploy Unit Tests and Coverage / run_tests_with_coverage
失败用例:
根因详情: 关键日志: 修复建议:
修复建议摘要: 移除冲突安装或对齐依赖版本 关联变更: 链接: 查看日志 |
PaddlePaddle-bot
left a comment
There was a problem hiding this comment.
🤖 Paddle-CI-Agent | pr_review |
2026-05-25 20:08:07
📋 Review 摘要
PR 概述:临时调试 PR,在 8 个 CI workflow 中验证 paddleformers[paddlefleet]==1.1.0.dev20260507 的安装兼容性
变更范围:.github/workflows/(全部 8 个 CI workflow 文件)
影响面 Tag:[CI]
问题
| 级别 | 文件 | 概述 |
|---|---|---|
| 🟡 建议 | .github/workflows/_accuracy_test.yml:187 |
安装顺序存在依赖冲突风险,实际验证的组合与预期不符 |
| ❓ 疑问 | .github/workflows/_unit_test_coverage.yml:242 |
pip cache remove 仅在此 workflow 出现,会清除全局缓存拖慢后续 CI |
| 📝 PR 规范 | — | Checklist 勾选状态与实际不符 |
📝 PR 规范检查
PR 标题含 "DEBUG" 字样,描述也明确说明是 "temporary CI changes",但目标分支为 develop,需确认是否有后续 revert 计划。
Checklist 中 "Add unit tests" 和 "Provide accuracy results" 均勾选为 [x],但本 PR 为纯 CI workflow 调试变更,无需单测和精度结果,应改为 [ ] 并在 PR 中说明原因。
标题建议(可直接复制):
[CI] Validate paddleformers[paddlefleet]==1.1.0.dev20260507 installation compatibility
PR 描述建议(可直接复制,必须复刻 checklist §D2 模板的完整结构):
## Motivation
Validate the installation behavior and compatibility of paddleformers[paddlefleet]==1.1.0.dev20260507 in the current CI environment for debugging and verification purposes.
## Modifications
Added temporary CI changes to verify installation of paddleformers[paddlefleet]==1.1.0.dev20260507 across 8 CI workflow files:
- Install `paddleformers[paddlefleet]==1.1.0.dev20260507` with extra index URLs
- Uninstall existing `paddlepaddle-gpu` and reinstall nightly version
- (`_unit_test_coverage.yml` only) Clear pip cache for transformers/paddleformers/fastdeploy-gpu before installation
## Usage or Command
N/A
## Accuracy Tests
N/A
## Checklist
- [x] Add at least a tag in the PR title.
- Tag list: [`[FDConfig]`,`[APIServer]`,`[Engine]`, `[Scheduler]`, `[PD Disaggregation]`, `[Executor]`, `[Graph Optimization]`, `[Speculative Decoding]`, `[RL]`, `[Models]`, `[Quantization]`, `[Loader]`, `[OP]`, `[KVCache]`, `[DataProcessor]`, `[BugFix]`, `[Docs]`, `[CI]`, `[Optimization]`, `[Feature]`, `[Benchmark]`, `[Others]`, `[XPU]`, `[HPU]`, `[GCU]`, `[DCU]`, `[Iluvatar]`, `[Metax]`]
- You can add new tags based on the PR content, but the semantics must be clear.
- [x] Format your code, run `pre-commit` before commit.
- [ ] Add unit tests. Please write the reason in this PR if no unit tests. (CI workflow changes do not require unit tests)
- [ ] Provide accuracy results. (N/A for CI-only changes)
- [ ] If the current PR is submitting to the `release` branch, make sure the PR has been submitted to the `develop` branch, then cherry-pick it to the `release` branch with the `[Cherry-Pick]` PR tag.总体评价
本 PR 为临时调试变更,逻辑上存在安装顺序问题(先装 paddleformers 再 uninstall/reinstall paddlepaddle 会导致验证的依赖组合与预期不符),建议调整安装顺序后再合入,并在验证完成后及时 revert。
|
|
||
| python -m pip install ${fastdeploy_wheel_url} | ||
| python -m pip install paddleformers[paddlefleet]==1.1.0.dev20260507 --extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu126/ --extra-index-url https://www.paddlepaddle.org.cn/packages/nightly/cu126/ | ||
| python -m pip uninstall paddlepaddle-gpu -y || true |
There was a problem hiding this comment.
🟡 建议 安装顺序存在依赖冲突风险
当前顺序:先安装 paddleformers[paddlefleet]==1.1.0.dev20260507(其依赖解析会拉取特定版本的 paddlepaddle-gpu),随即 uninstall paddlepaddle-gpu,再重装 nightly 版本。
这会导致 paddleformers 安装时声明的 paddlepaddle 版本依赖被 nightly 版本覆盖,实际验证的是「paddleformers + nightly paddlepaddle」的组合,而非 paddleformers 自身声明的依赖组合。
建议修复方式:若目的是验证 paddleformers 能与 nightly paddlepaddle 共存,应先安装 nightly paddlepaddle,再安装 paddleformers(去掉中间的 uninstall 步骤):
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
python -m pip install paddleformers[paddlefleet]==1.1.0.dev20260507 --extra-index-url ...| else | ||
| echo "Warning: tests/plugins directory not found, skipping setup.py install" | ||
| fi | ||
| python -m pip cache remove transformers |
There was a problem hiding this comment.
❓ 疑问 pip cache remove 会清除 CI 构建缓存,导致后续所有 CI 运行重新下载这些包,显著增加 CI 耗时。
其他 7 个 workflow 均未添加此步骤,仅 _unit_test_coverage.yml 有,是否为有意为之?如果只是为了强制重新安装,可改用 --no-cache-dir 参数替代全局 cache 清除。
Motivation
Validate the installation behavior and compatibility of paddleformers[paddlefleet]==1.1.0.dev20260507 in the current CI environment for debugging and verification purposes.
Modifications
Added temporary CI changes to verify installation of:
paddleformers[paddlefleet]==1.1.0.dev20260507
Used for debugging package installation and dependency compatibility issues.
Usage or Command
N/A
Accuracy Tests
N/A
Checklist
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.