Repository navigation
site: leave CERNET out of the mirror sync state - #336
Merged
Merged
Conversation
Zakkaus
force-pushed
the
claude/gentoo-zh-binhost-failure-a82iy1
branch
from
October 7, 2026 08:09
b65e541 to
d3bed22
Compare
教育网联合镜像站以 302 将请求重定向到其他镜像站,本身不保存文件。状态 API 通过它测得的延迟属于被重定向到的镜像站,而非它自身。mirror-health.js 不再 依据延迟将其标记为落后或尚未同步:镜像页状态列显示“重定向至其他镜像站”, 状态页的镜像同步部分不再列出该镜像。 可达性判断保持不变:该镜像无法连接时,选项仍标记 data-down,文件链接保留 在源站。
Zakkaus
force-pushed
the
claude/gentoo-zh-binhost-failure-a82iy1
branch
from
October 7, 2026 08:11
d3bed22 to
982b420
Compare
Zakkaus
marked this pull request as ready for review
October 7, 2026 08:13
FAQ 中关于 Git 提示重定向的回答将重定向目标称为“成员站”,含义不明确。 三种语言统一改为“其他镜像站”,与镜像页状态列的“重定向至其他镜像站” 一致。
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.
教育网联合镜像站以 302 将请求重定向到其他镜像站,本身不保存文件。状态 API 通过它测得的延迟属于被重定向到的镜像站,而非它自身,因此不计入它的同步状态。
改动
site/assets/mirror-health.jsRELAY(目前仅含mirrors.cernet.edu.cn),此类镜像的各棵树不计延迟。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:通过。