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
Unify python executables to use #!/usr/bin/env python
shebang
#2102
Conversation
d96e652
to
2de2cfb
Compare
[buildbot, test this please] |
1 similar comment
[buildbot, test this please] |
The change looks good. But there is a timeout for py_test_tools_smoke with lib/ustat.py on fc25/26/27. Not sure why yet. |
[buildbot, test this please] |
I have no idea why timeout happens with ustat.py in test_tools_smoke.py. I tried on my local fc27 and it works fine. Maybe the test VM has higher load? Maybe you could try to increase timeout value to see whether it works or not?
|
@SaveTheRbtz usdt.py fix has been merged. Now you can rebase and resubmit. Thanks! |
2de2cfb
to
4affc44
Compare
@yonghong-song can you ping the buildbot? he is ignoring my pleas for some reason =) |
[buildbot, test this please] |
Just pinged and the test started! |
fc27 failed on: bcc/tests/cc/test_perf_event.cc Lines 135 to 139 in f446bd7
with:
Seems like counters are not deterministic there. |
Right. Let me do a test again. |
[buildbot, test this please] |
@yonghong-song Ok, now it is a fc28 with:
seems like the resulting makefile is racy (it builds
|
Right. We need to fix this as well. It happens quite frequently. |
[buildbot, test this please] |
Yey! Thanks, will wait for a release now (no rush). As for the build error something fishy is going on as it does generate same targets twice:
and indeed generated makefile for the python3 distribution (
Something is likely wrong with #1951 |
…sor#2102) * fixed shebangs in tools (and lib) * fixed shebangs in examples * do not mangle shebangs in rpm spec * renamed style-check.sh to c-style-check.sh * factored out python linter to a separate file * added shebang validation to the py-style-check * added shebangs to all python executables
Currently some python executables either do not have shebang or have it hardcoded to
#!/usr/bin/python
. This is causing some problems on our production systems.RPM specs currently workaround that problem by
sed
ing the resulting files:bcc/SPECS/bcc.spec
Lines 91 to 94 in dccc4f2
This diff:
#!/usr/bin/env python
.PS. It seems like the travis build is not enabled for bcc: https://travis-ci.org/iovisor/bcc