Skip to content

Add monit test case with disable bmp but enable frr_bmp feature switch to block regression#18615

Merged
qiluo-msft merged 4 commits intosonic-net:masterfrom
FengPan-Frank:frr_bmp_verify
May 27, 2025
Merged

Add monit test case with disable bmp but enable frr_bmp feature switch to block regression#18615
qiluo-msft merged 4 commits intosonic-net:masterfrom
FengPan-Frank:frr_bmp_verify

Conversation

@FengPan-Frank
Copy link
Copy Markdown
Contributor

@FengPan-Frank FengPan-Frank commented May 26, 2025

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Add monit test case with disable bmp but enable frr_bmp feature switch to block regression

How did you do it?

Add one more test for monit syslog checking and disable bmp in advance which reflects real production config.

How did you verify/test it?

New test case passed without issue
image

Used old image which does not have monit fix sonic-net/sonic-buildimage#22588 it broke the test case

image

With new image all test verification with frr_bmp enable + bmp disable are also passed, result could be found https://dev.azure.com/mssonic/build/_build/results?buildId=859705&view=results

Any platform specific information?

N/A

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

N/A

Documentation

@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).

@FengPan-Frank FengPan-Frank requested a review from qiluo-msft May 26, 2025 11:36
]


def test_frr_bmp_bgp_facts(duthosts, enum_frontend_dut_hostname, enum_asic_index):
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft May 26, 2025

Choose a reason for hiding this comment

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

test_frr_bmp_bgp_facts

The purpose of this testcase is to prevent regression. Did you test it with a bad image, and see the result is failure? I guess it will catch monit ERR log.
#Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated into PR desc.

def test_frr_bmp_bgp_facts(duthosts, enum_frontend_dut_hostname, enum_asic_index):
duthost = duthosts[enum_frontend_dut_hostname]
disable_bmp_feature(duthost)
run_bgp_facts(duthost, enum_asic_index)
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft May 26, 2025

Choose a reason for hiding this comment

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

run_bgp_facts

Is it possible run_bgp_facts runs so fast and there is no monit ERR log with a bad image? #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed to use check_monit_expected_container_logging

@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 changed the title Add test case with disable bmp but enable frr_bmp feature switch Add monit test case with disable bmp but enable frr_bmp feature switch to block regression May 27, 2025
@qiluo-msft qiluo-msft merged commit 37b2ef3 into sonic-net:master May 27, 2025
18 checks passed
bachalla pushed a commit to bachalla/sonic-mgmt that referenced this pull request Jun 2, 2025
…h to block regression (sonic-net#18615)

Approach
What is the motivation for this PR?
Add monit test case with disable bmp but enable frr_bmp feature switch to block regression

How did you do it?
Add one more test for monit syslog checking and disable bmp in advance which reflects real production config.

How did you verify/test it?
New test case passed without issue

Used old image which does not have monit fix sonic-net/sonic-buildimage#22588 it broke the test case

With new image all test verification with frr_bmp enable + bmp disable are also passed, result could be found https://dev.azure.com/mssonic/build/_build/results?buildId=859705&view=results
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…h to block regression (sonic-net#18615)

Approach
What is the motivation for this PR?
Add monit test case with disable bmp but enable frr_bmp feature switch to block regression

How did you do it?
Add one more test for monit syslog checking and disable bmp in advance which reflects real production config.

How did you verify/test it?
New test case passed without issue

Used old image which does not have monit fix sonic-net/sonic-buildimage#22588 it broke the test case

With new image all test verification with frr_bmp enable + bmp disable are also passed, result could be found https://dev.azure.com/mssonic/build/_build/results?buildId=859705&view=results

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…h to block regression (sonic-net#18615)

Approach
What is the motivation for this PR?
Add monit test case with disable bmp but enable frr_bmp feature switch to block regression

How did you do it?
Add one more test for monit syslog checking and disable bmp in advance which reflects real production config.

How did you verify/test it?
New test case passed without issue

Used old image which does not have monit fix sonic-net/sonic-buildimage#22588 it broke the test case

With new image all test verification with frr_bmp enable + bmp disable are also passed, result could be found https://dev.azure.com/mssonic/build/_build/results?buildId=859705&view=results

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…h to block regression (sonic-net#18615)

Approach
What is the motivation for this PR?
Add monit test case with disable bmp but enable frr_bmp feature switch to block regression

How did you do it?
Add one more test for monit syslog checking and disable bmp in advance which reflects real production config.

How did you verify/test it?
New test case passed without issue

Used old image which does not have monit fix sonic-net/sonic-buildimage#22588 it broke the test case

With new image all test verification with frr_bmp enable + bmp disable are also passed, result could be found https://dev.azure.com/mssonic/build/_build/results?buildId=859705&view=results

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…h to block regression (sonic-net#18615)

Approach
What is the motivation for this PR?
Add monit test case with disable bmp but enable frr_bmp feature switch to block regression

How did you do it?
Add one more test for monit syslog checking and disable bmp in advance which reflects real production config.

How did you verify/test it?
New test case passed without issue

Used old image which does not have monit fix sonic-net/sonic-buildimage#22588 it broke the test case

With new image all test verification with frr_bmp enable + bmp disable are also passed, result could be found https://dev.azure.com/mssonic/build/_build/results?buildId=859705&view=results

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants