fix: review-pr.sh runs git commands before cd-ing to project repo — fails after image rebuild #408
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#408
Loading…
Add table
Add a link
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?
Problem
review/review-pr.shrunsgit remote -vearly in the script while still in/home/agent/disinto(the factory root). This fails with:Root cause
The factory root
/home/agent/disintoinside the agents container is aCOPYof the source files (via Dockerfile), not a git checkout. The.gitdirectory is excluded by.dockerignore. The script runsgit remote -vto detect the forge remote name beforecd-ing to$PROJECT_REPO_ROOT.This worked previously by accident when the image was built from a context that still had
.gitin the layer cache. After adocker system prune+ rebuild, the.gitdirectory is gone and the script fails.Impact
The review-bot cannot review any PRs. Every poll cycle logs:
Fix
review/review-pr.shshouldcd "$PROJECT_REPO_ROOT"before any git commands, same pattern asdev/dev-poll.shanddev/dev-agent.shwhich both change to the project repo early.Files
review/review-pr.sh— addcd "$PROJECT_REPO_ROOT"before the first git commandreview/review-poll.sh— may have the same issue if it runs git commands directly