Skip to content

tests/conftest.py: one helper builds the url.<base>.insteadOf rewrite that clone_just_pushed and read_through_git each build, and the plain-path git submodule update --init sites of #554's review use it (#440) #662

Closed

Description

@brettheap

Goal: every test that has git clone a just-pushed local remote reads it through git, and the rule that makes it so is written once.

Filed by lane openRepoShape-5 on Brett Heap's word of 2026-10-16T12:17:02Z ("#461's test/CI/doc lines (~27)"), from three lines on #461: its body (the two "Tests (#554's review)" lines, body) and lane 2's L2-40 (comment).

Lands after: #645's pull request (branch fix/645-fixture-copy-maintenance-race, no pull request yet). It edits tests/conftest.py (the docstring of clone_just_pushed at :85, and a new block after cloned_just_pushed at :137) and turns git's automatic maintenance off for every git the suite starts, the receive-pack of a push included. That may close at its root the race these lines guard against. Read what it landed first, then decide whether the sites below still want the rewrite as a second guard.

Lines (path:line at main 879d8047)

Verify: the suites that hold the sites (tests/test_family_bump_remove_rollback.py, tests/test_doctor_legs_members_next.py, tests/test_doctor_gitlink_repairs.py, tests/test_clone_just_pushed.py) and tests/test_bump_leg_paste_lines.py plus the other read_through_git users, on Linux. A test of the helper: the prefix list for a typed and a resolved directory, with a trailing separator and without (tests/test_clone_just_pushed.py is the file for it).

Overlaps. Open PRs: none of the seven open PRs (#621, #627, #628, #630, #634, #639, #656) touches these files. Lane 5's in-flight branches: fix/645-fixture-copy-maintenance-race edits tests/conftest.py and adds tests/test_no_auto_maintenance.py (distinct hunks, :85 and :137, but the same file). Lane 4 holds none of these lines.

Mark each line → this issue on #461, and tick it there when this closes.

🤖 Generated with Claude Code

Activity

  1. added this to the v1.1.0 milestone on Oct 16, 2026
  2. brettheap commented on Oct 16, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-16T12:56:04Z, for #662

    Logged in lanes/log/openRepoShape-5.md at 810399f409356afb98c1d9bee76d2b8281eed29b.

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

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