Forgejo PR merge intermittently 500s on a broken sparse-checkout merge workdir #202
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/infrastructure#202
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forgejo PR merge intermittently 500s on a broken sparse-checkout workdir
Merging a PR via the API (
POST /api/v1/repos/<owner>/<repo>/pulls/<n>/merge) returned HTTP 500 on the first attempt, then succeeded unchanged on an immediate retry. The failure was server-side, in Forgejo's merge working copy.Observed
First attempt (
coily ops forgejo pr merge --repo coilyco-flight-deck/agentic-os --number 150 --method squash):Retry with
--method mergesucceeded; PR #150 is merged.Read
Forgejo's per-merge temp working directory came up as a sparse checkout with only ~7% of files materialized, so the merge commit saw every absent file as a deletion and
git commitbailed. Looks like a stale/corrupt merge workdir or acore.sparseCheckoutleak in the Forgejo pod, not anything about the PR (same PR merged seconds later).Impact
Intermittent - any PR merge through the API or web UI can hit it. Self-clears on retry so far, but it is a real flake on the merge path.
Next steps
data/tmp/local-repo/or the configured[repository.local] LOCAL_COPY_PATH) for stale sparse-checkout state; clear it.git configin the served repos / Forgejo's git env setscore.sparseCheckout.forgejo doctorchecks (coily ops forgejo doctor check).Surfaced while merging coilyco-flight-deck/agentic-os#150 on 2026-06-03.
Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag:
burndown-2026-06.