From: sashiko-bot@kernel.org
To: "SJ Park" <sj@kernel.org>, "Andrew Morton" <akpm@linux-foundation.org>
Cc: "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, 03 Dec 2026 15:19:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-248095@kernel.org> (raw)
In-Reply-To: <20261203150821.730276-2-sj@kernel.org>
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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203150821.730276-1-sj@kernel.org?part=1
next prev parent reply other threads:[~2026-12-03 15:19 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 [this message]
2026-12-03 15:36 ` SJ Park
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=sashiko-outbox-248095@kernel.org \
--to=sashiko-bot@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-reviews@lists.linux.dev \
--cc=sj@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.