From: SJ Park <sj@kernel.org>
To: sashiko-bot@kernel.org
Cc: SJ Park <sj@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Brendan Higgins" <brendan.higgins@linux.dev>,
"David Gow" <davidgow@davidgow.net>,
damon@lists.linux.dev, kunit-dev@googlegroups.com,
linux-mm@kvack.org
Subject: Re: [PATCH v2 1/3] mm/damon/tests/core-kunit: drop apply_scheme()-internal filter tests
Date: Thu, 3 Dec 2026 07:36:10 -0800 [thread overview]
Message-ID: <20261203153612.733455-1-sj@kernel.org> (raw)
In-Reply-To: <sashiko-outbox-248095@kernel.org>
On Thu, 03 Dec 2026 15:19:51 +0000 sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Low] mm/damon: inaccurate changelog and lost damos_core_filter_out()
> test coverage
> --
>
> commit 883df66be28904c403ef8497729b0e102d93b4f3
> Author: SJ Park <sj@kernel.org>
>
> > mm/damon/tests/core-kunit: drop apply_scheme()-internal filter tests
> >
> > Two kunit tests that were introduced by commit 1c3352282063
> > ("mm/damon/tests/core-kunit: test the size charged for a filter-trimmed
> > region"), damos_test_apply_scheme_filter{ed_sz,_sz_unchanged}(), are
> > arguably doing duplicated tests. Those are testing core filter
> > functionality in damos_apply_scheme(), only because the filters are
> > applied in damos_apply_scheme(). But the core filter functionality is
> > already tested by damos_test_filter_out(). Remove the duplicated tests.
> >
> > Signed-off-by: SJ Park <sj@kernel.org>
>
> [Severity: Low]
> Does removing these two tests drop all KUnit coverage for
> damos_core_filter_out() rather than removing duplicates?
>
> damos_test_filter_out() only calls damos_filter_match() on a single
> DAMOS_FILTER_TYPE_ADDR filter and never invokes damos_core_filter_out().
> Dropping these tests leaves core filter evaluation (allow/reject,
> default reject, multi-filter trimming) and size accounting untested.
>
> The changelog also omits that the follow-up commit "mm/damon/core: apply
> damos core filter in __damos_valid_target()" moves
> damos_core_filter_out() out of damos_apply_scheme(), which is why the
> tests cannot stay as written.
>
> Updating the changelog and migrating the tests to cover
> damos_core_filter_out() or __damos_valid_target() would keep coverage.
We could add more test cases to damos_test_filter_out() as a followup. The
coverletter is explaining why the tests need to be dropped.
So, no blocker in my opinion.
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20261203150821.730276-1-sj@kernel.org?part=1
>
Thanks,
SJ
next prev parent reply other threads:[~2026-12-03 15:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 15:08 [PATCH v2 0/3] mm/damon: treat DAMOS core filters as a primary target selection method SJ Park
2026-12-03 15:08 ` [PATCH v2 1/3] mm/damon/tests/core-kunit: drop apply_scheme()-internal filter tests SJ Park
2026-12-03 15:19 ` sashiko-bot
2026-12-03 15:36 ` SJ Park [this message]
2026-12-03 15:08 ` [PATCH v2 2/3] mm/damon/core: apply damos core filter in __damos_valid_target() SJ Park
2026-12-03 15:26 ` sashiko-bot
2026-12-03 15:40 ` SJ Park
2026-12-03 15:08 ` [PATCH v2 3/3] mm/damon/api: clarify node_eligible_mem_bp is access pattern-eligible SJ Park
2026-12-03 15:26 ` [PATCH v2 0/3] mm/damon: treat DAMOS core filters as a primary target selection method sashiko-bot
2026-12-03 15:42 ` SJ Park
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=20261203153612.733455-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=brendan.higgins@linux.dev \
--cc=damon@lists.linux.dev \
--cc=davidgow@davidgow.net \
--cc=kunit-dev@googlegroups.com \
--cc=linux-mm@kvack.org \
--cc=sashiko-bot@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 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.