Skip to content

ci: tests 徽章动态对齐(badge job 进 CI)+ 徽章刷到当前 1242 - #273

Merged
modusensus merged 1 commit into
mainfrom
badge-dynamic
Sep 20, 2026
Merged

modusensus merged 1 commit into
mainfrom
badge-dynamic

Conversation

@modusensus

@modusensus modusensus commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #272 observation 1: the tests badge was hand-written and had drifted (1176 vs actual 1242).

  • ci.yml gains a badge job: on push to main it reuses the release pipeline's badge:sync (script runs the full suite and refuses to update the badge on a red run — fail-closed), then commits the two READMEs if changed. Number now tracks every push instead of drifting between releases. Idempotent: zero commits when already in sync. Runs only on main pushes (PRs can't write back to the base branch anyway).
  • Local badge:sync run once: badge 1176 → 1242 (current real count), so the next CI run should be a no-op.
  • Job needs contents: write; workflow-level stays contents: read (least privilege, same shape as release.yml's badge job).

Summary by CodeRabbit

  • CI 与自动化

    • 新增主分支徽章同步流程,在测试通过且徽章数据有变化时自动更新相关 README。
  • 文档

    • 更新项目及子项目 README 中显示的测试数量徽章和本地开发说明,测试数量由 1176 调整为 1242。

- ci.yml 新增 badge job:push 到 main 时复用发版线的 badge:sync
  (脚本自带「测试不绿不刷徽章」),数字不再只在发版时追平
- 双 README 徽章手工跑一次 badge:sync:1176 → 1242(当前真实值)
Copilot AI lite review requested due to automatic review settings September 20, 2026 07:50

This comment was marked as outdated.

@coderabbitai

coderabbitai Bot commented Sep 20, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: slow-stack/dsh-mneme/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: fad7c795-5176-429c-b3fb-7bcbd437e05f

📥 Commits

Reviewing files that changed from the base of the PR and between 3ad0361 and 900400e.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • README.md
  • dsh-mneme/README.md
 ____________________________________________
< Let's git serious about your code quality. >
 --------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@modusensus
modusensus merged commit 9089a71 into main Sep 20, 2026
9 of 10 checks passed
@modusensus
modusensus deleted the badge-dynamic branch September 20, 2026 07:55
modusensus added a commit that referenced this pull request Sep 21, 2026
CHANGELOG 的 [Unreleased] 转为 v0.8.6 小节,并补上三份未登账的改动:
工具暴露开关与描述纪律(#276)、蒸馏游标持久化(#229/#274)与旧宿主降级路径
(#279)、能力说明第 5 条文案精确性(#277)、CI 与徽章口径收敛(#281/#273/#272)。
两个 README 的 v0.8.6 占位行补描述(版本历史 + 路线图),测试徽章与注释数按
badge:sync 对齐到 1275。
modusensus added a commit that referenced this pull request Sep 21, 2026
* chore: v0.8.6 发布准备(版本号 + 测试徽章 + CHANGELOG/路线图占位行)

请在 CHANGELOG 与两个 README 的占位行补描述后再合并。

* chore(release): v0.8.6 发布说明与路线图补齐

CHANGELOG 的 [Unreleased] 转为 v0.8.6 小节,并补上三份未登账的改动:
工具暴露开关与描述纪律(#276)、蒸馏游标持久化(#229/#274)与旧宿主降级路径
(#279)、能力说明第 5 条文案精确性(#277)、CI 与徽章口径收敛(#281/#273/#272)。
两个 README 的 v0.8.6 占位行补描述(版本历史 + 路线图),测试徽章与注释数按
badge:sync 对齐到 1275。

---------

Co-authored-by: modusensus <[email protected]>
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.

2 participants