-
Notifications
You must be signed in to change notification settings - Fork 67
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
Ansible support for Versatile hash feature #401
Conversation
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.
Thank you for implementing Ansible support for the Versatile hash feature.
I have posted a few file and inline comments to address for this PR. In addition, please fix the UT and sanity errors that are flagged for this PR.
Note: You can pre-run the sanity tests (including UT) before pushing changes to the PR branch using the instructions at:
attached new regression result: pass |
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.
Thank you for making the incremental changes to address the first pass review comments.
There are still some problems to address.
I have posted some specific comments for these.
An additional comment: Please pre-run the sanity tests using the instructions at "https://github.com/ansible-collections/dellemc.enterprise_sonic/wiki/Running-Unit-Tests-and-Coverage-Report-Generation" and fix any remaining sanity errors before pushing the new changes to this PR.
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.
Thank you for making the additional changes to get rid of the "empty" value display in facts gathering. The regression result output looks fine now.
There are still some sanity checks failing.
I am posting comment for one (a hyphen in a list line that is apparently causing YAML parsing problems.)
The first 3 of the following 4 errors are easy to find and fix:
ERROR: Found 4 pylint issue(s) which need to be resolved: ERROR: plugins/module_utils/network/sonic/config/system/system.py:62:8: undefined-variable: Undefined variable 'new_config' ERROR: plugins/module_utils/network/sonic/config/system/system.py:401:15: singleton-comparison: Comparison 'load_share_hash_algo != None' should be 'load_share_hash_algo is not None' ERROR: plugins/module_utils/network/sonic/config/system/system.py:465:23: trailing-whitespace: Trailing whitespace ERROR: plugins/module_utils/network/sonic/config/system/system.py:468:0: trailing-newlines: Trailing newlines
Please push changes to address the items described here and in the new comment.
The above errors are fixed now. |
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.
All issues have been resolved, and sanity tests are passing with most recent change set.
Approved.
SUMMARY
Ansible support for Versatile Hash feature
GitHub Issues
"N/A".
ISSUE TYPE
N/A
COMPONENT NAME
sonic-system (Update existing module)
ADDITIONAL INFORMATION
N/A
`
Checklist:
How Has This Been Tested?
Regression test with updated testcases.
regression-2024-06-28-12-07-00.html.gz