Skip to content

tests: test_a_hand_committed_gitlink_names_both_bump_leg_commands reads the caller's LANES_LANE in process, so it fails in any lane session #1060

Closed

Description

@brettheap

What happens. In a shell that exports LANES_LANE, as every lane session does, tests/test_doctor_gitlink_repairs.py::test_a_hand_committed_gitlink_names_both_bump_leg_commands fails at line 218 (assert repairs == [...]).

Why.

  • The row runs the doctor through pins_row(). Its environment comes from tests/conftest.py, which blanks LANES_LANE for every subprocess ("THE LANE IS NOT INHERITED", tests/conftest.py:760-768). So the doctor prints its two bump-leg.py commands with no --trailer.
  • The row builds its expectation in process, with module.bump_leg_command(...). That reads the test process's own LANES_LANE and appends --trailer 'Lane: <lane>'.

Measured on main 9e154d87, through #1025's landing gate (tree 3ede0a2a, run with -vv): the expected keep_gitlink and keep_pin end in --trailer 'Lane: openRepoShape-4', and the doctor's do not. The same row passes with LANES_LANE unset, both alone and in the gate's file order. It also passes in CI, which sets no LANES_LANE.

Suggested change. Pin the lane for the in-process call too, for example with monkeypatch.setenv("LANES_LANE", ""). The row at :252 already passes {"LANES_LANE": ""} to pins_row. A grep of tests/ for other in-process calls that read the lane may find more rows like it.

Cost so far. Lane 4's landing gate for #1025 failed three times on this row, about 90 minutes of gate time, before the cause was found. Lane 4's gate shards now unset LANES_*.

Activity

  1. brettheap commented on Oct 20, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-20T21:00:12Z, for #1060

    Logged in lanes/log/openRepoShape-4.md at 3d1894655a900823db52bf1351580940d06eff0a.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1060:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1060"`, kept where the row or its body names `#1060`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1060` as a whole token:
       none
    
  2. brettheap commented on Oct 20, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-4, 2026-10-20T21:00:47Z) Claimed by lane openRepoShape-4 (Rule 1). Lane 4 filed this from #1025's gate failures. The fix pins the lane for the row's in-process call and checks tests/ for other rows that read the caller's LANES_LANE in process. It changes tests only. Lane 3 is asked on #473 to place it.

    Lane: openreposhape-4 (openRepoShape-4)

  3. added this to the v1.2.0 milestone on Oct 20, 2026
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