Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .agents/skills/mcpp-release/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ curl -fsSL https://raw.githubusercontent.com/openxlings/xim-pkgindex/main/pkgs/m
| grep -n '\["latest"\]'

# 2) 推 pin 之前,指针已经跟上索引 main 的短 SHA
curl -fsSL https://github.com/xlings-res/xim-index/releases/download/latest/xim-index-latest.json \
| grep -E '"(index_version|source_commit)"'
curl -fsSL https://raw.githubusercontent.com/xlings-res/xim-index/main/xim-index-pointers.json \
| python3 -c 'import json,sys; n=json.load(sys.stdin)["indexes"]["xim"]; print(n["index_version"], n["source_commit"])'
```

滞后的量级实测过:2026-09-05 那次,指针资产 17:20:32 就替换完了,CI 17:21:23 才去解析
Expand Down Expand Up @@ -337,7 +337,7 @@ gh workflow run bump-formula.yml -R mcpp-community/homebrew-mcpp
|------|------|------|
| `mcpp X.Y.Z-1` 但 tag 是 `vX.Y.Z` | `modules/versioning/src/version.cppm` 版本未更新 | 在 PR 中同步版本号;已发布版本使用新 tag |
| bump PR 里**所有** CI job 都红在 bootstrap,报 `package 'mcpp@X.Y.Z' not found` | 把 `.xlings.json` bootstrap pin 一起 bump 了,CI 去装一个还没发布的版本 | 把 `.xlings.json` 回退到上一个已发布版本;不要修改运行时推导的 `MCPP_PIN` |
| main 上**所有** workflow 都红在 bootstrap,报 `package 'mcpp@X.Y.Z' not found`,而该版本确实已发布并已合入索引 | pin 推得比索引指针稳定早;客户端读 CDN artifact 不读 git 树 | 等 `xim-index-latest.json` 的 `index_version` 等于索引 main 短 SHA 后重跑;不要改 pin |
| main 上**所有** workflow 都红在 bootstrap,报 `package 'mcpp@X.Y.Z' not found`,而该版本确实已发布并已合入索引 | pin 推得比索引指针稳定早;客户端读 CDN artifact 不读 git 树 | 等 `xim-index-pointers.json` 中 `xim` 的 `index_version` 等于索引 main 短 SHA 后重跑;不要改 pin |
| `xlings install mcpp`(不带 `@版本`)装到**上一个**版本,而索引文件里明明有新版本 | 同一平台表里两个 `["latest"]` 键(手写索引 PR 追加而非替换),Lua 后写的赢 | 删掉陈旧的那行,使每个平台表只剩一个 `["latest"]`。**精确 pin 仍可用,所以 mcpp 自己的 CI 不会报这个** |
| 自查 `--version` 显示旧版本,但源码已改 | `target/<triple>/<指纹>/` 的指纹随版本变,`ls \| head -1` 取到了上一次构建的目录 | 用 `ls -dt … \| head -1` 取最新构建 |
| Smoke test 输出旧版本 | CI 缓存了旧的 sandbox/target | 删除 GitHub Actions cache 后重跑 |
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/ci-fresh-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,31 +117,40 @@ jobs:
# — the index's git source of truth, which updates the instant the
# bump PR merges. But the jobs install from the PUBLISHED ARTIFACT
# (xlings-res/xim-index → pointer → tarball), and that channel lags
# git by however long `Publish Index Artifact` plus release-CDN
# git by however long the release train plus release-CDN
# propagation takes. Measured on the 2026.8.3.5 release: this guard
# reported ready, and all 11 jobs then failed with
# [error] package 'mcpp@2026.8.3.5' not found
# A guard that measures a channel nobody installs from is not a guard.
#
# The pointer is the one clients read: `xim-index-pointers.json`, a
# repository file of xlings-res/xim-index, which names the artifact
# (the release `v<index_version>`). The release asset
# `xim-index-latest.json` that this step polled until 2026.12.7.1
# serves clients up to 0.4.53 and no longer tracks the index (it
# still named 2026.12.5.3 while the pointer named 7595ec7a), so
# every release-triggered run ended in this step's timeout.
#
# This narrows the window; it cannot close it, because the CDN
# propagates per edge and the runner that polls is not the runner
# that installs. install_released_mcpp.sh retries from the consumer
# side for exactly that residue — this step exists so the retry is
# rarely needed, not so it can be removed.
echo "released: $VER — waiting for the published index artifact..."
for i in $(seq 1 40); do
ptr=$(curl -fsSL "https://github.com/xlings-res/xim-index/releases/download/latest/xim-index-latest.json" 2>/dev/null || true)
ptr=$(curl -fsSL "https://raw.githubusercontent.com/xlings-res/xim-index/main/xim-index-pointers.json" 2>/dev/null || true)
# One line on purpose: an indented heredoc inside a YAML block
# scalar is a trap — unindented content silently ends the block.
name=$(printf '%s' "$ptr" | python3 -c 'import json,sys; d=json.load(sys.stdin); n=d.get("indexes",{}).get("xim",d); print(n.get("artifact",{}).get("name",""))' 2>/dev/null || true)
found=$(printf '%s' "$ptr" | python3 -c 'import json,sys; n=json.load(sys.stdin)["indexes"]["xim"]; print("v" + n["index_version"], n["artifact"]["name"])' 2>/dev/null || true)
read -r tag name <<<"$found" || true
if [ -n "$name" ] && curl -fsSL \
"https://github.com/xlings-res/xim-index/releases/download/latest/$name" \
"https://github.com/xlings-res/xim-index/releases/download/$tag/$name" \
| tar -xzO --wildcards '*pkgs/m/mcpp.lua' 2>/dev/null | grep -q "\"$VER\""; then
echo "published index artifact ($name) tracks $VER (after $((i*30))s)"; exit 0
fi
sleep 30
done
echo "::error::the published index artifact never tracked $VER within 20min — check that the xim-pkgindex bump PR merged AND that Publish Index Artifact ran"
echo "::error::the published index artifact never tracked $VER within 20min — check that the xim-pkgindex bump PR merged AND that the release train published the index"
exit 1
- name: No wait needed (manual/cron trigger)
if: ${{ github.event_name != 'workflow_run' }}
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
> Each `## [<version>]` section is that release's notes. Entries are written in English
> from 2026.9.28.3 on; earlier entries remain as written.

