Repository navigation
feat(ci): 每日检查线上索引健康度 - #17
Merged
Merged
Conversation
索引与站点是两条链路:站点部署成功不代表 MCP 读的 search-index.json 也跟着更新。本次 xburn / tros / model_zoo 的索引停在 10 月,就是因为 没有人在看这条链路。 脚本直接复用 MCP 自己的加载路径,检查用户实际会遇到的东西: - 索引能否加载,记录数是否为 0 - 记录数是否跌破包内快照基线的 80% - 索引 last-modified 是否比站点首页(≈最近一次部署)旧半天以上 - 绝对年龄超过 14 天记为警告 每日 09:00 跑一次,有失败时 job 变红;报告同时写入 step summary。 Co-Authored-By: Claude Code <noreply@anthropic.com>
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.
背景
站点部署成功不代表 MCP 读的
search-index.json也更新了。本次 xburn / tros / model_zoo 的索引停在 10 月,靠人工翻落空词才发现(复盘:doc-plans/report-mcp-index-staleness-2026-11-18.md)。改动
mcp/scripts/check-index-health.mjs:复用 MCP 自己的索引加载路径,逐本检查last-modified是否比站点首页(≈最近一次部署)旧半天以上.github/workflows/health-index.yml:每日 09:00(CST)运行,失败时 job 变红,报告写入 step summary验证
本地对 19 本手册实跑,准确报出三个坏站:
阈值可用
INDEX_STALE_DAYS/INDEX_MIN_RATIO覆盖。后续
🤖 Generated with Claude Code