A submodule is read as its path alone, never as the directory it is in a clone #115

Closed
titan wants to merge 1 commit from titan/111-gitlinks into main
Member

Purpose (bug): the private gate runs on every repo, and a repo that tracks a submodule makes it die with EISDIR, so a README-only PR there can land gated.

Instance: reckon-dotnet (README only) stops with the same the check could not be made: EISDIR that the symlink form gave: proto is a gitlink (mode 160000), git ls-files lists it, and read through it is a directory.

Fix: treeSources asks git ls-files -s for each entry's mode and publishes a gitlink as its path alone, the way a binary file is published as its path with no text. A gitlink holds no text of its own, so nothing is read and nothing is skipped in the scan: the path line is still scanned, as every path is.

Test: martha#111: a tracked gitlink has no text of its own to read, so a submodule directory does not stop the check builds a repository with a real 160000 index entry over a directory and asserts the source is the path line alone (['proto', '']). It failed with the exact EISDIR at bytesAt before the fix, and passes after; the symlink case keeps its own test.

Refs #111

Purpose (bug): the private gate runs on every repo, and a repo that tracks a submodule makes it die with EISDIR, so a README-only PR there can land gated. Instance: reckon-dotnet (README only) stops with the same `the check could not be made: EISDIR` that the symlink form gave: `proto` is a gitlink (mode 160000), `git ls-files` lists it, and read through it is a directory. Fix: `treeSources` asks `git ls-files -s` for each entry's mode and publishes a gitlink as its path alone, the way a binary file is published as its path with no text. A gitlink holds no text of its own, so nothing is read and nothing is skipped in the scan: the path line is still scanned, as every path is. Test: `martha#111: a tracked gitlink has no text of its own to read, so a submodule directory does not stop the check` builds a repository with a real 160000 index entry over a directory and asserts the source is the path line alone (`['proto', '']`). It failed with the exact EISDIR at `bytesAt` before the fix, and passes after; the symlink case keeps its own test. Refs #111
A submodule is read as its path alone, never as the directory it is in a clone (forge martha#111)
All checks were successful
dependency advisories / node in . (pull_request) Successful in 11s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 13s
dependency advisories / node in installer (pull_request) Successful in 11s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 7s
CI / structural floor (pull_request) Successful in 25s
CI / Martha's names are its own (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 25s
CI / the host drift check bites (pull_request) Successful in 1m3s
CI / the engine drift check bites (pull_request) Successful in 30s
CI / the posted text check bites (pull_request) Successful in 13s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 13s
CI / workflows are valid (pull_request) Successful in 11s
CI / installer (pull_request) Successful in 2m15s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 35s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 14s
CI / no literal restates a defined value (pull_request) Successful in 57s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 30s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 14s
CI / gate coverage (pull_request) Has been skipped
CI / the relay loads in the recorded host (pull_request) Successful in 15m18s
CI / the clean-install proof removes its container (pull_request) Successful in 16m33s
4e142aad5d
Owner

Closed by the Supervisor for a clean slate (Raf 2026-11-24: "close the stale PRs we need to start from a slate as clean as possible"). Only the Martha pilot path stays open. The branch is kept; reopen if this work comes back.

Closed by the Supervisor for a clean slate (Raf 2026-11-24: "close the stale PRs we need to start from a slate as clean as possible"). Only the Martha pilot path stays open. The branch is kept; reopen if this work comes back.
supervisor closed this pull request 2026-11-24 06:33:25 +00:00
All checks were successful
dependency advisories / node in . (pull_request) Successful in 11s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 13s
dependency advisories / node in installer (pull_request) Successful in 11s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 7s
CI / structural floor (pull_request) Successful in 25s
CI / Martha's names are its own (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 25s
CI / the host drift check bites (pull_request) Successful in 1m3s
CI / the engine drift check bites (pull_request) Successful in 30s
CI / the posted text check bites (pull_request) Successful in 13s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 13s
CI / workflows are valid (pull_request) Successful in 11s
CI / installer (pull_request) Successful in 2m15s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 35s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 14s
CI / no literal restates a defined value (pull_request) Successful in 57s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 30s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 14s
CI / gate coverage (pull_request) Has been skipped
CI / the relay loads in the recorded host (pull_request) Successful in 15m18s
CI / the clean-install proof removes its container (pull_request) Successful in 16m33s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha!115
No description provided.