Repository navigation
docs(skills): align GitHub contribution workflows - #424
Conversation
Make commit scope and body optional while retaining staging and pre-commit checks. Add a Relax GitHub workflow for publication, review follow-up and native stacks. Classify CI failures before retries and escalate recurring failures with evidence. Register the workflow and clarify the default local-only publication policy. Co-authored-by: Codex <[email protected]>
|
Thanks for contributing to Relax, @SigureMo! 感谢你为 Relax 做出贡献! Contribution guide / 贡献指南Describe the problem, your changes, and how you validated them. Keep each PR focused and run 请说明问题、改动和验证方式,保持 PR 聚焦,并在提交前运行 CI commands / CI 指令
Put one command on the first line of a new PR comment. Rerun/cancel require PR authorship or repository write access. 在新 PR 评论的首行写一条指令。PR 作者或有仓库写权限的贡献者可以重跑、取消 CI。 |
Summary
Testing
|
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: 6b01a25 目标分支: main 常规与必要性审查已完成(head 6b01a25,10 文件),结论为 APPROVE:F1/F2(悬空的 "development guide" 引用)与 F3(提交类型清单不一致)均已解决并核实;后续四轮按维护者意见落实——AGENTS.md 精简与 workflow SKILL 修订(2077282e)、Gitmoji emoji 逐码点对齐(ef8025e9)、删除带入的过时 make lint 行(fa3ded34)、Makefile lint target 改用 ruff check(6b01a25c,与 pre-commit 同源同配置)。备注:ruff 未列入 requirements.txt,直接运行 make lint 需环境内已装 ruff。CI 当前无失败检查。
审查发现待处理
已解决或已取代
提交范围 · 接收 10 · 建议移出 0 · 待确认 0接收 10 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
精简审查与验证依据
生产代码的必要性与替代方案
Powered by Nyanpasu with glm-5.3-flash max, please check the suggestions carefully.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:有补充意见(COMMENT)
对 5 个流程文档改动完成了逐行核对与必要性审查:AGENTS.md 与 CLAUDE.md 的入口注册一致;git-commit SKILL 的类型清单与 emoji 表一一对应;新增 relax-github-workflow SKILL 中的 gh-stack 操作语义、main 默认分支、PR 模板与 squash 合并说明均与仓库现状或官方 v0.2.0 文档核对通过,全部内部链接可解析。两个行级问题(P2):relax-github-ci 与 relax-github-workflow 各引用了一次 "development guide",但仓库内没有任何指南记载所声称的 CI 联系人或 gh-stack 命令。
-
发现索引、范围准入与必要性审查见看板:nyanpasu-review
-
P3 · 对齐提交类型清单的三处声明(非行级:涉及未被本 PR 修改的CONTRIBUTING.md与贡献指南)——skills/git-commit/SKILL.md:63声明 10 个项目类型(含ci、build,且历史提交确有ci(github)用例),而CONTRIBUTING.md的提交规范表将 CI/build 归入chore:(共 8 类)、docs/en|zh/guide/how-to-contribute.md仅列 7 类。本 PR 目标是对齐提交规范,建议一并对齐三处清单,或注明哪份是代理侧权威。 -
备注:timeline 中 chatgpt-codex-connector 评论所述提交
fbd8c2e与跟进 PR 在仓库中不存在,其描述的 mismatch 处理文本也不在当前 head;本次审查按 head 28f80ce 的实际内容进行。
# 📝 Documentation - Default ordinary contributions to personal forks and reserve upstream branches for necessary cases. - Reduce dependent-PR guidance to a recommendation to split changes with gh-stack. - Preserve SigureMo as the CI contact without an unresolved guide reference. - Remove manual Markdown wrapping from the revised workflow and CI guidance. Co-authored-by: Codex <[email protected]>
# 📝 Documentation - Merge the unique architecture, command and formatting guidance into AGENTS.md. - Replace CLAUDE.md with a relative compatibility symlink and explain its purpose. - Point skills to AGENTS.md as the shared instruction source. - Prefer an optional kebab-case scope while retaining explanatory bodies for non-trivial commits. - Make Markdown headings a recommendation for longer commit bodies. Co-authored-by: Codex <[email protected]>
Remove the internal GitLab/GitHub synchronization reference from the contribution workflow skill. Co-authored-by: Codex <[email protected]>
Keep PR Markdown paragraphs and skill descriptions on single lines. Verify that flattening the descriptions preserves their YAML values. Co-authored-by: Codex <[email protected]>
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:有补充意见(COMMENT)
已按当前 head 76de1de 完成 6 个文件的全量复核(覆盖三轮修复提交),上轮 2 个 P2 均已修复:
skills/relax-github-ci/SKILL.md:27改为直接点名 CI 联系人,与.github/ci/config.json的ciTeam一致,悬空的 "development guide" 引用已消除。skills/relax-github-workflow/SKILL.md:53的 gh-stack 段瘦身为指向官方文档的 2 行指针,不再把栈命令归到仓库内不存在的指南名下(命令语义此前已与官方 v0.2.0 文档逐条核对一致)。- 合并完整性复核通过:旧
CLAUDE.md各节(Architecture、常用命令、Hard Rules、Ask First、分布式规则)已全部并入AGENTS.md,CLAUDE.md软链有效,SKILL 引用切换后全仓无CLAUDE.md残留;relax-github-workflowSKILL 的内部链接(git-commit / code-review / relax-github-ci)均可解析。
仍待处理 1 项(P3,非行级):skills/git-commit/SKILL.md:58 声明 10 个项目类型(含 ci、build,历史提交确有 ci(github) 用例),而 CONTRIBUTING.md 的提交规范表将 CI/build 归入 chore:(共 8 类)、docs/en|zh/guide/how-to-contribute.md 仅列 7 类。本 PR 目标是对齐提交规范,建议一并对齐三处清单,或注明哪份是代理侧权威。
- 发现索引、范围准入与必要性审查见看板:nyanpasu-review
## Documentation - Clarify suggested remotes, user-specified branch names, and PR context with public links. - Remove redundant repository instructions, duplicated feature inventories, mandatory self-review, and bot-specific workflow details. - Align all contribution guides with the ten commit types in the commit skill. ## Validation - Full pre-commit checks, skill metadata, relative links, symlink, and commit-type parity checks pass. - VitePress builds successfully; generated English and Chinese contribution pages contain the matching ten types. Co-authored-by: Codex <[email protected]>
|
已在 2077282 对齐 review 中提到的提交类型清单:CONTRIBUTING.md 和中英文贡献指南现在与 git-commit SKILL 同为 10 项,CI 与构建分别使用 本轮人工意见已在各自原 thread 回复,PR 描述已更新。完整 pre-commit、SKILL frontmatter、相对链接、软链与提交类型一致性检查通过;VitePress 构建通过,中英文生成页面也已核对。构建中的既有断链警告已在 PR 验证说明中记录。
This comment is replied by codex (gpt-6)
|
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过(APPROVE)
已按 head 2077282e 完成 9 个文件的全量复核,此前 3 个发现全部解决:
-
P3(提交类型清单不一致)已解决:
CONTRIBUTING.md提交规范表、docs/en|zh/guide/how-to-contribute.md与skills/git-commit/SKILL.md:58现统一列出 10 项类型;ci、build独立成类,与仓库历史提交中的ci(github)用例一致,chore收敛为其他维护任务;中英文指南内容一致。 -
P2 两处(悬空的 "development guide" 引用)已在
76de1de修复并复核:CI 联系人直接点名(与.github/ci/config.json的ciTeam一致),gh-stack 段改为官方文档指针。 -
AGENTS.md按维护者意见精简(软链兼容说明与模型清单移至 PR 描述),合并内容仍完整;relax-github-workflowSKILL 更新了推荐 remote 布局示例(upstream→redai-studio/Relax、origin→ 个人 fork)、明确用户指定分支名优先,并移除自审步骤与机器人触发说明;文件内链接(git-commit / relax-github-ci)均可解析。 -
CI 当前无失败检查。
-
发现索引、范围准入与必要性审查见看板:nyanpasu-review
## Documentation - Use Gitmoji emoji for feature, CI, configuration, package, and performance headings. - Clarify that emoji follow the actual change and update feature body examples to match the table. ## Validation - Full pre-commit and skill metadata checks pass. - All ten table entries match official Gitmoji data, including variation selectors and heading examples. Co-authored-by: Codex <[email protected]>
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过(APPROVE)
已按 head ef8025e9 复核 2077282e 以来的唯一新增提交(docs(git-commit): align emoji examples with Gitmoji,仅改 skills/git-commit/SKILL.md):
- emoji 表与 Gitmoji 官方定义逐项核对一致,含码点级别的变体选择符(
♻️/⚡️/📦️):feat✨(Introduce new features)、ci👷(CI build system)、chore例示 🔧(configuration files)、build📦️(compiled files or packages)、perf⚡️(Improve performance),正文新增的 ⬆️(Upgrade dependencies)亦为官方含义;旧字符 ⭐/🔩/🏗️ 已全部清除,两处正文 Feature 示例同步为 ✨。 - 表格仍为 10 行,与
skills/git-commit/SKILL.md:58的 10 项类型清单保持一一对应;类型清单本身未变,CONTRIBUTING.md与中英文贡献指南的对齐不受影响。 - CI 当前无失败检查。
此前 3 个发现的解决状态维持不变,见上一轮审查与看板。
- 发现索引、范围准入与必要性审查见看板:nyanpasu-review
Remove the inherited make lint example from repository instructions. Its flake8 and mypy commands remain in a legacy Makefile target but are absent from the current dependency and lint configuration; the documented pre-commit workflow uses Ruff. Validation: full pre-commit and staged whitespace checks passed. Only AGENTS.md changed. Co-authored-by: Codex <[email protected]>
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过(APPROVE)
已按 head fa3ded34 复核 ef8025e9 以来的唯一新增提交(docs(agents): remove obsolete lint command,仅从 AGENTS.md 删除 1 行):
- 被删的
make lint # flake8 + mypy,检查 relax/是本 PR 从合并前 CLAUDE.md 带入的行;全仓核对 flake8/mypy 均无配置(pyproject.toml、.pre-commit-config.yaml、requirements.txt、CI 工作流均未引用),仓库实际 lint 由 pre-commit 的 ruff 承担,维护者在 thread 中指出后该行已删除,处置正确。 - 删除后
AGENTS.md无 flake8/mypy 残留,工作流命令块剩余各项(pip install -e .、pip install -r requirements.txt、pre-commit run --all-files、pytest tests/、make test、make docs-dev)均与 Makefile/仓库现状一致。 - 备注:
Makefile:72的旧linttarget(flake8 relax/+mypy relax/)为本 PR 未触碰的既有内容,作者已在 thread 中说明;若要一并清理适合作为后续小改动。 - CI 当前无失败检查。
此前 3 个发现的解决状态维持不变,见上一轮审查与看板。
- 发现索引、范围准入与必要性审查见看板:nyanpasu-review
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过(APPROVE)
已按 head 6b01a25c 复核 fa3ded34 以来的唯一新增提交(chore: move make lint to ruff check,仅改 Makefile 的 lint target):
linttarget 由无配置且未声明依赖的flake8 relax/+mypy relax/改为ruff check relax/(check-only,不带--fix),与仓库实际 lint 标准(.pre-commit-config.yaml的 ruff-check + ruff-format,pyproject.toml的[tool.ruff.lint]规则)同源同配置;上一轮备注的遗留 target 已按维护者 thread 的要求清理,处置正确。AGENTS.md工作流命令块无需回加该行:文档记载的 lint 入口仍是pre-commit run --all-files,make lint仅作便捷补充。- 备注:
ruff未列入requirements.txt,本地环境由 pre-commit 的隔离环境提供;直接运行make lint需要环境内已安装 ruff。如需对齐make format的自动安装模式或在 dev 依赖组声明 ruff,适合作为后续独立小改动。 - CI 当前无失败检查。
此前 3 个发现的解决状态维持不变,见上一轮审查与看板。
- 发现索引、范围准入与必要性审查见看板:nyanpasu-review
…er-profiler Brings in upstream/main 653c43c..dce533b (redai-studio#257, redai-studio#258, redai-studio#285, redai-studio#323, redai-studio#330, redai-studio#335, redai-studio#408, redai-studio#409, redai-studio#412, redai-studio#414, redai-studio#416, redai-studio#417, redai-studio#419-redai-studio#421, redai-studio#424, redai-studio#426, redai-studio#427, redai-studio#430, and 42 commits synced on 10-12 without PR numbers). The only conflict is relax/utils/env.py: cc4b052 adds the DeepSeek-V4 MXFP4 QAT variables at the same spot where this branch adds the straggler profiler variables. Resolved by keeping both blocks, straggler first.


What
新增
relax-github-workflowSKILL,统一 Relax 的分支准备、PR 发布和 review 跟进流程;同步提交规范、CI 失败处理说明和中英文贡献指南,并将项目规则统一到 AGENTS.md。Why
仓库的 贡献规范、英文贡献指南 和 中文贡献指南 提供了人工贡献流程,agent 侧还缺少统一的 GitHub 工作流入口。原提交 SKILL 强制 scope 和复杂 Markdown 排版,并把“不 push”写成绝对限制;提交类型清单在不同入口也不一致。本 PR 将这些说明对齐,明确发布授权、分支命名和 CI 失败升级规则,减少重复维护。
How
ci、build和其他chore维护任务。upstream指向redai-studio/Relax,origin指向个人 fork;实际 fetch 和 push 目标按 URL 确认。redai-studio/Relax推分支。用户未指定分支名时,按<name>/<type>/<description>命名;fork 建议使用<type>/<description>。make lint(flake8/mypy)说明。CLAUDE.md 只保留指向 AGENTS.md 的相对软链,用于兼容旧版本 Claude Code;支持直接读取 AGENTS.md 的新版本无需该兼容入口。软链兼容背景只在本 PR 描述中说明。make lint改为ruff check relax/,清理旧的 flake8/mypy 命令。Testing
pre-commit run --all-files --show-diff-on-failure:通过。make lint:通过,执行ruff check relax/。emoji 表的 10 项与正文标题示例已核对 Gitmoji 官方数据,SKILL frontmatter 校验通过。
修改的 SKILL frontmatter、相对链接和软链检查:通过;提交类型清单均为相同的 10 项,中英文内容一致。
npm exec -- vitepress build docs:通过;已检查两种语言生成页面的 10 项提交类型。构建报告了 GET_STARTED.md 和 DEPLOYMENT_SUMMARY.md 中既有的失效链接,这些页面未在本 PR 修改。git diff --cached --check:通过。未运行 pytest 或多节点 GPU/NPU 集成测试:修改 SKILL、流程文档和 Makefile 的 lint 命令,没有训练代码改动。
pre-commit run --all-filespassesTests pass (
pytest tests/)New tests added (if applicable)
Documentation updated (if applicable)
Type of Change
Screenshots / Logs
不适用。