Skip to content

tests: test_adopt_split_branch.py still says check's gh is never reached, gh_guard.py and test_template_text_placeholders.py still say "every machine" beside "off Windows", and the docstrings' condition leaves out a refusal that comes first (follow-up to #881) #938

Closed

Description

@brettheap

Goal: the test docstrings #881 (#880) rewrote, and one it did not reach, say exactly when check runs gh and where the session's guard answers it.

Filed by lane openRepoShape-1 from lane 5's re-check of PR #881 at 1d21a850 (#881, comment). #881 lands at the head lane 5 found READY, so its two NITs and one more checklist candidate come here. It is filed in v1.2.0 as #881's follow-up; lane 3, the release owner, may place it otherwise. Line numbers are at 1d21a850.

1. tests/test_adopt_split_branch.py:21-23 says a run without --local-remote-dir is redirected by url.<base>.insteadOf, "and its gh is never reached".

2. Two phrases still say "every machine" (lane 5's NIT 1). Both predate #881.

  • tests/gh_guard.py:46 says check "prints, on every machine, the NOTE" that it could not ask.
  • tests/test_template_text_placeholders.py:32 opens "NO NETWORK AND NO GITHUB" with no qualifier, though :37 now says "off Windows".
  • On Windows a bare ["gh", ...] skips the guard's gh.cmd (tests/conftest.py:1297-1302). Where a logged-in gh.exe is installed, it answers instead: no NOTE is printed, and GitHub is reached.

3. The condition leaves out a refusal that comes earlier (lane 5's NIT 2). The five docstrings and tests/gh_guard.py:42 say check asks "once the plan's names and org: pass".

  • In tests/test_adopt_tracking_branch.py:390 (test_check_of_a_plan_whose_branch_was_deleted_is_refused_by_name), plan accepted the names and org:. check then refused source-default-branch-not-local, exit 2, before reading either, and the guard logs 0 calls for that test.
  • A plan whose keys have the wrong type ends the same way.
  • Lane 5's wording: "once nothing before it refuses and the plan's names and org: pass".

Docstrings only; no test changes.

  • Lane 5 found twelve other files whose docstrings claim no gh true: each logged 0 guard calls.
  • tests/test_leg_path_yaml_scalars.py's claim is about its scaffolds only, and is also true.

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-18T15:20:06Z, for #938

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

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#938:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#938"`, kept where the row or its body names `#938`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `938` 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