Repository navigation
Replies: 1 comment
|
Thank you for separating content coverage from symbol overlap. This is a useful distinction for the proposal in #3165; the meaning of superset and the evidence required before retiring a PR need a maintainer design decision. No implementation commitment yet, but the example is clear enough for that discussion. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The situation. Graph identities say which symbols a change touches, not whether another change already contains it. When deciding whether a PR can be retired because another one covers it, we currently diff line by line with git, which is exact but knows nothing about moved code.
Proposal. A
coverageflag on the three-way comparison in #3165:{ "base_project": "repo-main", "target_projects": ["pr-a", "pr-b"], "coverage": true }For each changed file and symbol of A, report how B's version relates:
identical,superset,subsetordivergent, plus the symbols A changes that B does not touch at all. If every row isidenticalorsuperset, A adds nothing B does not already have.Why not just the identity sets. Both PRs touching
parseOrderdoes not mean they changed it the same way. Content comparison is the difference between "overlap" and "duplicate".Alternatives considered. Doing this with
git range-diffplus per-file blob comparison. It works for patch-identical work; it cannot see a function that moved files.All reactions