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

[do not merge] debug #7439

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
94 changes: 0 additions & 94 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ variables:
TEST_COUNT: 19

jobs:
# Mac and Linux use the same template with different matrixes
- template: buildscripts/azure/azure-linux-macos.yml
parameters:
name: macOS
vmImage: macOS-10.14
matrix:
py37_np117:
PYTHON: '3.7'
NUMPY: '1.17'
CONDA_ENV: 'azure_ci'
TEST_START_INDEX: 0
py39_np120:
PYTHON: '3.9'
NUMPY: '1.20'
CONDA_ENV: 'azure_ci'
TEST_START_INDEX: 1

- template: buildscripts/azure/azure-linux-macos.yml
parameters:
Expand All @@ -43,81 +27,3 @@ jobs:
RUN_FLAKE8: yes
RUN_MYPY: yes
TEST_START_INDEX: 3
py37_np117_vanilla:
PYTHON: '3.7'
NUMPY: '1.17'
CONDA_ENV: azure_ci
VANILLA_INSTALL: yes
TEST_START_INDEX: 4
py37_np117_tbb:
PYTHON: '3.7'
NUMPY: '1.17'
CONDA_ENV: azure_ci
TEST_THREADING: 'tbb'
TEST_START_INDEX: 5
py37_np117_omp:
PYTHON: '3.7'
NUMPY: '1.17'
CONDA_ENV: azure_ci
TEST_THREADING: omp
TEST_START_INDEX: 6
py37_np117_workqueue:
PYTHON: '3.7'
NUMPY: '1.17'
CONDA_ENV: azure_ci
TEST_THREADING: workqueue
TEST_START_INDEX: 7
py37_np118_doc:
PYTHON: '3.7'
NUMPY: '1.18'
CONDA_ENV: azure_ci
BUILD_DOC: yes
TEST_START_INDEX: 8
py37_np118_pickle5:
PYTHON: '3.7'
NUMPY: '1.18'
CONDA_ENV: azure_ci
TEST_PICKLE5: yes
TEST_START_INDEX: 9
py37_np119_svml:
PYTHON: '3.7'
NUMPY: '1.19'
CONDA_ENV: azure_ci
TEST_SVML: yes
TEST_START_INDEX: 10
py37_np120:
PYTHON: '3.7'
NUMPY: '1.20'
CONDA_ENV: azure_ci
TEST_START_INDEX: 11
py38_np118:
PYTHON: '3.8'
NUMPY: '1.18'
CONDA_ENV: azure_ci
TEST_START_INDEX: 12
py38_np119_typeguard:
PYTHON: '3.8'
NUMPY: '1.19'
CONDA_ENV: azure_ci
RUN_TYPEGUARD: yes
TEST_START_INDEX: 13
py38_np120:
PYTHON: '3.8'
NUMPY: '1.20'
CONDA_ENV: azure_ci
TEST_START_INDEX: 14
py39_np119:
PYTHON: '3.9'
NUMPY: '1.19'
CONDA_ENV: azure_ci
TEST_START_INDEX: 15
py39_np120:
PYTHON: '3.9'
NUMPY: '1.20'
CONDA_ENV: azure_ci
TEST_START_INDEX: 16

- template: buildscripts/azure/azure-windows.yml
parameters:
name: Windows
vmImage: vs2017-win2016
3 changes: 2 additions & 1 deletion buildscripts/azure/azure-linux-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:

steps:
- script: |
if [ "$(uname)" == "Linux" ] && [[ "$CONDA_SUBDIR" == "linux-32" || "$BITS32" == "yes" ]]; then sudo apt-get install -y libc6-dev-i386; fi
if [ "$(uname)" == "Linux" ] && [[ "$CONDA_SUBDIR" == "linux-32" || "$BITS32" == "yes" ]]; then sudo apt-get install -y libc6-dev-i386 gdb:i386; fi
if [ "$(uname)" == "Linux" ]; then sudo apt-get install -y gdb; fi
echo "Installing Miniconda"
buildscripts/incremental/install_miniconda.sh
export PATH=$HOME/miniconda3/bin:$PATH
Expand Down
103 changes: 3 additions & 100 deletions buildscripts/incremental/setup_conda_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,103 +2,6 @@

set -v -e

