Add the Android build factory#26
Add the Android build factory#26xdegaye wants to merge 1 commit intopython:masterfrom xdegaye:android-build
Conversation
|
Here are the log files: |
|
I'm worried that there are still open issues related to Android, especially issues on the Python test suite. For example https://bugs.python.org/issue32246 I would prefer to make sure that the Python test suite is very stable before adding this worker. Anyway, amazing work @xdegaye! Thank you for your continuous effect on supporting Android! |
|
It seems that the only open issues (not enhancement) specific to Android are the two ctypes issues and it is not clear when those two will be fixed:
On the other hand:
So we can postpone the review of this PR until all the above three conditions are met. |
|
I've had a look at this, and it looks fine to me. I think we can merge it anytime to be ready as soon as a worker host is available and the necessary CPython changes are merged. |
|
@zware Thanks for the review Zachary. I do not have the access rights to this repo so I will let you guys do the merge. |
|
No update since 2017, I close the PR. |
The Python test suite succeeds when run with buildbot strenuous settings with all the Android architectures on API 24: x86, x86_64, armv7 and arm64.
This PR proposes to update
master.cfgto run buildbots for Android. The Android build system is implemented at issue bpo-30386 and PR 1629, it adds theAndroid/directory and theconfigure-androidscript to the root of the source directory without modifying any other file. The build system can be installed, upgraded (i.e. the SDK and NDK) and run remotely, through ssh for example.The Android emulator is actually
qemu, so the test suites for x86 and x86_64 last about the same time as the test suite run natively when the processor of the build system is of the x86 family. The test suites for the arm architectures last much longer: about 8 hours for arm64 and 10 hours for armv7 on a four years old laptop when the test suite is run with-u all -j1. Since none of the changes to Python that have been made for Android is specific to armv7 or arm64, maybe their test suite could be run just weekly.The
buildbot.shscript simulates the operations executed by a buildbot worker (except for the git step) and explains the changes tomaster.cfgproposed here. Its content is listed here:Running this script on x86_64 gives the following results (the corresponding five log files are attached in the next comment) when it is run the second time, on the first run the native python and the external libraries are built and compile.log contains a lot more lines: