All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>, Luca Fancellu <Luca.Fancellu@arm.com>
Cc: Bertrand Marquis <Bertrand.Marquis@arm.com>,
	Oleksandr Andrushchenko <andr2000@gmail.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Artem Mygaiev <Artem_Mygaiev@epam.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Julien Grall <julien@xen.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Anthony PERARD <anthony.perard@vates.tech>,
	Michal Orzel <michal.orzel@amd.com>
Subject: Re: Coding Style Review and Automation
Date: Tue, 11 Feb 2025 15:06:08 +0100	[thread overview]
Message-ID: <Z6tZUKiqYARWuk8N@macbook.local> (raw)
In-Reply-To: <55c4d9e0-77b2-408b-9bb1-8efed95891c1@suse.com>

On Tue, Feb 11, 2025 at 11:19:23AM +0100, Jan Beulich wrote:
> On 11.02.2025 10:10, Luca Fancellu wrote:
> >>> 3) The size of the patch after applying clang-format is huge. Really. Something
> >>> like 9 MB. Even if everyone agrees that the approach is good and we can proceed
> >>> with it, it is highly unlikely anyone will be able to review it. Considering
> >>> that new patches are being added to the upstream during such a review, it may
> >>> also lead to new code style violations or require a new review of that huge
> >>> patch.
> >>
> >> I think this approach is difficult.  It would likely introduce a lot
> >> of noise when using `git blame` (I know, it's just one extra jump,
> >> but...), plus would likely break every patch that we currently have
> >> in-flight.
> > 
> > I think we already discussed this in the past and having some churn was accepted,
> > also about breaking existing patches, every change merged has the potential to do
> > that, this one is more likely but it’s the game I guess?
> 
> That's easy to say if you have just a few patches in flight, yet I'm worried
> about this when considering the hundreds of mine that are awaiting review.

There are also downstreams (including distros) with varying length of
patch queues on top of Xen.  Arguably they have to rebase the queue
every time they update, but a wide change in coding style will likely
be fairly disruptive to them.

Don't take this as a reason to reject clang-format.  As mentioned
elsewhere I think the format supported by clang-format would need to
be fairly similar to the current Xen one (up to the point that chunks
of code using the new and the old style could live together).  Then we
would enforce it only for newly added chunks of code initially IMO.

Thanks, Roger.


  reply	other threads:[~2025-02-11 14:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-10 21:16 Coding Style Review and Automation Oleksandr Andrushchenko
2025-02-11  1:37 ` Stefano Stabellini
2025-02-11  9:01 ` Roger Pau Monné
2025-02-11  9:10   ` Luca Fancellu
2025-02-11  9:31     ` Roger Pau Monné
2025-02-11  9:49       ` Luca Fancellu
2025-02-11 10:26         ` Roger Pau Monné
2025-02-11 10:30           ` Jan Beulich
2025-02-11 11:03       ` Anthony PERARD
2025-02-11 10:19     ` Jan Beulich
2025-02-11 14:06       ` Roger Pau Monné [this message]
2025-02-11 18:54         ` Marek Marczykowski-Górecki
2025-02-12 11:54           ` Edwin Torok
2025-02-11 10:14   ` Jan Beulich
2025-02-11 10:35     ` Roger Pau Monné
2025-02-11 10:28 ` Jan Beulich
2025-02-11 22:33 ` Stefano Stabellini
2025-02-12  9:14   ` Roger Pau Monné
2025-02-12 11:14     ` Grygorii Strashko
2025-02-12 11:31       ` Roger Pau Monné
2025-02-13  6:43       ` Oleksandr Andrushchenko
2025-02-12 20:03   ` Oleksandr Andrushchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z6tZUKiqYARWuk8N@macbook.local \
    --to=roger.pau@citrix.com \
    --cc=Artem_Mygaiev@epam.com \
    --cc=Bertrand.Marquis@arm.com \
    --cc=Luca.Fancellu@arm.com \
    --cc=andr2000@gmail.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.