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

[action] [PR:9896] Adding COUNTER_MARGIN to Ingress drop counters for qos tests #10390

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Adding COUNTER_MARGIN to ingress drop counter for below test scenarios to avoid flakey results.

  • TestQosSai.testQosSaiPfcXoffLimit
  • TestQosSai.testQosSaiPfcXonLimit
  • TestQosSai.testQosSaiLossyQueue

Summary:
Sometimes for dnx, few extra ipv6 NS/RA pkt received from VM which get added to counter value & may give inconsistent test results.
Adding COUNTER_MARGIN to provide room to 2 extra pkt incase, extra traffic received. This will avoid inconsistent results on qos test.
Below tests are updated:

  • TestQosSai.testQosSaiPfcXoffLimit
  • TestQosSai.testQosSaiPfcXonLimit
  • TestQosSai.testQosSaiLossyQueue
    Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

Sometimes for dnx, few extra ipv6 NS/RA pkt received from VM which get added to counter value & may give inconsistent test results.
Providing room for 2 pkts (COUNTER_MARGIN) incase, extra traffic received.
Below test are updated:

  • TestQosSai.testQosSaiPfcXoffLimit
  • TestQosSai.testQosSaiPfcXonLimit
  • TestQosSai.testQosSaiLossyQueue

What is the motivation for this PR?

Inconsistent results on qos test runs

How did you do it?

How did you verify/test it?

Executed qos tests & verify the results.

Any platform specific information?

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

Documentation

…et#9896)

* Qos_LossyQueueTest fix_adding COUNTER MARGIN

* Adding COUNTER_MARGIN to qos PFCXonTest

* Adding COUNTER_MARGIN to qos PFCTest

* Flake8 fixes

* testQosSaiPFCXoffLimit updated with correct check

* Conditional check corrected for LossyQueueTest

* flake8 fix
@mssonicbld
Copy link
Collaborator Author

Original PR: #9896

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit ecb8822 into sonic-net:202305 Oct 20, 2023
12 checks passed
@mssonicbld mssonicbld deleted the cherry/202305/9896 branch February 4, 2024 09:28
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.

2 participants