Repository navigation
Migrate CI tests from TravisCI to CircleCI - #9051
Conversation
| export PATH="`python -m site --user-base`/bin:${PATH}" | ||
|
|
||
| # Install coveralls gem | ||
| gem install coveralls-lcov --no-rdoc --no-ri |
There was a problem hiding this comment.
We should move all of these installs into the docker image so we don't have to install it every time.
There was a problem hiding this comment.
It turns out these are already included (:tada:):
awscli: https://github.com/mapbox/mbgl-ci-images/blob/master/base/Dockerfile#L20-L21coveralls-lcov: https://github.com/mapbox/mbgl-ci-images/blob/master/linux/Dockerfile#L12-L13
| export -f mapbox_nanoseconds | ||
| export -f mapbox_time | ||
| export -f mapbox_time_start | ||
| export -f mapbox_time_finish |
There was a problem hiding this comment.
No real need in the final change - I've added this in the beginning to speed up the initial migration efforts - we can totally get rid of this 👍
| : | ||
| } | ||
|
|
||
| export JOBS=${CIRCLE_NODE_TOTAL:-6} |
There was a problem hiding this comment.
CIRCLE_NODE_TOTAL refers to the concurrently running nodes per build, not to thread concurrency.
There was a problem hiding this comment.
Yes - in that case we can just use export JOBS=${JOBS:-6}.
There was a problem hiding this comment.
Yes - in that case we can just use export JOBS=${JOBS:-6}.
These are not needed at all in the end - JOBS is now exported from circle.yml.
|
I'm skeptical about file caching, in particular for npm/mason: Circle's connectivity is excellent, and we wouldn't gain much storing these to S3. For |
|
CircleCI’s connectivity may be top notch, but we’re already seeing issues, as in this build where basic Android downloads failed: |
|
@friedbunny A server error 500 indicates that the issue is with Bintray, not with Circle's connectivity? Based on the error code I believe that the same error would've happened on Bitrise/Travis as well. |
|
@kkaefer Right, but if we’re considering caching remote packages (or building them into docker images) presumably we could partially mitigate unreliable dependency hosts? |
655f423 to
9c7a924
Compare
|
Machine executor type - needed for properly setting up logbt - is turning out as very tricky: You cannot run these locally, so every test attempt has to be done using CircleCI infrastructure. Also, all the steps (including checkout) are done manually inside the docker image. We could avoid running the steps manually by using Another suggestion is to request CircleCI team to special-case acess to The affected builds are:
I'd suggest for us to keep them running on TravisCI until we resolve this - thoughts @kkaefer @springmeyer? |
d68497e to
9d82980
Compare
b6bc9ca to
7b34744
Compare
Per chat I think this would be the ideal approach - since it would benefit lots of other repos and make this setup work on docker out of the box 👍 |
e72d830 to
b2188ce
Compare
|
I was not able to reproduce the error from https://circleci.com/gh/mapbox/mapbox-gl-native/3776 locally: Inside This makes me wonder this could be an OOM issue masked as something else - makes sense if we consider we're using logbt + apitrace together on a debug build. |
b2188ce to
d3496a7
Compare
d3496a7 to
36dcde0
Compare
36dcde0 to
7ce8564
Compare
cc52df5 to
d4f20c8
Compare
d4f20c8 to
a7536e6
Compare
a7536e6 to
e766367
Compare
Uses docker images from https://hub.docker.com/r/mbgl/ci/ and CircleCI workflows to migrate the jobs from TravisCI into CircleCI for improved test runtime and flexibility given by docker.
TODO:
linux-clang-3.9-node-4imagelinux-gcc-5-qt-4imagelinux-gcc-5-qt-5imagebaseimage to includelocalespackagelinuximage to includelcovpackagecoveralls-lcovonly supports Travis CI atm.https://circleci.com/docs/2.0/executor-types
requiredin GitHubPart of #8551.