Skip to content

ci: run SAI CUDA validation on protected pushes and reviewed PRs - #11

Merged
userchba merged 1 commit into
userchba:developfrom
Stardust0831:ci/sai-routine-validation
Nov 18, 2026
Merged

userchba merged 1 commit into
userchba:developfrom
Stardust0831:ci/sai-routine-validation

Conversation

@Stardust0831

Copy link
Copy Markdown
Contributor

SAI CUDA validation currently requires someone to enter a commit SHA by hand. This change adds routine checks for pushes and PRs targeting develop and main. A push tests the pushed commit; a PR tests its head commit after a maintainer approves that run. Updating a PR requires fresh approval. develop can start as soon as this workflow is merged and configured there; carrying it to main enables pushes there and the manual Run workflow button.

Repository owner

  1. Protect both branches, require review of code and workflow changes, restrict direct/force pushes, and require fork workflow approval for all outside contributors.
  2. Keep required maintainers on Environment sai-libddla; allow main, develop and refs/pull/*/merge. Approve the full SHA shown in a PR or manual run. Create sai-libddla-push for main and develop only, without per-push approval. Neither Environment needs a secret.
  3. Privately provide SAI a short-lived repository runner registration token for the sai-libddla-results runner. Agree on the reviewer list and registration renewal. Grant the site publisher read access to Actions, Contents, Pull requests and Variables; it does not need repository write access.
  4. Coordinate the first supervised run with SAI, then enable routine runs with the repository Actions variable SAI_CI_ENABLED=true. Leave the check optional until Actions artifact upload, cancellation and the remaining CUDA failures have been verified.

SAI administrators provide the disposable runner and mount only published results read-only. The SSH identity, exact-SHA authorization, installed relay, Slurm limits and cancellation stay on the trusted site service. It checks GitHub independently before submitting compute. A result counts only for the matching SHA and run attempt; missing or failed tests cannot pass. Setup and acceptance steps are in .ci/sai/README.md.

Validation: actionlint, admission/cancellation tests and result-reader checks passed. No GPU suite was rerun for this workflow change. On the existing develop baseline (bb4244e), the four-rank suite passed 186/188; the two CUDA 12.9 Cholesky error-code cases failed. The six-rank job was cancelled in the queue and did not execute.


当前 SAI CUDA 验证需要手工填写 SHA。本改动让 develop 和 main 的推送、以及目标为这两个分支的 PR 进入常规 CI。推送测试实际推入的提交;PR 测试维护者批准的当前 head,追加提交后需要重新批准。合入并配置后即可在 develop 启用,无需先同步默认分支;工作流进入 main 后,该分支的推送和 Actions 的手动运行按钮也可用。

仓库 owner 需要做的事

  1. 保护两个分支,要求代码和工作流变更经过评审,限制直接推送和强推;在 Actions 设置中要求所有外部贡献者的 fork 工作流经批准运行。
  2. 在 Environment sai-libddla 保留维护者审批,允许 main、develop 和 refs/pull/*/merge。审批 PR 和手动运行时核对标题中的完整 SHA。另建 sai-libddla-push,只允许两个受保护分支,不要求逐次审批。两个 Environment 均无需保存密钥。
  3. 私下向 SAI 提供短期有效的仓库 runner 注册 token,用于注册 sai-libddla-results;约定审批人名单和后续注册方式。给站点服务 Actions、Contents、Pull requests、Variables 的只读权限即可,不需要仓库写权限。
  4. 与 SAI 约好首次有人值守的验证,设置仓库 Actions 变量 SAI_CI_ENABLED=true 启用。正式验证 Actions 的产物上传、取消行为以及剩余 CUDA 失败项之前,不要设为合并必过项。

SAI 管理员负责部署一次性 runner,仅向它只读挂载可公开的测试结果。SSH 凭据、精确到 SHA 的源码许可、relay、Slurm 配额与取消都留在站点服务中,由站点独立向 GitHub 核实后再提交计算。检查只接受本次 SHA 和运行编号的结果;未执行或失败不会显示通过。

**验证情况:**工作流语法、审批与取消逻辑、结果读取检查均已通过。本次未重新占用 GPU。已有 develop 基线(bb4244e)四进程测试为 186/188,两项 CUDA 12.9 Cholesky 错误码测试失败;六进程作业排队时取消,本轮没有执行结果。

@userchba
userchba merged commit 92e3f48 into userchba:develop Nov 18, 2026
4 checks passed
userchba added a commit that referenced this pull request Nov 21, 2026
ci: run SAI CUDA validation on protected pushes and reviewed PRs
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.

2 participants