Skip to content

The no-origin notes in lanes_rows and worktree_rows say a log directory "could not be listed" where an r-- (0400) one lists fine and the search is what fails, and tests pin the wrong words #339

Open

Description

@brettheap

Found by lane 5's independent re-check of #303's fix round (#303 comment 6386876743), after lane 4 reported it as extra 3 (6385193213). Lane 3 asked for this issue (6386894721). Severity: NIT, words only. It fails closed. Lane 4 added the pin at tests/test_lanes_index.py:2859, read only.

How each point was established. Read = found by reading the code. Probed = run. Lane 5's probes ran at 4e032f8.

The defect

4e032f8 (#303, 1005) changed the origin branch of lanes_rows to "exists and could not be listed or searched". For a directory that is r-- (0400), ls lists the files and the search is what fails. The no-origin branches still say "could not be listed".

For 0000 the words are true, since ls cannot list. For 0400 they are not. Both shapes raise the note, and the origin branch now says one thing for both.

Reproduction

Probed by lane 5 at 4e032f8, with no origin and the log directory at mode 0400, through lanes --all. The output is /workspace/projects/.openrepotools-private-prep/work-20261021/lane5/w303/probes/out-noorigin-400.txt. ls of the directory lists six files (repoA-2.md, README.md, repoA-1.md, repoB-1.md, repoM-2.md, repoM-1.md). Stderr carries both notes (:8473 and :8585), each saying "could not be listed".

The :15284 site is shown by the pin itself. tests/test_log_read_status_303.py:1364 runs worktrees --all with no origin at 0000 and 0400 (ids dir-000, dir-400) and asserts the words at 0400. That test is in the 295-test selection lane 4 and lane 5 both passed. Lane 5 did not run the 0000 shape for these notes (the driver has noorigin-000 and no output), but the 303 test parametrizes it, at :411 and :1364.

What a fix needs

  • Say "could not be listed or searched", as the origin branch does now, at lanes-edit.sh:8473, :8585 and :15284, for both shapes. Keep the rest of each sentence.
  • Pins that move with it:
    • tests/test_log_read_status_303.py:1383, an exact-equality pin of the :15284 words.
    • tests/test_log_read_status_303.py:439, a substring pin whose prefix exists and could not be listed would still pass on the new words. Tighten it to the new words, or it pins nothing.
    • tests/test_lanes_index.py:2859, which sees the :15284 string through lanes-index sync and has a 0400 param (:2836). Same substring problem. It exists on main at :2859 as well.
  • Must not change:
    • The fail-closed behaviour: exits, the DORMANT class withheld, and the notes still raised.
    • The -d, -r, -x conditions.
    • The origin branch's words (4e032f8).
    • Any other sentence about a directory that "could not be listed".

Scope and order

Lands after v1.1.0 and after #303, in v1.2.0. Words only; lane 3 chose an issue over widening #303. Related: lane 3's 1005 (4e032f8).

Not included: the same words used for other reasons, which this issue did not examine. They are lanes-edit.sh:13138 (the sweep's log scan, pinned by tests/test_register_scan_hardening_138.py:228) and the trees-directory notes (:14778, :15404, :19206).

Lane: openRepoTools-4

Activity

  1. added this to the v1.2.0 milestone on Oct 24, 2026
  2. modified the milestones: v1.2.0, v1.2.1 on Nov 8, 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