Add data plane test in stress acl script#7549
Merged
xwjiang-ms merged 4 commits intosonic-net:masterfrom Mar 2, 2023
Merged
Conversation
What is the motivation for this PR? Stress acl test will continuously add/delete acl rules by writing config db, but the action is asynchronous with asic, that may cause some timing issue like sonic-net#7396 How did you do it? The purpose of this testcase is to test stability when add/delete acl rules, not to test responding speed, so add data plane test in this case. Data plane test will increase test time, so reduce loop times, will run confident in weekend nightly test. How did you verify/test it? Run tests Any platform specific information? Supported testbed topology if it's a new test case?
bingwang-ms
reviewed
Feb 23, 2023
bingwang-ms
reviewed
Feb 23, 2023
bingwang-ms
reviewed
Feb 23, 2023
Collaborator
|
The current testing logic is always add ACL rules, and then removing them all. Can we also add a scenario, where we delete some of the existing rules, and then append some rules? It's because we never clear all rules in production. We are always deleting/updating/appending. Thanks |
2. Fix other comments
Contributor
Author
@bingwang-ms Can't use "sonic-cfggen" to add json string, can only use json file, so delete a random acl rule, and add one behind previous rules. |
bingwang-ms
reviewed
Feb 28, 2023
bingwang-ms
reviewed
Feb 28, 2023
bingwang-ms
reviewed
Feb 28, 2023
bingwang-ms
reviewed
Mar 1, 2023
bingwang-ms
reviewed
Mar 1, 2023
bingwang-ms
approved these changes
Mar 1, 2023
wangxin
pushed a commit
that referenced
this pull request
Mar 6, 2023
* Add data plane test in stress acl script What is the motivation for this PR? Stress acl test will continuously add/delete acl rules by writing config db, but the action is asynchronous with asic, that may cause some timing issue like #7396 How did you do it? The purpose of this testcase is to test stability when add/delete acl rules, not to test responding speed, so add data plane test in this case. Data plane test will increase test time, so reduce loop times, will run confident in weekend nightly test. How did you verify/test it? Run tests Any platform specific information? Supported testbed topology if it's a new test case?
wangxin
pushed a commit
that referenced
this pull request
Mar 6, 2023
* Add data plane test in stress acl script What is the motivation for this PR? Stress acl test will continuously add/delete acl rules by writing config db, but the action is asynchronous with asic, that may cause some timing issue like #7396 How did you do it? The purpose of this testcase is to test stability when add/delete acl rules, not to test responding speed, so add data plane test in this case. Data plane test will increase test time, so reduce loop times, will run confident in weekend nightly test. How did you verify/test it? Run tests Any platform specific information? Supported testbed topology if it's a new test case?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Stress acl test will continuously add/delete acl rules by writing config db, but the action is asynchronous with asic, that may cause some timing issue like #7396
How did you do it?
The purpose of this testcase is to test stability when add/delete acl rules, not to test responding speed, so add data plane test in this case.
Data plane test will increase test time, so reduce loop times, will run confident in weekend nightly test.
How did you verify/test it?
Run tests
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation