Skip to content

Fix BMP tests#17179

Merged
StormLiangMS merged 4 commits intosonic-net:masterfrom
vivekverma-arista:fix-bmt-tests
Mar 6, 2025
Merged

Fix BMP tests#17179
StormLiangMS merged 4 commits intosonic-net:masterfrom
vivekverma-arista:fix-bmt-tests

Conversation

@vivekverma-arista
Copy link
Contributor

@vivekverma-arista vivekverma-arista commented Feb 26, 2025

Description of PR

Summary: Fix BMP tests
Fixes #459

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

bmp/test_bmp_statedb.py and bmp/test_docker_restart.py are failing as they try to test BMP without enabling it.

How did you do it?

Created a fixture to enable BMP. For the CLI to work we also need: sonic-net/sonic-buildimage#21863

How did you verify/test it?

Ran all tests in the BMP directory.

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link
Contributor

@FengPan-Frank FengPan-Frank left a comment

Choose a reason for hiding this comment

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

LGTM



def test_restart_bmp_docker(duthosts,
def test_restart_bmp_docker(duthosts, enable_bmp_feature,
Copy link
Contributor

@FengPan-Frank FengPan-Frank Feb 27, 2025

Choose a reason for hiding this comment

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

Thanks @vivekverma-arista for making this fix, I've leave one comment on sonic-net/sonic-buildimage#21863 for further discussing.

Copy link
Contributor

Choose a reason for hiding this comment

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

@vivekverma-arista could you help to fix the flake8 failure?

@StormLiangMS
Copy link
Collaborator

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

StormLiangMS
StormLiangMS previously approved these changes Feb 27, 2025
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 @vivekverma-arista could you check the static failure?
image

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vivekverma-arista
Copy link
Contributor Author

hi @vivekverma-arista could you check the static failure? image

Done

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 StormLiangMS merged commit d9aa087 into sonic-net:master Mar 6, 2025
13 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 6, 2025
What is the motivation for this PR?
bmp/test_bmp_statedb.py and bmp/test_docker_restart.py are failing as they try to test BMP without enabling it.

How did you do it?
Created a fixture to enable BMP. For the CLI to work we also need: sonic-net/sonic-buildimage#21863

How did you verify/test it?
Ran all tests in the BMP directory.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202411: #17397

@mssonicbld mssonicbld mentioned this pull request Mar 6, 2025
11 tasks
mssonicbld pushed a commit that referenced this pull request Mar 11, 2025
What is the motivation for this PR?
bmp/test_bmp_statedb.py and bmp/test_docker_restart.py are failing as they try to test BMP without enabling it.

How did you do it?
Created a fixture to enable BMP. For the CLI to work we also need: sonic-net/sonic-buildimage#21863

How did you verify/test it?
Ran all tests in the BMP directory.
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
What is the motivation for this PR?
bmp/test_bmp_statedb.py and bmp/test_docker_restart.py are failing as they try to test BMP without enabling it.

How did you do it?
Created a fixture to enable BMP. For the CLI to work we also need: sonic-net/sonic-buildimage#21863

How did you verify/test it?
Ran all tests in the BMP directory.
vivekverma-arista added a commit to vivekverma-arista/sonic-mgmt that referenced this pull request Mar 19, 2025
StormLiangMS pushed a commit that referenced this pull request Mar 20, 2025
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 20, 2025
mssonicbld pushed a commit that referenced this pull request Mar 20, 2025
amulyan7 pushed a commit to amulyan7/sonic-mgmt that referenced this pull request Mar 31, 2025
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
What is the motivation for this PR?
bmp/test_bmp_statedb.py and bmp/test_docker_restart.py are failing as they try to test BMP without enabling it.

How did you do it?
Created a fixture to enable BMP. For the CLI to work we also need: sonic-net/sonic-buildimage#21863

How did you verify/test it?
Ran all tests in the BMP directory.
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
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