Skip to content

Storage cleanup test fails on Git 2.56: a broken gitfile is reported as failed, not changed #768

Closed

Description

@Jacksondr5

Problem

storageCleanup.test.ts › "compares the checked-out branch without a full status" fails on GitHub runners that have Git 2.56.0, and passes on 2.55.0. The runner image moved between two J5 CI runs on 2026-10-28: j5/release-0.0.51 passed at 58ddf49a (run 40629037443, Git 2.55.0). The next commit, which changed only one line of FORK.md, failed (run 40631705784, Git 2.56.0). That failure blocks #767.

- "outcome": "kept",
- "reason": "Repository or branch changed",
+ "outcome": "failed",
+ "reason": "git: fatal: gitfile does not point to a valid repository: /tmp/storage-cleanup-…/worktrees/feature/.git",

The test points a worktree's .git file at a missing directory. apps/server/src/storageCleanup.ts:476 treats that as a changed repository only when stderr contains "not a git repository". Git 2.56 reports "gitfile does not point to a valid repository" instead, so cleanup reports the worktree as failed. In both cases the worktree is kept and nothing is deleted. Only the reported outcome and reason differ.

To investigate

  • Confirm the Git 2.56 message change and whether other Git-message matches in the server have the same problem.
  • This is upstream's code. Upstream main has the same check (storageCleanup.ts:507), so upstream CI will hit it too once its runners move to Git 2.56. Decide between a J5 fix (recorded in FORK.md) and offering one upstream through Upstream give-back backlog (hold until V2 merges upstream) #276.
  • Until it is fixed, every J5 CI run on a Git 2.56 runner fails Test Server 3.

Activity

  1. added a commit that references this issue on Oct 28, 2026
    ce72737
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions