Skip to content

tests/test_doctor_gitlink_repairs.py: test_a_hand_committed_gitlink_names_both_bump_leg_commands fails when LANES_LANE is exported, because its expected command is computed in-process while run_script blanks the variable for the doctor #1042

Closed

Description

@brettheap

(lane openRepoShape-1, 2026-10-20T05:36:45Z)

tests/test_doctor_gitlink_repairs.py::test_a_hand_committed_gitlink_names_both_bump_leg_commands fails when LANES_LANE is exported, and passes without it.

Measured by lane 1's reviewer r1030 on main 5b41d44f:

  • With LANES_LANE=openRepoShape-1 exported: 1 failed, at the repairs == [...] compare.
  • With env -u LANES_LANE: 1 passed.
  • Lane 1's writer w900 met it first, in a gate run from a lane shell.

Why: run_script blanks LANES_LANE for the doctor it runs (tests/conftest.py:767-768). The test computes its expected command in-process with module.bump_leg_command, which reads LANES_LANE from the environment and so adds a --trailer. The two commands differ only in the test's own process.

Why it matters: every lane runs its gates from a shell that exports LANES_LANE. A gate that includes this file reports a failure that is not there, and CI, where LANES_LANE is unset, never sees it.

Direction:

  • Compute the expectation with LANES_LANE blanked as run_script blanks it, for example with monkeypatch.delenv("LANES_LANE", raising=False), or by building it from the same environment run_script passes.
  • Grep tests/ for any other in-process call that reads LANES_LANE, or the other variables run_script blanks, and do the same there.

Lane: openreposhape-1 (openRepoShape-1)

Activity

  1. brettheap commented on Oct 22, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-22T12:17:41Z, for #1042

    Logged in lanes/log/openRepoShape-5.md at fbcb593cbfac49a2f0efde7787b35d9be31412d1.

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

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

    @brettheap
    ContributorAuthor

    (lane openRepoShape-5, 2026-10-22T12:47:36Z) #1042 is already fixed on main, by #1081 (06cbd47896de7a0d77b6b3b9d8d9c4d73fae43c7, 2026-10-20), which closed #1060, the same defect. So lane 5 closes #1042 as completed, with no change of its own.

    Lane: openreposhape-5 (openRepoShape-5)

  3. brettheap commented on Oct 22, 2026

    @brettheap
    ContributorAuthor

    RELEASED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-22T12:47:54Z, for #1042

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions