docs(tests): state the rulings these tests cite instead of quoting them - #993
Conversation
Part of #987. Twenty-nine quoted maintainer rulings across fourteen test files become statements of what was settled, keeping every pull-request citation. The inventory had to be re-derived rather than taken from the issue, and the count I supplied was wrong in a way worth recording: my scan matched "[^"\n]{4,}", which excludes newlines, so it missed every quotation that wraps across a docstring line. It reported 22 spans in 12 files; the real in-scope set is 29 across 14, and test_enum_lookup_base_unit.py alone holds 5 where I had counted 1. - One provenance correction: test_final_enforcement.py cited the warn-on-reuse ruling to #778, but #778 carries no such comment. It was given on #788, the pull request that implemented it, so the prose now names both. - test_const_enum_get.py is the one file with an edited comment rather than a docstring. Its block is re-wrapped at the same ten lines. Sites deliberately left alone, listed so a later pass does not re-litigate them: the two sanctioned survivors in test_enum_lookup_reparent_930_unit.py; quotations of the project's own code, docs pages and earlier revisions; scare quotes; and five spans traceable to an agent's wording rather than the maintainer's, three of which sit in test_const_enum_no_mint.py and want a second opinion before anyone converts them. Prose only, measured per file at the strictest setting -- every token kept, only strings masked. Thirteen files compare identical; test_const_enum_get.py differs in ten comment tokens and is identical once comments are masked too. The AST with docstrings blanked compares equal in all fourteen, while the raw dump differs. Every differing string token is a docstring, no assertion depends on any changed text, and no file gained a line over 95 characters.
683f702 to
31a05ae
Compare
|
GOOD TO GO at I said 29 converted; it is 27. The reviewer counted site by site and reconciled the difference: two spans in I called One finding it could not resolve, which I have now resolved. A second accuracy defect in the same file, independently derived by the reviewer and worth recording: Verified otherwise, and the inventory question is settled. The reviewer's own scan funnelled 2644 raw spans to 82 attribution-gated candidates across 34 files and found exactly the two sanctioned survivors in Six of the 27 sites are UNVERIFIED for faithfulness, three of them new provenance claims the paraphrases added. Each is one Labelling |
|
Correction to my verdict above, on method rather than conclusion. I wrote that I had searched every issue, pull-request and inline comment in the repository for the phrase attributed to you at Re-run with Two things follow. #982 found this and it was never fixed, and the sites had drifted by nine lines since. And the same incomplete method had just led me to tell a worker that All five sites are fixed in #994. |
|
The two red checks are a reclaimed runner, not this pull request — the verdict stands. Run
It ran from 19:07:27Z to 19:26:25Z, about nineteen minutes, before the runner went away. 58 of the run's 61 jobs are green; the second failure is The label stays |
Please follow the guide below
make pylint,make mypy,make isort)make testpasses, and a test case covers the changedocs/source/changelog/and regeneratedCHANGELOG.md, if the change is user-visible — N/A, centralised in docs(changelog): shared 1.5.0 changelog — long-lived, merges last (#610, #616, #617, #618, #620) #657What is the purpose of your pull request?
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingchore— anything elseDescription of your pull request and other information
Part of #987. Twenty-nine quoted maintainer rulings across fourteen test files become statements of what was settled, with every pull-request citation kept.
The inventory had to be re-derived, and my own count was wrong in an instructive way. I measured the remaining scope with a regex matching
"[^"\n]{4,}"— which excludes newlines, so it missed every quotation wrapping across a docstring line. I reported 22 spans in 12 files. The real in-scope set is 29 across 14, andtest_enum_lookup_base_unit.pyalone holds 5 where I had counted 1. That is the same failure #992 shipped with: implementing a count instead of measuring, whichdocs/source/contributing/conventions/documentation.rst:224warns against directly.One provenance correction.
test_final_enforcement.pycited the warn-on-reuse ruling to #778. #778 carries no such comment — it was given on #788, the pull request that implemented it, verified against both threads. The prose now names both.What was deliberately left alone, listed so a later pass does not re-litigate it: the two sanctioned survivors in
test_enum_lookup_reparent_930_unit.py; quotations of the project's own code, docs pages and earlier revisions; scare quotes and terms of art; and five spans traceable to an agent's wording rather than the maintainer's. Three of those sit intest_const_enum_no_mint.pyand want a second opinion before anyone converts them — one is described there as "the original ruling" when the thread's actual ruling was the mint/unmint criterion on #847, which may itself be a mischaracterisation worth its own look.tests/is exempt from the name-the-issue rule but not from the no-verbatim rule (documentation.rst:184versus:196, with the exemption at:203attaching to the latter), so pull-request citations stay and only the quoted wording changes.Prose only, measured per file at the strictest setting — every token kept, only strings masked. Thirteen files compare byte-identical;
test_const_enum_get.pydiffers in ten comment tokens, being the one file with an edited comment block rather than a docstring, and is identical once comments are masked too. The AST with docstrings blanked compares equal in all fourteen while the raw dump differs. Every differing string token is a docstring, no assertion depends on any changed text, and no file gained a line over 95 characters.