Repository navigation
docs(checker): register the HPC guide's missing English pair as pending - #1306
Merged
Merged
Conversation
#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.
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.
问题
#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=0python3 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会盯着)。