Source: elastalert Version: 0.1.29-1 Severity: serious Tags: ftbfs Some recent change in unstable makes elastalert FTBFS:
https://tests.reproducible-builds.org/debian/history/elastalert.html https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/elastalert.html ... dh_auto_test -O--buildsystem=pybuild I: pybuild base:217: cd /build/1st/elastalert-0.1.29/.pybuild/cpython2_2.7/build; python2.7 -m pytest tests ============================= test session starts ============================== platform linux2 -- Python 2.7.15+, pytest-3.6.4, py-1.6.0, pluggy-0.6.0 rootdir: /build/1st/elastalert-0.1.29, inifile: tox.ini collected 158 items tests/alerts_test.py .......................................... [ 26%] tests/auth_test.py ..F [ 28%] tests/base_test.py ............................................... [ 58%] tests/config_test.py ................ [ 68%] tests/kibana_test.py .... [ 70%] tests/rules_test.py .................................. [ 92%] tests/util_test.py ............ [100%] =================================== FAILURES =================================== _____________________________ test_auth_aws_region _____________________________ def test_auth_aws_region(): auth = Auth()( host='localhost:8080', username=None, password=None, aws_region='us-east-1', > profile_name=None ) tests/auth_test.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ elastalert/auth.py:59: in __call__ refreshable_credential=session.get_credentials(), /usr/lib/python2.7/dist-packages/boto3/session.py:183: in get_credentials return self._session.get_credentials() /usr/lib/python2.7/dist-packages/botocore/session.py:479: in get_credentials 'credential_provider').load_credentials() /usr/lib/python2.7/dist-packages/botocore/credentials.py:1663: in load_credentials creds = provider.load() /usr/lib/python2.7/dist-packages/botocore/credentials.py:842: in load metadata = fetcher.retrieve_iam_role_credentials() /usr/lib/python2.7/dist-packages/botocore/utils.py:291: in retrieve_iam_role_credentials r = self._get_request(url, timeout, num_attempts) /usr/lib/python2.7/dist-packages/botocore/utils.py:276: in _get_request response = self._session.send(request.prepare()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <botocore.httpsession.URLLib3Session object at 0x7fe628d70ad0> request = <AWSPreparedRequest stream_output=False, method=GET, url=http://169.254.169.25...er-Agent': 'Boto3/1.7.55 Python/2.7.15+ Linux/4.9.0-8-amd64 Botocore/1.12.16'}> def send(self, request): try: proxy_url = self._proxy_config.proxy_url_for(request.url) manager = self._get_connection_manager(request.url, proxy_url) conn = manager.connection_from_url(request.url) self._setup_ssl_cert(conn, request.url, self._verify) request_target = self._get_request_target(request.url, proxy_url) urllib_response = conn.urlopen( method=request.method, url=request_target, body=request.body, headers=request.headers, retries=False, assert_same_host=False, preload_content=False, decode_content=False, ) http_response = botocore.awsrequest.AWSResponse( request.url, urllib_response.status, urllib_response.headers, urllib_response, ) if not request.stream_output: # Cause the raw stream to be exhausted immediately. We do it # this way instead of using preload_content because # preload_content will never buffer chunked responses http_response.content return http_response except URLLib3SSLError as e: raise SSLError(endpoint_url=request.url, error=e) except (NewConnectionError, socket.gaierror) as e: raise EndpointConnectionError(endpoint_url=request.url, error=e) except ProxyError as e: > raise ProxyConnectionError(proxy_url=proxy_url, error=e) E ProxyConnectionError: Failed to connect to proxy URL: "http://127.0.0.1:9/" /usr/lib/python2.7/dist-packages/botocore/httpsession.py:264: ProxyConnectionError ==================== 1 failed, 157 passed in 15.20 seconds ===================== E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd /build/1st/elastalert-0.1.29/.pybuild/cpython2_2.7/build; python2.7 -m pytest tests dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13 make: *** [debian/rules:7: build] Error 25