Skip to content
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

Simplifies Dockerfile and fix GitHub runner space #2142

Merged
merged 1 commit into from
Apr 18, 2020

Conversation

AndreMiras
Copy link
Member

Simplifies the Dockerfile as Python 2 was dropped.
Renames to default "Dockerfile" so it's picked up by docker hub automatically.
This is a follow-up for: #2105
Adds the GitHub action build badge.

Free up space before building the APKs to avoid the GitHub Action runner being full.
The error was:

mkdir -p /home/user/.android/android-ndk-r19b \
&& unzip -q android-ndk-r19b-linux-x86_64.zip -d /home/user/.android \
&& ln -sfn /home/user/.android/android-ndk-r19b /home/user/.android/android-ndk \
&& rm -f android-ndk-r19b-linux-x86_64.zip
Error processing tar file(exit status 1): write /home/user/.android/android-ndk-r19b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/bfd-plugins/LLVMgold.so: no space left on device
Makefile:61: recipe for target 'docker/build' failed
make: *** [docker/build] Error 1

https://github.com/kivy/python-for-android/actions/runs/81658805
The "Free disk space" step could clear about ~10G and helped making the build pass.
See output logs for details.

@AndreMiras
Copy link
Member Author

AndreMiras commented Apr 18, 2020

It seems like the problem was seen 4 days ago on this repo and a similar fix helped out EmbarkStudios/wg-ui#53
It helped freeing 13G on my fork. It's not clear to me if this is freeing shared runner resources or local runner resources as it was full of nodejs containers getting removed. The containers could equally be just used by some GitHub Actions we're using
Edit: Upstream issue https://github.saobby.my.eu.orgmunity/t5/GitHub-Actions/BUG-Strange-quot-No-space-left-on-device-quot-IOExceptions-on/m-p/47691#M6920

Simplifies the Dockerfile as Python 2 was dropped.
Renames to default "Dockerfile" so it's picked up by docker hub automatically.
This is a follow-up for: kivy#2105
Adds the GitHub action build badge.

Free up space before building the APKs to avoid the GitHub Action runner being full.
The error was:
```
mkdir -p /home/user/.android/android-ndk-r19b \
&& unzip -q android-ndk-r19b-linux-x86_64.zip -d /home/user/.android \
&& ln -sfn /home/user/.android/android-ndk-r19b /home/user/.android/android-ndk \
&& rm -f android-ndk-r19b-linux-x86_64.zip
Error processing tar file(exit status 1): write /home/user/.android/android-ndk-r19b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/bfd-plugins/LLVMgold.so: no space left on device
Makefile:61: recipe for target 'docker/build' failed
make: *** [docker/build] Error 1
````
https://github.com/kivy/python-for-android/actions/runs/81658805
The "Free disk space" step could clear about ~10G and helped making the build pass.
See output logs for details.
@AndreMiras AndreMiras force-pushed the feature/python2_drop_follow_up branch from 441a729 to b5dfdaf Compare April 18, 2020 20:16
@AndreMiras AndreMiras requested a review from opacam April 18, 2020 20:46
Comment on lines -74 to -75
python \
python-pip \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh boy, we still have some Python2 leftovers...nice that you remove that 😄

Comment on lines -98 to -101
# install cython for python 2 (for python 3 it's inside the venv)
RUN pip2 install --upgrade Cython==0.28.6 \
&& rm -rf ~/.cache/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More removed Python2 leftovers 👍

@@ -2,6 +2,7 @@ python-for-android
==================

[![Build Status](https://travis-ci.org/kivy/python-for-android.svg?branch=develop)](https://travis-ci.org/kivy/python-for-android)
[![Unit tests & build apps](https://github.com/kivy/python-for-android/workflows/Unit%20tests%20&%20build%20apps/badge.svg?branch=develop)](https://github.com/kivy/python-for-android/actions?query=workflow%3A%22Unit+tests+%26+build+apps%22)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anxious to see how it will look like this badge 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahah, you could actually see it from my fork/branch https://github.com/AndreMiras/python-for-android/tree/feature/python2_drop_follow_up
But you will see soon enough as I'm merging, thanks for the review :)

Copy link
Member

@opacam opacam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AndreMiras AndreMiras merged commit 71f8fb5 into kivy:develop Apr 18, 2020
@AndreMiras
Copy link
Member Author

Thanks for the quick review! I don't know if I could have sleep on a broken build 😄

@AndreMiras
Copy link
Member Author

I've also updated the Dockerfile path on the Docker Hub auto build to reflect the change
image

@AndreMiras AndreMiras deleted the feature/python2_drop_follow_up branch April 20, 2020 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants