Skip to content

Flaky prometheus remote write system test #20967

@jsoriano

Description

@jsoriano

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: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:PlatformsLabel for the Integrations - Platforms teamflaky-testUnstable or unreliable test cases.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions