Skip to content

docs(skills): guide CI operations through APIs - #396

Merged
SigureMo merged 6 commits into
codex/ci-welcomefrom
codex/ci-skill
Oct 1, 2026
Merged

SigureMo merged 6 commits into
codex/ci-welcomefrom
codex/ci-skill

Conversation

@SigureMo

@SigureMo SigureMo commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

What

新增 relax-github-ci skill,主文件提供操作流程与公共指令索引,参考页分别介绍 rerun API 与豁免维护。

Why

让 agent 优先使用已有的 GitHub 权限直接操作 CI,并按需读取详细说明。

How

  • 有 Actions 写权限时优先使用 gh run 或 REST API;缺少直接权限且符合评论接口条件时,使用 PR 评论指令。
  • 主文件集中描述当前 PR/head/required checks 检查、run 选择、公共评论协议、指令索引、取消操作与结果验证;target 使用配置中的精确 workflow / workflow/job 名称,无旧短名称别名,并区分 ci 与 all。
  • references/rerun.md 只介绍重跑 API 与 job ID 获取;references/maintenance.md 记录 CI team、豁免、标签清理和部署维护,并明确 bypass 仅接受 ci、gpu-unit、integration 或 all。
  • 不写入特定账号/agent 的署名教程或从未提供过的指令,Markdown 正文不手工硬折行。
  • 欢迎评论通过 HTML 注释向 agent 提供 skill 链接,渲染后不显示该提示;中英文贡献指南保留 skill 入口。

原生 gh-stack 第 5/6 层,依赖 #395。

Testing

全量 pre-commit 和 actionlint 已通过。VitePress 构建、欢迎模板内容检查及 skill 参考链接检查通过;构建仅有既有旧文档链接警告。

未在本地运行 pytest tests/ 或 GPU/NPU 训练:本次涉及 CI 自动化与文档。欢迎/评论指令的真实 GitHub 交互需进入默认分支后验证。

  • 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
  • CI/CD or build changes

Screenshots / Logs

This PR is co-authored with @codex (gpt-6-astra, reasoning: xhigh).

@SigureMo
SigureMo added this pull request to stack #397 September 30, 2026 17:05
@chatgpt-codex-connector

This comment was marked as spam.

Comment thread skills/relax-github-ci/SKILL.md Resolved
Comment thread skills/relax-github-ci/SKILL.md Resolved
Comment thread skills/relax-github-ci/SKILL.md Resolved
Comment thread skills/relax-github-ci/SKILL.md Resolved
@SigureMo SigureMo mentioned this pull request Sep 30, 2026
3 of 11 tasks
@SigureMo SigureMo changed the title feat(skills): add Relax GitHub CI operations feat(skills): guide CI operations through APIs Sep 30, 2026
@SigureMo SigureMo mentioned this pull request Sep 30, 2026
5 of 11 tasks
Comment thread .github/actions/pr-welcome/comment.md Resolved
@SigureMo
SigureMo marked this pull request as ready for review September 30, 2026 20:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T09:08:36.252083Z 28bab91 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SigureMo SigureMo changed the title feat(skills): guide CI operations through APIs docs(skills): guide CI operations through APIs Sep 30, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

@rai-studio-bot

rai-studio-bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Nyanpasu 审查看板

审查状态: ✅ 已通过

审查版本: 8a11df7

目标分支: codex/ci-welcome

审查通过(head 8a11df7,直接基线 codex/ci-welcome):层文件与已批准内容逐字节一致(6f57573d 的后继重定基,基线增量仅为贡献指南措辞微调)。该 head 上的 APPROVE 审查(pullrequestreview-5382934560)即为本轮结论,为当前最新审查,内容已逐项核验,无需重复提交。两条历史建议保持已解决;tree 链接质疑的实测否定结论不变。范围全部接收、无移出或待确认项、无测试范围。

审查阶段进度范围与结果
常规审查 ✅ 已完成 本轮按新 pinned 范围复核:review-verify 通过(8a11df74/137a4aa1);层文件(skills/ 与 .github/)在 6f57573 与 8a11df7 间逐字节一致,基线增量仅为中英文贡献指南的 rerun/cancel 措辞润色。该 head 的最新审查为本账号 APPROVE(5382934560,17:19:19),PR 处于 MERGEABLE 状态。人类审查者 DrRyanHuang 曾在 6f57573 提交批准、被后续 force-push dismiss,需其在新 head 重新批准。无新评论或请求。
深度审查 ✅ 已完成 内容逐字节一致,必要性审计结论按已记录的范围、替代方案与保留证据复用。

审查发现

待处理
编号 严重性 问题状态规则来源
暂无待处理的记录。
已解决或已取代
编号 严重性 问题状态规则来源
F1 Low severity 补充说明:Bot 类型账号发出的评论指令会被静默忽略 ✅ 已解决 —
F2 Medium severity 检查命令补齐 fork head repository 字段以支撑 run 选取规则 ✅ 已解决 —
提交范围 · 接收 6 · 建议移出 0 · 待确认 0

接收 6 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。

