From: Chuck Lever <cel@kernel.org>
To: Daniel Gomez <da.gomez@kernel.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>,
Daniel Gomez <da.gomez@kruces.com>,
kdevops@lists.linux.dev
Subject: Re: [PATCH v2 7/9] all: run black
Date: Fri, 1 Aug 2025 12:55:57 -0400 [thread overview]
Message-ID: <6ec52832-4439-4dcd-b3c2-c5f654b5bb80@kernel.org> (raw)
In-Reply-To: <1ca365a4-13b0-4f43-8568-058e566d0ef7@kernel.org>
On 8/1/25 12:29 PM, Daniel Gomez wrote:
>
>
> On 01/08/2025 14.55, Chuck Lever wrote:
>> On 8/1/25 4:12 AM, Daniel Gomez wrote:
>>>
>>>
>>> On 31/07/2025 14.57, Daniel Gomez wrote:
>>>> On 30/07/2025 08.01, Luis Chamberlain wrote:
>>>>> Run black to fix tons of styling issues with tons of Python scripts.
>>>>> In order to help bots ensure they don't add odd styling we need a
>>>>> convention.
>>>>>
>>>>> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
>>>>
>>>> Acked-by: Daniel Gomez <da.gomez@samsung.com>
>>>>
>>>> FYI, I'm working on b4 check stuff mentioned in the other thread. I think this
>>>> is really nice but it would be awesome to also extend it to Ansible files using
>>>> the Ansible linter:
>>>>
>>>> ansible-lint --help
>>>> {...}
>>>> --fix [WRITE_LIST] Allow ansible-lint to perform auto-fixes, including YAML
>>>> reformatting
>>
>> I use ansible-lint extensively before commit. Linting existing kdevops
>> files is still a bit of jungle, so ansible-lint would have to be
>> directed only at new files.
>
> It's wild. I've sent an RFC with this:
>
> git show --shortstat HEAD
> 234 files changed, 5308 insertions(+), 5098 deletions(-)
> git show HEAD | grep -c '^@@'
> 735
>
> Hopefully this will raise a bit the bar with the format. Next challenge is to
> try to keep it.
I generally try to fix things up as I encounter lint complaints, as I
am a fan of static analysis. Even though the "actual positive" rate can
be low, some discovered issues have been significant, IME.
However, there is risk in making changes when static checkers throw
warnings. Not infrequently, an otherwise innocent clean-up can result
in unintended behavior changes. So I try to keep the churn to a minimum
and test thoroughly.
There have been several enormous patch series that have come through in
the past week; difficult to review all of that. Even though tools like
Claude and black can generate a very high quantity of patches, there's
nothing that guarantees these are quality changes. I would like to see
things slow down a little so us humans can have a chance to paw through
them.
So +1 on the use of lint tools! But also let's tread carefully.
>>>> So, these changes with black/ansible-lint, etc make sense if:
>>>> 1. Add b4 integration
>>>> 2. Make CI run the scripts as well (make style, make check, etc)
>>>>
>>>> But I suspect a minimal testing may be needed.
>>>>
>>>> Thoughts?
>>>
>>> I'll send an RFC with more details.
>>
>
--
Chuck Lever
next prev parent reply other threads:[~2025-08-01 16:55 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 6:01 [PATCH v2 0/9] kdevops: add support for A/B testing Luis Chamberlain
2025-07-30 6:01 ` [PATCH v2 1/9] roles/guestfs: add missing bootlinux_9p: False Luis Chamberlain
2025-07-30 14:17 ` Chuck Lever
2025-07-30 6:01 ` [PATCH v2 2/9] Makefile: suppress Ansible warnings during configuration generation Luis Chamberlain
2025-07-30 6:22 ` Daniel Gomez
2025-07-30 6:01 ` [PATCH v2 3/9] playbooks: few space cleanups Luis Chamberlain
2025-07-30 6:01 ` [PATCH v2 4/9] style: add extensive code formatting checks to make style Luis Chamberlain
2025-07-30 6:01 ` [PATCH v2 5/9] Makefile: move styling to scripts/style.Makefile Luis Chamberlain
2025-07-30 6:01 ` [PATCH v2 6/9] CLAUDE.md: add instrucitons to verify commit Luis Chamberlain
2025-07-30 6:01 ` [PATCH v2 7/9] all: run black Luis Chamberlain
2025-07-31 12:57 ` Daniel Gomez
2025-08-01 8:12 ` Daniel Gomez
2025-08-01 12:55 ` Chuck Lever
2025-08-01 16:29 ` Daniel Gomez
2025-08-01 16:55 ` Chuck Lever [this message]
2025-07-30 6:01 ` [PATCH v2 8/9] devconfig: add automatic APT mirror fallback for Debian testing Luis Chamberlain
2025-07-30 6:41 ` Daniel Gomez
2025-08-01 17:39 ` Luis Chamberlain
2025-07-30 6:01 ` [PATCH v2 9/9] bootlinux: add support for A/B kernel testing Luis Chamberlain
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=6ec52832-4439-4dcd-b3c2-c5f654b5bb80@kernel.org \
--to=cel@kernel.org \
--cc=da.gomez@kernel.org \
--cc=da.gomez@kruces.com \
--cc=kdevops@lists.linux.dev \
--cc=mcgrof@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox