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

[GCU E2E Testing] Update RDMA GCU E2E Tests #8341

Merged
merged 8 commits into from
Jun 12, 2023

Conversation

isabelmsft
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)
Update GCU RDMA E2E tests to consider the RDMA platform validator check PR sonic-net/sonic-utilities#2791

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Due to sonic-net/sonic-utilities#2791, expected behavior of GCU E2E RDMA tests changed. This PR accounts for the expected changes in GCU RDMA scenarios.

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Collaborator

The pre-commit check detected issues in the files touched by this pull request.
The pre-commit check is a mandatory check, please fix detected issues.

Detailed pre-commit check results:
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check for added large files..............................................Passed
check python ast.........................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

tests/generic_config_updater/gu_utils.py:1:1: F401 'os' imported but unused
tests/generic_config_updater/gu_utils.py:296:16: F821 undefined name 'get_gcu_field_operations_conf'
tests/generic_config_updater/gu_utils.py:326:16: F821 undefined name 'get_gcu_field_operations_conf'
tests/generic_config_updater/gu_utils.py:327:120: E261 at least two spaces before inline comment
tests/generic_config_updater/gu_utils.py:327:121: E501 line too long (179 > 120 characters)
tests/generic_config_updater/test_ecn_config_update.py:103:13: F821 undefined name 'expect_op_failure'

check conditional mark sort..........................(no files to check)Skipped

To run the pre-commit checks locally, you can follow below steps:

  1. Ensure that default python is python3. In sonic-mgmt docker container, default python is python2. You can run
    the check by activating the python3 virtual environment in sonic-mgmt docker container or outside of sonic-mgmt
    docker container.
  2. Ensure that the pre-commit package is installed:
sudo pip install pre-commit
  1. Go to repository root folder
  2. Install the pre-commit hooks:
pre-commit install
  1. Use pre-commit to check staged file:
pre-commit
  1. Alternatively, you can check committed files using:
pre-commit run --from-ref <commit_id> --to-ref <commit_id>

qiluo-msft pushed a commit that referenced this pull request May 19, 2023
### Description of PR
Summary:
There is a dependency between E2E test improvements PR: #8341 and sonic-utilities GCU RDMA feature PR: sonic-net/sonic-utilities#2791

This PR skips the RDMA tests that will fail when the platform GCU RDMA feature PR is merged. After the GCU RDMA feature PR is merged and backported to the appropriate branch, we will revert this PR to stop skipping the E2E tests, and merge the E2E test improvements PR so that the tests will pass once the feature changes take effect.
qiluo-msft
qiluo-msft previously approved these changes May 31, 2023
if asic_type == 'broadcom' or asic_type == 'vs':
broadcom_asics = asic_mapping["broadcom_asics"]
for asic_shorthand, hwskus in broadcom_asics.items():
if asic != "unknown":
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 8, 2023

Choose a reason for hiding this comment

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

asic

The if-block is not needed. You may consider inner loop with for-else-break. #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, changed to for-else-break syntax.

@wen587
Copy link
Contributor

wen587 commented Jun 9, 2023

LGTM

@isabelmsft isabelmsft merged commit c8c8a95 into sonic-net:master Jun 12, 2023
isabelmsft added a commit to isabelmsft/sonic-mgmt that referenced this pull request Jun 13, 2023
@mssonicbld
Copy link
Collaborator

@isabelmsft PR conflicts with 202205 branch

wangxin pushed a commit that referenced this pull request Jun 14, 2023
Cherry-pick PR #8341 into 202205 branch, manual to resolve merge conflicts
bingwang-ms added a commit that referenced this pull request Jun 19, 2023
yxieca pushed a commit that referenced this pull request Jun 19, 2023
wangxin pushed a commit that referenced this pull request Jun 29, 2023
…8702)

Cherry-pick PR #8341 into 202205 branch, manual to resolve merge conflicts
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
### Description of PR
Summary:
There is a dependency between E2E test improvements PR: sonic-net#8341 and sonic-utilities GCU RDMA feature PR: sonic-net/sonic-utilities#2791

This PR skips the RDMA tests that will fail when the platform GCU RDMA feature PR is merged. After the GCU RDMA feature PR is merged and backported to the appropriate branch, we will revert this PR to stop skipping the E2E tests, and merge the E2E test improvements PR so that the tests will pass once the feature changes take effect.
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
### Description of PR
Summary:
There is a dependency between E2E test improvements PR: sonic-net#8341 and sonic-utilities GCU RDMA feature PR: sonic-net/sonic-utilities#2791

This PR skips the RDMA tests that will fail when the platform GCU RDMA feature PR is merged. After the GCU RDMA feature PR is merged and backported to the appropriate branch, we will revert this PR to stop skipping the E2E tests, and merge the E2E test improvements PR so that the tests will pass once the feature changes take effect.
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants