-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: add .git-blame-ignore-revs
file
#43017
Conversation
Changes to this file would need to be adapted to work on release branches. I don't know how we should handle this. |
Maybe we shouldn't backport this change to the release branches? Electron didn't backport the change that added this file - electron/electron#33171. |
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. |
Is it a special placeholder for all |
Yes, that's the intention. |
Okay, that seems useful but some things will have to be adapted for it.
|
Why are we using this feature? |
Can we keep the individual |
|
Yes, we could do that but that would leave us with 2 options:
I'll delete the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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? |
Considering my comments have all been about the feature being used here and not any specific commits, technically yes. |
I'm not sure if this has already been considered - but this file will end up on future release branches ( |
@BethGriggs I think it's fine for the file to end up in release branches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would landing this alone give a greenish light to huge code churns (for example, enforcing non-controversal lint rules)?
I believe so, yes! |
Co-authored-by: Livia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maintaining this file will be too much of work to be useful.
@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. |
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. |
I'm not seeing the reasoning behind doing so. |
@BethGriggs when a commit gets backported to a release branch, doesn't it get a SHA that's different from the SHA in the |
@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. |
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.
I'm not so sure; messing up |
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 ( |
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. |
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. |
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-revs
file.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