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

DEBUG: Revert to pre-error trees and enable AppVeyor debugging #680

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ac8816b
REVERT: Restore dfd113c531ad0dbb301db919b8573ad12ae0bb56 for testing
effigies Oct 15, 2018
73366d9
ENH: enable debug session for appveyor
yarikoptic Oct 5, 2018
44e8d4c
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
4511c19
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
9a86877
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
b717603
REVERT: Restore 68cf6715cf7977f597f3d6b743467a46e8d397c0 for testing
effigies Oct 15, 2018
8126dc0
Merge commit 'b71760364bfb26b0f8e4fe24d432e74082da04ce' into debug/ap…
effigies Oct 15, 2018
9a0b521
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
4952599
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
6234346
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
fc5d448
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
718da15
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
0a429a2
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
32a827a
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
c0e479a
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
7b49c04
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
17e4c16
MNT: Empty commit to trigger AppVeyor
effigies Oct 15, 2018
f93de2a
MNT: Empty commit to trigger AppVeyor
effigies Oct 16, 2018
b380db0
MNT: Empty commit to trigger AppVeyor
effigies Oct 16, 2018
549352c
MNT: Empty commit to trigger AppVeyor
effigies Oct 16, 2018
bf5377a
MNT: Empty commit to trigger AppVeyor
effigies Oct 16, 2018
5bee815
MNT: Empty commit to trigger AppVeyor
effigies Oct 16, 2018
3f8170a
MNT: Empty commit to trigger AppVeyor
effigies Oct 16, 2018
82c9257
UPDATE: Restore 1e9c4d4edb16f76a0a12b37993f1e179250fc2aa for testing
effigies Oct 17, 2018
4a44fa2
Merge remote-tracking branch 'upstream/master' into HEAD
effigies Oct 17, 2018
7b0b31c
Merge commit '4a44fa2f' into debug/appveyor-reversion
effigies Oct 17, 2018
ead0ab2
CI: Test Numpy 1.14.2, 1.14.4 (suspected cause), 1.15.2
effigies Oct 17, 2018
ea344cb
MNT: Empty commit to trigger AppVeyor
effigies Oct 17, 2018
66b0491
CI: Test on numpy 1.{12,13,14}.0
effigies Oct 17, 2018
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
153 changes: 0 additions & 153 deletions .travis.yml

This file was deleted.

42 changes: 33 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,32 @@
# CI on Windows via appveyor

environment:

appveyor_build_worker_cloud: gce
matrix:
- PYTHON: C:\Python27
- PYTHON: C:\Python27-x64
- PYTHON: C:\Python34
NUMPY: 1.14.0
- PYTHON: C:\Python34-x64
NUMPY: 1.14.0
- PYTHON: C:\Python35
NUMPY: 1.14.0
- PYTHON: C:\Python35-x64
NUMPY: 1.14.0
- PYTHON: C:\Python34
NUMPY: 1.13.0
- PYTHON: C:\Python34-x64
NUMPY: 1.13.0
- PYTHON: C:\Python35
NUMPY: 1.13.0
- PYTHON: C:\Python35-x64
NUMPY: 1.13.0
- PYTHON: C:\Python34
NUMPY: 1.12.0
- PYTHON: C:\Python34-x64
NUMPY: 1.12.0
- PYTHON: C:\Python35
NUMPY: 1.12.0
- PYTHON: C:\Python35-x64
- PYTHON: C:\Python36
- PYTHON: C:\Python36-x64
- PYTHON: C:\Python37
- PYTHON: C:\Python37-x64
NUMPY: 1.12.0

install:
# Prepend newly installed Python to the PATH of this build (this cannot be
Expand All @@ -22,7 +36,7 @@ install:
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%

# Install the dependencies of the project.
- pip install numpy scipy matplotlib nose h5py mock pydicom
- pip install numpy==%NUMPY% scipy matplotlib nose h5py mock pydicom
- pip install .
- SET NIBABEL_DATA_DIR=%CD%\nibabel-data

Expand All @@ -32,4 +46,14 @@ test_script:
# Change into an innocuous directory and find tests from installation
- mkdir for_testing
- cd for_testing
- nosetests --with-doctest nibabel
# Print Python, numpy versions
- python -c "import sys, numpy; print('Python', sys.version); print('numpy', numpy.__version__)"
# Show all environment variables to ease possible future debugging
- set
- nosetests --with-doctest -s -v nibabel


on_failure:
# enable the next to let the build VM block for up to 60min to log in via RDP and debug
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

7 changes: 7 additions & 0 deletions nibabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,10 @@ def test(*args, **kwargs):

def get_info():
return _get_pkg_info(os.path.dirname(__file__))

def print_numpy_info():
import numpy as np
print("NUMPY: ID(numpy): %d ID(numpy.float64): %d" % (id(np), id(np.float64)))

def setup_package():
print_numpy_info()
13 changes: 12 additions & 1 deletion nibabel/tests/test_minc1.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
from __future__ import division, print_function, absolute_import
import sys

from os.path import join as pjoin

Expand Down Expand Up @@ -156,7 +157,17 @@ def test_mincfile(self):
for tp in self.test_files:
mnc_obj = self.opener(tp['fname'], 'r')
mnc = self.file_class(mnc_obj)
assert_equal(mnc.get_data_dtype().type, tp['dtype'])
try:
assert_equal(mnc.get_data_dtype().type, tp['dtype'])
except AssertionError:
from nibabel import print_numpy_info
print()
for l, t in (('mnc.get_data_dtype().type', mnc.get_data_dtype().type),
("tp['dtype']", tp['dtype'])):
print("%30s ID: %s, __module__: %s, id(sys[__module__]): %s"
% (l, id(t), t.__module__, id(sys.modules[t.__module__])))
print_numpy_info()
raise
assert_equal(mnc.get_data_shape(), tp['shape'])
assert_equal(mnc.get_zooms(), tp['zooms'])
assert_array_equal(mnc.get_affine(), tp['affine'])
Expand Down