Skip to content

Add E2E bmp feature test cases#15749

Merged
qiluo-msft merged 25 commits intosonic-net:masterfrom
FengPan-Frank:bmptest
Feb 7, 2025
Merged

Add E2E bmp feature test cases#15749
qiluo-msft merged 25 commits intosonic-net:masterfrom
FengPan-Frank:bmptest

Conversation

@FengPan-Frank
Copy link
Copy Markdown
Contributor

@FengPan-Frank FengPan-Frank commented Nov 26, 2024

Description of PR

Add E2E test cases for bmp feature, including below main workflow

config cli
new redis-server bmp instance
systemctl service
bmp_state_db population

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 test cases for bmp feature, including config cli, redis-server instance, systemctl service, bmp_state_db population

How did you do it?

Added relevant bmp feature test cases

How did you verify/test it?

via mgmt pipeline test.

image

Any platform specific information?

single asic only.

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

Documentation

@FengPan-Frank FengPan-Frank marked this pull request as draft November 26, 2024 12:49
@mssonicbld
Copy link
Copy Markdown
Collaborator

The pre-commit check detected issues in the files touched by this pull request.
The pre-commit check is a mandatory check, please fix detected issues.

Detailed pre-commit check results:
trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook

Fixing tests/bmp/test_db_instace.py

fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing tests/bmp/conftest.py
Fixing tests/common/helpers/bmp_utils.py
Fixing tests/bmp/helper.py

check yaml...........................................(no files to check)Skipped
check for added large files..............................................Passed
check python ast.........................................................Passed
flake8...................................................................Failed
...
[truncated extra lines, please run pre-commit locally to view full check results]

To run the pre-commit checks locally, you can follow below steps:

  1. Ensure that default python is python3. In sonic-mgmt docker container, default python is python2. You can run
    the check by activating the python3 virtual environment in sonic-mgmt docker container or outside of sonic-mgmt
    docker container.
  2. Ensure that the pre-commit package is installed:
sudo pip install pre-commit
  1. Go to repository root folder
  2. Install the pre-commit hooks:
pre-commit install
  1. Use pre-commit to check staged file:
pre-commit
  1. Alternatively, you can check committed files using:
pre-commit run --from-ref <commit_id> --to-ref <commit_id>

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@FengPan-Frank FengPan-Frank marked this pull request as ready for review January 23, 2025 14:05
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft enabled auto-merge (squash) February 7, 2025 05:10
@qiluo-msft qiluo-msft merged commit 7ea4711 into sonic-net:master Feb 7, 2025
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 7, 2025
Description of PR
Add E2E test cases for bmp feature, including below main workflow

config cli
new redis-server bmp instance
systemctl service
bmp_state_db population

Approach
What is the motivation for this PR?
Add test cases for bmp feature, including config cli, redis-server instance, systemctl service, bmp_state_db population

How did you do it?
Added relevant bmp feature test cases

How did you verify/test it?
via mgmt pipeline test.

Any platform specific information?
single asic only.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202411: #16850

mssonicbld pushed a commit that referenced this pull request Feb 7, 2025
Description of PR
Add E2E test cases for bmp feature, including below main workflow

config cli
new redis-server bmp instance
systemctl service
bmp_state_db population

Approach
What is the motivation for this PR?
Add test cases for bmp feature, including config cli, redis-server instance, systemctl service, bmp_state_db population

How did you do it?
Added relevant bmp feature test cases

How did you verify/test it?
via mgmt pipeline test.

Any platform specific information?
single asic only.
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
Description of PR
Add E2E test cases for bmp feature, including below main workflow

config cli
new redis-server bmp instance
systemctl service
bmp_state_db population

Approach
What is the motivation for this PR?
Add test cases for bmp feature, including config cli, redis-server instance, systemctl service, bmp_state_db population

How did you do it?
Added relevant bmp feature test cases

How did you verify/test it?
via mgmt pipeline test.

Any platform specific information?
single asic only.
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.

3 participants