[T2] Add case to test lossy fair-voq#10838
Conversation
Signed-off-by: Zhixin Zhu <zhixzhu@cisco.com>
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Signed-off-by: Zhixin Zhu <zhixzhu@cisco.com>
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Signed-off-by: Zhixin Zhu <zhixzhu@cisco.com>
|
Please resolve the conflict. |
Signed-off-by: Zhixin Zhu <zhixzhu@cisco.com>
|
@abdosi conflicts resolved. |
What is the motivation for this PR? PR #10382 caused below two KeyError: @pytest.fixture(scope="function", autouse=False) def skip_pacific_dst_asic(self, dutConfig): > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' if "wm_pg_shared_lossless" in pgProfile: pktsNumFillShared = qosConfig[pgProfile]["pkts_num_trig_pfc"] elif "wm_pg_shared_lossy" in pgProfile: > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' and remove duplicated code in PR #11553 and PR #10838, it will cause pre-commit failure @pytest.fixture(scope="function", autouse=False) def skip_longlink(self, dutQosConfig): portSpeedCableLength = dutQosConfig["portSpeedCableLength"] match = re.search("_([0-9]*)m", portSpeedCableLength) if match and int(match.group(1)) > 2000: pytest.skip( "This test is skipped for longlink.") yield return How did you do it? fix keyerror and remove duplicated code
What is the motivation for this PR? PR sonic-net#10382 caused below two KeyError: @pytest.fixture(scope="function", autouse=False) def skip_pacific_dst_asic(self, dutConfig): > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' if "wm_pg_shared_lossless" in pgProfile: pktsNumFillShared = qosConfig[pgProfile]["pkts_num_trig_pfc"] elif "wm_pg_shared_lossy" in pgProfile: > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' and remove duplicated code in PR sonic-net#11553 and PR sonic-net#10838, it will cause pre-commit failure @pytest.fixture(scope="function", autouse=False) def skip_longlink(self, dutQosConfig): portSpeedCableLength = dutQosConfig["portSpeedCableLength"] match = re.search("_([0-9]*)m", portSpeedCableLength) if match and int(match.group(1)) > 2000: pytest.skip( "This test is skipped for longlink.") yield return How did you do it? fix keyerror and remove duplicated code
What is the motivation for this PR? PR sonic-net#10382 caused below two KeyError: @pytest.fixture(scope="function", autouse=False) def skip_pacific_dst_asic(self, dutConfig): > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' if "wm_pg_shared_lossless" in pgProfile: pktsNumFillShared = qosConfig[pgProfile]["pkts_num_trig_pfc"] elif "wm_pg_shared_lossy" in pgProfile: > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' and remove duplicated code in PR sonic-net#11553 and PR sonic-net#10838, it will cause pre-commit failure @pytest.fixture(scope="function", autouse=False) def skip_longlink(self, dutQosConfig): portSpeedCableLength = dutQosConfig["portSpeedCableLength"] match = re.search("_([0-9]*)m", portSpeedCableLength) if match and int(match.group(1)) > 2000: pytest.skip( "This test is skipped for longlink.") yield return How did you do it? fix keyerror and remove duplicated code
What is the motivation for this PR? PR #10382 caused below two KeyError: @pytest.fixture(scope="function", autouse=False) def skip_pacific_dst_asic(self, dutConfig): > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' if "wm_pg_shared_lossless" in pgProfile: pktsNumFillShared = qosConfig[pgProfile]["pkts_num_trig_pfc"] elif "wm_pg_shared_lossy" in pgProfile: > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' and remove duplicated code in PR #11553 and PR #10838, it will cause pre-commit failure @pytest.fixture(scope="function", autouse=False) def skip_longlink(self, dutQosConfig): portSpeedCableLength = dutQosConfig["portSpeedCableLength"] match = re.search("_([0-9]*)m", portSpeedCableLength) if match and int(match.group(1)) > 2000: pytest.skip( "This test is skipped for longlink.") yield return How did you do it? fix keyerror and remove duplicated code
What is the motivation for this PR? PR #10382 caused below two KeyError: @pytest.fixture(scope="function", autouse=False) def skip_pacific_dst_asic(self, dutConfig): > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' if "wm_pg_shared_lossless" in pgProfile: pktsNumFillShared = qosConfig[pgProfile]["pkts_num_trig_pfc"] elif "wm_pg_shared_lossy" in pgProfile: > if dutConfig['dstDutAsic'] == "pac": E KeyError: 'dstDutAsic' and remove duplicated code in PR #11553 and PR #10838, it will cause pre-commit failure @pytest.fixture(scope="function", autouse=False) def skip_longlink(self, dutQosConfig): portSpeedCableLength = dutQosConfig["portSpeedCableLength"] match = re.search("_([0-9]*)m", portSpeedCableLength) if match and int(match.group(1)) > 2000: pytest.skip( "This test is skipped for longlink.") yield return How did you do it? fix keyerror and remove duplicated code
|
To avoid duplicate function "skip_longlink", here is the PR for 202305: #11904 |
Double commit #10838 1, Add a new case to test lossy fair-voq. 2, Add lossy_queue_voq_2 and lossy_queue_voq_3 to qos_param_generator.py. Default-voq and fair-voq will pass lossy_queue_voq_2, fair-voq and split-voq will pass lossy_queue_voq_3. Signed-off-by: Zhixin Zhu <zhixzhu@cisco.com>
|
@kevinskwang can you help to approve cherry-pick to 202311 branch? |
1, Add a new case to test lossy fair-voq. 2, Add lossy_queue_voq_2 and lossy_queue_voq_3 to qos_param_generator.py. Default-voq and fair-voq will pass lossy_queue_voq_2, fair-voq and split-voq will pass lossy_queue_voq_3.
|
Cherry-pick PR to 202311: #14447 |
|
@zhixzhu PR conflicts with 202405 branch |
|
This PR had been included in 202305 and 202405. |
Description of PR
1, Add a new case to test lossy fair-voq.
2, Add lossy_queue_voq_2 and lossy_queue_voq_3 to qos_param_generator.py.
Default-voq and fair-voq will pass lossy_queue_voq_2, fair-voq and split-voq will pass lossy_queue_voq_3.
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Case testQosSaiLossyQueueVoqMultiSrc
vanguard(Q200 longlink, default voq) skipped:
lancer(Q200 shortlink, fair voq) passed:
Case testQosSaiLossyQueueVoq
Vanguard skipped lossy_queue_voq_1, passed lossy_queue_voq_2.
Lancer skipped lossy_queue_voq_1, passed lossy_queue_voq_2.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation