Repository navigation
Description
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".
lanes-edit.sh:8473, inlanes_rows'known_lanesnote: "the log directory $LANES_LOG_DIR is there and could not be listed, so no lane's log is read…". Introduced by Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303 (thelr_klrcbranch is not on main).lanes-edit.sh:8585: "$LANES_LOG_DIR exists and could not be listed, so whether a row has a log at all is not known — with no origin…". On main the single note is at:8313, for both cases, and Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303 split it. This half kept the words. The-d,-r,-xcondition above it (:8575) is also Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303's. On main,lsalone (:8309) lists a 0400 directory, so main raises no note for it.lanes-edit.sh:15284:wr_unlisted="the log directory $LANES_LOG_DIR is there and could not be listed". On main the same words are inline at:14895, under the same-d,-r,-xtest (:14894). Soworktrees --allwith no origin has said it for 0400 since before Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303. Most reads of a lane's log cannot tell a failed read from a lane with no log: lane-dir, lane-profile, lane-agent, lane-transcript, history, lane-last, binding and lane-trees answer 8 ("none") over a log git could not read (from #290) #303 hoisted the string intowr_unlisted(:15283–15284), which:15313,:15317and the dedupe at:15362–15363compare, so it must stay ONE spelling.
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,:8585and: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:15284words.tests/test_log_read_status_303.py:439, a substring pin whose prefixexists and could not be listedwould 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:15284string throughlanes-index syncand has a 0400 param (:2836). Same substring problem. It exists on main at:2859as well.
- Must not change:
- The fail-closed behaviour: exits, the DORMANT class withheld, and the notes still raised.
- The
-d,-r,-xconditions. - 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