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 prometheus remote write system test #20967

Closed
jsoriano opened this issue Sep 3, 2020 · 1 comment · Fixed by #21173
Closed

Flaky prometheus remote write system test #20967

jsoriano opened this issue Sep 3, 2020 · 1 comment · Fixed by #21173
Labels
flaky-test Unstable or unreliable test cases. Team:Platforms Label for the Integrations - Platforms team

Comments

@jsoriano
Copy link
Member

jsoriano commented Sep 3, 2020

Flaky Test

  • Test Name: metricbeat/module/prometheus/test_prometheus.py::TestRemoteWrite::test_remote_write
  • Link:
    self.wait_until(lambda: self.output_lines() > 0, 60)
  • Branch: Seen in master and several branches.
  • Notes: Seems to timeout waiting for output, happening since a couple of days ago (Sept 1st).

Stack Trace

From https://beats-ci.elastic.co/job/Beats/job/beats/job/PR-20926/3/testReport/junit/metricbeat.module.prometheus.test_prometheus/TestRemoteWrite/Build_and_Test___Metricbeat_OSS_Python_Integration_tests___test_remote_write/

self = <test_prometheus.TestRemoteWrite testMethod=test_remote_write>

    @unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
    def test_remote_write(self):
        """
        prometheus remote_write test
        """
        self.render_config_template(modules=[{
            "name": "prometheus",
            "metricsets": ["remote_write"],
            "period": "5s",
            "host": "localhost",
            "port": "9201"
        }])
        proc = self.start_beat()
    
        self.wait_until(lambda: self.log_contains("Starting HTTP"))
    
>       self.wait_until(lambda: self.output_lines() > 0, 60)

module/prometheus/test_prometheus.py:88: 
@jsoriano jsoriano added flaky-test Unstable or unreliable test cases. Team:Platforms Label for the Integrations - Platforms team labels Sep 3, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

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:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants