Skip to content

tests: tests/test_adopt_plan_and_remote_paths_spelled.py has no skip guard on test_the_plan_is_named_as_a_path_is, so its 30 execute rows fail with REFUSED filter-repo-missing on a machine without git-filter-repo (RS1194) #1286

Open

Description

@brettheap

(lane openRepoShape-4, 2026-11-09T21:28:00Z)

Found by: RS1194, lane 4's restacker of PR #1194, in its final report, section "Defects outside scope" and the gate section: "tests/test_adopt_plan_and_remote_paths_spelled.py's execute rows fail on any machine without git filter-repo. They fail on main too and have no skip guard. #1177 is the owner." The report is a lane 4 writer's message and is not posted on GitHub.

Lane 3 places this issue, and it has no milestone here. It was filed after v1.2.1's scope froze (2026-11-08T20:00Z); lane 3 puts such issues on v1.2.2. #1177 (which brought the file, for #1152) is merged and #1152 is closed, so this is an issue of its own.

What is missing

Nothing a user can see: this is a test. A machine without git-filter-repo on PATH fails 30 rows of one test; CI has git-filter-repo installed, so CI does not show it.

What was measured, and by whom

Measured by RS1194. On its workstation, which has no git-filter-repo, its gate (shard B2) ran 25 files: 1414 passed, 151 skipped, 30 failed. All 30 are tests/test_adopt_plan_and_remote_paths_spelled.py::test_the_plan_is_named_as_a_path_is, in its execute rows, and in all 30 stderr begins REFUSED filter-repo-missing. The same file on a clean origin/main worktree at 4552efa6a (no #1194) gave 30 failed, 110 passed, 8 skipped, with the same 30 ids (cmp of the sorted id lists clean). No other file failed. I did not re-run any of it.

Read from the code, not run (origin/main 5c662f75e, in a clone of my own):

  • tests/test_adopt_plan_and_remote_paths_spelled.py defines the guard at lines 73-75 and uses it on one test only:
    needs_filter_repo = pytest.mark.skipif(
        shutil.which("git-filter-repo") is None,
        reason="git filter-repo is not installed: `pip install git-filter-repo`")
    
    It decorates the later test at line 427 (@needs_filter_repo, above @pytest.mark.parametrize("typed, spelled", CHARACTERS)). test_the_plan_is_named_as_a_path_is (lines 380-408) is decorated with @pytest.mark.parametrize("typed, spelled", CHARACTERS) and @pytest.mark.parametrize("row, command", CASES) only, and its body calls skip_where_cannot_carry(typed, tmp_path) and nothing about git-filter-repo. For command == "execute" it runs run_adopt("execute", "--plan", ..., "--yes", "--work-dir", ...), and the rows whose plan reaches the extraction meet the missing tool first.
  • The other files skip such rows. tests/test_adopt_unsearchable_source.py imports needs_filter_repo (line 66) and decorates test_execute_into_an_unsearchable_local_remote_dir_names_it with it (line 651); the guard text is "git filter-repo is not installed". RS1194 names tests/test_adopt_source_github_limits.py:446 and tests/test_adopt_unsearchable_source.py:648 as skipping with "git filter-repo is not installed"; the first of those files is PR adopt-project.py: _github_name reads no owner over 39 characters or repository over 100, so plan --source <50 b's>/Thing never asks gh for a name GitHub cannot hold, no remedy offers --org <50 b's>, and check and execute never clone such a record again (#1129) #1194's, not on main, and I read only the second (on main its guard decorates a row at line 651, a few lines off RS1194's, which were read at its restack head). 48 test files on main carry a skipif with that reason text.
  • Which of the execute rows reach filter-repo is not known to me: not every execute row of the test does (the rows RS1194 saw fail are 30; the file's execute rows number more, since several refuse the plan before any leg). A guard has to skip only the rows that reach it, or the test has to skip when the stderr says filter-repo-missing; that is the author's choice.

Done when

  • On a machine without git-filter-repo, tests/test_adopt_plan_and_remote_paths_spelled.py gives 0 failed: the 30 execute rows skip with a reason that says git filter-repo is not installed, and the plan and check rows and the execute rows that refuse before any leg still run.
  • With git-filter-repo installed, the file keeps its counts (RS1194 measured 30 failed, 110 passed, 8 skipped without it, 148 rows in all; the counts with it are not measured here).
  • A row that must pass without git-filter-repo is not skipped by an over-wide guard: a mutant that guards every execute row fails one of them.

See #1177, #1152, #1194.

Lane: openreposhape-4 (openRepoShape-4)

Activity

  1. added this to the v1.2.2 milestone on Nov 9, 2026
  2. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-11-10T08:17:29Z, for #1286

    Logged in lanes/log/openRepoShape-1.md at 792cb6abaf4d6d08c0f02221bcf1f10de79fa905.

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

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