Skip to content

ci: add manual LAT CI hub workflows - #467

Draft
xiezyang wants to merge 1 commit into
lat-opensource:masterfrom
xiezyang:codex/upstream-manual-lat-ci-hub
Draft

ci: add manual LAT CI hub workflows#467
xiezyang wants to merge 1 commit into
lat-opensource:masterfrom
xiezyang:codex/upstream-manual-lat-ci-hub

Conversation

@xiezyang

@xiezyang xiezyang commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

变更说明

新增两个手动触发的 GitHub Actions workflow,用于上游仓库的 LAT CI。

  • Request LAT CI (manual):上游维护者可选择任意开放 PR,手动发起测试。
  • workflow 会从 GitHub API 获取 PR 的实际头仓库、仓库 ID、分支、头提交和基提交,并使用这些精确元数据执行测试。
  • 支持上游自身分支、个人 fork 和外部 fork 发起的 PR。
  • Publish LAT CI check:测试完成后,在被测提交上创建最终的 LAT CI 检查状态。
  • CI 保持手动触发。外部 PR 的代码不会因创建或更新 PR 而自动在 self-hosted 测试机上执行。

验证

  • 使用 PyYAML 成功解析两个新增 workflow 文件。

  • 确认请求 workflow 会转发 GitHub API 返回的实际 PR 头仓库和仓库 ID,不再要求 PR 必须来自固定 fork。

  • 已运行 CI 调度相关测试:

    python3 -m unittest tests.test_github_workflow_request tests.test_github_dispatch_check tests.test_github_ci_workflow

    结果:16 项测试通过。

  • 已读取真实上游开放 PR LATX, opt: Add RIP-relative and complex address caches #466 的元数据。该 PR 来自外部 fork
    y347812075/lat,验证了新的来源转发格式可以处理非固定 fork 的 PR。

  • 未执行完整端到端 CI:workflow 需先合入上游仓库,并配置调用测试服务所需的 Actions Secret。

检查项

  • 我已阅读 CONTRIBUTING.md
  • 每个提交都包含 DCO 签署(git commit -s)。
  • 我已提供相关验证结果,并说明了未执行端到端 CI 的原因。

@xiezyang
xiezyang marked this pull request as draft September 7, 2026 07:44
Add an opt-in upstream Actions entry that resolves an open
lat-opensource/lat pull request from the GitHub API and dispatches its
exact source repository, repository ID, branch, head SHA, and base SHA
to the LAT CI service.

Accept upstream branches and external forks for manually approved
upstream CI requests. Keep the workflow manual so untrusted pull
request code is not executed automatically on the self-hosted test
machine.

Add a callback workflow that creates the final LAT CI Check Run on the
tested upstream commit after the CI service reports completion.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
@xiezyang
xiezyang force-pushed the codex/upstream-manual-lat-ci-hub branch from 3c49dea to c7df30e Compare September 7, 2026 07:57
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.

1 participant