Repository navigation
docs(skills): guide CI operations through APIs - #396
Conversation
This comment was marked as spam.
This comment was marked as spam.
07e5414 to
6410a66
Compare
6410a66 to
fdb2132
Compare
fdb2132 to
a8c5828
Compare
a8c5828 to
ce03259
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce03259f3f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ce03259 to
20c4696
Compare
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: 8a11df7 目标分支: codex/ci-welcome 审查通过(head 8a11df7,直接基线 codex/ci-welcome):层文件与已批准内容逐字节一致(6f57573d 的后继重定基,基线增量仅为贡献指南措辞微调)。该 head 上的 APPROVE 审查(pullrequestreview-5382934560)即为本轮结论,为当前最新审查,内容已逐项核验,无需重复提交。两条历史建议保持已解决;tree 链接质疑的实测否定结论不变。范围全部接收、无移出或待确认项、无测试范围。
审查发现待处理
已解决或已取代
提交范围 · 接收 6 · 建议移出 0 · 待确认 0接收 6 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
精简审查与验证依据
生产代码的必要性与替代方案
Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:已完成 · 一条非阻塞建议
对 head 20c4696a 的直接基线 diff(codex/ci-welcome,6 个文件 +125 行:新增 skills/relax-github-ci 主文件与 rerun/maintenance 参考页、PR 欢迎评论中的 agent 提示、中英文贡献指南入口)完成常规与深度审查。skill 文档的事实性描述已逐项对照堆栈下层引入的 CI 实现核验:ci-commands 的指令解析、权限模型、run 选取与防重复执行;check-bypass 的豁免标签/评论规则(含大小写敏感的用户名比较与历史评论有效性,已对照 ShigureLab/ci-bypass@v2 源码确认);pr-welcome 的模板占位符与 bot 身份校验;gh CLI 命令与 REST 端点均准确。文档中逃出 docs/ 的相对链接由 source-links 插件重写为 GitHub blob 链接,为既有惯例,站点链接可解析。该 head 上 CI 通过(Pre-commit 与 GPU 检查)。范围内无需移出的提交物;本层为纯文档/skill 内容,无测试范围。一条 P3 非阻塞建议见行级评论:在评论接口一节补充 Bot 类型账号发出的指令会被静默忽略的说明。
20c4696 to
ac9fb31
Compare
This comment was marked as spam.
This comment was marked as spam.
308f65c to
8cfb0eb
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过(重定基复核)
head 308f65c7(8fa80e90 的重定基)的直接基线 diff 中,本层文件(skills/relax-github-ci/ 全部三个文件与 .github/actions/pr-welcome/comment.md)与已批准内容逐字节一致;中英文贡献指南中的 skill 入口行不变,仅随下层贡献指南重构移动了上下文位置,仍位于 CI 节内。基线增量仅涉及 CONTRIBUTING 与两份 how-to-contribute 的重构(新增「交流与反馈」节),.github/ 下的 CI 自动化无任何变化,本层文档的全部事实性描述继续成立。两条历史建议保持已解决;此前对 tree 链接的实测否定结论不变。此前在该内容上的 APPROVE 因重定基失效,现按当前 head 重新提交。完整审查记录与必要性审计见看板。
8cfb0eb to
6f57573
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
- Keep the main skill focused on PR inspection, operation choice and verification. - Prefer GitHub CLI and REST operations when the credential can write Actions. - Document comment commands and maintenance in separate reference pages. - Link the skill from the welcome template and both contribution guides. - Verify CLI flags, REST endpoints, local reference links and public content boundaries. - Pass all pre-commit hooks, workflow checks and the documentation build. Co-authored-by: Codex <[email protected]>
# 📝 Documentation - Prefer active and non-cancelled CI runs when duplicate runs share a PR head. - Explain why a larger run number can belong to a cancelled duplicate. Co-authored-by: Codex <[email protected]>
# 📝 Documentation - Keep the welcome comment's agent skill link in an HTML comment. - Move the shared comment protocol and command index into SKILL.md. - Limit the rerun reference to retry operations and keep cancellation in the index. - Document WELCOME_BOT_LOGIN as required configuration. Co-authored-by: Codex <[email protected]>
# 📝 Documentation - Point formatter maintenance guidance to the shared pre-commit mirror. - Keep version and file-scope configuration in the repository hook config. Co-authored-by: Codex <[email protected]>
# 📝 Documentation - Capture the PR head repository and owner before matching fork workflow runs. - Document that rerun, cancel, and help comments from Bot-type accounts receive no reply. Co-authored-by: RAI Studio Bot <[email protected]> Co-authored-by: Codex <[email protected]>
# 📝 Documentation - Document exact workflow/job keys and the all selector. - Keep bypass operations limited to the three workflow targets. Co-authored-by: Codex <[email protected]>
6f57573 to
8a11df7
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过(重定基复核)
head 6f57573d(8cfb0eb9 的重定基)的直接基线 diff 与已批准内容逐行一致:新增 relax-github-ci skill 及欢迎评论/贡献指南入口,两条此前的建议(fork head repository 字段、Bot 账号评论被静默忽略的说明)均已落实并复核,目标键说明与下层限定式配置一致。基线增量仅为贡献指南措辞微调(docs(ci): clarify cancel and rerun limits,/rerun 需已有已完成的 run——与 skill 的 rerun.md 描述语义一致),.github/ 无任何变化。两条历史建议保持已解决;tree 链接质疑的实测否定结论不变。此前在该内容上的 APPROVE 因重定基失效,现按当前 head 重新提交。完整审查记录与必要性审计见看板。
## What <!-- What changes does this PR introduce? --> 集中维护 CI team 与 target 映射,并接入 oxfmt mirror 和共享格式化配置。在 `.github/` 的 CODEOWNERS 中追加 `@SigureMo`,保留原有负责人。 ## Why <!-- Why are these changes needed? Link related issues with "Fixes #123" or "Relates to #456". --> 后续各功能有独立入口,仅共享必要的数据配置,使维护者能直接看懂配置和各层职责。 ## How <!-- How do the changes work? Describe the technical approach. --> - `.github/ci/config.json` 仅包含 `ciTeam` 和 workflow/job target 映射,JavaScript 原生读取 JSON。workflow 使用 `ci`、`gpu-unit`、`integration`;job 使用 `ci/pre-commit`、`ci/cpu-310` 等 `workflow/job` 名称,不保留旧短名称别名。 - CI team 为 `SigureMo`、`NINGBENZHE`、`Yangruipis`,使用实际 GitHub login 大小写。 - 保留 `ShigureLab/[email protected]` 和 JavaScript/JSON 类型选择;clang-format 通过 `exclude_types: [javascript, json]` 排除这两类文件。 - oxfmt 配置移到根目录 `.oxfmtrc.json`,参考 [yutto 的格式化选项](https://github.com/yutto-dev/yutto/blob/main/docs/vite.config.ts):100 列、两空格缩进、单引号、ES5 尾逗号、无分号、箭头参数始终加括号,并关闭 package.json 排序。 - 暂时排除既有 `acquire-devices` action 与 `docs/` 的 oxfmt 格式化;这 9 个既有文件的风格 diff 已移到栈顶专门的格式化层 #398,由该层移除临时路径排除,统一格式化 JS/TS、JSON、样式表和 GraphQL,暂不处理 YAML/TOML。 - 本层只包含共享配置、格式化工具配置和 CODEOWNERS,共 4 个文件;指令入口在 #393,bypass 在 #394,欢迎与指南在 #395,skill 在 #396,全仓格式化在 #398。 原生 gh-stack 第 1/6 层,base 为 `main`。 ## Testing <!-- How were the changes tested? Include commands, test results, or screenshots. --> 本层通过全量 `pre-commit run --all-files`;既有 action 和 docs 文件与 `main` 保持一致,格式化 diff 单独位于栈顶。未新增测试文件。 未在本地运行 `pytest tests/`:本次涉及 CI 自动化及文档,未改动训练代码。 - [x] `pre-commit run --all-files` passes - [ ] Tests pass (`pytest tests/`) - [ ] New tests added (if applicable) - [ ] Documentation updated (if applicable) ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Refactoring (no functional changes) - [ ] Performance improvement - [x] CI/CD or build changes ## Screenshots / Logs <!-- If applicable, add screenshots or log output to help explain the changes. --> <div align="right"> <sup>This PR is co-authored with @codex (gpt-6-astra, reasoning: xhigh).</sup> </div> --------- Co-authored-by: Codex <[email protected]> Co-authored-by: RAI Studio Bot <[email protected]>
## What <!-- What changes does this PR introduce? --> 通过 `ShigureLab/ci-bypass@v2` 判断 CI team 的标签或评论豁免,并在 synchronize 时独立清理 bypass 标签。 ## Why <!-- Why are these changes needed? Link related issues with "Fixes #123" or "Relates to #456". --> 将豁免判断集中到可复用 workflow,由 ci-bypass 处理规则匹配与授权检查,CI workflow 根据结果决定是否运行测试。 ## How <!-- How do the changes work? Describe the technical approach. --> - 可复用 `check-bypass.yml` 在 `ubuntu-slim` 上运行,CPU、GPU unit 和 integration workflow 分别传入 target。 - 从共享 JSON 读取三人 CI team,支持 workflow/all 标签和 `/bypass` 评论,理由可选。 - 使用 `ShigureLab/ci-bypass@v2`,不锁定具体 commit。 - 独立 synchronize workflow 分页获取并移除 `ci-bypass:` 标签。历史 bypass 评论仍遵循上游规则。 - Gate 失败时运行原测试;只在 gate 成功且明确输出 `can-skip=true` 时跳过测试,workflow 取消后不继续启动测试。 原生 gh-stack 第 3/6 层,base 为 #393。豁免与维护操作记录在 #396 的 skill 参考页。 ## Testing <!-- How were the changes tested? Include commands, test results, or screenshots. --> 全量 pre-commit 和 actionlint 已通过。 未在本地运行 `pytest tests/` 或 GPU/NPU 训练:本次涉及 CI 自动化与文档。欢迎/评论指令的真实 GitHub 交互需进入默认分支后验证。 - [x] `pre-commit run --all-files` passes - [ ] Tests pass (`pytest tests/`) - [ ] New tests added (if applicable) - [ ] Documentation updated (if applicable) ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Refactoring (no functional changes) - [ ] Performance improvement - [x] CI/CD or build changes ## Screenshots / Logs <!-- If applicable, add screenshots or log output to help explain the changes. --> <div align="right"> <sup>This PR is co-authored with @codex (gpt-6-astra, reasoning: xhigh).</sup> </div> --------- Co-authored-by: Codex <[email protected]>
## What <!-- What changes does this PR introduce? --> 通过独立欢迎 action 提供可展开的贡献入口和日常 CI 指令,并在中英文贡献指南中补充指令表与 target 表。 ## Why <!-- Why are these changes needed? Link related issues with "Fixes #123" or "Relates to #456". --> 让贡献者直接找到需要的操作说明,维护配置和豁免细节由 agent skill 承载。 ## How <!-- How do the changes work? Describe the technical approach. --> - 双语欢迎模板保留贡献、CI 两个可展开区域,链接到贡献指南的 CI 章节。 - `WELCOME_BOT_TOKEN` 仅用于欢迎发布;`WELCOME_BOT_LOGIN` 必须显式配置,workflow 与 action 均无账号默认值。发布前校验配置与 token 所属账号,分页去重,在默认分支加载发布代码。 - 在 #302 整理后的中英文贡献指南中新增 CI 章节,放在完整的 PR 描述示例之后、交流与反馈之前,并从创建 PR 步骤链接到 CI 章节。先解释 target 命名,再列出 target 表;表中统一使用 `workflow` / `workflow/job` 命名,补充 `/rerun ci`、`/rerun ci/pre-commit` 与 `all` 的范围示例,并明确取消只接受 workflow。 - 移除独立 CI 页面及侧栏入口;公开欢迎、帮助和贡献指南不展示 bypass 或维护配置。 - 给 agent 的 skill 入口由下一层 #396 放在模板的 HTML 注释中。 原生 gh-stack 第 4/6 层,base 为 #394。 ## Testing <!-- How were the changes tested? Include commands, test results, or screenshots. --> 全量 pre-commit 和 actionlint 已通过。VitePress 构建、欢迎模板内容检查及 skill 参考链接检查通过;构建仅有既有旧文档链接警告。欢迎 action 冒烟检查覆盖缺失账号、账号不匹配、显式配置账号及重复评论去重。中英文 target 表已逐项核对共享配置,新命名后的 VitePress 构建通过。 未在本地运行 `pytest tests/` 或 GPU/NPU 训练:本次涉及 CI 自动化与文档。欢迎/评论指令的真实 GitHub 交互需进入默认分支后验证。 - [x] `pre-commit run --all-files` passes - [ ] Tests pass (`pytest tests/`) - [ ] New tests added (if applicable) - [x] Documentation updated (if applicable) ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [x] Documentation update - [ ] Refactoring (no functional changes) - [ ] Performance improvement - [x] CI/CD or build changes ## Screenshots / Logs <!-- If applicable, add screenshots or log output to help explain the changes. --> <div align="right"> <sup>This PR is co-authored with @codex (gpt-6-astra, reasoning: xhigh).</sup> </div> --------- Co-authored-by: Codex <[email protected]> Co-authored-by: Ryan <[email protected]>
## What <!-- What changes does this PR introduce? --> 新增专门的格式化层,把既有文件的风格调整从 #392 移到栈顶,并使用无 Node 运行时的 oxfmt mirror 统一格式化 JS/TS、JSON 和样式表,暂不处理 YAML/TOML。 ## Why <!-- Why are these changes needed? Link related issues with "Fixes #123" or "Relates to #456". --> CI 基础设施改动与全仓风格调整分开审查;同时补齐 TypeScript、样式表和 JSON 配置的格式化覆盖。 ## How <!-- How do the changes work? Describe the technical approach. --> - 保留 `ShigureLab/[email protected]` 和根目录 `.oxfmtrc.json` 的现有风格。 - 使用 `types_or: [text]` 把格式识别交给 standalone oxfmt,避免 pre-commit 类型识别漏掉 `.mts`、`.jsonc`、`.gql` 及特殊配置文件名。`--no-error-on-unmatched-pattern` 允许仅包含不支持格式的批次,受支持文件的语法错误仍然会失败。 - 移除 #392 的临时路径排除,覆盖 JS/JSX、TS/TSX、JSON/JSONC/JSON5、CSS/SCSS/Less、GraphQL;现有 `transfer_queue/` 全局排除继续生效。 - 使用 `exclude_types: [yaml, toml]` 暂时排除 YAML/TOML;这些文件的风格调整均已撤回,`.pre-commit-config.yaml` 只保留必要的 hook 配置修改。 - HTML、Vue、Markdown 不在当前 standalone 版本的支持范围内;Markdown 沿用现有 mdformat。 - clang-format 继续按语言排除 JavaScript/JSON,避免重复格式化。 - 本层共修改 14 个文件;完整栈中 oxfmt 实际匹配 22 个文件。 原生 gh-stack 第 6/6 层,base 为 #396;前五层仍为 #392 → #393 → #394 → #395 → #396。 ## Testing <!-- How were the changes tested? Include commands, test results, or screenshots. --> - 全量 `pre-commit run --all-files --show-diff-on-failure` 通过,重复运行后无新增 diff。 - 在不含 Node 的 PATH 下实测 16 种启用的扩展名;HTML/Vue/Markdown 确认为不支持。 - 实际 pre-commit 文件选择覆盖 `.mts`、`.jsonc`、`.gql`;oxfmt 全仓 `--check` 通过,且忽略不匹配文件的选项不会掩盖 TypeScript 语法错误。 - 验证全部已跟踪 YAML/TOML 均被 hook 排除,内容与父层一致(必要的 hook 配置修改除外);5 个 JSON 文件解析值一致,7 个 JS/TS 文件经 esbuild 规范化后的输出一致。 - `vitepress build docs` 与 `node docs/fix-chunk-names.js` 通过。 未运行训练单测及多节点 GPU/NPU 集成测试:本层仅调整格式化配置和代码风格,本地也不具备相应集成测试硬件;未新增测试文件。 - [x] `pre-commit run --all-files` passes - [ ] Tests pass (`pytest tests/`) - [ ] New tests added (if applicable) - [ ] Documentation updated (if applicable) ## Type of Change - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [x] Refactoring (no functional changes) - [ ] Performance improvement - [x] CI/CD or build changes ## Screenshots / Logs <!-- If applicable, add screenshots or log output to help explain the changes. --> <div align="right"> <sup>This PR is co-authored with @codex (gpt-6-astra, reasoning: xhigh).</sup> </div> --------- Co-authored-by: Codex <[email protected]>
…er-profiler Brings in upstream/main 99a0b6a..653c43c (redai-studio#302, redai-studio#392-redai-studio#396, redai-studio#398, redai-studio#401, redai-studio#403, redai-studio#405). The only conflict is the guide sidebar in docs/.vitepress/config.mts: redai-studio#398 reformatted it with oxfmt (trailing commas, long entries split), and this branch adds the "Straggler Analysis" / "Straggler 分析" entries next to the same lines. Resolved by taking upstream's formatting and keeping the two straggler entries in their previous position.


What
新增
relax-github-ciskill,主文件提供操作流程与公共指令索引,参考页分别介绍 rerun API 与豁免维护。Why
让 agent 优先使用已有的 GitHub 权限直接操作 CI,并按需读取详细说明。
How
gh run或 REST API;缺少直接权限且符合评论接口条件时,使用 PR 评论指令。workflow/workflow/job名称,无旧短名称别名,并区分ci与all。references/rerun.md只介绍重跑 API 与 job ID 获取;references/maintenance.md记录 CI team、豁免、标签清理和部署维护,并明确 bypass 仅接受ci、gpu-unit、integration或all。原生 gh-stack 第 5/6 层,依赖 #395。
Testing
全量 pre-commit 和 actionlint 已通过。VitePress 构建、欢迎模板内容检查及 skill 参考链接检查通过;构建仅有既有旧文档链接警告。
未在本地运行
pytest tests/或 GPU/NPU 训练:本次涉及 CI 自动化与文档。欢迎/评论指令的真实 GitHub 交互需进入默认分支后验证。pre-commit run --all-filespassespytest tests/)Type of Change
Screenshots / Logs