Skip to content

site: leave CERNET out of the mirror sync state - #336

Merged
Zakkaus merged 2 commits into
masterfrom
claude/gentoo-zh-binhost-failure-a82iy1
Oct 7, 2026
Merged

Zakkaus merged 2 commits into
masterfrom
claude/gentoo-zh-binhost-failure-a82iy1

Conversation

@Zakkaus

@Zakkaus Zakkaus commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

教育网联合镜像站以 302 将请求重定向到其他镜像站,本身不保存文件。状态 API 通过它测得的延迟属于被重定向到的镜像站,而非它自身,因此不计入它的同步状态。

改动

site/assets/mirror-health.js

  • 新增 RELAY(目前仅含 mirrors.cernet.edu.cn),此类镜像的各棵树不计延迟。
  • 镜像页“同步状态”列:可达时显示“重定向至其他镜像站”/“重新導向至其他鏡像站”/“Redirects to other mirrors”,不再显示“落后约 N 小时”或“尚未同步最新版”,选项也不会因延迟被标记。
  • 状态页“镜像同步”:不列出该镜像,与源站的处理相同。
  • 可达性判断保持不变:该镜像无法连接时仍显示“无法连接”并标记 data-down,文件浏览器的链接保留在源站。

引用 mirror-health.js 的页面已由 render-chrome.py 更新 ?v= 哈希。

site/faq.html

关于 Git 提示重定向的回答原将重定向目标称为“成员站”,三种语言统一改为“其他镜像站”/“其他鏡像站”/“a nearby mirror”。

检查

  • tests/test-mirror-health.js:36 项通过。新增教育网联合镜像站的用例:延迟 5 天也不标记、三种语言的状态列文字、无法连接时仍标记、状态页不列出。换回 master 的 mirror-health.js 后有 10 项失败。
  • tests/test-mobile-overflow.js:90/90 通过(360px,三种语言,含镜像页英文“Redirects to other mirrors”)。
  • render-chrome.py --check、check-copy.py、check-i18n.js、check-panes.py、check-chrome.py、check-pickers.py、build-search-index.py --check、test-scripts-load.js、test-site-checkers.py、test-source-switch.js、check-commits.py:通过。

@Zakkaus
Zakkaus force-pushed the claude/gentoo-zh-binhost-failure-a82iy1 branch from b65e541 to d3bed22 Compare October 7, 2026 08:09
教育网联合镜像站以 302 将请求重定向到其他镜像站,本身不保存文件。状态 API
通过它测得的延迟属于被重定向到的镜像站,而非它自身。mirror-health.js 不再
依据延迟将其标记为落后或尚未同步:镜像页状态列显示“重定向至其他镜像站”,
状态页的镜像同步部分不再列出该镜像。

可达性判断保持不变:该镜像无法连接时,选项仍标记 data-down,文件链接保留
在源站。
@Zakkaus
Zakkaus force-pushed the claude/gentoo-zh-binhost-failure-a82iy1 branch from d3bed22 to 982b420 Compare October 7, 2026 08:11
@Zakkaus
Zakkaus marked this pull request as ready for review October 7, 2026 08:13
FAQ 中关于 Git 提示重定向的回答将重定向目标称为“成员站”,含义不明确。
三种语言统一改为“其他镜像站”,与镜像页状态列的“重定向至其他镜像站”
一致。
@Zakkaus
Zakkaus merged commit 6e4613d into master Oct 7, 2026
7 checks passed
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.

1 participant