Skip to content

docs(ci): local-first CI standard + local gate runner - #37

Merged
jinjunnn merged 1 commit into
alphafrom
docs/ci-standard
Jul 3, 2026
Merged

docs(ci): local-first CI standard + local gate runner#37
jinjunnn merged 1 commit into
alphafrom
docs/ci-standard

Conversation

@jinjunnn

@jinjunnn jinjunnn commented Jul 3, 2026

Copy link
Copy Markdown
Owner

制定 CI 规范(用户要求),核心原则 本地先跑,CI 兜底。纯新增 alpha 自有文件,零改上游。

内容

  • docs/CI.md — CI 规范:local-first 原则、三关与 alpha-ci 的 1:1 对照、fork 只留 alpha-ci+sync-upstream 的原因(上游 workflow 要 Blacksmith runner 本 fork 没有→永久 queued=「CI 卡」真因)、卡住排查手册、可选 pre-push 钩子。
  • scripts/alpha-check.sh — 一条命令跑齐 alpha-ci 三关(北极星守卫 + ext/ui-mac typecheck + ui-mac 单测),几秒出结果,push 前自检。
  • .githooks/pre-push — 可选、默认不装(git config core.hooksPath .githooks 开启),把 local-first 变强制。
  • CLAUDE.md — 「跑起来」加一行 + 新增「CI」段指向规范。

验证

  • bash -n 语法通过;北极星守卫 git-diff 逻辑在干净 worktree 实测返回空(通过)。
  • typecheck/test 两行逐字取自当前绿的 alpha-ci.yml
  • 本 PR 自身将由 alpha-ci 复核(dogfood)。

🤖 Generated with Claude Code

Add docs/CI.md (the CI 规范), scripts/alpha-check.sh (runs alpha-ci's three
gates locally — north-star guard / typecheck / ui-mac tests — in seconds), an
opt-in .githooks/pre-push, and a CLAUDE.md pointer.

Principle: local-first — run the gates locally before push; CI is the enforcing
backstop, not where failures first surface. Documents why only alpha-ci +
sync-upstream are active (26 inherited upstream workflows disabled 2026-07-03:
they need Blacksmith runners this fork lacks → queued forever = the real cause of
"CI 卡/连不通"), plus a stuck-CI playbook.

Additive alpha-owned files only; zero upstream edits.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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