# first configure conda to have more tolerance of network problems, these
# numbers are not scientifically chosen, just merely larger than defaults
conda config --write-default
conda config --set remote_connect_timeout_secs 30.15
conda config --set remote_max_retries 10
conda config --set remote_read_timeout_secs 120.2
conda config --set show_channel_urls true
if [[ $(uname) == Linux ]]; then
if [[ "$CONDA_SUBDIR" != "linux-32" && "$BITS32" != "yes" ]] ; then
conda config --set restore_free_channel true
fi
fi
conda info
conda config --show

CONDA_INSTALL="conda install -q -y"
PIP_INSTALL="pip install -q"


EXTRA_CHANNELS=""
if [ "${USE_C3I_TEST_CHANNEL}" == "yes" ]; then
EXTRA_CHANNELS="${EXTRA_CHANNELS} -c c3i_test"
fi


# Deactivate any environment
source deactivate
# Display root environment (for debugging)
conda list

# If VANILLA_INSTALL is yes, then only Python, NumPy and pip are installed, this
# is to catch tests/code paths that require an optional package and are not
# guarding against the possibility that it does not exist in the environment.
# Create a base env first and then add to it...
# NOTE: gitpython is needed for CI testing to do the test slicing
# NOTE: pyyaml is used to ensure that the Azure CI config is valid
# NOTE: 32 bit linux... do not install NumPy, there's no conda package for >1.15
# so it has to come from pip later
if [[ "$CONDA_SUBDIR" == "linux-32" || "$BITS32" == "yes" ]]; then
conda create -n $CONDA_ENV -q -y ${EXTRA_CHANNELS} python=$PYTHON pip gitpython pyyaml
else
conda create -n $CONDA_ENV -q -y ${EXTRA_CHANNELS} python=$PYTHON numpy=$NUMPY pip gitpython pyyaml
fi

# Activate first
set +v
source activate $CONDA_ENV
set -v

# Install optional packages into activated env
if [ "${VANILLA_INSTALL}" != "yes" ]; then
# Scipy, CFFI, jinja2, IPython and pygments are optional dependencies, but exercised in the test suite
$CONDA_INSTALL ${EXTRA_CHANNELS} cffi jinja2 ipython pygments
# Only install scipy on 64bit, else it'll pull in NumPy, 32bit linux needs
# to get scipy from pip
if [[ "$CONDA_SUBDIR" != "linux-32" && "$BITS32" != "yes" ]] ; then
$CONDA_INSTALL ${EXTRA_CHANNELS} scipy
fi
fi

# Install the compiler toolchain
if [[ $(uname) == Linux ]]; then
if [[ "$CONDA_SUBDIR" == "linux-32" || "$BITS32" == "yes" ]] ; then
$CONDA_INSTALL gcc_linux-32 gxx_linux-32
else
$CONDA_INSTALL gcc_linux-64 gxx_linux-64
fi
elif [[ $(uname) == Darwin ]]; then
$CONDA_INSTALL clang_osx-64 clangxx_osx-64
# Install llvm-openmp and intel-openmp on OSX too
$CONDA_INSTALL llvm-openmp intel-openmp
fi

# If on 32bit linux, now pip install NumPy and SciPy (no conda package)
if [[ "$CONDA_SUBDIR" == "linux-32" || "$BITS32" == "yes" ]] ; then
$PIP_INSTALL numpy==$NUMPY scipy
fi

# Install latest llvmlite build
$CONDA_INSTALL -c numba/label/dev llvmlite

# Install dependencies for building the documentation
if [ "$BUILD_DOC" == "yes" ]; then $CONDA_INSTALL sphinx=2.4.4 sphinx_rtd_theme pygments numpydoc; fi
if [ "$BUILD_DOC" == "yes" ]; then $PIP_INSTALL rstcheck; fi
# Install dependencies for code coverage (codecov.io)
if [ "$RUN_COVERAGE" == "yes" ]; then $PIP_INSTALL codecov; fi
# Install SVML
if [ "$TEST_SVML" == "yes" ]; then $CONDA_INSTALL -c numba icc_rt; fi
# Install Intel TBB parallel backend
if [ "$TEST_THREADING" == "tbb" ]; then $CONDA_INSTALL -c numba tbb=2021 tbb-devel; fi
# Install pickle5
if [ "$TEST_PICKLE5" == "yes" ]; then $PIP_INSTALL pickle5; fi
# Install typeguard
if [ "$RUN_TYPEGUARD" == "yes" ]; then $CONDA_INSTALL conda-forge::typeguard; fi

# environment dump for debug
# echo "DEBUG ENV:"
# echo "-------------------------------------------------------------------------"
# conda env export
# echo "-------------------------------------------------------------------------"
which gdb
file $(which gdb)
gdb --version