You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(roadmap): plan-check reads the shared FETCH_HEAD #5255
devops roadmap plan-check <pr> fetches refs/pull/<n>/head and then reads FETCH_HEAD (src/devops_cli/roadmap/plan_check.py:485-486). All worktrees of a checkout share FETCH_HEAD. When another agent or process fetches between the two commands, plan-check reads the tree of a different commit. It then reports a false problem, such as "The head holds no change folder".
The command already holds the head SHA of the pull request (facts.head_sha), so it does not need FETCH_HEAD.
Reproduction Steps
In one worktree, run uv run devops roadmap plan-check 5105 --json.
At the same time, run git fetch in another worktree of the same checkout.
On 2026-11-12, the first run of step 1 reported "The head holds no change folder". A second run gave [], and the plan reader read the head OK.
Expected vs Actual Behavior
Expected: plan-check reads the tree of the head SHA that the pull request names, for example git fetch origin <sha> or refs/pull/<n>/head:<private ref> and then rev-parse of that SHA. A parallel fetch does not change the result.
Actual: a parallel fetch can give a false problem.
Environment Diagnostics
Main at 0a14161 (release 0.123.0). Several agents work in worktrees of one checkout.
Logs, Traces, or Terminal Output
Plan PR #5105 at head 23dc194: first run "The head holds no change folder"; second run [].
Activity
dan-petty commentedon Nov 12, 2026
#3201 created the plan-check command; this candidate fixes a race condition in that command's FETCH_HEAD read.devops-cli-service commentedon Nov 15, 2026
Released in v0.153.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.153.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 13:55 UTC