Re: [PATCH v2 0/3] selftests/damon: misc fixes for test bugs

From: SeongJae Park

Date: Mon Jun 01 2026 - 10:29:00 EST


On Mon, 1 Jun 2026 11:23:11 +0800 Kunwu Chan <kunwu.chan@xxxxxxxxx> wrote:

> From: Kunwu Chan <chentao@xxxxxxxxxx>
>
> This series fixes several bugs in the DAMON selftests. Most are
> trivial but cause tests to silently pass when they shouldn't, or
> fail prematurely on slow machines.
>
> Patch 1 fixes mutable default arguments in DamonCtx.__init__()
> that cause state to leak between test instances.
>
> Patch 2 fixes wrong operator precedence and join TypeError in
> damos_tried_regions.py.
>
> Patch 3 fixes several wrong strings that produce dead elif
> branches, skipped file existence checks, and broken dict key
> lookups.
>
> Based on next-20260529.
> base-commit: 7da7f07112610a520567421dd2ffcb51beaefbcc
> ---
> Changes in v2:
> - Fix From:/Signed-off-by mismatch.
> - Add Reviewed-by tags from SeongJae Park.
> - Drop the duplicate memcg_path fix.
> - Drop the empty aggregation-cycle retry fix pending root-cause
> investigation.
> - No code change

>From the next time, please add links to previous versions [1]. For other
readers, the v1 of this series is available on the mailing list [2].

[1] https://docs.kernel.org/process/submitting-patches.html#commentary
[2] https://lore.kernel.org/20260531085633.48626-1-kunwu.chan@xxxxxxxxx


Thanks,
SJ

[....]