sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

[kdump] Fix API to read the current running image

Open rajendra-dendukuri opened this issue 3 years ago • 5 comments

What I did

Simplify the API used to get the current active image name.

How I did it

Instead of relying on the output of the "sonic-installer list" command, use the API get_current_image() from the sonic_installer.bootloader py library.

How to verify it

config reload config kdump disable config kdump enable config kdump memory 768M

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

rajendra-dendukuri avatar Jun 14 '22 18:06 rajendra-dendukuri

It would be good to add unit test to increase coverage

ayurkiv-nvda avatar Jun 24 '22 11:06 ayurkiv-nvda

@rajendra-dendukuri could you please refer to the comment and see if this can be handled? also, please add test to cover the code changes as there is a coverage checker error.

liat-grozovik avatar Jul 28 '22 08:07 liat-grozovik

It would be good to add unit test to increase coverage

I started to look at how test coverage can be added to these commands. Any suggestions would be of great help.

rajendra-dendukuri avatar Aug 03 '22 14:08 rajendra-dendukuri

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: rajendra-dendukuri (d4068c975d21d9b7a34e613b3056eeab52df0795, 81f4579ebea5e73a8e0875aec171bdde3ddc86f9, d3c96ebf52cedb0f304ca9e90adc417fafb25c2a, 2fdfaf7e30f215429e95743ff75a143805002a42)

/easycla

liat-grozovik avatar Aug 14 '22 14:08 liat-grozovik

@rajendra-dendukuri could you please take care of the comments provided and align with the code coverage requirement?

liat-grozovik avatar Jan 16 '23 15:01 liat-grozovik

@rajendra-dendukuri kindly reminder on the code coverage part @ayurkiv-nvda can you please review following your comment?

liat-grozovik avatar Feb 06 '23 13:02 liat-grozovik

@rajendra-dendukuri any update on when this PR can be ready for merge?

liat-grozovik avatar Mar 13 '23 11:03 liat-grozovik

@rajendra-dendukuri will you be able to cont the investigation and provide a fix for the coverage part? if not, they will not be merged :-(

liat-grozovik avatar Apr 10 '23 07:04 liat-grozovik

ETA 4/21

adyeung avatar Apr 18 '23 00:04 adyeung

Hi @qiluo-msft, would you please help to review?

keboliu avatar Jun 21 '23 03:06 keboliu

LGTM

ayurkiv-nvda avatar Jun 21 '23 09:06 ayurkiv-nvda

@qiluo-msft review comments have been fixed , would you please take a look?

keboliu avatar Aug 12 '23 02:08 keboliu

Enhancement, no for cherry-pick.

StormLiangMS avatar Aug 14 '23 07:08 StormLiangMS

Hi @StormLiangMS it's a fix to https://github.com/sonic-net/sonic-buildimage/issues/11007, not only an Enhancement.

keboliu avatar Aug 16 '23 03:08 keboliu