Skip to content

BUG: Travis building on container-based infrastructure #12946

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

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
f48827d
Use sudo: required to stop travis building on container-based infrast…
nparley Apr 21, 2016
3744114
Merge remote-tracking branch 'upstream/master' into travis
nparley May 8, 2016
712e592
First go to try locale settings on travis
nparley May 8, 2016
01bfe3f
lanuage-pack-zh is not allowed try -chan
nparley May 8, 2016
65707fc
Fix spelling
nparley May 8, 2016
70c429b
Test zh_CN.UTF-8 as that's allowed to be installed
nparley May 8, 2016
09457f3
Remove more sudo
nparley May 9, 2016
ee23be8
Merge remote-tracking branch 'upstream/master' into travis
nparley May 20, 2016
483c989
Delete sudo lines from script files
nparley May 20, 2016
91cc6b3
Fix indent bug and add comments to builds which are also in allow_fai…
nparley May 20, 2016
2b191bc
Add LOCALE to print versions
nparley May 24, 2016
a7ccaee
Print version info during test script
nparley May 24, 2016
5eca9ce
Test blosc memory Backtrace
nparley May 24, 2016
70f583d
Revert back previous change to fix in another PR
nparley May 25, 2016
8aa1307
Merge remote-tracking branch 'upstream/master' into travis
nparley May 25, 2016
6b03de1
Merge remote-tracking branch 'upstream/master' into travis
nparley May 26, 2016
815444f
Experiment adding miniconda to cache
nparley May 26, 2016
3b191dc
Fix missing $
nparley May 26, 2016
e9874ec
Experiment with caching
nparley May 27, 2016
25aea25
Change cache name
nparley May 31, 2016
30c09f4
Don't recreate pandas if miniconda is from cache
nparley May 31, 2016
6bc70e0
Bug fix
nparley May 31, 2016
d9f0eb3
Try adding ccache to travis
nparley May 31, 2016
f3adf0a
Bug fix
nparley May 31, 2016
ecde407
Try caching ccache as well
nparley May 31, 2016
cf818c1
Bug fix
nparley May 31, 2016
5659b0e
Bug fix
nparley May 31, 2016
669c115
Test ccache
nparley May 31, 2016
e813f2d
Code clean up
nparley May 31, 2016
db0cd90
Test commit
nparley May 31, 2016
6201825
bug fix
nparley May 31, 2016
9158c0b
Bug fix
nparley May 31, 2016
eba7f08
Bug fix
nparley Jun 1, 2016
e81cd73
Touch msgpack
nparley Jun 4, 2016
6e4d88d
Remove sudo even though file is not being used
nparley Jun 4, 2016
ab55c60
Change way version is displayed
nparley Jun 4, 2016
b73e7cc
Add use cache
nparley Jun 4, 2016
ba16f4a
Remove sudo even though file is not being used
nparley Jun 4, 2016
4d01ef6
Change way version is displayed
nparley Jun 4, 2016
4fc2e49
Merge branch 'travis_cache' into travis
nparley Jun 4, 2016
1c5a687
Merge remote-tracking branch 'upstream/master' into travis
nparley Jun 4, 2016
346ced8
Grep - P is not available on mac OS X
nparley Jun 4, 2016
56cc93c
Add cython files to the cache even if we have not used the cache. The…
nparley Jun 5, 2016
ccd1125
Only on back 2 commits not 3 when looking for python file changes. Ma…
nparley Jun 5, 2016
7d17f00
Turn off cache for 35_nslow
nparley Jun 5, 2016
359f00b
Don't hard code in python files. Find them using the pyx files.
nparley Jun 19, 2016
0867cf9
Merge commit 'b06bc7ab10552079b5300f53ae9458b5b1583402' into travis
nparley Jun 19, 2016
bcad188
Add check cache to delete all cache if ci changes
nparley Jun 19, 2016
f607a6b
Bug fix
nparley Jun 19, 2016
f0cba14
Don't use ccache if not using conda cache
nparley Jun 19, 2016
446489c
Bug fix
nparley Jun 19, 2016
b602e9a
Merge commit '883df65b095709e2146b1f36c9697b92eb913731' into travis
nparley Jun 20, 2016
62320f6
BUG: fix to_datetime to handle int16 and int8
ravinimmi Jun 17, 2016
5d0e706
BUG: df.pivot_table: margins_name ignored when aggfunc is a list
cmazzullo Jun 18, 2016
b1127f1
Check whole PR for python files change if we are in a PR
nparley Jun 20, 2016
bac4045
BLD: update appveyor build to use numpy 1.11 for 3.5 build
jreback Jun 17, 2016
021fdbc
Merge commit '20dd17a70063387ccca5f7aca3dbefc904d99457' into travis
nparley Jun 20, 2016
38cee16
DOC: specify correct kernelspec for converting notebooks (#13491)
Jun 20, 2016
abc26c9
Display output of git diff HEAD~2 --numstat | grep -E "ci/" and remov…
nparley Jun 20, 2016
e256cf4
Merge branch 'upstream' into travis
nparley Jun 20, 2016
58b5564
Try fetch head in pull requests
nparley Jun 20, 2016
8b72f55
Fetch pull request head so we can look back out the last commits to t…
nparley Jun 21, 2016
6c05a13
Merge branch 'upstream' into travis
nparley Jun 21, 2016
bbc7b35
Merge branch 'upstream' into travis
nparley Jun 21, 2016
871f52d
Merge branch 'upstream' into travis
nparley Jun 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
199 changes: 146 additions & 53 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@

sudo: false
language: python

env:
# To turn off cached miniconda, cython files and compiler cache comment out the
# USE_CACHE=true line for the build in the matrix below. To delete caches go to
# https://travis-ci.org/OWNER/REPOSITORY/caches or run
# travis cache --delete inside the project directory from the travis command line client
# The cash directories will be deleted if anything in ci/ changes in a commit
cache:
directories:
- $HOME/miniconda # miniconda cache
- $HOME/.cache # cython cache
- $HOME/.ccache # compiler cache

env:
global:
# scatterci API key
#- secure: "Bx5umgo6WjuGY+5XFa004xjCiX/vq0CyMZ/ETzcs7EIBI1BE/0fIDXOoWhoxbY9HPfdPGlDnDgB9nGqr5wArO2s+BavyKBWg6osZ3dmkfuJPMOWeyCa92EeP+sfKw8e5HSU5MizW9e319wHWOF/xkzdHR7T67Qd5erhv91x4DnQ="
# ironcache API key
- secure: "e4eEFn9nDQc3Xa5BWYkzfX37jaWVq89XidVX+rcCNEr5OlOImvveeXnF1IzbRXznH4Sv0YsLwUd8RGUWOmyCvkONq/VJeqCHWtTMyfaCIdqSyhIP9Odz8r9ahch+Y0XFepBey92AJHmlnTh+2GjCDgIiqq4fzglojnp56Vg1ojA="
- secure: "CjmYmY5qEu3KrvMtel6zWFEtMq8ORBeS1S1odJHnjQpbwT1KY2YFZRVlLphfyDQXSz6svKUdeRrCNp65baBzs3DQNA8lIuXGIBYFeJxqVGtYAZZs6+TzBPfJJK798sGOj5RshrOJkFG2rdlWNuTq/XphI0JOrN3nPUkRrdQRpAw="
#- secure: "e4eEFn9nDQc3Xa5BWYkzfX37jaWVq89XidVX+rcCNEr5OlOImvveeXnF1IzbRXznH4Sv0YsLwUd8RGUWOmyCvkONq/VJeqCHWtTMyfaCIdqSyhIP9Odz8r9ahch+Y0XFepBey92AJHmlnTh+2GjCDgIiqq4fzglojnp56Vg1ojA="
#- secure: "CjmYmY5qEu3KrvMtel6zWFEtMq8ORBeS1S1odJHnjQpbwT1KY2YFZRVlLphfyDQXSz6svKUdeRrCNp65baBzs3DQNA8lIuXGIBYFeJxqVGtYAZZs6+TzBPfJJK798sGOj5RshrOJkFG2rdlWNuTq/XphI0JOrN3nPUkRrdQRpAw="
# pandas-docs-bot GH
- secure: "PCzUFR8CHmw9lH84p4ygnojdF7Z8U5h7YfY0RyT+5K/aiQ1ZTU3ZkDTPI0/rR5FVMxsEEKEQKMcc5fvqW0PeD7Q2wRmluloKgT9w4EVEJ1ppKf7lITPcvZR2QgVOvjv4AfDtibLHFNiaSjzoqyJVjM4igjOu8WTlF3JfZcmOQjQ="

Expand All @@ -29,112 +39,194 @@ matrix:
- BUILD_TYPE=conda
- JOB_TAG=_OSX
- TRAVIS_PYTHON_VERSION=3.5
- CACHE_NAME="35_osx"
- USE_CACHE=true
- python: 2.7
env:
- JOB_NAME: "27_slow_nnet_LOCALE"
- NOSE_ARGS="slow and not network and not disabled"
- LOCALE_OVERRIDE="zh_CN.GB18030"
- FULL_DEPS=true
- JOB_TAG=_LOCALE
- JOB_NAME: "27_slow_nnet_LOCALE"
- NOSE_ARGS="slow and not network and not disabled"
- LOCALE_OVERRIDE="zh_CN.UTF-8"
- FULL_DEPS=true
- JOB_TAG=_LOCALE
- CACHE_NAME="27_slow_nnet_LOCALE"
- USE_CACHE=true
addons:
apt:
packages:
- language-pack-zh-hans
- python: 2.7
env:
- JOB_NAME: "27_nslow"
- NOSE_ARGS="not slow and not disabled"
- FULL_DEPS=true
- CLIPBOARD_GUI=gtk2
- LINT=true
- JOB_NAME: "27_nslow"
- NOSE_ARGS="not slow and not disabled"
- FULL_DEPS=true
- CLIPBOARD_GUI=gtk2
- LINT=true
- CACHE_NAME="27_nslow"
- USE_CACHE=true
addons:
apt:
packages:
- python-gtk2
- python: 3.4
env:
- JOB_NAME: "34_nslow"
- NOSE_ARGS="not slow and not disabled"
- FULL_DEPS=true
- CLIPBOARD=xsel
- JOB_NAME: "34_nslow"
- NOSE_ARGS="not slow and not disabled"
- FULL_DEPS=true
- CLIPBOARD=xsel
- CACHE_NAME="34_nslow"
- USE_CACHE=true
addons:
apt:
packages:
- xsel
- python: 3.5
env:
- JOB_NAME: "35_nslow"
- NOSE_ARGS="not slow and not network and not disabled"
- FULL_DEPS=true
- CLIPBOARD=xsel
- COVERAGE=true
- JOB_NAME: "35_nslow"
- NOSE_ARGS="not slow and not network and not disabled"
- FULL_DEPS=true
- CLIPBOARD=xsel
- COVERAGE=true
- CACHE_NAME="35_nslow"
# - USE_CACHE=true # Don't use cache for 35_nslow
addons:
apt:
packages:
- xsel
# In allow_failures
- python: 2.7
env:
- JOB_NAME: "27_slow"
- JOB_TAG=_SLOW
- NOSE_ARGS="slow and not network and not disabled"
- FULL_DEPS=true
- JOB_NAME: "27_slow"
- JOB_TAG=_SLOW
- NOSE_ARGS="slow and not network and not disabled"
- FULL_DEPS=true
- CACHE_NAME="27_slow"
- USE_CACHE=true
# In allow_failures
- python: 3.4
env:
- JOB_NAME: "34_slow"
- JOB_TAG=_SLOW
- NOSE_ARGS="slow and not network and not disabled"
- FULL_DEPS=true
- CLIPBOARD=xsel
- JOB_NAME: "34_slow"
- JOB_TAG=_SLOW
- NOSE_ARGS="slow and not network and not disabled"
- FULL_DEPS=true
- CLIPBOARD=xsel
- CACHE_NAME="34_slow"
- USE_CACHE=true
addons:
apt:
packages:
- xsel
# In allow_failures
- python: 2.7
env:
- JOB_NAME: "27_build_test_conda"
- JOB_TAG=_BUILD_TEST
- NOSE_ARGS="not slow and not disabled"
- FULL_DEPS=true
- BUILD_TEST=true
- JOB_NAME: "27_build_test_conda"
- JOB_TAG=_BUILD_TEST
- NOSE_ARGS="not slow and not disabled"
- FULL_DEPS=true
- BUILD_TEST=true
- CACHE_NAME="27_build_test_conda"
- USE_CACHE=true
# In allow_failures
- python: 3.5
env:
- JOB_NAME: "35_numpy_dev"
- JOB_TAG=_NUMPY_DEV
- NOSE_ARGS="not slow and not network and not disabled"
- PANDAS_TESTING_MODE="deprecate"
- JOB_NAME: "35_numpy_dev"
- JOB_TAG=_NUMPY_DEV
- NOSE_ARGS="not slow and not network and not disabled"
- PANDAS_TESTING_MODE="deprecate"
- CACHE_NAME="35_numpy_dev"
- USE_CACHE=true
addons:
apt:
packages:
Copy link
Contributor

Choose a reason for hiding this comment

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

so some of the builds are showing up above the allow_failures section. We want to keep the first 5 builds (osx, 2 x 2.7, 3.4, 3.5) as the required builds, the rest as allow_failures (mainly so things don't take so long, not because they are actually allowed to fail).

So you need to repeat anything you added on in the declaration as below; e.g. for the NUMPY_DEV build, you added:

addons:
  apt:
    packages:
       ...

just repeat this in the below section (so they are identical), then it will be fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed this, it was caused by not indenting the new section correcting in the travis file in the allow failures section.

- libatlas-base-dev
- gfortran
# In allow_failures
- python: 2.7
env:
- JOB_NAME: "27_nslow_nnet_COMPAT"
- NOSE_ARGS="not slow and not network and not disabled"
- LOCALE_OVERRIDE="it_IT.UTF-8"
- INSTALL_TEST=true
- JOB_TAG=_COMPAT
- JOB_NAME: "27_nslow_nnet_COMPAT"
- NOSE_ARGS="not slow and not network and not disabled"
- LOCALE_OVERRIDE="it_IT.UTF-8"
- INSTALL_TEST=true
- JOB_TAG=_COMPAT
- CACHE_NAME="27_nslow_nnet_COMPAT"
- USE_CACHE=true
addons:
apt:
packages:
- language-pack-it
# In allow_failures
- python: 2.7
env:
- JOB_NAME: "doc_build"
- FULL_DEPS=true
- DOC_BUILD=true # if rst files were changed, build docs in parallel with tests
- JOB_TAG=_DOC_BUILD
- JOB_NAME: "doc_build"
- FULL_DEPS=true
- DOC_BUILD=true
- JOB_TAG=_DOC_BUILD
- CACHE_NAME="doc_build"
- USE_CACHE=true
allow_failures:
- python: 2.7
env:
- JOB_NAME: "27_slow"
- JOB_TAG=_SLOW
- NOSE_ARGS="slow and not network and not disabled"
- FULL_DEPS=true
- CACHE_NAME="27_slow"
- USE_CACHE=true
- python: 3.4
env:
- JOB_NAME: "34_slow"
- JOB_TAG=_SLOW
- NOSE_ARGS="slow and not network and not disabled"
- FULL_DEPS=true
- CLIPBOARD=xsel
- CACHE_NAME="34_slow"
- USE_CACHE=true
addons:
apt:
packages:
- xsel
- python: 2.7
env:
- JOB_NAME: "27_build_test_conda"
- JOB_TAG=_BUILD_TEST
- NOSE_ARGS="not slow and not disabled"
- FULL_DEPS=true
- BUILD_TEST=true
- CACHE_NAME="27_build_test_conda"
- USE_CACHE=true
- python: 3.5
env:
- JOB_NAME: "35_numpy_dev"
- JOB_TAG=_NUMPY_DEV
- NOSE_ARGS="not slow and not network and not disabled"
- PANDAS_TESTING_MODE="deprecate"
- CACHE_NAME="35_numpy_dev"
- USE_CACHE=true
addons:
apt:
packages:
- libatlas-base-dev
- gfortran
- python: 2.7
env:
- JOB_NAME: "27_nslow_nnet_COMPAT"
- NOSE_ARGS="not slow and not network and not disabled"
- LOCALE_OVERRIDE="it_IT.UTF-8"
- INSTALL_TEST=true
- JOB_TAG=_COMPAT
- CACHE_NAME="27_nslow_nnet_COMPAT"
- USE_CACHE=true
addons:
apt:
packages:
- language-pack-it
- python: 2.7
env:
- JOB_NAME: "doc_build"
- FULL_DEPS=true
- DOC_BUILD=true
- JOB_TAG=_DOC_BUILD
- CACHE_NAME="doc_build"
- USE_CACHE=true

before_install:
- echo "before_install"
Expand All @@ -153,9 +245,10 @@ before_install:

install:
- echo "install start"
- ci/prep_ccache.sh
- ci/check_cache.sh
- ci/prep_cython_cache.sh
- ci/install_travis.sh
- ci/submit_ccache.sh
- ci/submit_cython_cache.sh
- echo "install done"

before_script:
Expand All @@ -175,6 +268,6 @@ after_success:
after_script:
- echo "after_script start"
- ci/install_test.sh
- source activate pandas && ci/print_versions.py
- source activate pandas && python -c "import pandas; pandas.show_versions();"
- ci/print_skipped.py /tmp/nosetests.xml
- echo "after_script done"
2 changes: 0 additions & 2 deletions ci/before_install_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ echo "inside $0"

# overview
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo apt-get update $APT_ARGS # run apt-get update for all versions

sh -e /etc/init.d/xvfb start
fi

Expand Down
25 changes: 25 additions & 0 deletions ci/check_cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

if [ "$TRAVIS_PULL_REQUEST" == "false" ]
then
Copy link
Contributor

Choose a reason for hiding this comment

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

clever!

echo "Not a PR: checking for changes in ci/ from last 2 commits"
git diff HEAD~2 --numstat | grep -E "ci/"
ci_changes=$(git diff HEAD~2 --numstat | grep -E "ci/"| wc -l)
else
echo "PR: checking for changes in ci/ from last 2 commits"
git fetch origin pull/${TRAVIS_PULL_REQUEST}/head:PR_HEAD
git diff PR_HEAD~2 --numstat | grep -E "ci/"
ci_changes=$(git diff PR_HEAD~2 --numstat | grep -E "ci/"| wc -l)
fi

MINICONDA_DIR="$HOME/miniconda/"
CACHE_DIR="$HOME/.cache/"
CCACHE_DIR="$HOME/.ccache/"

if [ $ci_changes -ne 0 ]
then
echo "Files have changed in ci/ deleting all caches"
rm -rf "$MINICONDA_DIR"
rm -rf "$CACHE_DIR"
rm -rf "$CCACHE_DIR"
fi
2 changes: 0 additions & 2 deletions ci/install-2.7_NUMPY_DEV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ pip uninstall numpy -y
# these wheels don't play nice with the conda libgfortran / openblas
# time conda install -n pandas libgfortran openblas || exit 1

time sudo apt-get $APT_ARGS install libatlas-base-dev gfortran

# install numpy wheel from master
pip install --pre --upgrade --no-index --timeout=60 --trusted-host travis-dev-wheels.scipy.org -f http://travis-dev-wheels.scipy.org/ numpy

Expand Down
2 changes: 0 additions & 2 deletions ci/install-3.5_NUMPY_DEV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ pip uninstall numpy -y
# these wheels don't play nice with the conda libgfortran / openblas
# time conda install -n pandas libgfortran openblas || exit 1

time sudo apt-get $APT_ARGS install libatlas-base-dev gfortran

# install numpy wheel from master
pip install --pre --upgrade --no-index --timeout=60 --trusted-host travis-dev-wheels.scipy.org -f http://travis-dev-wheels.scipy.org/ numpy scipy

Expand Down
Loading