-
Notifications
You must be signed in to change notification settings - Fork 741
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
Adding new ecn testcases for cisco-8000 platform. #6041
Adding new ecn testcases for cisco-8000 platform. #6041
Conversation
This pull request introduces 2 alerts and fixes 7 when merging 828f6c4 into 63c0375 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 2 alerts when merging b5e4f3f into 45b20e6 - view on LGTM.com new alerts:
|
My overall feeling is that current run_ecn_test is too complex. It has a mix of two mechanisms. Can we implement another run_ecn_test for Cisco only? |
@baiwei0427 : Thanks for your comments. I started with seperate functions one each for 1-1 and 3-1 cases, and then combined them all into the original function. There was a lot of similarity between them and the original function, so it was decided to merge them all. |
This pull request introduces 4 alerts when merging 29999c5 into 709d503 - view on LGTM.com new alerts:
|
tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
Outdated
Show resolved
Hide resolved
This pull request introduces 4 alerts when merging cea16d7 into 6738170 - view on LGTM.com new alerts:
|
This pull request introduces 4 alerts when merging fc69572 into 6738170 - view on LGTM.com new alerts:
|
@baiwei0427 : Pls let me know if you have comments on the latest code. |
@rraghav-cisco I will add comments asap. |
xoff_quanta=xoff_quanta, | ||
total=total, | ||
marked=marked_pkts)) | ||
print 'test done' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that there is no logic to judge if the test passes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is passed if run_ecn_test is successfully done. That function itself has the required asserts to check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is passed if run_ecn_test is successfully done. That function itself has the required asserts to check.
Where are the required asserts in run_ecn_test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@baiwei0427 , I was referring to the following checks. If any of them fails, the test will fail.
grep -n assert files/helper.py
4:from tests.common.helpers.assertions import pytest_assert
89: pytest_assert(testbed_config is not None, 'Failed to get L2/3 testbed config')
99: pytest_assert(config_result is True, 'Failed to configure WRED/ECN at the DUT')
108: pytest_assert(config_result is True, 'Failed to configure PFC threshold to 8')
116: pytest_assert(port_id is not None,
221: pytest_assert(len(tx_port_id_list) > 0, "Cannot find any TX ports")
224: pytest_assert(tx_port_id_list != [], "Cannot find a suitable TX port")
396: pytest_assert(attempts < max_attempts,
This pull request introduces 4 alerts when merging 3ae5665 into fc2108a - view on LGTM.com new alerts:
|
/azp run |
Commenter does not have sufficient privileges for PR 6041 in repo sonic-net/sonic-mgmt |
/easycla |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This needs to be merged after 6329 is merged. |
@kevinskwang Any update on azp failures ? |
Could you fix the conflict by first? |
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
@kevinskwang : Conflict is resolved. Pls check. |
This pull request introduces 4 alerts when merging a8879ce into f5cca01 - view on LGTM.com new alerts:
|
This reverts commit 9fda4e5.
Reverted as some import errors, please fix it and create a new PR for this. @rraghav-cisco |
@kevinskwang , sure. I will take it up after current priorities. Thanks. |
@rraghav-cisco Currently, we are not running any test cases in the ixia directory. All of our RDMA related test cases have been migrated to the snappi directory here. The new ecn test would go in this directory - https://github.com/sonic-net/sonic-mgmt/tree/master/tests/snappi/ecn. Please make the new code changes to this directory when you bring up the new PR. Thanks! |
New test case for cisco-8000 to demonstrate accuracy of ECN marking under continuous traffic when a single XOFF is injected.
Test is parameterized across several variables.
While waiting for IXIA to get number of ECN marked packets (Issue: open-traffic-generator/snappi-ixnetwork#541), we are using the counters from DUT, using the extension added via (#6040).