This check has been archived and is scheduled for deletion.
Learn more about checks retention
Jenkins - WCR / Jenkins / Unit Tests
failed
Oct 30, 2023 in 2m 40s
Declarative: Post Actions: warning in 'junit' step
ci / unit_test / unit_test / Shell Script
Error in sh
step, with arguments #!/bin/bash export PATH=$PATH:$CONDAPATH source activate climada_env rm -rf tests_xml/ rm -rf coverage/ python -m pip install bayesian-optimization make unit_test
.
script returned exit code 2
Build log
Collecting bayesian-optimization
Using cached bayesian_optimization-1.4.3-py3-none-any.whl (18 kB)
Requirement already satisfied: numpy>=1.9.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (1.24.4)
Requirement already satisfied: scipy>=1.0.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (1.11.3)
Requirement already satisfied: scikit-learn>=0.18.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (1.3.2)
Requirement already satisfied: colorama>=0.4.6 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from bayesian-optimization) (0.4.6)
Requirement already satisfied: joblib>=1.1.1 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from scikit-learn>=0.18.0->bayesian-optimization) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages (from scikit-learn>=0.18.0->bayesian-optimization) (3.2.0)
Installing collected packages: bayesian-optimization
Successfully installed bayesian-optimization-1.4.3
pytest --junitxml=tests_xml/tests.xml --cov --cov-config=.coveragerc --cov-report html --cov-report xml --cov-report term:skip-covered --ignore=climada/test climada/
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /var/lib/jenkins/jobs/climada_branches/branches/PR-791/workspace
plugins: subtests-0.11.0, cov-4.1.0
collected 647 items / 1 error
==================================== ERRORS ====================================
________ ERROR collecting climada/util/calibrate/test/test_calibrate.py ________
ImportError while importing test module '/var/lib/jenkins/jobs/climada_branches/branches/PR-791/workspace/climada/util/calibrate/test/test_calibrate.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
climada/util/calibrate/__init__.py:3: in <module>
from .base import Input, OutputEvaluator
climada/util/calibrate/base.py:12: in <module>
import seaborn as sns
E ModuleNotFoundError: No module named 'seaborn'
=============================== warnings summary ===============================
climada/util/__init__.py:25
/var/lib/jenkins/jobs/climada_branches/branches/PR-791/workspace/climada/util/__init__.py:25: FionaDeprecationWarning: This function will be removed in version 2.0. Please use CRS.from_epsg() instead.
from .constants import *
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pycountry/__init__.py:10
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pycountry/__init__.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:11
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:11: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
PANDAS_VERSION = LooseVersion(pd.__version__)
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:13
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:13: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
PANDAS_0210 = PANDAS_VERSION >= LooseVersion("0.21.0")
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:14
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:14: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
PANDAS_0220 = PANDAS_VERSION >= LooseVersion("0.22.0")
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:15
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/site-packages/pandas_datareader/compat/__init__.py:15: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
PANDAS_0230 = PANDAS_VERSION >= LooseVersion("0.23.0")
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/pickle.py:1717
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/pickle.py:1717
../../../../../../../../home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/pickle.py:1717
/home/IEDAdmin/miniconda3/envs/climada_env/lib/python3.9/pickle.py:1717: UserWarning: Unpickling a shapely <2.0 geometry object. Please save the pickle again; shapely 2.1 will not have this compatibility.
setstate(state)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /var/lib/jenkins/jobs/climada_branches/branches/PR-791/workspace/tests_xml/tests.xml -
---------- coverage: platform linux, python 3.9.18-final-0 -----------
Name Stmts Miss Branch BrPart Cover
----------------------------------------------------------------------------------------
climada/__init__.py 20 6 10 1 77%
climada/engine/calibration_opt.py 149 103 70 4 25%
climada/engine/cost_benefit.py 429 384 144 0 8%
climada/engine/forecast.py 350 296 130 0 11%
climada/engine/impact.py 588 478 223 9 15%
climada/engine/impact_calc.py 140 105 43 0 19%
climada/engine/impact_data.py 393 365 180 0 5%
climada/engine/test/test_cost_benefit.py 504 465 6 0 8%
climada/engine/test/test_forecast.py 120 99 12 0 16%
climada/engine/test/test_impact.py 737 658 32 0 10%
climada/engine/test/test_impact_calc.py 434 371 14 0 15%
climada/engine/test/test_impact_data.py 148 124 0 0 16%
climada/engine/unsequa/calc_base.py 128 100 56 0 15%
climada/engine/unsequa/calc_cost_benefit.py 90 68 26 0 19%
climada/engine/unsequa/calc_impact.py 82 60 18 0 22%
climada/engine/unsequa/input_var.py 267 225 142 0 10%
climada/engine/unsequa/test/test_unsequa.py 333 286 30 0 13%
climada/engine/unsequa/unc_output.py 415 354 180 0 10%
climada/entity/disc_rates/base.py 108 69 24 1 30%
climada/entity/disc_rates/test/test_base.py 109 81 0 0 26%
climada/entity/entity_def.py 55 17 16 5 69%
climada/entity/exposures/base.py 420 302 163 11 25%
climada/entity/exposures/litpop/gpw_population.py 32 24 12 0 18%
climada/entity/exposures/litpop/litpop.py 330 285 164 0 9%
climada/entity/exposures/litpop/nightlight.py 235 199 98 0 11%
climada/entity/exposures/test/test_base.py 356 306 4 0 14%
climada/entity/exposures/test/test_litpop.py 174 144 14 0 16%
climada/entity/exposures/test/test_mat.py 87 70 0 0 20%
climada/entity/exposures/test/test_nightlight.py 38 28 2 0 25%
climada/entity/impact_funcs/base.py 62 33 6 1 44%
climada/entity/impact_funcs/impact_func_set.py 247 171 110 6 26%
climada/entity/impact_funcs/storm_europe.py 40 4 2 0 90%
climada/entity/impact_funcs/test/test_base.py 28 21 0 0 25%
climada/entity/impact_funcs/test/test_imp_fun_set.py 401 365 12 0 9%
climada/entity/impact_funcs/test/test_tc.py 83 68 0 0 18%
climada/entity/impact_funcs/test/test_ws.py 21 16 0 0 24%
climada/entity/impact_funcs/trop_cyclone.py 113 88 28 0 19%
climada/entity/measures/base.py 153 112 44 0 21%
climada/entity/measures/measure_set.py 207 138 86 6 27%
climada/entity/measures/test/test_base.py 266 235 10 0 11%
climada/entity/measures/test/test_meas_set.py 293 257 8 0 12%
climada/entity/tag/__init__.py 6 1 0 0 83%
climada/entity/tag/tag.py 44 22 20 1 39%
climada/entity/tag/test/test_tag.py 29 23 0 0 21%
climada/entity/test/test_entity.py 57 40 0 0 30%
climada/hazard/base.py 812 672 393 3 13%
climada/hazard/centroids/centr.py 533 393 232 6 20%
climada/hazard/centroids/test/test_centr.py 113 92 0 0 19%
climada/hazard/centroids/test/test_vec_ras.py 437 379 14 0 13%
climada/hazard/storm_europe.py 357 313 122 0 9%
climada/hazard/tc_clim_change.py 27 21 8 0 17%
climada/hazard/tc_tracks.py 939 826 427 0 8%
climada/hazard/tc_tracks_synth.py 418 378 150 0 7%
climada/hazard/test/test_base.py 811 722 12 0 11%
climada/hazard/test/test_base_xarray.py 253 213 14 0 15%
climada/hazard/test/test_storm_europe.py 84 65 0 0 23%
climada/hazard/test/test_tc_cc.py 26 21 2 0 18%
climada/hazard/test/test_tc_tracks.py 676 609 42 0 9%
climada/hazard/test/test_tc_tracks_synth.py 289 253 26 0 11%
climada/hazard/test/test_trop_cyclone.py 281 239 28 0 14%
climada/hazard/trop_cyclone.py 413 347 112 0 13%
climada/util/__init__.py 19 8 8 0 41%
climada/util/api_client.py 376 166 158 26 49%
climada/util/calibrate/__init__.py 4 3 0 0 25%
climada/util/calibrate/base.py 124 115 30 0 6%
climada/util/checker.py 50 35 32 2 21%
climada/util/config.py 162 44 80 13 68%
climada/util/coordinates.py 956 843 378 3 9%
climada/util/dates_times.py 28 18 14 0 24%
climada/util/dwd_icon_loader.py 89 76 34 0 11%
climada/util/files_handler.py 73 56 34 0 16%
climada/util/finance.py 173 144 60 0 12%
climada/util/hdf5_handler.py 33 11 14 1 62%
climada/util/lines_polys_handler.py 236 189 80 0 15%
climada/util/plot.py 291 254 144 0 9%
climada/util/save.py 25 17 4 0 28%
climada/util/select.py 18 14 9 0 15%
climada/util/test/test__init__.py 15 10 0 0 33%
climada/util/test/test_checker.py 47 34 0 0 28%
climada/util/test/test_config.py 39 31 0 0 21%
climada/util/test/test_coordinates.py 921 806 78 0 12%
climada/util/test/test_dates_times.py 32 21 0 0 34%
climada/util/test/test_dwd_icon.py 38 23 0 0 39%
climada/util/test/test_files.py 77 57 6 0 24%
climada/util/test/test_finance.py 122 97 0 0 20%
climada/util/test/test_hdf5.py 91 78 0 0 14%
climada/util/test/test_lines_polys_handler.py 277 216 14 0 21%
climada/util/test/test_plot.py 84 69 0 0 18%
climada/util/test/test_save.py 25 14 0 0 44%
climada/util/test/test_select.py 22 15 0 0 32%
climada/util/test/test_value_representation.py 83 68 10 0 16%
climada/util/test/test_yearsets.py 40 22 0 0 45%
climada/util/value_representation.py 49 39 20 0 14%
climada/util/yearsets.py 68 56 28 0 12%
----------------------------------------------------------------------------------------
TOTAL 20554 16858 4958 99 15%
22 files skipped due to complete coverage.
Coverage HTML written to dir coverage
Coverage XML written to file coverage.xml
=========================== short test summary info ============================
ERROR climada/util/calibrate/test/test_calibrate.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
======================== 9 warnings, 1 error in 29.75s =========================
make: *** [Makefile:23: unit_test] Error 2
Declarative: Post Actions / Archive JUnit-formatted test results
Warning in junit
step, with arguments tests_xml/*.xml
.
1 tests failed
Details
- Declarative: Checkout SCM (3.7 sec)
- ci (2 min 33 sec)
- lint (2.9 sec)
- lint (2 min 29 sec)
- unit_test (40 sec)
- unit_test (37 sec)
Error: script returned exit code 2
- unit_test (37 sec)
- lint (2.9 sec)
- Declarative: Post Actions (3 sec)
Unstable: 1 tests failed
- ci (2 min 33 sec)
Loading