Skip to content

[XPU] Update xtdk version to 'latest' in download script#7632

Merged
plusNew001 merged 2 commits into
PaddlePaddle:developfrom
plusNew001:0427-ci-update
May 26, 2026
Merged

[XPU] Update xtdk version to 'latest' in download script#7632
plusNew001 merged 2 commits into
PaddlePaddle:developfrom
plusNew001:0427-ci-update

Conversation

@plusNew001
Copy link
Copy Markdown
Collaborator

Motivation

💡 If this PR is a Cherry Pick, the PR title needs to follow the format by adding the [Cherry-Pick] label at the very beginning and appending the original PR ID at the end. For example, [Cherry-Pick][CI] Add check trigger and logic(#5191)

💡 如若此PR是Cherry Pick,PR标题需遵循格式,在最开始加上[Cherry-Pick]标签,以及最后面加上原PR ID,例如[Cherry-Pick][CI] Add check trigger and logic(#5191)

Modifications

Usage or Command

Accuracy Tests

Checklist

  • 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.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • 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.

Copilot AI review requested due to automatic review settings April 27, 2026 12:52
@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Apr 27, 2026

Thanks for your contribution!

@plusNew001
Copy link
Copy Markdown
Collaborator Author

/skip-ci ci_iluvatar
/skip-ci ci_hpu
/skip-ci build_gpu

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 调整 XPU 编译依赖下载脚本在 develop 模式下的 XTDK 版本选择策略,使其不再固定到特定版本号,而是跟随上游“最新”版本,用于 XPU 相关构建/CI 的依赖获取流程。

Changes:

  • custom_ops/xpu_ops/download_dependencies.shdevelop 模式的 version_xtdk 从固定版本改为 "latest"

Comment on lines 18 to 20
version_xvllm="latest"
version_xtdk="3.6.2.1"
version_xtdk="latest"
fi
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里把 develop 分支的 version_xtdk 改成了 "latest",会导致依赖不可复现(同一提交在不同时间拉到的 XTDK 可能不同),并且当前 CI(.github/workflows/_build_xpu.yml)会调用该脚本的 develop 模式,可能引入 CI 随时间波动/突然失败的风险。建议:默认仍然固定到一个已验证的版本号(或日期版本),并通过环境变量/额外参数显式允许使用 latest;或者至少在下载后打印/记录实际解析到的版本,便于排查问题。

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@PaddlePaddle-bot PaddlePaddle-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Paddle-CI-Agent | pr_review | 2026-04-27 20:58:26

📋 Review 摘要

PR 概述:将 XPU 自定义算子依赖下载脚本中 xtdk 的非 stable 版本从固定版本号 3.6.2.1 改为 latest,与 xvllm 保持一致。
变更范围custom_ops/xpu_ops/download_dependencies.sh
影响面 Tag[XPU]

📝 PR 规范检查

PR 标题 Tag [XPU] 合规,但 MotivationModifications 两个核心段落均为空,未说明变更目的和具体改动。

标题建议(可直接复制):

  • [XPU] Update xtdk version to 'latest' in download script

PR 描述建议(可直接复制,必须复刻 checklist §D2 模板的完整结构):

## Motivation

将 XPU 自定义算子依赖下载脚本(download_dependencies.sh)中,非 stable 分支的 `xtdk` 版本从固定版本 `3.6.2.1` 更新为 `latest`,使其与同分支的 `xvllm` 版本策略保持一致,便于持续跟进最新的 xtdk 工具链。

## Modifications

- `custom_ops/xpu_ops/download_dependencies.sh`:将 `else` 分支中 `version_xtdk="3.6.2.1"` 改为 `version_xtdk="latest"`

## Usage or Command

N/A

## Accuracy Tests

N/A

## Checklist

- [x] Add at least a tag in the PR title.
- [ ] Format your code, run `pre-commit` before commit.
- [ ] Add unit tests. Please write the reason in this PR if no unit tests.
- [ ] Provide accuracy results.
- [ ] 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.

问题

级别 文件 概述
❓ 疑问 custom_ops/xpu_ops/download_dependencies.sh:19 使用 latest 可能导致构建不可重现

总体评价

改动简洁,逻辑一致。建议作者确认使用 latest 是否为预期策略,并补充 PR 描述说明变更动机。

else
version_xvllm="latest"
version_xtdk="3.6.2.1"
version_xtdk="latest"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ 疑问version_xtdk 设置为 latest 后,每次执行下载脚本可能获取不同版本的 xtdk,导致构建结果不可重现(non-reproducible build)。

若此为预期行为(如 CI 中始终跟进最新版本),建议在 PR 描述中说明;若需要可重现构建,建议在 stable 外还维护一个已知可用的固定版本号。

@PaddlePaddle-bot
Copy link
Copy Markdown

🤖 Paddle-CI-Agent | ci_status_monitor | 2026-04-28 16:33:02

CI报告基于以下代码生成(30分钟更新一次):


1 任务总览

所有 required 任务已通过(2 通过 + 8 跳过/bypass),有 3 个可选任务失败(不阻塞合并),建议通过。

总执行(rerun次数) 总任务 ✅ 通过 ❌ 失败 ⏳ 运行中 ⏸️ 等待中 跳过
38(0) 38 25 3 0 0 10

2 任务状态汇总

2.1 Required任务 : 2/10 通过

必选任务阻塞合并,失败需优先处理。

状态 任务 耗时 根因 修复建议 日志 重跑
Pre Commit 40s - - - -
Approval 9s - - - -
⏭️ 其余 8 个必选任务已跳过(bypass 触发,PR 未涉及相关模块) - - - - -

2.2 可选任务 — 23/28 通过

可选任务不阻塞合并,失败仅供参考。

状态 任务 耗时 日志 重跑
xpu_build_test / xpu-build-test 7m17s Job -
Check PR Template 13s Job -
CI_HPU 1h53m Job -
其余 23 个可选任务通过 - - -

3 失败详情(仅 required)

无 required 失败任务。

@plusNew001
Copy link
Copy Markdown
Collaborator Author

/skip-ci ci_iluvatar
/skip-ci ci_hpu
/skip-ci build_gpu

@plusNew001 plusNew001 merged commit 2fc77e6 into PaddlePaddle:develop May 26, 2026
35 of 40 checks passed
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@6594cf7). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             develop   #7632   +/-   ##
=========================================
  Coverage           ?   0.00%           
=========================================
  Files              ?     467           
  Lines              ?   65031           
  Branches           ?       0           
=========================================
  Hits               ?       0           
  Misses             ?   65031           
  Partials           ?       0           
Flag Coverage Δ
XPU 0.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants