bazaah / aur-ceph

Public workspace for ceph packages in the Archlinux AUR
https://aur.archlinux.org/pkgbase/ceph
6 stars 1 forks source link

v17.2.5-5: python test failures #10

Closed bazaah closed 1 year ago

bazaah commented 1 year ago

These are due to the python ecosystem not understanding semver.

The upstream has been struggling through them too:

Just keeping this here to track. I have no intention of back porting these fixes to 17.2.5, as I got a clean test run originally.


run-tox-qa ``` Requirement already satisfied: tox in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (4.0.16) Requirement already satisfied: chardet>=5.1 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (5.1.0) Requirement already satisfied: virtualenv>=20.17.1 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (20.17.1) Requirement already satisfied: pyproject-api>=1.2.1 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (1.2.1) Requirement already satisfied: pluggy>=1 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (1.0.0) Requirement already satisfied: colorama>=0.4.6 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (0.4.6) Requirement already satisfied: tomli>=2.0.1 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (2.0.1) Requirement already satisfied: filelock>=3.8.2 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (3.8.2) Requirement already satisfied: platformdirs>=2.6 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (2.6.0) Requirement already satisfied: cachetools>=5.2 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (5.2.0) Requirement already satisfied: packaging>=22 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from tox) (22.0) Requirement already satisfied: distlib<1,>=0.3.6 in /build/ceph/src/ceph-17.2.5/build/qa-virtualenv/lib/python3.10/site-packages (from virtualenv>=20.17.1->tox) (0.3.6) py3: install_deps /build/ceph/src/ceph-17.2.5/qa> python -I -m pip install httplib2 git+https://github.com/ceph/teuthology.git@main py3: commands[0] /build/ceph/src/ceph-17.2.5/qa> pytest --assert=plain test_import.py py3: failed with pytest is not allowed, use allowlist_externals to allow it py3: FAIL ✖ in 4 minutes 25.29 seconds flake8: install_deps /build/ceph/src/ceph-17.2.5/qa> python -I -m pip install flake8 flake8: commands[0] /build/ceph/src/ceph-17.2.5/qa> flake8 --select=F,E9 --exclude=venv,.tox ./tasks/cephfs/test_full.py:6:5: F401 'typing.Optional' imported but unused flake8: exit 1 (12.10 seconds) /build/ceph/src/ceph-17.2.5/qa> flake8 --select=F,E9 --exclude=venv,.tox pid=71946 flake8: FAIL ✖ in 30.18 seconds mypy: install_deps /build/ceph/src/ceph-17.2.5/qa> python -I -m pip install mypy types-boto types-cryptography types-jwt types-paramiko types-python-dateutil types-PyYAML types-requests -c /build/ceph/src/ceph-17.2.5/qa/../src/mypy-constrains.txt mypy: commands[0] /build/ceph/src/ceph-17.2.5/qa> mypy . Success: no issues found in 245 source files mypy: OK ✔ in 6 minutes 1.78 seconds deadsymlinks: commands[0] /build/ceph/src/ceph-17.2.5/qa> bash -c '! (find . -xtype l | grep ^)' py3: FAIL code 1 (265.29 seconds) flake8: FAIL code 1 (30.18=setup[18.08]+cmd[12.10] seconds) mypy: OK (361.78=setup[339.22]+cmd[22.56] seconds) deadsymlinks: OK (1.63=setup[0.51]+cmd[1.13] seconds) evaluation failed :( (659.23 seconds) ```
run-tox-mgr ``` Requirement already satisfied: tox in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (4.0.16) Requirement already satisfied: pyproject-api>=1.2.1 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (1.2.1) Requirement already satisfied: tomli>=2.0.1 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (2.0.1) Requirement already satisfied: colorama>=0.4.6 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (0.4.6) Requirement already satisfied: cachetools>=5.2 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (5.2.0) Requirement already satisfied: pluggy>=1 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (1.0.0) Requirement already satisfied: chardet>=5.1 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (5.1.0) Requirement already satisfied: virtualenv>=20.17.1 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (20.17.1) Requirement already satisfied: packaging>=22 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (22.0) Requirement already satisfied: filelock>=3.8.2 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (3.8.2) Requirement already satisfied: platformdirs>=2.6 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (2.6.0) Requirement already satisfied: distlib<1,>=0.3.6 in /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/lib/python3.10/site-packages (from virtualenv>=20.17.1->tox) (0.3.6) ROOT: will run in automatically provisioned tox, host /build/ceph/src/ceph-17.2.5/build/mgr-virtualenv/bin/python3.10 is missing [requires (has)]: cython ROOT: install_deps /build/ceph/src/ceph-17.2.5/src/pybind/mgr> python -I -m pip install cython tox ROOT: provision /build/ceph/src/ceph-17.2.5/src/pybind/mgr> .tox/.tox/bin/python -m tox -c /build/ceph/src/ceph-17.2.5/src/pybind/mgr/tox.ini -e py3,py37,mypy,flake8,jinjalint,nooptional py3: install_deps> python -I -m pip install cython -r requirements.txt -r rook/requirements.txt py3: commands[0]> pytest --doctest-modules ============================= test session starts ============================== platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0 cachedir: .tox/.tox/py3/.pytest_cache rootdir: /build/ceph/src/ceph-17.2.5/src/pybind/mgr, configfile: tox.ini plugins: cov-2.7.1, requests-mock-1.10.0, pyfakefs-5.0.0 collected 1281 items mgr_module.py . [ 0%] mgr_util.py ...... [ 0%] cephadm/upgrade.py . [ 0%] cephadm/tests/test_agent.py ..... [ 1%] cephadm/tests/test_autotune.py .... [ 1%] cephadm/tests/test_cephadm.py .......................................... [ 4%] ................................................................... [ 9%] cephadm/tests/test_completion.py ............ [ 10%] cephadm/tests/test_configchecks.py ....................... [ 12%] cephadm/tests/test_facts.py . [ 12%] cephadm/tests/test_migration.py ....... [ 13%] cephadm/tests/test_osd_removal.py ...................................... [ 16%] ............ [ 17%] cephadm/tests/test_scheduling.py ....................................... [ 20%] ........................................................................ [ 25%] ........................................................................ [ 31%] ........................................................................ [ 37%] ........................................................................ [ 42%] ........................................................................ [ 48%] ........................................................................ [ 53%] ........................................................................ [ 59%] ........................................................................ [ 65%] ........................................................................ [ 70%] ........................................................................ [ 76%] .......... [ 77%] cephadm/tests/test_services.py .......................... [ 79%] cephadm/tests/test_spec.py ......................................... [ 82%] cephadm/tests/test_ssh.py .s [ 82%] cephadm/tests/test_template.py . [ 82%] cephadm/tests/test_tuned_profiles.py .... [ 82%] cephadm/tests/test_upgrade.py ......................... [ 84%] cli_api/tests/test_cli_api.py ..... [ 85%] diskprediction_local/predictor.py . [ 85%] insights/tests/test_health.py ......... [ 86%] mds_autoscaler/tests/test_autoscaler.py . [ 86%] nfs/tests/test_nfs.py ................................. [ 88%] orchestrator/_interface.py ss.ss. [ 89%] orchestrator/module.py . [ 89%] orchestrator/tests/test_orchestrator.py ........... [ 90%] pg_autoscaler/tests/test_cal_final_pg_target.py ....... [ 90%] pg_autoscaler/tests/test_cal_ratio.py .. [ 90%] pg_autoscaler/tests/test_overlapping_roots.py .. [ 90%] progress/test_progress.py .. [ 91%] prometheus/module.py . [ 91%] prometheus/test_module.py ...... [ 91%] rook/tests/test_placement.py .... [ 91%] snap_schedule/tests/fs/test_schedule.py ................................ [ 94%] .............. [ 95%] snap_schedule/tests/fs/test_schedule_client.py .. [ 95%] telemetry/tests/test_telemetry.py ... [ 95%] tests/test_object_format.py ............................................ [ 99%] ... [ 99%] tests/test_tls.py ..... [100%] =============================== warnings summary =============================== .tox/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: Blowfish has been deprecated from cryptography.hazmat.primitives.ciphers.algorithms import Blowfish, CAST5 .tox/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: CAST5 has been deprecated from cryptography.hazmat.primitives.ciphers.algorithms import Blowfish, CAST5 .tox/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:30 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: SEED has been deprecated from cryptography.hazmat.primitives.ciphers.algorithms import SEED, TripleDES osd_perf_query/module.py:61 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/osd_perf_query/module.py:61: DeprecationWarning: invalid escape sequence '\.' 'regex': '^(?:rbd|journal)_data\.(?:([0-9]+)\.)?([^.]+)\.'}, prometheus/module.py:35 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/prometheus/module.py:35: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. v = StrictVersion(cherrypy.__version__) prometheus/module.py:38 prometheus/module.py:38 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/prometheus/module.py:38: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if StrictVersion("3.1.2") <= v < StrictVersion("3.2.3"): rook/rook_cluster.py:109 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/rook/rook_cluster.py:109: DeprecationWarning: invalid escape sequence '\d' coeff_and_unit = re.search('(\d+)(\D+)', size_str) stats/fs/perf_stats.py:26 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/stats/fs/perf_stats.py:26: DeprecationWarning: invalid escape sequence '\d' CLIENT_ID_ALL = "\d*" stats/fs/perf_stats.py:30 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/stats/fs/perf_stats.py:30: DeprecationWarning: invalid escape sequence '\s' MDS_PERF_QUERY_REGEX_MATCH_CLIENTS = '^(client.{0}\s+{1}):.*' zabbix/module.py:134 /build/ceph/src/ceph-17.2.5/src/pybind/mgr/zabbix/module.py:134: DeprecationWarning: invalid escape sequence '\[' uri = re.match("(?:(?:\[?)([a-z0-9-\.]+|[a-f0-9:\.]+)(?:\]?))(?:((?::))([0-9]{1,5}))?$", server) pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_one_meta_three_bulk /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_one_meta_three_bulk is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_two_meta_two_bulk /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_two_meta_two_bulk is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_one_meta_three_bulk /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_one_meta_three_bulk is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_two_meta_two_bulk /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_two_meta_two_bulk is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_with_diff_roots /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_with_diff_roots is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_with_diff_roots /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_with_diff_roots is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_with_overlapped_roots /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_uneven_pools_with_overlapped_roots is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_overlapping_roots.py::TestPgAutoscaler::test_subtrees_and_overlaps /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_overlapping_roots.py::TestPgAutoscaler::test_subtrees_and_overlaps is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) pg_autoscaler/tests/test_overlapping_roots.py::TestPgAutoscaler::test_no_overlaps /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. pg_autoscaler/tests/test_overlapping_roots.py::TestPgAutoscaler::test_no_overlaps is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) progress/test_progress.py::TestPgRecoveryEvent::test_pg_update /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. progress/test_progress.py::TestPgRecoveryEvent::test_pg_update is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) progress/test_progress.py::TestModule::test_osd_in_out /build/ceph/src/ceph-17.2.5/src/pybind/mgr/.tox/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. progress/test_progress.py::TestModule::test_osd_in_out is using nose-specific method: `setup(self)` To remove this warning, rename it to `setup_method(self)` See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose fixture_result = next(generator) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================ 1276 passed, 5 skipped, 22 warnings in 36.81s ================= py3: OK ✔ in 2 minutes 32.56 seconds py37: skipped because could not find python interpreter with spec(s): py37 py37: SKIP ⚠ in 2.05 seconds mypy: install_deps> python -I -m pip install cython mypy types-backports types-jwt types-pkg_resources types-python-dateutil types-PyYAML types-requests -r requirements.txt -c /build/ceph/src/ceph-17.2.5/src/pybind/mgr/../../mypy-constrains.txt mypy: commands[0]> mypy --config-file=../../mypy.ini usage: mypy [-h] [-v] [-V] [more options; see below] [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...] mypy: error: Missing target module, package, files, or command. mypy: exit 2 (0.78 seconds) /build/ceph/src/ceph-17.2.5/src/pybind/mgr> mypy --config-file=../../mypy.ini pid=89004 mypy: FAIL ✖ in 8 minutes 14.41 seconds flake8: install_deps> python -I -m pip install flake8 flake8: commands[0]> flake8 --config=tox.ini alerts flake8: commands[1]> balancer flake8: exit 2 (0.00 seconds) /build/ceph/src/ceph-17.2.5/src/pybind/mgr> balancer flake8: FAIL ✖ in 10.93 seconds jinjalint: install_deps> python -I -m pip install jinjaninja jinjalint: commands[0]> jinja-ninja cephadm/templates jinjalint: OK ✔ in 8.49 seconds nooptional: install_deps> python -I -m pip install cython -r requirements-required.txt nooptional: commands[0]> pytest cephadm/tests/test_ssh.py ============================= test session starts ============================== platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0 cachedir: .tox/.tox/nooptional/.pytest_cache rootdir: /build/ceph/src/ceph-17.2.5/src/pybind/mgr, configfile: tox.ini plugins: cov-2.7.1, requests-mock-1.10.0, pyfakefs-5.0.0 collected 2 items cephadm/tests/test_ssh.py s. [100%] ========================= 1 passed, 1 skipped in 0.02s ========================= py3: OK (152.55=setup[114.88]+cmd[37.68] seconds) py37: SKIP (2.05 seconds) mypy: FAIL code 2 (494.41=setup[493.63]+cmd[0.78] seconds) flake8: FAIL code 2 (10.93=setup[10.80]+cmd[0.13,0.00] seconds) jinjalint: OK (8.49=setup[8.47]+cmd[0.02] seconds) nooptional: OK (251.88=setup[250.65]+cmd[1.23] seconds) evaluation failed :( (920.97 seconds) ```