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

Add BBR testcases #14117

Merged
merged 4 commits into from
Sep 23, 2024
Merged

Add BBR testcases #14117

merged 4 commits into from
Sep 23, 2024

Conversation

Gfrom2016
Copy link
Contributor

@Gfrom2016 Gfrom2016 commented Aug 14, 2024

Description of PR

After the fix in sonic-net/sonic-buildimage#19590, add a new test case to test the bbr behavior after config reload.
Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Add a new case to verify the BBR initialized behavior.

How did you do it?

Add the following new case under test_bgp_bbr.py
test_bbr_status_consistent_after_reload

How did you verify/test it?

https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results

Any platform specific information?

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

Documentation

@StormLiangMS
Copy link
Collaborator

/azp run Azure.sonic-mgmt

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pytest.fixture(scope='module')
def setup(duthosts, rand_one_dut_hostname, tbinfo, nbrhosts):
duthost = duthosts[rand_one_dut_hostname]

constants_stat = duthost.stat(path=CONSTANTS_FILE)
if not constants_stat['stat']['exists']:
pytest.skip('No file {} on DUT, BBR is not supported')
pytest.skip('No constants.yml file on DUT, BBR is not supported')
Copy link
Contributor

Choose a reason for hiding this comment

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

If there is no constants.yml, is it a correct status? In my understanding, constants.yml should store many constans, right? If the file doesn't exist, it is in fatal condition, not just BBR is not supported, we have to fail the case, not just skip it, is it correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think constants file not exist should fail the case, it's not the bbr case's responsibility to make sure the file exists.

Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS
Copy link
Collaborator

hi @ZhaohuiS any concern to approve?

Copy link
Contributor

@ZhaohuiS ZhaohuiS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit b6d4924 into sonic-net:master Sep 23, 2024
16 checks passed
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
What is the motivation for this PR?
Add a new case to verify the BBR initialized behavior.

How did you do it?
Add the following new case under test_bgp_bbr.py
test_bbr_status_consistent_after_reload

How did you verify/test it?
https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
hdwhdw pushed a commit to hdwhdw/sonic-mgmt that referenced this pull request Oct 10, 2024
What is the motivation for this PR?
Add a new case to verify the BBR initialized behavior.

How did you do it?
Add the following new case under test_bgp_bbr.py
test_bbr_status_consistent_after_reload

How did you verify/test it?
https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Oct 12, 2024
What is the motivation for this PR?
Add a new case to verify the BBR initialized behavior.

How did you do it?
Add the following new case under test_bgp_bbr.py
test_bbr_status_consistent_after_reload

How did you verify/test it?
https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #14975

vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
What is the motivation for this PR?
Add a new case to verify the BBR initialized behavior.

How did you do it?
Add the following new case under test_bgp_bbr.py
test_bbr_status_consistent_after_reload

How did you verify/test it?
https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
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.

4 participants