Page MenuHomeSoftware Heritage

Unstuck swh.search build
Closed, MigratedEdits Locked

Event Timeline

ardumont created this task.

Looks like it is related to recent elasticsearch 7.17.3 release, downgrading to 7.17.2 makes the tests hang go away.

When using 7.17.3 version, the following error appears when executing tests.

(swh) ✘-INT ~/swh/swh-environment/swh-search [master|⚑ 4] 
11:39 $ pytest -sv --log-cli-level=debug
================================================================================================================================== test session starts ==================================================================================================================================
platform linux -- Python 3.9.2, pytest-7.1.1, pluggy-1.0.0 -- /home/anlambert/.virtualenvs/swh/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/anlambert/swh/swh-environment/swh-search/.hypothesis/examples')
rootdir: /home/anlambert/swh/swh-environment/swh-search, configfile: pytest.ini
plugins: redis-2.4.0, postgresql-3.1.3, forked-1.4.0, mock-3.7.0, flask-1.2.0, xdist-2.5.0, cov-3.0.0, hypothesis-6.43.3, requests-mock-1.9.3, django-test-migrations-1.2.0, django-4.5.2, rabbitmq-2.2.1, dash-2.3.1, mongodb-2.2.0, asyncio-0.18.3, swh.journal-1.0.1.dev3+g3771edb
asyncio: mode=legacy
collected 186 items                                                                                                                                                                                                                                                                     

swh/search/tests/test_api_client.py::TestRemoteSearch::test_filter_keyword_in_filter Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:416)
        at org.elasticsearch.bootstrap.Security.setSecurityManager(Security.java:99)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)