Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Luis via Gdb <gdb@sourceware.org>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches <gdb-patches@sourceware.org>, gdb@sourceware.org
Subject: Re: tclint, pre-commit and patch submissions
Date: Wed, 1 Oct 2025 18:17:07 +0100	[thread overview]
Message-ID: <CANnS9ru2Go4qq8OVdbvHe3JM=s5MzysMqW25tMxDdyUBfwxsSw@mail.gmail.com> (raw)
In-Reply-To: <47a36f1e-28e8-4cde-92fa-adf255247f70@suse.de>

Hi Tom,

I'm in favor o enforcing clean commits. If we are using a linter for TCL,
then I'd personally go with this option:

- we make the repo refuse commits that are not pre-commit clean

Or a pre-commit checker that we carry on our repo that gets run
automatically.


On Wed, Oct 1, 2025, 12:55 Tom de Vries <tdevries@suse.de> wrote:

> Hi,
>
> I've recently added a tclint pre-commit hook, and started cleaning the
> testsuite.
>
> The current status is that all gdb.* dirs are done, with the exception
> of gdb.stabs (which is going to be removed, so I skipped it).
>
> My question is what to do with patches adding new test-cases or
> modifying existing test-cases.
>
> If these patches are not tclint-clean, then after commit this command:
> ...
> $ pre-commit run tclint --all-files
> ...
> will start showing new tclint errors.
>
> One thing that could be done at that point is to ask the
> submitter/committer to fix the tclint errors.
>
> But there's no formal agreement atm that this need to be fixed.  I've
> proposed the hook, and Tom Tromey approved it, but that's just two
> maintainers.
>
> So I'd like to know the opinion of other maintainers.
>
> Possible outcomes of this discussion could be that:
> - we get rid of tclint in pre-commit and forget about it
> - we drop one or more error categories in gdb/tclint.toml
> - we require submitters to run pre-commit before submission
> - we make the repo refuse commits that are not pre-commit clean
> - nothing changes, and submitters can use all/some/no pre-commit hooks
>    for their own submissions
>
> Thanks,
> - Tom
>

  parent reply	other threads:[~2025-10-01 17:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-01 11:55 Tom de Vries via Gdb
2025-10-01 12:30 ` Guinevere Larsen via Gdb
2025-10-01 17:17 ` Luis via Gdb [this message]
2025-10-03 19:47 ` Tom Tromey

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='CANnS9ru2Go4qq8OVdbvHe3JM=s5MzysMqW25tMxDdyUBfwxsSw@mail.gmail.com' \
    --to=gdb@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    --cc=luis.machado.foss@gmail.com \
    --cc=tdevries@suse.de \
    /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