Skip to content

validate-family.py, validate-pins.py and both bootstrap.py copies: a git Windows cannot start for a reason other than 193 that names no file (winerror 216, 1260, 11, or 188-202) ends in a traceback, exit 1, not git-not-runnable #1040

Closed

Description

@brettheap

What happens. #1001 (PR #1028) makes the four copies of the git-not-runnable rule count a nameless OSError whose winerror is 193. The four copies are _git_runs in validate-family.py, validate-pins.py and the assembly root's bootstrap.py, and git_not_started in the holder's bootstrap.py. 193 ([WinError 193]) is a git.exe Windows cannot execute.

Windows has other CreateProcess failures that also mean git itself could not be started. Each names no file and is neither FileNotFoundError nor PermissionError, so all four copies pass it through, and the run ends in a traceback, exit 1, as 193 did before #1001.

RV1028 (#1028 issuecomment-6284060655) raised this as its SHOULD 1, reading CPython 3.12's PC/errmap.h:

winerror What it is errno, and so the class
216 (ERROR_EXE_MACHINE_TYPE_MISMATCH) a git.exe built for another architecture, for example an ARM64 git.exe on an x64 machine no case, so EINVAL: a plain OSError
1260 (ERROR_ACCESS_DISABLED_BY_POLICY) git.exe blocked by AppLocker or a software restriction policy no case, so EINVAL: a plain OSError
11 (ERROR_BAD_FORMAT), and 188 to 202 other than 193 the rest of the ENOEXEC family: a program Windows cannot load ENOEXEC: a plain OSError
  • RV1028 handed 216, 1260 and 191 to all four copies in one process, nameless, and every copy passed them through.
  • validate-family.py's own docstring (_git_runs, :334-335) says an ENOEXEC named git counts for "a binary for another architecture". On Windows that binary is 216, which it does not count.

Direction.

Verify.

  • The parity rows winerror-216, winerror-1260, winerror-11 and winerror-188 to winerror-202 give git-not-runnable in all four copies.
  • winerror-267 is passed through by all four.
  • For 216, each copy's own script, run with git raising it (as GIT_NOT_WIN32 raises 193), refuses: exit 2, git-not-runnable, the put-git-on-PATH remedy, and no traceback.
  • The rows of test_validate_family_git_not_runnable.py, test_validate_pins_without_git.py and test_bootstrap_without_git.py still pass.

Not run on Windows. The values and their classes are read from CPython (PC/errmap.h, _winapi.CreateProcess). The errors are built by hand, as #1001's 193 is.

Follows #1001 (PR #1028).

Lane: openreposhape-4 (openRepoShape-4)

Activity

  1. added this to the v1.2.0 milestone on Oct 20, 2026
  2. brettheap commented on Oct 20, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-20T10:44:31Z, for #1040

    Logged in lanes/log/openRepoShape-4.md at 34776354a9de52b32728597fef3bd588ca0b9adf.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1040:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1040"`, kept where the row or its body names `#1040`:
    1028	validate-family.py, validate-pins.py and both bootstrap.py copies: a `git` Windows cannot execute (`[WinError 193]`, a nameless `OSError`) is `git-not-runnable`, exit 2, with the put-git-on-PATH remedy, where each ended in a traceback, exit 1, and one test holds the four copies to one answer and one text (#1001)	fix/1001-winerror-193-git-not-runnable	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1040` 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