-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Flaky continuous integration #1306
Comments
I just got the following issue on #957.2:
|
And on #957.1:
|
AndreMiras
added a commit
to AndreMiras/python-for-android
that referenced
this issue
Jan 31, 2019
Also removed `apt -y clean` layer optimization introduced in df60061. That way we could skip running `apt -y update` too many times which also seems to have some issues recently on Travis.
AndreMiras
added a commit
to AndreMiras/python-for-android
that referenced
this issue
Jan 31, 2019
Also removed `apt -y clean` layer optimization introduced in df60061. That way we could skip running `apt -y update` too many times which also seems to have some issues recently on Travis.
AndreMiras
added a commit
that referenced
this issue
Jan 31, 2019
…hiccups Retry on download hiccups, refs #1306
Log https://travis-ci.org/kivy/python-for-android/jobs/487456672 (will probably disappear when I restart the build). |
Status update:
|
Given Travis is no longer used and the flaky CI seems to have settled, closing as complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Abstract
Ticket to keep a track and find possible solutions for flaky tests we saw on Travis.
Known errors
curl: (56) GnuTLS recv error
Happens during CrystaX NDK download, the error is:
Example log: https://travis-ci.org/kivy/python-for-android/jobs/397824994
Possible solution, do some download retry:
https://stackoverflow.com/questions/10568497/how-does-curl-retry-max-time-seconds-work
curl: (35) gnutls_handshake() failed
Also happens during CrystaX NDK download, error:
Example logs:
Possible solution also some retries.
curl: (7) Failed to connect to eu.crystax.net port 443: Connection timed out
Again during CrystaX NDK download, error:
Example log: https://travis-ci.org/kivy/python-for-android/jobs/415163201 (rebuilt since then).
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
Happens when PyPI or whichever index server is down.
Error log: https://travis-ci.org/kivy/python-for-android/builds/375908909
Possible solution, retry or fallback on some mirrors.
error occurred while preparing SDK package Android SDK
Happens during SDK update using
sdkmanager
, error is:Example log: https://travis-ci.org/kivy/python-for-android/jobs/389474611
Implementing a retrying procedure may also help here.
UnknownHostException: services.gradle.org
Happened during gradle (https://services.gradle.org/distributions/gradle-3.3-all.zip) download.
See full log attached:
gradle-download-error-log.txt
E: Failed to fetch
This one is more rare, but happened recently in the
before_install
section while running theapt update
, see log extract below:See complete log: https://travis-ci.org/AndreMiras/python-for-android/jobs/486983237
Using travis_retry would probably be an easy workaround for that one.
Android SDK Platform 19: archive is not a ZIP archive.
During the
docker build
:Remark / current conclusions
So far the weakest point seems to be the NDK download, so that may probably be the first one we want to tacle.
Possible workaround / solutions
Edit
Recently the CrystaX NDK was dropped in profit for pure Python builds. However this ticket is still relevant for other hiccup. I'll update later with new errors we see the most often.
The text was updated successfully, but these errors were encountered: