Python Byte-compilation During Build, master branch (2017.11.03.)
This is to address ATLINFR-1910.
The idea is to make the build byte-compile all python code during the build to:
- Ensure that there are no syntax errors in any of our installed python files;
- Make sure that the byte-compiled code ends up in the RPMs that we build, so that job configuration may become a bit faster from installed releases.
Will have to run some additional checks on the code before merging it though.
Merge request reports
Activity
Jenkins Build FAILUREResults available at: Jenkins [AE-MERGE-REQUEST #246]
added 1 commit
- e236b807 - Turns out that the previous code would not work when using
Jenkins Build SUCCESSResults available at: Jenkins [AE-MERGE-REQUEST #247]
There's one thing that I only realised now: The python configurables generated by
genconf
are not put through this byte-compilation at the moment.I had a quick look at the
atlas_add_component
function to see how easy it would be to start usingatlas_install_python_modules
in it to actually install the generated python module, but it would require a bit more of a change than I'd like to do to it right now.So for now I'd only add the
.pyc
files for the user-written python code. The auto-generated code will only get such files at some later date...mentioned in commit 6e43ccbf
mentioned in commit 5feea9ca
mentioned in merge request !190 (merged)