Message ID | 20230424072836.GAZEYvpDGrV3bXx690@fat_crate.local (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] EDAC updates for v6.4 | expand |
On Mon, Apr 24, 2023 at 12:28 AM Borislav Petkov <bp@alien8.de> wrote: > > For some stupid reason (juggling gazillion things at the same time, > probably) I have based the edac-amd64 branch *not* ontop of plain > v6.3-rc3 but there are a couple more of your merges ontop. It's fine. Mistakes happen, and honestly, the "base your work on top of a stable point" is - like almost everything else in life - a recommendation for everybody's sanity, rather than any kind of black-and-white rule. And it comes mainly from people actively mis-using git, and merging random upstream state without thought, and trying to set that kind of behavior right, and have people _think_ about it. IOW, it's not some "this gets enforced" thing - it's more of a "you did something else horribly wrong, so let's clarify what the 'good thoughtful git behavior' should be". Sometimes starting at a random point can even be a feature - random cleanups that depend on some helper that was added last release, and it's just much more convenient to start at point X ratherr than wait for the next -rc. Now, the thing I do hope that people actively try to avoid is picking a "kernel of the day" during the merge window to start on, but even that is less about "well-defined starting point" and more about just the fact that the merge window kernel *can* be really unstable and is a really bad base. But some "rc3+" kernel is certainly not that kind of _horribly_ bad kernel to start at. It's probably better than starting at a rc1 release in practice. So the "try to use a reasonably stable starting point" really is a general recommendation, and mostly a reaction against people who tend to do more of a mindless "rebase/merge to today's kernels without any thought" kind of workflow. So I'm not asking for surgical precision. I'm asking for "reasonable workflow", where people avoid doing pointlessly silly things. Linus
On Tue, Apr 25, 2023 at 09:55:14AM -0700, Linus Torvalds wrote: > So I'm not asking for surgical precision. I'm asking for "reasonable > workflow", where people avoid doing pointlessly silly things. As always, I really appreciate elaborating on the whole reasoning behind this. While we're on the topic: when we send you tip urgent fixes, we base each branch off of the current -rc, put the urgent fixes ontop, test, ... and send them to you in a week's time, roughly. Now, after you've pulled, we could fast-forward the urgent branch to the next -rc where new fixes come - and I do that most of the time - or we could not do that because of, as you say, if there's no really good reason to fast-forward (important other fix, new functionality from the newest -rc a patch needs, yadda yadda) then those urgent branches do not necessarily have to be fast-forwarded but simply get more fixes applied ontop. Right, that makes sense. Oh, and I'm sure if a branch is based on what looks like a random point but there's a good explanation accompanying it why it is based on that random point, then I guess that's perfectly fine too. Thx.
On Tue, Apr 25, 2023 at 10:35 AM Borislav Petkov <bp@alien8.de> wrote: > > While we're on the topic: when we send you tip urgent fixes, we base > each branch off of the current -rc, put the urgent fixes ontop, test, > ... and send them to you in a week's time, roughly. > > Now, after you've pulled, we could fast-forward the urgent branch to the > next -rc where new fixes come - and I do that most of the time - or we > could not do that because of, as you say, if there's no really good > reason to fast-forward (important other fix, new functionality from the > newest -rc a patch needs, yadda yadda) then those urgent branches do not > necessarily have to be fast-forwarded but simply get more fixes applied > ontop. That sounds right. Do the fast-forward thing if you want to update to a newer rc for some other reason, but if there's no major other thing going on, you can easily just continue on top of your existing fixes branch. There's no reason to actively seek a new base if you already had a stable base that you were on. So whatever works best for you. (Of course, at some point "that base is just _really_ old" becomes a reason in itself, and then fast-forwarding to have a newer base to do your fixes on top just becomes a convenience) > Oh, and I'm sure if a branch is based on what looks like a random point > but there's a good explanation accompanying it why it is based on that > random point, then I guess that's perfectly fine too. Absolutely. Things that look wrong when I look at the pull request result may have good reasons for them. If you know there's something odd going on but you had a particular reason to do it that way, just mention it. For example - I can get quite upset when I see that all the commits are very recent and have clearly not had a lot of testing. But if that isn't your usual pattern, and you had a clear *reason* for the commits all being shiny and new ("I had to rebase to remove a completely broken commit"), please mention it. Of course, if that particular reason keeps on happening, and there' sa continual stream of "I know I did things wrong, but it was because of X", then maybe that "X" is a huge problem and should be fixed? So the occasional oddity with explanations is perfectly fine. But a consistent _pattern_ of oddities is a problem, explanations notwithstanding. Linus
The pull request you sent on Mon, 24 Apr 2023 09:28:36 +0200:
> git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git tags/edac_updates_for_v6.4
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e94ee641f9cef2502adfe5e0c264b271420c7ab5
Thank you!