Skip to content

[Cherry-Pick][CI] Restore self-hosted runners for GitHub workflows(#7906)#7909

Merged
EmmonsCurse merged 1 commit into
PaddlePaddle:release/2.6from
EmmonsCurse:ci_restore_self_hosted_runners_26
May 25, 2026
Merged

[Cherry-Pick][CI] Restore self-hosted runners for GitHub workflows(#7906)#7909
EmmonsCurse merged 1 commit into
PaddlePaddle:release/2.6from
EmmonsCurse:ci_restore_self_hosted_runners_26

Conversation

@EmmonsCurse
Copy link
Copy Markdown
Collaborator

@EmmonsCurse EmmonsCurse commented May 25, 2026

Cherry-pick of #7906 (authored by @EmmonsCurse) to release/2.6.

devPR:#7906

Motivation

Recent updates introduced by PaddlePaddle/Paddle#79123 require corresponding CI-side adaptations in FastDeploy to keep workflow behavior.

Without synchronization, existing CI logic may become incompatible with the updated Paddle workflow implementation and introduce validation inconsistencies or execution issues.

Modifications

  • Switched 33 lightweight workflow jobs under .github/workflows back to the common Paddle self-hosted runner configuration:
runs-on:
  group: APPROVAL
  • Added workspace cleanup logic:
rm -rf * .[^.]*

Usage or Command

N/A

Accuracy Tests

N/A

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.

@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented May 25, 2026

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the contributor External developers label May 25, 2026
@EmmonsCurse
Copy link
Copy Markdown
Collaborator Author

/skip-ci all

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-05-25 12:12:23

📋 Review 摘要

PR 概述:将 17 个 GitHub workflow 中的轻量级 job 从 ubuntu-latest 切换回 Paddle 自托管 runner(group: APPROVAL),并在各 job 首步添加工作区清理逻辑。
变更范围.github/workflows/(CI 配置)
影响面 Tag[CI]

问题

级别 文件 概述
🟡 建议 .github/workflows/check-bypass.yml:69 per_page=100 限制,超过 100 个文件的 PR 可能漏检

📝 PR 规范检查

标题格式符合 Cherry-Pick 规范([Cherry-Pick][CI]),描述结构完整,各必填段落均已填写。[ ] Add unit tests. 未勾选且未说明原因,建议补充说明(如"CI 配置变更,无需单测")。

总体评价

整体变更清晰,目的明确,runner 切换和清理逻辑符合自托管 runner 最佳实践。主要关注点是 check-bypass.yml 中 API 分页限制,建议修复后合入。


files=$(gh pr view ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --json files --jq '.files[].path')
files=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=100" \
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 建议 per_page=100 限制了单次 API 返回的文件数量。

当 PR 变更文件数超过 100 时,files 变量将只包含前 100 个文件,导致 bypass 检查不完整,可能误判为可跳过。

建议修复方式:将 per_page 调整为 GitHub API 允许的最大值 300,并添加注释说明限制:

files=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
  "https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=300" \
  | jq -r '.[].filename')
# Note: GitHub API max per_page=300; PRs with >300 changed files still need pagination

@PaddlePaddle-bot
Copy link
Copy Markdown

🤖 Paddle-CI-Agent | ci_status_monitor | 2026-05-25 12:42:18

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


1 任务总览

Required 任务当前无失败、无运行中、无等待项,按 required 维度不阻塞合并;本轮仅有 1 个 Optional 任务失败,失败项仅供参考。

总执行(rerun次数) 总任务 ✅ 通过 ❌ 失败 ⏳ 运行中 ⏸️ 等待中 跳过
36(0) 36 20 1 0 0 15

2 任务状态汇总

日志列说明:失败任务直接使用工具生成的日志链接;运行中任务链接到对应 Job。

2.1 Required任务 : 2/10 通过

必选任务阻塞合并,失败需优先处理。当前 required 失败/运行中/等待均为 0;其余未通过计数来自被跳过或未触发的上下文,不构成当前阻塞失败。

状态 任务 耗时 根因 修复建议 日志 重跑
2 个必选任务已通过 - - - - -
⏭️ 8 个必选任务未执行/跳过 - 无失败 无需处理 - -

2.2 可选任务 — 18/26 通过

可选任务不阻塞合并,失败仅供参考;按规则不对 optional 失败任务做深度分析。

状态 任务 耗时 日志 重跑
CI_METAX / Trigger Jenkins for PR 14m51s Job -
其余 18 个可选任务通过 - - -
⏭️ 15 个任务被跳过(含 bypass/未触发上下文) - - -

3 失败详情(仅 required)

无 required 失败任务。


4 补充说明

  • Optional 失败任务的快速错误摘要:Docker build failed with exit code 1
  • 已查看本 PR 关键 workflow 变更:主要是将多个 GitHub workflow job 的 runner 恢复为 runs-on.group: APPROVAL 并新增 workspace cleanup;check-bypassApprovalPre Commit 等 required/关键任务当前已通过。
  • CI_METAX 失败来自 MetaX-MACA/simple-jenkins-githubaction@v1.1 触发 Jenkins 的可选任务,当前不影响 required 合并检查。

@EmmonsCurse EmmonsCurse force-pushed the ci_restore_self_hosted_runners_26 branch from 4ba8839 to 68b8857 Compare May 25, 2026 05:29
@EmmonsCurse EmmonsCurse merged commit 3ffeb44 into PaddlePaddle:release/2.6 May 25, 2026
37 of 38 checks passed
@EmmonsCurse EmmonsCurse deleted the ci_restore_self_hosted_runners_26 branch May 25, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants