From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v3 0/6] Test and linter fixups
Date: Wed, 8 Oct 2025 11:22:25 +1100 [thread overview]
Message-ID: <aOWuwSL4WtIsOdFt@zatzit> (raw)
In-Reply-To: <20251007161346.7771a4f1@elisabeth>
[-- Attachment #1: Type: text/plain, Size: 2047 bytes --]
On Tue, Oct 07, 2025 at 04:13:46PM +0200, Stefano Brivio wrote:
> On Thu, 2 Oct 2025 15:04:31 +1000
> David Gibson <david@gibson.dropbear.id.au> wrote:
>
> > Before starting to convert testcases to use tunbridge, I wanted to add
> > linting for the Python test scripts. While doing that I discovered a
> > new crop of cppcheck and clang-tidy false positives, and a Makefile
> > bug.
> >
> > Here's a batch of fixes.
> >
> > I didn't manage to get through the whole testsuite with this. I keep
> > getting hangs on rampstream_out, which I *think* are unrelated.
>
> I saw this once too, a couple of weeks ago.
>
> Maybe it's the same issue I've been trying to find the time to work on
> for a while now, that is, the kernel not freezing queues of the sockets
> from the source instance once they switch to repair mode.
Maybe.
> But it happened just once so I didn't try re-running with PCAP=1. I
> might, if it happens again.
>
> > v3:
> > * Delete mypy's cache on make clean
> > v2:
> > * Actually understood why exetool was being deleted, and fixed it
> > properly.
> >
> > David Gibson (6):
> > clang-tidy: Suppress redundant expression warning
> > cppcheck: Suppress the suppression of a suppression
> > cppcheck: Suppress a buggy cppcheck warning
> > cppcheck: Suppress variable scope warnings in dhcpv6()
> > test: Don't delete exetool on make clean
> > test: Add linting of Python test scripts
>
> I'm applying this now, even though, strictly speaking, this breaks tests
> because test/README.md doesn't mention one needs to install flake8 and
> mypy, and I don't think they're very commonly installed, so I think you
> should update it.
Ah, good point. Beter yet, I should skip rather than failing if the
linters aren't available. I'll send a follow up for this.
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2025-10-08 0:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 5:04 David Gibson
2025-10-02 5:04 ` [PATCH v3 1/6] clang-tidy: Suppress redundant expression warning David Gibson
2025-10-07 14:13 ` Stefano Brivio
2025-10-02 5:04 ` [PATCH v3 2/6] cppcheck: Suppress the suppression of a suppression David Gibson
2025-10-02 5:04 ` [PATCH v3 3/6] cppcheck: Suppress a buggy cppcheck warning David Gibson
2025-10-02 5:04 ` [PATCH v3 4/6] cppcheck: Suppress variable scope warnings in dhcpv6() David Gibson
2025-10-02 5:04 ` [PATCH v3 5/6] test: Don't delete exetool on make clean David Gibson
2025-10-02 5:04 ` [PATCH v3 6/6] test: Add linting of Python test scripts David Gibson
2025-10-07 14:13 ` [PATCH v3 0/6] Test and linter fixups Stefano Brivio
2025-10-08 0:22 ` David Gibson [this message]
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=aOWuwSL4WtIsOdFt@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).