-
Notifications
You must be signed in to change notification settings - Fork 746
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
SAI validation #15324
Open
opcoder0
wants to merge
34
commits into
sonic-net:master
Choose a base branch
from
opcoder0:feat/sai-validation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
SAI validation #15324
Changes from 28 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
96094a0
Initial commit with draft design - in progress
opcoder0 30727ce
Remove test category column and fix formatting
opcoder0 abb1b88
Add everflow; fix description
opcoder0 65d2e0e
Add tests/fdb, tests/fib
opcoder0 e0fbbbf
Update design document; Write pubsub based sonic database access library
opcoder0 f4bd2d7
Merge branch 'master' into feat/sai-validation
opcoder0 9e510de
Add logging to test bfd and sonic db library
opcoder0 7b41e62
Merge branch 'master' into feat/sai-validation
opcoder0 25ab88d
Add wait_for_n_keys; update usage in bfd and acl
opcoder0 c3624dc
Basic working:
opcoder0 7fd5761
Add to design doc; Keep count
opcoder0 a3767a0
refactor code to count rules
opcoder0 a1a3178
Reduce logging; Add SAI validation to TestIncrementalAcl
opcoder0 da86d65
add log to test_bfd.py and make basic test_basic_new
opcoder0 b2b410f
Add new subscription based API for watching Sonic DB keys
opcoder0 c7e1adc
Merge branch 'master' into feat/sai-validation
opcoder0 d7d0ea8
Fix failures; Move changes to test_bfd.py; remove test_bfd_new.py;
opcoder0 fc76650
Add socat files
opcoder0 778acb1
remove test_bfd_new.py
opcoder0 e456688
Expose redis via db fixtures; Assert ACL test;
opcoder0 7a55ec3
Merge branch 'master' into feat/sai-validation
opcoder0 c51dc9f
Remove vs config files from commit
opcoder0 6cbabd6
Remove extra debug log entry
opcoder0 b1fa4e9
Fix merge issues in conftest.py
opcoder0 6548a75
Remove debug log entries from test_acl.py
opcoder0 d6523c5
Get duthost mgmt IP from fixture, make expose port configurable
opcoder0 33bf4b2
Merge branch 'master' into feat/sai-validation
opcoder0 ca07542
Merge branch 'master' into feat/sai-validation
opcoder0 44e891b
Handle exceptions in `wait_until_*` functions;
opcoder0 31afed8
Remove socat package and get it from SONiC swss container
opcoder0 4188ba2
Merge branch 'master' into feat/sai-validation
opcoder0 1da54da
Add ACL rule validation functions
opcoder0 32f6c41
Merge branch 'master' into feat/sai-validation
opcoder0 3e5ea5b
Cancel future that timeout; Skip validation for egress stage
opcoder0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If exception is raised in
wait_until_condition
, it would return None. Can this tuple assignment pass ifwait_until_condition
returnsNone
? If not, then there is a problem here. And otherwait_until_*
tools have the similar problem.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
ThreadPoolExecutor.submit
raisesRuntimeError
,TypeError
andBrokenThreadPool
all of these shouldn't be handled. Theconcurrent.futures.Future.result
submit()
can raiseTimeoutError
,CancelledError
andException
which have been handled by logging and returning appropriate return values.