oliver-zehentleitner / maity

P3 roll-up: tools

Sign in to report

tsk-dest4a10zfw9 Done An agent

Collects P3 findings for the repo tools under tools/ (overlap.sh, changelog.py, guards.sh and friends). The review lead posts one note per finding; a coder takes the card when it is worth a PR. Not assigned; no work on it before Oliver is back (2026-11-09).

Notes

  1. Maity Review Team Lead · Nov 7, 2026, 21:00 UTC

    P3 from #1475 (squash b6e2e77d), review xyfr seq 89591: tools/overlap.sh:144 refuses only the lower-case file:// scheme. FILE://localhost/... or File://127.0.0.1/... then fall into the loopback rule at :160 and map to github.com. Lower-case the scheme before the file:// case.

  2. Maity Review Team Lead · Nov 7, 2026, 21:00 UTC

    P3 from #1475 (squash b6e2e77d), review xyfr seq 89591: KtW 53705871 (context/process.md:1769) says "an IPv4 literal in 127.0.0.0/8", but the regex at tools/overlap.sh:160 accepts any four groups of 1-3 digits, so 127.999.999.999 also maps to github.com. Validate octets 0-255, or narrow the wording.

  3. Maity Review Team Lead · Nov 7, 2026, 21:00 UTC

    P3 from #1475 (squash b6e2e77d), review xyfr seq 89591: no test kills a mutant that compares the two reads as sets (with the duplicate check kept); all 21 tests stay green. A case where the second read returns the same rows in reverse order would pin the text comparison.

  4. Maity Review Team Lead · Nov 7, 2026, 21:00 UTC

    P3 from #1475 (squash b6e2e77d), review 399x seq 89412 and 89539: on Windows (Git Bash, Python 3.14), the sort and sed subcases of test_a_failing_step_between_git_and_the_answer_stops_the_check in tools/test_overlap.py fail (expected 2, got 1). The test predates #1475 and passes on Linux; the cause is not reproduced (kg22 seq 89476). Separately, test_ci_watch imports the Unix-only fcntl and errors on Windows.

  5. Maity Review Team Lead · Nov 8, 2026, 06:24 UTC

    Carried over from the hub roll-up tsk-axb9th4gemdm (note nte-26cmsp5j6mf9, 2026-11-07) at lotse's request (seq 90205): it is a tools/ item, and zwhq's hub roll-up PR stays hub-only. Original text, unchanged:

    P3 from #1459 (shared CI watcher, tools/ci_watch.py, head a1fe6661), found by Grok (spq4) and ChatGPT (g6mw): the branch filter run.get("head_branch") == head["ref"] (tools/ci_watch.py:171) has no test that fails without it. In the existing case near tools/test_ci_watch.py:165 the foreign-branch run is older than the matching one, so newest-run selection hides the missing filter. Add a case with a newer foreign-branch green run and an older matching pending run; it must report nothing (not green).

    Cites rechecked on main 9f8bfe82e016ab02e886705f6a856b15d801475b: tools/ci_watch.py:171 and tools/test_ci_watch.py:165 unchanged.

  6. An agent · Nov 18, 2026, 22:17 UTC

    From #1985 (tsk-tzknz9zzy1m2), review A1440 (maity-review-team-grok#47me, APPROVE on 32f74f58), three P3s routed here per lotse's ruling that later P3s on the upgrade-page check go to this card:

    1. changelog.d/agent-g-upgrade-page-p3.md:7-9 says "A fence line with leading spaces makes the page refused". Only 1 to 3 spaces refuse; 4 or more (or a tab) is an indented code block and passes. Wording: "with one to three leading spaces", as the docstring says.
    2. tools/upgrade_page.py:80 and FENCE at :83 still describe and match fences indented 0-3 spaces, while the docstring says a fence opens at the start of the line. No behaviour effect (indented_fences() refuses first); a comment saying lines() only sees indented fences on files already refused would keep them in line.
    3. Pre-existing since 512bed5c and earlier: lines() and indented_fences() split with str.splitlines() (tools/upgrade_page.py:170), which also breaks at U+2028, U+2029, \x0b, \x0c, \x1c-\x1e and \x85; CommonMark ends lines only at \n and \r. A page with "x", U+2028, a fence, a duplicate "## The way back" is accepted (fails open; needs invisible separators no page uses). Fix: split on "\n" only after normalising \r\n and \r.