文件结论仓库维护必要性依据替代去向或方案
skills/relax-github-ci/SKILL.md
skills/relax-github-ci/references/rerun.md
skills/relax-github-ci/references/maintenance.md
接收 skills/ is the repo's established, maintained surface for development and operations workflows (18 existing skills with the same SKILL.md + references/ layout, referenced by AGENTS.md and the agent harness). This skill is the durable agent-facing operating guide for the CI automation shipped in stack #392-#395 and is linked from the PR welcome comment and both contributor guides. Re-verified at 8a11df7 (successor of 6f57573): layer files byte-identical to the approved content including the qualified-target-key documentation; the base delta is only contributor-guide wording polish, .github/ untouched. PR description What/How; AGENTS.md 'Domain experts & skills' section; existing skills/ directory convention Keeping this guidance only as external PR evidence would leave repo agents without the documented entry point, and the welcome comment/docs added in this PR would link to nothing.
.github/actions/pr-welcome/comment.md
接收 The welcome template is repo CI infrastructure from stack layer #395; the added hidden HTML comment is the machine-readable pointer that routes agents landing on new PRs to the skill, rendered by .github/actions/pr-welcome/index.mjs via the existing {{source}} placeholder (default-branch tree URL, which GitHub 301-redirects to the blob route for file paths). .github/actions/pr-welcome/index.mjs renderWelcome ({{source}} substitution); .github/workflows/pr-welcome.yml posts the rendered template Without the hint, agents on new PRs get no in-repo pointer to the CI skill; the visible comment text is deliberately kept contributor-focused per the resolved review thread.
docs/en/guide/how-to-contribute.md
docs/zh/guide/how-to-contribute.md
接收 Bilingual user-facing entry points for the skill in the maintained VitePress site; the escaping relative link is an established docs pattern and is rewritten to a GitHub blob URL by docs/.vitepress/plugins/source-links.ts, so the site link works after merge. docs/.vitepress/config.mts sourceLinks wiring (repo, branch main, repoRoot); established pattern in docs/en/guide/mtp-rl-training.md and sft-training.md No external artifact can serve as the contributor-guide entry point; removing these lines would hide the skill from human contributors reading the site.
精简审查与验证依据
审查范围进度结论
生产代码 ✅ 已完成 复用并复核既有三项必要性决策(内容逐字节一致);无删减建议。
测试 ➖ 无需执行 本层 diff 为纯文档与 skill 内容(6 个 Markdown 文件),不含测试或可执行生产代码;Markdown 校验(pre-commit、actionlint、VitePress 构建)在 CI 中运行。无适用的测试范围可审计。

生产代码的必要性与替代方案

范围必须保留的契约更简单的方案结论依据与限制
skills/relax-github-ci/SKILL.md 与 references/rerun.md、references/maintenance.md 的主文件/参考页拆分 agent 需要一份与 CI 自动化同步维护的操作指南;调用方为欢迎评论中的 HTML 提示、中英文贡献指南链接及 agent harness 的 skill 自动发现。 合并为单个 SKILL.md(取消 references/ 目录),或仅保留文档站说明页。 保留 拆分符合仓库 17 个既有 skill 的 SKILL.md + references/ 渐进披露惯例;文件结构由维护者在已解决审查线程中明确指定。合并或删除无维护收益,反而违背既定结构。
SKILL.md 的指令表与欢迎评论 comment.md、贡献指南 how-to-contribute、ci-commands /help 输出的四处并列维护 同一指令集面向四类受众:新 PR 上的贡献者(欢迎评论)、文档站读者(指南)、交互式用户(/help 回复)、读取 skill 的 agent。 SKILL.md 不复述指令表,改为指向文档站 CI 章节页面。 保留 四个表面由堆栈不同层引入且渲染语境互不替代;skill 需自包含以避免 agent 额外跳转。已记录权衡:指令集变更需同步更新各表面——/help 由 config.json targets 驱动,其余三处为手工维护。
references/maintenance.md 的「Implementation and configuration」位置/密钥表 维护者修改 CI 自动化时需要各职责的文件位置与 secret/variable 归属(如 WELCOME_BOT_TOKEN 须属于 WELCOME_BOT_LOGIN 账号)。 删除该表,维护时从 workflows 与 action 源码重新推导。 保留 表格编码了不可从目录结构直接推导的事实(secret/variable 名称与归属关系、welcome 与指令工作流仅加载默认分支代码);删除会迫使每次维护任务重新推导这些信息。
Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

审查结论:已完成 · 一条非阻塞建议

对 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 类型账号发出的指令会被静默忽略的说明。

审查看板

Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

Comment thread skills/relax-github-ci/SKILL.md Resolved
@chatgpt-codex-connector

This comment was marked as spam.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

审查结论:通过(重定基复核)

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 重新提交。完整审查记录与必要性审计见看板。

审查看板

Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

DrRyanHuang
DrRyanHuang previously approved these changes Oct 1, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

SigureMo and others added 6 commits October 2, 2026 01:15
- 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]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@rai-studio-bot rai-studio-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

审查结论:通过(重定基复核)

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 重新提交。完整审查记录与必要性审计见看板。

审查看板

Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.

@SigureMo
SigureMo merged commit 952b4a5 into main Oct 1, 2026
11 of 13 checks passed
@SigureMo
SigureMo deleted the codex/ci-skill branch October 1, 2026 17:57
SigureMo added a commit that referenced this pull request Oct 1, 2026
## 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]>
SigureMo added a commit that referenced this pull request Oct 1, 2026
## 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]>
SigureMo added a commit that referenced this pull request Oct 1, 2026
## 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]>
SigureMo added a commit that referenced this pull request Oct 1, 2026
## 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]>
Mukayi added a commit to Mukayi/Relax that referenced this pull request Oct 4, 2026
…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.
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.

3 participants