From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796312179; b=lMLAlVscbkW9wq4o3WhmSD3oBQBTjwx5acDzz8cFJVOQHOK6c/2VRRywDzweYcFn60cJ 8W3VuM66/cqSIuwga5iCquvnCHrrHh8hfQ+seGAg+RGGDqSUF8A8GBosw3dPalxGCvPir nqBs8GzanXQNnol0xxtwYjn5xwoq04V6wd7zSzoa5EXBsQqVAyanS6cjTrIfmix2j5l2u cGwLEM9w1Zv/HJ9jfXQgRm+KcL2HXrNBwaOqkN34BclJtZxSf/5J4Ulh23Ph9doduRUU0 wtxXnGM30XQHSN9qLHG9SFJNjPNcMOWsqkCEkGN9oGOiSxHqJA+ojXvojudTDMNsYdQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796312179; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=HzFBzZl0tFmyA4MshuoWzkeSDeisJFVAiYV6vzJJXsc=; b=XzmqzqZCQqrcXT/hI59ZiW3xTRZejdkRMJEwRBweaph2tR3PBtF1BjE4JMRRuDQNTFMe tkNJ0IqsmrkEXKH9XHuY6sHUl45sK9SNNhwMFAPwVo5nrWgj5eckm604+OqMGLz6nOSRj wZBzse7QpwfZhyKl16qhjeeVMhFA6LnBiKeunhJ1nKp1SppU1eBgbdNA8S9Y9EaEsrsJd 2+CzeJL8AfmGqrm8uMTmFj3Ql8lx9Y8sOV6hWK300awVs+F46BJA82JLBuZQ7VSPVRvns xNWBiu2QboiA10oFYfZtvQGLYNbQDf0nYx8qZRLsevniCj+6u+4U1lY4UUQt+ZrZKNA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Z0gx9YlR; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0EF1606A32C for ; Thu, 3 Dec 2026 15:36:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Z0gx9YlR Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8E351F000C1; Thu, 3 Dec 2026 15:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796312179; bh=HzFBzZl0tFmyA4MshuoWzkeSDeisJFVAiYV6vzJJXsc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Z0gx9YlRsPmA9Pp19akxiJw5E66LLiSNZbBt8BP6WMroglygx/hBBBpJZVti0eAz3 g4wRvOgCeRD2dnbuwGhXbaInauUrFYUGbBSupeLRaJasX+trM2nAces97pcT3AawZf tY85JX2rY8LNfgZe5jdRQ+P2VB9+7Iy0kn6uA8MFmHUSrmddfKAZuSwzzHbYuk9BOT csbYfjpuelcyS+KYHYUhGvM5lcv4CDhj+TJs0xzCj87dPAsdqe4sle5Dhr5+8VVzFL ZjqSxtyqqWIce9pxa+U8e5TH+9sZhjnLV9Xr5nZ/0qUYsvveGzdYizmTSGqzo+yeS9 6CGbBVYYyveUQ== From: SJ Park To: sashiko-bot@kernel.org Cc: SJ Park , "Andrew Morton" , "Brendan Higgins" , "David Gow" , 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 Message-ID: <20261203153612.733455-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: X-Mailing-List: damon@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 > > > 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 > > [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