Skip to content

Forge: flag duplicate fixes and help replay conflicts - #2

Open
AwsAli05 wants to merge 3 commits into
KevinPratap:forge-statusfrom
AwsAli05:forge/triage-assist
Open

AwsAli05 wants to merge 3 commits into
KevinPratap:forge-statusfrom
AwsAli05:forge/triage-assist

Conversation

@AwsAli05

@AwsAli05 AwsAli05 commented Nov 25, 2026 •

Copy link
Copy Markdown

Summary

  • Flag matching patches and probable overlaps in Forge's scheduled report. Identify PRs whose changes are already in main.
  • Record the PR head and merge target for each conflict. The resolver prepares a separate worktree and lets Git reuse a previously reviewed resolution.
  • Provide a dry-run duplicate-close command. Applying it requires a reviewer-selected canonical PR, a duplicate label, the reviewed head SHA, and upstream write access.
  • Refresh main and reuse cached PR heads whose SHAs match the current GitHub listing.

Verification

  • A read-only scan of all 1,195 open PRs at main 842b0cb reported 467 conflicts and 30 overlap pairs. The pairs included 15 shared issues and 15 similar titles with shared files. No eligible pair matched both patch ID and merge tree. PR #457 already adds no changes to main.
  • The final code checked another 40 PRs at main 63bcca4, reusing all 40 cached heads. The resolver reproduced the reported conflict with both pinned SHAs and the expected pending file in a separate worktree. PR #55 conflict
  • python -B -m unittest -v passed all three tests, including a real recorded Git conflict resolution and a mocked GitHub closure. git diff --check passed.

AI-assisted with Codex.

@AwsAli05
AwsAli05 marked this pull request as ready for review November 25, 2026 23:33
github-actions Bot pushed a commit that referenced this pull request Nov 26, 2026
)

RDNA2 flushes denormal operands of the legacy multiplies to zero, so
0 x anything = 0 also holds for them. The lowering only tested for an exact
float zero, whose result also depends on the host's denormal mode. Test the
exponent bits instead. Follow-up to #2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant