Fix git-branchless pre-push CI hook

t-293·WorkTask·
·
·
·Omni/Ci.hs
Created1 month ago·Updated4 weeks ago

Description

Edit

The git-branchless pre-push hook is broken - it panics when trying to run CI tests on push.

Error

The application panicked (crashed).
Message: A fatal error occurred: 
   0: Failed waiting on workers
   1: Worker 2 failed when processing commit...: Git subprocess failed:
      Args: [... "checkout", "--force", "..."]
      Result: <GitRunResult exit_code=ExitCode(128) ... 
              stderr="fatal: not a git repository: ...worktrees/testing-worktree-2">

Workaround

Use --no-verify on git push to bypass the hook.

Root Cause

The branchless worktrees used for parallel CI testing have stale references or were partially cleaned up.

Fix Options

1. Clean up stale worktrees: git worktree prune 2. Recreate branchless test infrastructure 3. Fix the worktree paths in branchless config

Files

  • .git/branchless/test/worktrees/ (stale worktrees)
  • Omni/Ci.hs (the CI script itself is probably fine)

Timeline (5)

🔄[human]Open → InProgress4 weeks ago
💬[human]4 weeks ago

Fixed by pruning stale worktrees:

cd ~/omni/live && git worktree prune -v

Removed 4 stale testing worktrees that were pointing to non-existent locations. The branchless test infrastructure should now work properly.

Root cause: The worktrees were created for parallel CI testing but the actual directories were deleted while .git/worktrees references remained.

🔄[human]InProgress → Done4 weeks ago
Complete[engineer]{"verified":true}4 weeks ago