Skip to content

[sonic-bootchart] add sonic-bootchart#2195

Merged
liat-grozovik merged 8 commits intosonic-net:masterfrom
stepanblyschak:sboot
Jul 18, 2022
Merged

[sonic-bootchart] add sonic-bootchart#2195
liat-grozovik merged 8 commits intosonic-net:masterfrom
stepanblyschak:sboot

Conversation

@stepanblyschak
Copy link
Copy Markdown
Contributor

What I did

Implemented sonic-net/SONiC#1001

How I did it

Added a new sonic-bootchart script and added UT for it

How to verify it

Run on the switch. Depends on sonic-net/sonic-buildimage#11047

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)

Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
@stepanblyschak stepanblyschak marked this pull request as ready for review June 6, 2022 16:12
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jun 6, 2022

This pull request introduces 1 alert when merging 8b76cb0 into 3197f39 - view on LGTM.com

new alerts:

  • 1 for Unused import

@stepanblyschak
Copy link
Copy Markdown
Contributor Author

@qiluo-msft Could you please review?


samples = int(bootchart_config["Bootchart"]["Samples"])
frequency = int(bootchart_config["Bootchart"]["Frequency"])
time = samples // frequency
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Jul 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

frequency

Check input for zero? #Closed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And add testcase.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qiluo-msft Added Config parsing error handling (expected key not found, non integer value and zero frequency) and corresponding unit tests

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@qiluo-msft could you please help to review and signoff following to review feedback handling?

@liat-grozovik liat-grozovik merged commit ea11b22 into sonic-net:master Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants