On Fri, May 29, 2026 at 1:17 PM <[email protected]> wrote:
>
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) 
> to consider:
> - [Medium] The 'atomic replace livepatch' test case in test-livepatch.sh was 
> completely removed instead of being updated, resulting in lost test coverage 
> and leaving behind dead variables.
> --
>
> commit 99bb60c2ba8319ec21289c482f1ea304e282396c
> Author: Yafang Shao <[email protected]>
>
> selftests/livepatch: Update tests for replace_set
>
> This commit updates the livepatch selftests to use "replace_set" instead
> of "replace". It configures different livepatches to share or have different
> replace_sets to test atomic and non-atomic replace behaviors.
>
> > diff --git a/tools/testing/selftests/livepatch/test-livepatch.sh 
> > b/tools/testing/selftests/livepatch/test-livepatch.sh
> > index c44c5341a2f1e..042999856267f 100755
> > --- a/tools/testing/selftests/livepatch/test-livepatch.sh
> > +++ b/tools/testing/selftests/livepatch/test-livepatch.sh
> [ ... ]
> > @@ -108,96 +108,6 @@ livepatch: '$MOD_LIVEPATCH1': completing unpatching 
> > transition
> >  livepatch: '$MOD_LIVEPATCH1': unpatching complete
> >  % rmmod $MOD_LIVEPATCH1"
> >
> > -
> > -# - load a livepatch that modifies the output from /proc/cmdline and
> > -#   verify correct behavior
> > -# - load two additional livepatches and check the number of livepatch 
> > modules
> > -#   applied
> > -# - load an atomic replace livepatch and check that the other three 
> > modules were
> > -#   disabled
> > -# - remove all livepatches besides the atomic replace one and verify that 
> > the
> > -#   atomic replace livepatch is still active
> > -# - remove the atomic replace livepatch and verify that none are active
> > -
> > -start_test "atomic replace livepatch"
> > -
> > -load_lp $MOD_LIVEPATCH1
>
> [Severity: Medium]
> Was this test case intentionally removed completely instead of being updated 
> for
> the new replace_set semantics?
>
> The commit message does not mention removing this test. This removal causes a
> loss of test coverage that previously verified an atomic replace successfully
> disables multiple existing livepatches.

This test case is invalid for the replace_set, since only one
livepatch will be replaced.

>
> Additionally, removing this test leaves the script variables MOD_LIVEPATCH2
> and MOD_LIVEPATCH3 unused in test-livepatch.sh. Could this test be adapted
> to use replace_set instead?

I will update it.

-- 
Regards
Yafang

Reply via email to