-
Notifications
You must be signed in to change notification settings - Fork 393
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
remove defective and outdated "shebang" lines #2500
remove defective and outdated "shebang" lines #2500
Conversation
I noticed that the unit tests failed in the jenkins pipeline but unless I messed up I don't see how removing some commented lines could trigger test failures. Could that be just a flaky test? |
A shebang must start with "#!" so all the lines "# /usr/bin/env" did not do anything. Furthermore they contained misleading Python versions, e.g. "# /usr/bin/env python3.5" while AIMET now supports only Python 3.8+. Signed-off-by: Felix Schwarz <[email protected]>
Jenkins is happy 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.
Hi @FelixSchwarz Thanks for this PR. Could you possibly update this PR to use the following shebang in all files from where you removed the faulty one? That would make it consistant.
#!/usr/bin/env python3
I can certainly do that. However my initial premise was that all of these shebang lines are meaningless (except maybe a few real scripts) so we should remove them all. Before going through each file and checking if a shebang makes sense I wanted to remove the ones which can be removed obviously (because they do not work anyway). As a follow-up I would like to check the remaining ones and remove these. If consistency is a primary concern, I see two possible approaches going forward:
My questions now:
In the end, this is merely an aesthetic change, though one that really triggers my "inner monk". I don't want to spend too much time on this. We have more substantial changes in the queue, such as compiling against newer versions of ONNX Runtime and implementing some CMake improvements. However when looking at these shebangs I can't help but cringe. |
I am with you @FelixSchwarz - these shebang lines are useless since AIMET is a library - I am not aware of any scripts that need to be run on command line. I have approved the PR. Thanks a lot for this cleanup. |
@quic-bharathr What can I do about this now? @quic-akhobare approved but you requested changes... |
Thank you :-) |
A shebang must start with "#!" so all the lines "# /usr/bin/env" did not do anything. Furthermore they contained misleading Python versions, e.g. "# /usr/bin/env python3.5" while AIMET now supports only Python 3.8+.
This is a cosmetic change and I'd argue that most (all) of the remaining shebangs should be deleted as well but in this PR I'm just removing the most obvious errors.