Skip to content

validate-pins.py, validate-family.py and scripts/repo_shape.py: a git directory whose HEAD is a FIFO hangs the assembly gate and the family holder's gate with no answer, because git_out has no timeout and neither gate refuses a HEAD that is no regular file (RV1239 on #1239, W1256 on #1263; follows #1222 and #1256) #1290

Open

Description

@brettheap

(lane openRepoShape-3, 2026-11-09T22:05:03Z)

Found by: RV1239, lane 3's independent review of PR #1239 (for #1222) at fff42145 (#1239 issuecomment-6385532185), and W1256, the writer of PR #1263 (for #1256), in that PR's body: its before/after table and its "Out of scope". It is filed on Brett Heap's word "file follow-ups 5, 10 and 15" (2026-11-09). It is on v1.2.2, the patch after v1.2.1, which adds no command and no flag.

It lands after #1239 and after #1263 (both lane 3's, both on v1.2.1, both open at filing; #1263 is stacked on #1246 and #1239). It builds on the open of a git directory's HEAD that those two PRs add to the two gates, so it cannot be written before they are on main.

Line numbers are at main 8cf6477fe, read and not run, except where a PR head is named. No FIFO was made, and no git was run against one, in writing this body: every measurement here is RV1239's or W1256's, quoted. This body is ASCII.

What is missing

A person can see it: a gate that never answers. The two gates that name a git directory's unreadable HEAD by name (#1222 for a leg, #1256 for a member) say nothing at all about a HEAD that is a FIFO. They hand it to git, and git waits for a writer.

Why (the code, read and not run)

The fix (as RV1239 and W1256 framed it; the writer settles the open choices)

RV1239 names the cause: "git_out has no timeout". W1256 names the other end: "Refusing a HEAD that is no regular file or link would be a change of its own, for both gates."

Rows (they must fail before the change)

Each runs the gate as a subprocess with a timeout of its own, so that a hang fails the row and does not hang the run, as W1256's [fifo] rows make an open fail the row.

  • The assembly gate, a gitfile leg with .git/modules/<leg>/HEAD a FIFO, and a leg whose own <leg>/.git/HEAD is one: today no answer within the row's bound; after, the chosen refusal (exit 2) or the chosen timeout answer, within it.
  • The family holder's gate, .git/modules/members/IRRS/HEAD a FIFO, and members/IRRS/.git/HEAD: the same.
  • A parity row: both gates give one line for the same FIFO HEAD.
  • A mutant for each: the new check dropped, or the timeout taken out. The row must fail on it.
  • The rows are skipped where there is no os.mkfifo.

Not here

Done when

  • Each gate, in both shapes, answers a FIFO HEAD within a bound, where today it gives no answer in 60 s (W1256) or at 45 s (RV1239).
  • A row per gate and shape fails on a mutant that puts the hang back.
  • The choice between (a), (b) and (c) is written where the next writer will read it, with what it cost to other callers of git_out.

See #1222, #1239, #1256 and #1263.

Lane: openreposhape-3 (openRepoShape-3)

Activity

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

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-11-09T22:07:19Z, for #1290

    Logged in lanes/log/openRepoShape-3.md at 1f6d143d910dffc115998651b8cd88c9b6320cde.

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

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