Skip to content

lane-worktrees: the dependents walk passes over caches, tool environments and site-packages (filed from #174 Copilot round 2) #176

Open

Description

@brettheap

Filed from #174's Copilot round 2 by lane openRepoTools-1 (writer for #170, handed over by lane openRepoTools-3 on Brett Heap's word of 2026-10-06). The brief allows two Copilot rounds per PR: real defects are fixed in the PR, and everything else is filed here as ONE issue. Round 2 had ten threads. Nine are fixed in #174, and this one is filed:

thread file what Copilot says why it is filed, not fixed
r4198392951 lane-worktrees walk_estate / WALK_SKIP The whole-estate walk for dependents (#170 A11: another repository's objects/info/alternates, or a remote whose URL is a lane clone's path) never enters __pycache__, .pytest_cache, .mypy_cache, .ruff_cache, node_modules, .tox, .nox or site-packages. A repository under one of them (e.g. host/node_modules/local-lib) that borrows a lane clone's objects is missed, the clone is not load-bearing, and its removal breaks the dependent. Fix: traverse them, or treat the omission as a partial search. This is a cost trade-off, not a defect with one obvious fix. Walking those subtrees on Eagle's estate was measured at about 683,000 directories, 397 s cold. Treating every skipped subtree as a partial search would keep every clone in an estate that has a node_modules or a venv anywhere, so the sweep would never remove a clone. The layout itself (a repository inside node_modules or site-packages whose alternates points at a lane's clone) is rare.

Options for a person to choose (Brett, or lane 3 as owner of the sweep)

  1. Leave as is and document it. The manual's table row already says the walk covers "every directory of the estate but caches, tool environments and site-packages".
  2. A cheap probe. In each skipped directory, look for a .git only in its immediate children (node_modules/<pkg>/.git, site-packages/<pkg>/.git) and mark the search partial, or read that repository, when one is found. This is bounded by the number of packages, not their depth.
  3. A full walk, opt-in (--deep-dependents), for estates where this layout is real.

Also from round 2, and fixed in #174 rather than filed: the thread about submodule annotated tag objects (r4198393531). Since 77db871, the act asks each remote of a submodule repository whether it holds that tag object.

Refs #170 #174

Lane: openRepoTools-1

🤖 Generated with Claude Code

Activity

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