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

[auto-ts] add memory check #10433

Merged
merged 7 commits into from
Jun 20, 2022
Merged

Conversation

stepanblyschak
Copy link
Collaborator

@stepanblyschak stepanblyschak commented Apr 1, 2022

Why I did it

To support automatic techsupport invokation in case memory usage is too high.

How I did it

Implemented according to sonic-net/SONiC#939

How to verify it

UT, manual test on the switch.

DEPENDS on sonic-net/sonic-utilities#2116

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

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>
vivekrnv
vivekrnv previously approved these changes Apr 4, 2022
@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@qiluo-msft could you please help to review or suggest someone who should? This is a feature for 202205

@liat-grozovik
Copy link
Collaborator

@stepanblyschak could you please update your PR to the latest so we can ensure build failures are behind us?

@stepanblyschak
Copy link
Collaborator Author

@liat-grozovik It makes sense to run the checks after the dependency PR is merged and utilities submodule is updated

@qiluo-msft qiluo-msft requested a review from ganglyu May 11, 2022 17:46
description "Minimum Free memory (in MB) that should be available for the techsupport execution to start";
type uint32;
default 200;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add unit test for these two new fields?

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@zhangyanzhao
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stepanblyschak
Copy link
Collaborator Author

@ganglyu @liat-grozovik Could you please help to merge?

@qiluo-msft qiluo-msft merged commit 42576d2 into sonic-net:master Jun 20, 2022
@stepanblyschak stepanblyschak deleted the auto-ts-mem branch September 23, 2022 13:34
yxieca pushed a commit that referenced this pull request Oct 3, 2022
#### Why I did it

To support automatic techsupport invokation in case memory usage is too high.

#### How I did it

Implemented according to sonic-net/SONiC#939

#### How to verify it

UT, manual test on the switch.

*DEPENDS* on sonic-net/sonic-utilities#2116
yxieca added a commit that referenced this pull request Oct 4, 2022
@yxieca
Copy link
Contributor

yxieca commented Oct 4, 2022

@stepanblyschak I've reverted this change in 202205 branch because it is causing test failure. Is this a feature or bug fix? Why do we need it in 202205 branch?

@stepanblyschak
Copy link
Collaborator Author

stepanblyschak commented Oct 5, 2022

@yxieca Which test is failing? I see that the following dependency PR hasn't yet in buildimage sonic-net/sonic-utilities#2413.

This is a feature which was planned for 202205 but hasn't been backported in time.

First submodule update: #12281
Second: This PR cherry-pick
Third: auto ts test update sonic-net/sonic-mgmt#6466

stepanblyschak added a commit to stepanblyschak/sonic-buildimage that referenced this pull request Oct 6, 2022
#### Why I did it

To support automatic techsupport invokation in case memory usage is too high.

#### How I did it

Implemented according to sonic-net/SONiC#939

#### How to verify it

UT, manual test on the switch.

*DEPENDS* on sonic-net/sonic-utilities#2116
volodymyrsamotiy added a commit to volodymyrsamotiy/sonic-buildimage that referenced this pull request Oct 6, 2022
yxieca pushed a commit that referenced this pull request Oct 6, 2022
#### Why I did it

To support automatic techsupport invokation in case memory usage is too high.

#### How I did it

Implemented according to sonic-net/SONiC#939

#### How to verify it

UT, manual test on the switch.

*DEPENDS* on sonic-net/sonic-utilities#2116
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.

8 participants