## [Unreleased]

### Fixed

- The wait of `ci-fresh-install` for the published index reads `xim-index-pointers.json`, the pointer
clients read, and the artifact it names. The release asset it read before serves clients up to 0.4.53
and no longer tracks the index, so a run triggered by a release ended in the wait's timeout.

## [2026.12.7.1] - 2026-12-07

### Changed
Expand Down
6 changes: 3 additions & 3 deletions docs/92-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ received the previous artifact. All nine workflows failed at bootstrap, none of
them having compiled a line. The observable condition is the pointer itself:

```bash
curl -fsSL https://github.com/xlings-res/xim-index/releases/download/latest/xim-index-latest.json \
| grep -E '"(index_version|source_commit)"'
curl -fsSL https://raw.githubusercontent.com/xlings-res/xim-index/main/xim-index-pointers.json \
| python3 -c 'import json,sys; n=json.load(sys.stdin)["indexes"]["xim"]; print(n["index_version"], n["source_commit"])'
```

`index_version` must equal the short SHA of xim-pkgindex `main` before the pin is
Expand Down Expand Up @@ -345,7 +345,7 @@ would again let the index guard and the installed version drift apart.
[ ] mirrors serve all four platforms on BOTH hosts, sha256 recomputed
[ ] merge the xim-pkgindex index PR
[ ] index `latest` resolves to the new version in all three platform tables
[ ] xim-index-latest.json's `index_version` equals xim-pkgindex `main`
[ ] the `xim` `index_version` of xim-index-pointers.json equals xim-pkgindex `main`
[ ] clean-room XLINGS_HOME: xlings install mcpp@<version> succeeds
[ ] (optional) bump .xlings.json — only now, never earlier
```
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/92-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ artifact,不是 git 树。2026-09-05 那次,pin 的 commit 比索引 PR 的
bootstrap,没有一条编译过一行。可观测的条件是指针本身:

```bash
curl -fsSL https://github.com/xlings-res/xim-index/releases/download/latest/xim-index-latest.json \
| grep -E '"(index_version|source_commit)"'
curl -fsSL https://raw.githubusercontent.com/xlings-res/xim-index/main/xim-index-pointers.json \
| python3 -c 'import json,sys; n=json.load(sys.stdin)["indexes"]["xim"]; print(n["index_version"], n["source_commit"])'
```

推 pin 之前,`index_version` 必须等于 xim-pkgindex `main` 的短 SHA。没有
Expand Down Expand Up @@ -312,7 +312,7 @@ curl -fsSL https://github.com/xlings-res/xim-index/releases/download/latest/xim-
[ ] mirrors serve all four platforms on BOTH hosts, sha256 recomputed
[ ] merge the xim-pkgindex index PR
[ ] index `latest` resolves to the new version in all three platform tables
[ ] xim-index-latest.json's `index_version` equals xim-pkgindex `main`
[ ] the `xim` `index_version` of xim-index-pointers.json equals xim-pkgindex `main`
[ ] clean-room XLINGS_HOME: xlings install mcpp@<version> succeeds
[ ] (optional) bump .xlings.json — only now, never earlier
```
Loading