Skip to content

Fix vs test failure in test_buffer_traditional#1881

Merged
neethajohn merged 2 commits intosonic-net:masterfrom
stephenxs:fix-buffer-traditional-test
Aug 27, 2021
Merged

Fix vs test failure in test_buffer_traditional#1881
neethajohn merged 2 commits intosonic-net:masterfrom
stephenxs:fix-buffer-traditional-test

Conversation

@stephenxs
Copy link
Copy Markdown
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 [email protected]

Why I did it

How I verified it

Details if related

@stephenxs stephenxs requested a review from prsunny as a code owner August 18, 2021 12:03
@stephenxs stephenxs requested review from neethajohn and prsunny and removed request for prsunny August 18, 2021 12:04
@prsunny
Copy link
Copy Markdown
Collaborator

prsunny commented Aug 18, 2021

Ref: #1875

@stephenxs
Copy link
Copy Markdown
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 <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
@stephenxs stephenxs force-pushed the fix-buffer-traditional-test branch from de477d0 to b4373c9 Compare August 18, 2021 23:56
@liat-grozovik
Copy link
Copy Markdown
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 <[email protected]>
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 <[email protected]>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
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 <[email protected]>
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