Uh oh!
There was an error while loading. Please reload this page.
tools: add .git-blame-ignore-revs file - #43017
Conversation
targos
commented
May 9, 2022
Changes to this file would need to be adapted to work on release branches. I don't know how we should handle this. |
RaisinTen
commented
May 9, 2022
Maybe we shouldn't backport this change to the release branches? Electron didn't backport the change that added this file - electron/electron#33171. |
targos
commented
May 9, 2022
I'm fine with that. We should probably add a rule to |
Done, mapped it to a https://github.com/nodejs/node/labels/dont-backport label. |
targos
commented
May 9, 2022
Is it a special placeholder for all |
RaisinTen
commented
May 9, 2022
Yes, that's the intention. |
targos
commented
May 9, 2022
Okay, that seems useful but some things will have to be adapted for it. |
mscdex
commented
May 9, 2022
Why are we using this feature? |
Can we keep the individual |
RaisinTen
commented
May 10, 2022
|
Yes, we could do that but that would leave us with 2 options:
I'll delete the |
mscdex
left a comment
There was a problem hiding this comment.
This can be useful when a few commits make extensive changes to your code.
I get that, but in general it seems impossible to know if someone will want to find the changes in any particular commit (big or small), so ignoring commits isn't very helpful.
RaisinTen
commented
May 10, 2022
In its current state, the PR is not about adding a general definition for all kinds of commits we want to include in this file. It's just about including 6afd3fc as asked for in #42752 (comment). The comment has some upvotes and no objections, so I took that as a clear indication of - yes, this looks like a good idea! That's why, I think it would be good if we add this commit to the list unless we have a concrete answer to this question - Why would someone want to find a change in 6afd3fc? |
mscdex
commented
May 18, 2022
Considering my comments have all been about the feature being used here and not any specific commits, technically yes. |
BethGriggs
commented
May 19, 2022
I'm not sure if this has already been considered - but this file will end up on future release branches ( |
targos
commented
May 19, 2022
@BethGriggs I think it's fine for the file to end up in release branches. |
LiviaMedeiros
left a comment
There was a problem hiding this comment.
Would landing this alone give a greenish light to huge code churns (for example, enforcing non-controversal lint rules)?
Uh oh!
There was an error while loading. Please reload this page.
RaisinTen
commented
May 22, 2022
I believe so, yes! |
Co-authored-by: Livia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com>
BridgeAR
left a comment
There was a problem hiding this comment.
I personally feel like this does not really benefit us. We have to go through lots of blame steps anyway. I would rather not skip anything in case it has indeed been added. I would for example compare changes between two revisions and if there's a change in-between that I did not notice, it'll definitely be confusing.
mcollina
left a comment
There was a problem hiding this comment.
I think maintaining this file will be too much of work to be useful.
RaisinTen
commented
Jun 1, 2022
@mcollina how is this a maintenance burden? No one is obliged to update this file, it's more of an opt-in thing - if someone wants a commit to be ignored from the blame UI, they could add the commit info to this file. Not updating this file will not cause any issues. |
BethGriggs
commented
Jun 1, 2022
I'm somewhat -0 on this. I sometimes use the blame UI when comparing across release branches. Not that this PR should be blocked because of one person's workflow - I just think there's a non-zero chance of it introducing confusion by hiding the piece of blame history that someone is actively looking for. |
mcollina
commented
Jun 1, 2022
I'm not seeing the reasoning behind doing so. |
RaisinTen
commented
Jun 6, 2022
@BethGriggs when a commit gets backported to a release branch, doesn't it get a SHA that's different from the SHA in the |
RaisinTen
commented
Jun 6, 2022
@mcollina it's because such commits pollute the GitHub blame output, see #41768 (comment).
Why would landing a change to this file be hard? It won't even require a Jenkins CI run because it doesn't affect the node binary. |
BethGriggs
commented
Jun 6, 2022
I think the answer is both yes and no 😅 . For new majors, we mirror I don't want to derail with obscure (likely rare?) cases, just to share my non-blocking concerns that this might get confusing. |
Moving my concerns to a soft -0. I'm not approving this but if others feels strongly about it, do it.
tniessen
commented
Jun 22, 2022
I'm not so sure; messing up |
RaisinTen
commented
Jun 26, 2022
I guess running into merge conflicts is a fate of PRs that stay open long enough. However, if the diff in question was introduced by a change that enforces a lint rule, it could be resolved by first accepting the changes already present in the PR branch during the rebase ( |
cjihrig
commented
Jun 27, 2022
I'm -1 on this for all of the reasons previously mentioned. I also won't block this, but I think you should consider the number of people who have raised concerns here, as well as the explicit request for changes. |
jasnell
commented
Jun 27, 2022
Really not a fan of this. |
Summarizing downsides of large diffs:
I'm seeing (1) as a huge problem that might be effectively solved by this file. On the other side we have accepted-but-not-enforced linter rules such as trailing commas and sorted keys. It doesn't look as important, but it burdens authors and reviewers constantly, making them to keep an eye on it. On larger timescale, unless there are other important problems, I believe that getting rid of "eternal" issue is worth it, and eventually has to be done. Regarding arguments that usually we have to do extra steps while using I've tried to emulate potential issue by making a copy of repository with grotesque churn (by messing with Currently I'm seeing two issues:
Also worth pointing out that Tl;dr I think it would be a good idea to add this file early but to not populate it with even slightly controversal commits at least until this feature becomes optional. Each commit candidate can be discussed individually later. |
RaisinTen
commented
Jun 29, 2022
I don't feel strongly about doing this anymore but if anyone else does, please feel free to take over the task of adding this file! |
This would make the GitHub blame UI ignore the revisions mentioned in
the
.git-blame-ignore-revsfile.For now, it ignores the changeintroduced in 6afd3fc as asked for in #42752 (comment).
This would make the GitHub blame UI ignore the revisions mentioned in
the .git-blame-ignore-revs file. For now, it ignores the changes
introduced in:
Refs: https://github.blog/changelog/2022-03-24-ignore-commits-in-the-blame-view-beta
Signed-off-by: Darshan Sen raisinten@gmail.com
cc @targos