-
Notifications
You must be signed in to change notification settings - Fork 343
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
converting utilitie to object oriented support. #5948
base: master
Are you sure you want to change the base?
Conversation
681da63
to
d503be1
Compare
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.
Hi @Naresh-ibm thank you for your contribution. This is a huge change and I think I don't know the whole story behind this, therefore I have a couple of questions and comments which I need to discuss.
- I don't see any substitution for
distro
utility, what are the reasons for removing that? - Why are you creating the
block_devices
package? Are you planing to add more utils to that? Because if not, IMO the disk util cans stay where it is. If yes, certainly theblock_devices
should be in separated commit with the explanation of future plans. - Even tho I understand the benefits of moving this to OOPs I am not sure about it, because it breaks the API which is used by our users, and it will definitely break many test suites. Therefore, I would propose together with this change keep the old API with the warning about deprecation in future releases and remove it after a release 107.
- Maybe we should wait a little bit with this change and do it during the migration to autils. Because we would avoid the compatibility issues between new and old API.
dcac795
to
549de97
Compare
Moving the utilities to OOPs supported way to make them more useful and Robust. Signed-off-by: Naresh Bannoth <[email protected]>
Hi @richtja Thanks for your review points
|
sample logs
|
Hi @Naresh-ibm, first of all, thanks for your work here. IIUC, the first versions removed the original version of the module, while this keeps both. Is that the intention? If so, I have to ask: how can/should/will two copies of basically the same code, although with a different programming paradigm, be maintained? That is a tough question for me to answer, and I'm assuming it would be tough for you to answer too. So, without a clear answer and path forward, it's hard to agree with the inclusion of a "duplicate" of sorts. But, there's one solution. We're working on a better version of the Avocado utilities, which is the https://github.com/avocado-framework/autils project/repo. That would be the perfect place to introduce libraries such as this: better versions of existing ones. In that process, we can go over what will be the chosen paradigm of the utilities, so that all have a common look and feel. Although that's a very hard thing to do (just think of the Python standard library itself), I believe we can make significant progress since we're starting fresh and have a lot of accumulated knowledge. Please let me know if you're willing to further work on this contribution, but targeting autils instead. BTW, it's very important that you read the autils BluePrint. |
Moving the utilities to OOPs supported way to make them more useful and Robust.