Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sonic-bootchart] add sonic-bootchart #2195

Merged
merged 8 commits into from
Jul 18, 2022

Conversation

stepanblyschak
Copy link
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 <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@stepanblyschak stepanblyschak marked this pull request as ready for review June 6, 2022 16:12
@lgtm-com
Copy link

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
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
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
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
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

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@liat-grozovik
Copy link
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