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
10 changes: 10 additions & 0 deletions docs/订阅与版本规则.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@

订阅内部每个 key 只选一个通过门槛的构建,以避免客户端导入和更新冲突。同 key 社区升级源仍可与客户端内置官方源并存,作为替代版本。

## 同名与同 key 去重

`monitor/catalog.json` 是审阅过的清单,同一站点被不同作者或不同版本重复登记时会累积成多份。每轮巡检前按下面的规则只保留一份,清单因此保持"一个站点一个构建、一个 key 一个构建":

1. **字节完全相同**:同一源码出现两次(仅仓库不同)只留第一条。
2. **同一个 key**:只保留发布时会被选中的那份。排序与发布一致——今日状态(`passed` > `partial` > 其它)> `priority` > 版本;这个顺序保证删掉的一定是本来就不会进订阅的构建。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve publication eligibility when deduplicating builds

The stated ordering omits the leading eligibility and core-success checks in scripts/cloud_audit.py::publish, and the catalog cleanup consequently deletes the only publishable ccc build. The removed zakkida/venera-sources version 1.0.2 is currently published in the extended subscription (data/sources.lock.json), whereas the retained handahao version 1.0.1 equals the official baseline and is rejected by excluded_official, even when its reading checks pass. The next publication will therefore remove CCC追漫台 entirely rather than merely deduplicate it. Restore the eligible 1.0.2 build and apply the complete publication score before priority/version when choosing which builds to retain.

Useful? React with 👍 / 👎.

3. **不同 key 但同名**:保留排序最高的那个 key,其余同站点的构建合并过去;`KadishJoey/venera-json` 的 `source_xx_hash` 自动导出条目无论排序如何都合并到同名的手写源。

被合并的构建不会出现在订阅里,也不会再占用巡检时间;它们的来源和理由记在合并时的提交说明里。

源备注写在索引 `description` 中:一般写 `引用源:owner/repository`;BB-CHICKEN `jm` 使用固定源码提交对应 CHANGELOG 的短摘录。Release 表格的来源仓库从锁定清单对应的已核验构建读取。

## 复核文件
Expand Down
Loading