fix(release): gh-pages bootstrap on first run (closes #5) - #6
Merged
Conversation
✅ 远程评审 verdict: passcommit
|
issue #5 / PR #2 dogfood 后第 3 个 gap:本仓库从未建过 gh-pages 分支, release-branch.yml 的 step 14 直接 `git clone --branch=gh-pages` 在 那种情况下报 'fatal: Remote branch gh-pages not found',整个 publish job 挂在最后一步。 修复(12 行 bash): - try clone --branch=gh-pages → 命中走原路径 - 失败(分支不存在)→ rm 临时目录、clone default、checkout --orphan gh-pages、git rm 清 index → 后续 git add + commit + push 会把 latest.json 作为 orphan 首 commit 推上去,GitHub 自动建 gh-pages 下次 publish run 应: - 早退守门看 latest.json(此时 gh-pages 已建好) → 若 SHA 一致 skip - 否则正常 publish 更新 latest.json 完整 release pipeline 至此应真端到端可用。验证留给 PR 合后下一次 push main / 6h cron / workflow_dispatch 触发 release-branch.yml。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
libz-renlab-ai
force-pushed
the
fix/gh-pages-bootstrap
branch
from
May 15, 2026 08:55
53d35c1 to
e5004cb
Compare
|
🤖 远程 review 通过 → 已自动 squash 合并到 main( |
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.
fix(release): gh-pages bootstrap on first run (closes #5)
PR #2 合主分支后,
release-branch.yml首次端到端跑(commit1c23fde)在 step 14「Publish latest.json to gh-pages」挂了:本仓库 gh-pages 分支从未建过(Matrix 是 baseline fork,bootstrap 阶段),release workflow 没处理这个 edge case。
修复(12 行 bash)
release-branch.ymlstep「Publish latest.json to gh-pages」:后续
git add latest.json+git commit+git push origin gh-pages会把latest.json作为 orphan 首 commit 推上去,GitHub 自动建 gh-pages 分支。预期 dogfood
本 PR 合后,下次任一触发(push main /
0 */6 * * *cron / workflow_dispatch):skip=false,继续latest.jsonskip=true→ 后续 12 step 全 skip → workflow 总体 success至此
docs/WORKFLOW.md第 8 步「每 6 小时自动发一个 release」真正端到端可用。测试状态
YAML 语法 OK。bash 改动小且独立 —— 没有单元测试,验证靠 dogfood:本 PR 一过 + merge,下一次 release-branch.yml 跑就能验证。
预期 verdict
repro-pass✅(全 spec 被 ci.skip 豁免,PR fix(ci): ReproSpec.ci.skip —— 让 Windows-only / 手工预置类 spec 在 Ubuntu CI 上自报豁免 (closes #3) #4 修)tests-and-merge-clean❌(issue [follow-up] PR #2 dogfood 揭示两个预存问题:CI repro 豁免 + Matrix baseline pnpm test 失败 #3 Gap 2,21 个 Matrix baseline 预存失败,本 PR 不修)→ verdict 仍 fail,仍需 human-merge —— 但这是 Gap 2 的锅,不是本 PR 的锅。
关联
🤖 Generated with Claude Code