All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Thomas Haller <thaller@redhat.com>
Cc: Florian Westphal <fw@strlen.de>,
	NetFilter <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH nft 1/3] tests/shell: skip "table_onoff" test if kernel patch is missing
Date: Tue, 17 Oct 2023 11:32:28 +0200	[thread overview]
Message-ID: <20231017093228.GB10901@breakpoint.cc> (raw)
In-Reply-To: <a64bccda9ab11f18f13d0512001985d1bf9f04ff.camel@redhat.com>

Thomas Haller <thaller@redhat.com> wrote:
> As you probably run a self-built kernel, wouldn't you just `export
> NFT_TEST_FAIL_ON_SKIP=y` and reject all skips as failures? What's the
> problem with that? That exists exactly for your use case.

No, its not my use case.

The use case is to make sure that the frankenkernels that I am in charge
of do not miss any important bug fixes.

This is the reason for the feature probing, "skip" should tell me that
I can safely ignore it because the feature is not present.

I could built a list of "expected failures", but that will mask real
actual regressions.

> > This is a bug, and it tells me that I might have to do something
> > about it.
> 
> OK, do you intend to fix this bug in a very timely manner on Fedora 38
> (and other popular kernels)? Then maybe hold back the test until that
> happend? (or let it skip for now, and in a few weeks, upgrade to hard
> failure -- the only problem is not to forget about that).

I did keep the test back until I saw that -stable had picked it up.

I can wait longer, sure.

> Ah right. "tests/shell/testcases/transactions/table_onoff" is fixed on
> 6.5.6-200.fc38.x86_64. There still is a general problem. For example
> what about tests/shell/testcases/packetpath/vlan_8021ad_tag ?

Its also a bug that needs to be fixed in the kernel.
I applied it after stable had picked it up for 6.5.7.

> 1) the test would exit 78 instead of 77. And run-test.sh would treat 78
> either as failure or as skip, based on NFT_TEST_FAIL_ON_SKIP
> 
> 2) the test itself could look at NFT_TEST_FAIL_ON_SKIP and decide
> whether to exit with 77 or 1.
> 
> 
> Or how about adding a mechanism, that compares the kernel version and
> decides whether to skip? For example

I don't think that kernel versions work or are something that we can
realistically handle.  Even just RHEL would be a nightmare if one
considers all the different release streams.

I think even just handling upstream -stable is too much work.

That said, I hope that these kinds of tests will happen less frequently
over time.

  parent reply	other threads:[~2023-10-17  9:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-16 13:12 [PATCH nft 1/3] tests/shell: skip "table_onoff" test if kernel patch is missing Thomas Haller
2023-10-16 13:12 ` [PATCH nft 2/3] tests/shell: skip "vlan_8021ad_tag" test instead of failing Thomas Haller
2023-10-16 13:12 ` [PATCH nft 3/3] tests/shell: add missing "vlan_8021ad_tag.nodump" file Thomas Haller
2023-10-16 20:20 ` [PATCH nft 1/3] tests/shell: skip "table_onoff" test if kernel patch is missing Florian Westphal
2023-10-17  6:22   ` Thomas Haller
2023-10-17  8:53     ` Thomas Haller
2023-10-17  9:32     ` Florian Westphal [this message]
2023-10-17 11:14       ` Thomas Haller

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=20231017093228.GB10901@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=thaller@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.
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.