Skip to content

docs(checker): register the HPC guide's missing English pair as pending - #1306

Merged
huichen merged 1 commit into
mainfrom
fix/docs-pending-hpc
Oct 22, 2026
Merged

huichen merged 1 commit into
mainfrom
fix/docs-pending-hpc

Conversation

@huichen

@huichen huichen commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

问题

#1296 加了 docs/hpc-westlake-guide.zh-CN.md,但既没写英文对,也没在 BILINGUAL_PENDING 里登记。结果 make check-docs 在 main 上恒红,今天至少 4 个互不相关的会话都在报告里写一句"基线既有失败,与本次改动无关"——每个都要重新判断一次同一件事。

改法

按机制本来的用途登记这条欠账:BILINGUAL_PENDING 的注释就写着 "an entry is a warning in a normal run and a failure under --strict-pending",而且它自己的说明写着新增 scope 应当显式在这里登记。

  • 普通运行:rc=0,尾行给出 (1 pairs pending bilingualization) —— 欠账仍在输出里,没有被藏掉;
  • --strict-pending:仍然失败,并点名缺的是 docs/hpc-westlake-guide.md。

验证

  • python3 scripts/docs/check-docs.py → Checked 314 docs … OK (1 pairs pending bilingualization),rc=0
  • python3 scripts/docs/check-docs.py --strict-pending → 仍然红:bilingual debt remains: docs/hpc-westlake-guide.zh-CN.md still has no …
  • python3 scripts/tests/test-check-docs.py → Ran 35 tests, OK

没有做的事

没有写那份英文翻译:451 行内容翻译属于正文工作,不该由一个顺手改动夹带进来。这条欠账现在有名字、有出口(写完后删掉这个条目,--strict-pending 会盯着)。

#1296 added docs/hpc-westlake-guide.zh-CN.md without its English pair and
without registering the debt, so every unrelated change on main reported
"bilingual pair missing" from make check-docs and had to explain it away.
BILINGUAL_PENDING exists for exactly this state: an entry is a warning in an
ordinary run and a hard failure under --strict-pending, which still fails here.
@huichen
huichen merged commit 9d32060 into main Oct 22, 2026
10 checks passed
@huichen
huichen deleted the fix/docs-pending-hpc branch October 22, 2026 11:56
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