Closed kloczek closed 3 years ago
After deselecting all failing units still there are some warnings:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-elasticsearch-7.14.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-elasticsearch-7.14.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra --deselect test_elasticsearch/test_async/test_server/test_clients.py::TestBulk::test_bulk_works_with_bytestring_body --deselect test_elasticsearch/test_async/test_server/test_clients.py::TestBulk::test_bulk_works_with_string_body --deselect test_elasticsearch/test_async/test_server/test_clients.py::TestUnicode::test_indices_analyze --deselect test_elasticsearch/test_async/test_server/test_clients.py::TestYarlMissing::test_aiohttp_connection_works_without_yarl --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestBulk::test_all_documents_get_inserted --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestBulk::test_bulk_works_with_single_item --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestBulk::test_error_is_raised --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestBulk::test_errors_are_collected_properly --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestBulk::test_errors_are_reported_correctly --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestBulk::test_ignore_error_if_raised --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestBulk::test_stats_only_reports_numbers --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestParentChildReindex::test_children_are_reindexed_correctly --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestReindex::test_all_documents_get_moved --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestReindex::test_reindex_accepts_a_query --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestReindex::test_reindex_passes_kwargs_to_scan_and_bulk --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_all_documents_are_read --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_clear_scroll --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_initial_search_error --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_logger --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_no_scroll_id_fast_route --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_order_can_be_preserved --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_scan_auth_kwargs_favor_scroll_kwargs_option --deselect 'test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_scan_auth_kwargs_forwarded[kwargs0]' --deselect 'test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_scan_auth_kwargs_forwarded[kwargs1]' --deselect 'test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_scan_auth_kwargs_forwarded[kwargs2]' --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestScan::test_scroll_error --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_actions_remain_unchanged --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_all_documents_get_inserted --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_all_errors_from_chunk_are_raised_on_failure --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_different_op_types --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_documents_data_types --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_rejected_documents_are_retried --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_rejected_documents_are_retried_at_most_max_retries_times --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_transport_error_can_becaught --deselect test_elasticsearch/test_async/test_server/test_helpers.py::TestStreamingBulk::test_transport_error_is_raised_with_max_retries
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=611976949
rootdir: /home/tkloczko/rpmbuild/BUILD/elasticsearch-py-7.14.0, configfile: setup.cfg
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, xprocess-0.18.1, black-0.3.12, anyio-3.3.0, asyncio-0.15.1, trio-0.7.0, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0, Faker-8.12.1, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1, twisted-1.13.3
collected 358 items / 35 deselected / 323 selected
test_elasticsearch/test_server/test_clients.py sss [ 0%]
test_elasticsearch/test_helpers.py ..........s [ 4%]
test_elasticsearch/test_exceptions.py .. [ 4%]
test_elasticsearch/test_server/test_helpers.py sssssssssssssssssssssssssssss [ 13%]
test_elasticsearch/test_transport.py ............................................................... [ 33%]
test_elasticsearch/test_connection.py ................................................................ [ 53%]
test_elasticsearch/test_client/test_overrides.py ............... [ 57%]
test_elasticsearch/test_client/test_cluster.py ... [ 58%]
test_elasticsearch/test_connection_pool.py .............. [ 63%]
test_elasticsearch/test_server/test_rest_api_spec.py s [ 63%]
test_elasticsearch/test_client/test_utils.py ...s.......... [ 67%]
test_elasticsearch/test_utils.py ... [ 68%]
test_elasticsearch/test_client/test_indices.py ..... [ 70%]
test_elasticsearch/test_serializer.py ........................ [ 77%]
test_elasticsearch/test_async/test_transport.py ........................................... [ 91%]
test_elasticsearch/test_cases.py ... [ 91%]
test_elasticsearch/test_async/test_connection.py .......................... [100%]
============================================================================= warnings summary =============================================================================
test_elasticsearch/test_server/test_rest_api_spec.py:562
/home/tkloczko/rpmbuild/BUILD/elasticsearch-py-7.14.0/test_elasticsearch/test_server/test_rest_api_spec.py:562: UserWarning: Could not load REST API tests: Elasticsearch failed to start.
warnings.warn("Could not load REST API tests: %s" % (str(e),))
test_elasticsearch/test_transport.py::TestTransport::test_client_meta_header
/home/tkloczko/rpmbuild/BUILD/elasticsearch-py-7.14.0/test_elasticsearch/test_transport.py:214: DeprecationWarning: Please use assertRegex instead.
self.assertRegexpMatches(
test_elasticsearch/test_transport.py::TestTransport::test_client_meta_header
/home/tkloczko/rpmbuild/BUILD/elasticsearch-py-7.14.0/test_elasticsearch/test_transport.py:227: DeprecationWarning: Please use assertRegex instead.
self.assertRegexpMatches(
test_elasticsearch/test_serializer.py::TestJSONSerializer::test_serializes_numpy_floats
test_elasticsearch/test_serializer.py::TestJSONSerializer::test_serializes_numpy_floats
test_elasticsearch/test_serializer.py::TestJSONSerializer::test_serializes_numpy_floats
/home/tkloczko/rpmbuild/BUILD/elasticsearch-py-7.14.0/test_elasticsearch/test_serializer.py:103: DeprecationWarning: Please use assertRegex instead.
self.assertRegexpMatches(
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [32] ../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:355: No client is available
SKIPPED [1] test_elasticsearch/test_helpers.py:60: unconditional skip
SKIPPED [1] test_elasticsearch/test_server/test_rest_api_spec.py:567: got empty parameter set ['test_spec'], function test_rest_api_spec at /home/tkloczko/rpmbuild/BUILD/elasticsearch-py-7.14.0/test_elasticsearch/test_server/test_rest_api_spec.py:566
SKIPPED [1] test_elasticsearch/test_client/test_utils.py:129: Only relevant for py2
======================================================= 288 passed, 35 skipped, 35 deselected, 6 warnings in 32.02s ========================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
You're correct that you need an Elasticsearch service running however it's always been the case that you need to start your own to choose the version and other options. This is documented in CONTRIBUTING.md.
That is fine. Will check that. Thx.
What about those DeprecationWarning
warnings?
:shrug: On main
we've moved completely over to pytest so I'm not as worried about them.
Just humble question: so you have some plan to make new release? (just asking to coordinate tat possibility wit h other points from my bug/todo list).
Thx to let me know.
New stable releases follow the Elastic Stack so 7.14.1 will be next.
I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.
I have impression that test suite requires running elasticsearch service. If that is true pytest should start/stop that et the beginning/end of the testing session.