Cross-fork PRs with fork-unique commits have no object bridge (open 503s, merge/diff fail) #456
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#456
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?
Child of #449 (audit finding F1 High, comment 4555; audited
e8bc499c). Cross-fork PRs whose head contains fork-unique commits have no fork-to-base object bridge: OpenPR maps the rev-list error to 503 (service.go:375-378 — missing objects are an error, not unreachable), and mergeability/merge/diff run git in baseDir where fork objects can never appear (fallback is child-to-ancestor only). Only base-contained heads work end to end. Fix: bridge fork objects into the base serving copy for open/mergeability/merge/diff (or fetch them on demand), with tests proving a fork-unique-commit PR opens, diffs, and merges.Fixed by #467: fork-to-base object bridge (fetch fork head into base serving copy on demand). Fork-unique PRs now open fork-local, diff, compute mergeability, and merge end-to-end (real-git e2e included). Do NOT merge this comment's PR without review.
Review of PR #467 (fix/issue-456, cross-fork object bridge) — adversarial pass, verified in scratch worktree /tmp/pr467 (removed afterward). Main worktree untouched (still clean on main).
FINDINGS (all 8 checks pass):
FIX APPLIED: double-space typo in 03 §7 decision note ('event); repair' -> 'event); repair'), pushed to origin/fix/issue-456 (
c1c6b0f), pulls -race re-run green after push.Note: PR description mentions internal/server web-asset test failures pre-existing on pristine main — out of scope for this change (untouched packages), not verified here.
MERGE RECOMMENDATION: ready to merge.
Fixed by PR #467 (review clean + one typo fix by reviewer; all 8 bridge-safety checks pass, e2e open→merge green), merged. Closing.