| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Changes to this file would need to be adapted to work on release branches. I don't know how we should handle this. |
Sorry, something went wrong.
|
Maybe we shouldn't backport this change to the release branches? Electron didn't backport the change that added this file - electron/electron#33171. |
Sorry, something went wrong.
I'm fine with that. We should probably add a rule to label-pr-config.yml so we don't forget to add the label. |
Sorry, something went wrong.
|
Done, mapped it to a https://github.com/nodejs/node/labels/dont-backport label. |
Sorry, something went wrong.
Is it a special placeholder for all dont-land-on-* labels? |
Sorry, something went wrong.
|
Yes, that's the intention. |
Sorry, something went wrong.
|
Okay, that seems useful but some things will have to be adapted for it. |
Sorry, something went wrong.
|
Why are we using this feature? |
Sorry, something went wrong.
Can we keep the individual dont-land-on-* labels? dont-backport is going to introduce ambiguity. |
Sorry, something went wrong.
|
Sorry, something went wrong.
Yes, we could do that but that would leave us with 2 options:
I'll delete the dont-backport label and stick to option 1 if there are no objections by the EOD. (Done) |
Sorry, something went wrong.
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.
Sorry, something went wrong.
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? |
Sorry, something went wrong.
Considering my comments have all been about the feature being used here and not any specific commits, technically yes. |
Sorry, something went wrong.
I'm not sure if this has already been considered - but this file will end up on future release branches (v19.x-staging onwards). That may not be a problem at all. But I figured I should mention because we will be in a state where this file exists on some release branches and not others. |
Sorry, something went wrong.
|
@BethGriggs I think it's fine for the file to end up in release branches. |
Sorry, something went wrong.
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)?
Sorry, something went wrong.
I believe so, yes! |
Sorry, something went wrong.
Co-authored-by: Livia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com>
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.
Sorry, something went wrong.
There was a problem hiding this comment.
I think maintaining this file will be too much of work to be useful.
Sorry, something went wrong.
@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. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
I'm not seeing the reasoning behind doing so. |
Sorry, something went wrong.
@BethGriggs when a commit gets backported to a release branch, doesn't it get a SHA that's different from the SHA in the HEAD branch, i.e., the one tracked in this file? If the SHA is different, this file won't hide it from the blame UI. |
Sorry, something went wrong.
@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. |
Sorry, something went wrong.
I think the answer is both yes and no 😅 . For new majors, we mirror master up until the vN.0.0 release commit. So the SHAs could match those on master in some release branches. I think it would depend on where the specific commit is in history - but I do believe this means it's possible it could match in some release branches and not others. I don't want to derail with obscure (likely rare?) cases, just to share my non-blocking concerns that this might get confusing. |
Sorry, something went wrong.
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 git blame is just one downside of large diffs. For example, huge diffs usually cause other open PRs or local branches to get stuck on merge conflicts. |
Sorry, something went wrong.
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 (git rebase -X theirs main) and then committing the changes introduced by the formatter. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
Really not a fan of this. |
Sorry, something went wrong.
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 git blame anyway and usually we don't want to hide those steps: it is applicable to current state of repository, but might be changed if a churn happens in the future. I've tried to emulate potential issue by making a copy of repository with grotesque churn (by messing with intent and quotes eslint rules and reverting back) injected at 2022-04-01, and .git-blame-ignore-revs pushed at 2022-06-28. For example, lib/assert.js without and with this feature added. I hope it helps to decide if churn can disrupt gitblaming workflow. Currently I'm seeing two issues:
Also worth pointing out that blame looks for ignore-revs file on "current" commit, so the file might be outdated or missing. It means that commits-to-be-hidden should be added as soon as possible to make it effective, and adding very old commits might not be useful. 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. |
Sorry, something went wrong.
|
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! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This would make the GitHub blame UI ignore the revisions mentioned in
the .git-blame-ignore-revs file. For now, it ignores the change
introduced 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