Merged
Conversation
- Key changes detected
of N unique keys while waiting
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
qiluo-msft
previously approved these changes
May 16, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
wangxin
approved these changes
May 22, 2025
qiluo-msft
approved these changes
May 22, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
Hi @qiluo-msft , |
Contributor
Author
Hi @honllum - I checked by running tests in my local environment from current HEAD ( |
11 tasks
bachalla
pushed a commit
to bachalla/sonic-mgmt
that referenced
this pull request
Jun 2, 2025
Description of PR Introduces a new method to access SONiC Redis database instance using redis-py native Python library instead of relying on sonic-db-cli. It also uses the Redis' pub-sub infrastructure to listen to key-space notifications to monitor DB changes instead of using the traditional wait_until which performs sleep->check cycle. Adds changes to perform SAI validation for ACL tests. Uses this library to monitor STATE_DB changes using the new notification library in test_bfd.py::test_bfd_basic. Approach What is the motivation for this PR? Motivation is to add a simple and easy to use library that allows tests (where applicable) to perform SAI validation and allow tests to use event notification-based method to monitor DB changes. How did you do it? Refer to description above. How did you verify/test it? Verified ACL tests (on t0) and BFD basic tests (on t1) testbeds.
Contributor
opcoder0
added a commit
to opcoder0/sonic-mgmt
that referenced
this pull request
Dec 8, 2025
Description of PR Introduces a new method to access SONiC Redis database instance using redis-py native Python library instead of relying on sonic-db-cli. It also uses the Redis' pub-sub infrastructure to listen to key-space notifications to monitor DB changes instead of using the traditional wait_until which performs sleep->check cycle. Adds changes to perform SAI validation for ACL tests. Uses this library to monitor STATE_DB changes using the new notification library in test_bfd.py::test_bfd_basic. Approach What is the motivation for this PR? Motivation is to add a simple and easy to use library that allows tests (where applicable) to perform SAI validation and allow tests to use event notification-based method to monitor DB changes. How did you do it? Refer to description above. How did you verify/test it? Verified ACL tests (on t0) and BFD basic tests (on t1) testbeds. Signed-off-by: opcoder0 <[email protected]>
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
Description of PR Introduces a new method to access SONiC Redis database instance using redis-py native Python library instead of relying on sonic-db-cli. It also uses the Redis' pub-sub infrastructure to listen to key-space notifications to monitor DB changes instead of using the traditional wait_until which performs sleep->check cycle. Adds changes to perform SAI validation for ACL tests. Uses this library to monitor STATE_DB changes using the new notification library in test_bfd.py::test_bfd_basic. Approach What is the motivation for this PR? Motivation is to add a simple and easy to use library that allows tests (where applicable) to perform SAI validation and allow tests to use event notification-based method to monitor DB changes. How did you do it? Refer to description above. How did you verify/test it? Verified ACL tests (on t0) and BFD basic tests (on t1) testbeds. Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
Description of PR Introduces a new method to access SONiC Redis database instance using redis-py native Python library instead of relying on sonic-db-cli. It also uses the Redis' pub-sub infrastructure to listen to key-space notifications to monitor DB changes instead of using the traditional wait_until which performs sleep->check cycle. Adds changes to perform SAI validation for ACL tests. Uses this library to monitor STATE_DB changes using the new notification library in test_bfd.py::test_bfd_basic. Approach What is the motivation for this PR? Motivation is to add a simple and easy to use library that allows tests (where applicable) to perform SAI validation and allow tests to use event notification-based method to monitor DB changes. How did you do it? Refer to description above. How did you verify/test it? Verified ACL tests (on t0) and BFD basic tests (on t1) testbeds. Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Jan 26, 2026
Description of PR Introduces a new method to access SONiC Redis database instance using redis-py native Python library instead of relying on sonic-db-cli. It also uses the Redis' pub-sub infrastructure to listen to key-space notifications to monitor DB changes instead of using the traditional wait_until which performs sleep->check cycle. Adds changes to perform SAI validation for ACL tests. Uses this library to monitor STATE_DB changes using the new notification library in test_bfd.py::test_bfd_basic. Approach What is the motivation for this PR? Motivation is to add a simple and easy to use library that allows tests (where applicable) to perform SAI validation and allow tests to use event notification-based method to monitor DB changes. How did you do it? Refer to description above. How did you verify/test it? Verified ACL tests (on t0) and BFD basic tests (on t1) testbeds. Signed-off-by: Guy Shemesh <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
gNMIinstead of relying onsonic-db-cli.wait_untilwhich performssleep->checkcycle.STATE_DBchanges using the new notification library intest_bfd.py::test_bfd_basic.Summary:
Fixes # Not applicable
Type of change
Back port request
Approach
What is the motivation for this PR?
Motivation is to add a simple and easy to use library that allows tests (where applicable) to perform SAI validation and allow tests to use event notification-based method to monitor DB changes.
How did you do it?
Refer to description above.
How did you verify/test it?
Verified
ACLtests (ont0) andBFDbasic tests (ont1) testbeds.Any platform specific information?
No
Supported testbed topology if it's a new test case?
NA
Documentation
TBD.