Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test_monitoring.Test #16247

Closed
jsoriano opened this issue Feb 11, 2020 · 7 comments
Closed

Flaky test_monitoring.Test #16247

jsoriano opened this issue Feb 11, 2020 · 7 comments
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@jsoriano
Copy link
Member

jsoriano commented Feb 11, 2020

Flaky Test

Stack Trace

Traceback (most recent call last):
  File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 120, in test_compare
    self.wait_until(lambda: self.monitoring_doc_exists('beats_stats'))
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/beat/beat.py", line 349, in wait_until
    while not cond():
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 120, in <lambda>
    self.wait_until(lambda: self.monitoring_doc_exists('beats_stats'))
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 188, in monitoring_doc_exists
    hits = self.search_monitoring_doc(monitoring_type)
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 183, in search_monitoring_doc
    size=1
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/client/__init__.py", line 811, in search
    "GET", _make_path(index, "_search"), params=params, body=body
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/transport.py", line 358, in perform_request
    timeout=timeout,
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/connection/http_urllib3.py", line 257, in perform_request
    self._raise_error(response.status, raw_data)
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/connection/base.py", line 182, in _raise_error
    status_code, error_message, additional_info
elasticsearch.exceptions.TransportError: TransportError(503, 'search_phase_execution_exception')
Traceback (most recent call last):
  File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 84, in test_direct_to_monitoring_cluster
    self.wait_until(lambda: self.monitoring_doc_exists('beats_stats'))
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/beat/beat.py", line 349, in wait_until
    while not cond():
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 84, in <lambda>
    self.wait_until(lambda: self.monitoring_doc_exists('beats_stats'))
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 188, in monitoring_doc_exists
    hits = self.search_monitoring_doc(monitoring_type)
  File "/go/src/github.com/elastic/beats/libbeat/tests/system/test_monitoring.py", line 183, in search_monitoring_doc
    size=1
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/client/__init__.py", line 811, in search
    "GET", _make_path(index, "_search"), params=params, body=body
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/transport.py", line 358, in perform_request
    timeout=timeout,
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/connection/http_urllib3.py", line 257, in perform_request
    self._raise_error(response.status, raw_data)
  File "/tmp/python-env/lib/python3.7/site-packages/elasticsearch/connection/base.py", line 182, in _raise_error
    status_code, error_message, additional_info
elasticsearch.exceptions.TransportError: TransportError(503, 'search_phase_execution_exception')
@jsoriano jsoriano added flaky-test Unstable or unreliable test cases. Team:Services (Deprecated) Label for the former Integrations-Services team labels Feb 11, 2020
@jsoriano jsoriano changed the title Flaky test_monitoring.Test.test_compare Flaky test_monitoring.Test Feb 11, 2020
jsoriano added a commit that referenced this issue Feb 12, 2020
Skip tests frequently failing in python 3 branch.
#16247
@botelastic
Copy link

botelastic bot commented Jan 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Jan 27, 2022
@jlind23
Copy link
Collaborator

jlind23 commented Mar 31, 2022

Backlog grooming: Closing for now.

@jlind23
Copy link
Collaborator

jlind23 commented Mar 31, 2022

@cmacknz the entire class is skipped, should we remove it or rework those tests?

@cmacknz
Copy link
Member

cmacknz commented Mar 31, 2022

It has been disabled for 2 years so we may as well remove it.

@cmacknz
Copy link
Member

cmacknz commented Apr 6, 2022

Reopening this. I might be able to fix the test.

@cmacknz cmacknz reopened this Apr 6, 2022
@botelastic botelastic bot removed the Stalled label Apr 6, 2022
@cmacknz cmacknz self-assigned this Apr 6, 2022
@zube zube bot unassigned cmacknz Apr 6, 2022
@zube zube bot added [zube]: Inbox and removed [zube]: Done labels Apr 6, 2022
@cmacknz cmacknz added [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed [zube]: Inbox labels Apr 6, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@zube zube bot assigned cmacknz Apr 6, 2022
@zube zube bot closed this as completed Apr 6, 2022
@zube zube bot added [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed [zube]: Inbox labels Apr 6, 2022
@zube zube bot reopened this Apr 6, 2022
@zube zube bot added [zube]: Inbox and removed [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Apr 6, 2022
@zube zube bot closed this as completed Apr 6, 2022
@zube zube bot added [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed [zube]: Inbox labels Apr 6, 2022
@zube zube bot reopened this Apr 6, 2022
@zube zube bot added [zube]: Inbox and removed [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Apr 6, 2022
@zube zube bot closed this as completed Apr 6, 2022
@zube zube bot added [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed [zube]: Inbox labels Apr 6, 2022
@zube zube bot reopened this Apr 6, 2022
@zube zube bot added [zube]: Inbox and removed [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Apr 6, 2022
@zube zube bot closed this as completed Apr 6, 2022
@zube zube bot added [zube]: Done Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed [zube]: Inbox labels Apr 6, 2022
@cmacknz cmacknz removed the Team:Services (Deprecated) Label for the former Integrations-Services team label Apr 6, 2022
@zube zube bot removed the [zube]: Done label Jul 6, 2022
leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
Skip tests frequently failing in python 3 branch.
elastic#16247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

5 participants