Repository navigation
ci: run SAI CUDA validation on protected pushes and reviewed PRs - #11
Merged
userchba merged 1 commit intoNov 18, 2026
Merged
Conversation
userchba
added a commit
that referenced
this pull request
Nov 21, 2026
ci: run SAI CUDA validation on protected pushes and reviewed PRs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SAI CUDA validation currently requires someone to enter a commit SHA by hand. This change adds routine checks for pushes and PRs targeting
developandmain. A push tests the pushed commit; a PR tests its head commit after a maintainer approves that run. Updating a PR requires fresh approval.developcan start as soon as this workflow is merged and configured there; carrying it tomainenables pushes there and the manual Run workflow button.Repository owner
sai-libddla; allowmain,developandrefs/pull/*/merge. Approve the full SHA shown in a PR or manual run. Createsai-libddla-pushformainanddeveloponly, without per-push approval. Neither Environment needs a secret.sai-libddla-resultsrunner. 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.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
developbaseline (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 需要做的事
sai-libddla保留维护者审批,允许main、develop和refs/pull/*/merge。审批 PR 和手动运行时核对标题中的完整 SHA。另建sai-libddla-push,只允许两个受保护分支,不要求逐次审批。两个 Environment 均无需保存密钥。sai-libddla-results;约定审批人名单和后续注册方式。给站点服务 Actions、Contents、Pull requests、Variables 的只读权限即可,不需要仓库写权限。SAI_CI_ENABLED=true启用。正式验证 Actions 的产物上传、取消行为以及剩余 CUDA 失败项之前,不要设为合并必过项。SAI 管理员负责部署一次性 runner,仅向它只读挂载可公开的测试结果。SSH 凭据、精确到 SHA 的源码许可、relay、Slurm 配额与取消都留在站点服务中,由站点独立向 GitHub 核实后再提交计算。检查只接受本次 SHA 和运行编号的结果;未执行或失败不会显示通过。
**验证情况:**工作流语法、审批与取消逻辑、结果读取检查均已通过。本次未重新占用 GPU。已有
develop基线(bb4244e)四进程测试为 186/188,两项 CUDA 12.9 Cholesky 错误码测试失败;六进程作业排队时取消,本轮没有执行结果。