Skip to content

tests/test_repo_hygiene.py: the one-line-install check offers its exclusion set to a release's own notes, which the second test refuses, no test reads its message, and two mistyped copies still pass (follow-up to #887) #931

Closed

Description

@brettheap

Goal: tests/test_repo_hygiene.py's one-line-install check offers each file only a fix that works, a test reads its message, and every line of the notes that runs the install carries the one line.

Filed by lane openRepoShape-1 from lane 5's re-check of PR #887 (#885) at 96422b98 (#887, comment). #887 lands at the head lane 5 found READY, so its three NITs come here. It is filed in v1.2.0 as #887's follow-up; lane 3, the release owner, may place it otherwise. Line numbers are at 96422b98.

1. The message offers a fix that the second test refuses (tests/test_repo_hygiene.py:1588-1592).

  • A mistyped copy in a release's own notes (mutant M5, | bsh at v1.1.1.md:132) fails with: "docs/release-notes/v1.1.1.md must carry the one-line install byte for byte, or, if it is not a release's notes, name 'v1.1.1.md' in RELEASE_NOTES_WITHOUT_THE_ONE_LINE_INSTALL".
  • Naming it there fails test_the_one_line_install_holds_the_release_notes_it_found: "['docs/release-notes/v1.1.1.md'] are release notes, so they are held, not named in RELEASE_NOTES_WITHOUT_THE_ONE_LINE_INSTALL".
  • The fix:
    • give the or ... clause only to a name that does not match v*.md;
    • put it after the indented install line, which the colon now sends after the clause;
    • in the comment above the set (:1572-1573), "a v*.md named here fails the second test" becomes "a v*.md other than v1.0.0.md named here fails the second test".

2. No test reads the message (:1588).

  • Turning its == into != still gives 9 passed.
  • With a stray README.md in the directory as well (mutant M8), the failure then loses its remedy and stops at "byte for byte:".
  • The fix is a test that reads both messages: one for a release's notes and one for any other .md.

3. Two mistyped copies still pass, as they did on main before #887. The test asks only that each file hold the line somewhere (assert ONE_LINE_INSTALL in text).

  • M7, | bsh at v1.0.1.md:12, passes, because v1.0.1.md:45 still holds the line, inside the pinned ... | bash -s -- v1.0.1.
  • M10, | bash -s -- --yes at v1.1.1.md:132, passes, because the line is a prefix of it.

Lane 5 measured a rule that needs no list of allowed variants: every line of the notes that holds both curl and download/install.sh contains the one line.

  • It picks exactly 4 lines (v1.0.1.md:12 and :45, v1.1.0.md:49, v1.1.1.md:132) and passes today.
  • It catches M7.
  • Only M10 then needs a rule about which variants are allowed. A choice for whoever writes this: hold the text after the one line to the pinned form, -s -- v<version>, or leave M10 as a known limit.

The handbook's every-copy check (a line holding download/install.sh) is not the rule to copy: in the notes it picks 10 lines, 6 of them bare URL lines in a verify command (v1.0.1.md:121,123, v1.1.0.md:920,922, v1.1.1.md:1215,1217).

Tests only. It changes no tool and no notes.

Activity

  1. added this to the v1.2.0 milestone on Oct 18, 2026
  2. brettheap commented on Oct 18, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-18T14:52:22Z, for #931

    Logged in lanes/log/openRepoShape-1.md at baf3af18fcef1d0efeb32b470debd82ecb49ec2a.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#931:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#931"`, kept where the row or its body names `#931`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `931` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions