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

Fix vs test failure in test_buffer_traditional #1881

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

stephenxs
Copy link
Collaborator

What I did

The test expects buffer PGs created for all ports.
However, the vs image is deployed as cable length being 0m,
which prevents the buffer PGs from being created and fails the test.

To fix the failure:

  • Config the cable length of the port under test to 300m if it was 0m
  • Startup the port after cable length configured
    By doing that the buffer PG can be configured correctly
  • Collect the orig_profiles after the port is started up
    This is required to check whether the new profile has been created after cable length/speed is changed.

Signed-off-by: Stephen Sun stephens@nvidia.com

Why I did it

How I verified it

Details if related

@stephenxs stephenxs requested review from neethajohn and prsunny and removed request for prsunny August 18, 2021 12:04
@prsunny
Copy link
Collaborator

prsunny commented Aug 18, 2021

Ref: #1875

@stephenxs
Copy link
Collaborator Author

Ref: #1875

Thanks. Will remove the "skip".

The test expectes buffer PGs created for all ports.
However, the vs image is deployed as cable length being 0m,
which provides the buffer PGs to be created and fails the test.

To fix the failure:
- Config the cable length of port under test to 300m if it was 0m
- Startup the port after cable length configured
  By doing that the buffer PG can be configured correctly
- Collect the orig_profiles after port is started up

Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
@liat-grozovik
Copy link
Collaborator

@prsunny and @neethajohn kindly reminder for the review.

@neethajohn neethajohn merged commit db9ca83 into sonic-net:master Aug 27, 2021
@stephenxs stephenxs deleted the fix-buffer-traditional-test branch August 27, 2021 22:26
qiluo-msft pushed a commit that referenced this pull request Aug 30, 2021
Ref: #1875

The test expects buffer PGs created for all ports.
However, the vs image is deployed as cable length being 0m,
which provides the buffer PGs to be created and fails the test.

To fix the failure:
- Config the cable length of port under test to 300m if it was 0m
- Startup the port after cable length configured
  By doing that the buffer PG can be configured correctly
- Collect the orig_profiles after port is started up

Signed-off-by: Stephen Sun <stephens@nvidia.com>
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
Ref: sonic-net#1875

The test expects buffer PGs created for all ports.
However, the vs image is deployed as cable length being 0m,
which provides the buffer PGs to be created and fails the test.

To fix the failure:
- Config the cable length of port under test to 300m if it was 0m
- Startup the port after cable length configured
  By doing that the buffer PG can be configured correctly
- Collect the orig_profiles after port is started up

Signed-off-by: Stephen Sun <stephens@nvidia.com>
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.

5 participants