Skip to content
New issue

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

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

Already on GitHub? # to your account

[Flaky Test] HTTPJSON input - TestMetrics/Test_pagination_metrics - expected non zero value for metric httpjson_interval_pages_execution_time #39676

Closed
belimawr opened this issue May 22, 2024 · 4 comments · Fixed by #39678
Labels
flaky-test Unstable or unreliable test cases. Team:Security-Service Integrations Security Service Integrations Team

Comments

@belimawr
Copy link
Contributor

Flaky Test

Stack Trace

2024-05-21 12:10:23 EDT	=== Failed
2024-05-21 12:10:23 EDT	=== FAIL: x-pack/filebeat/input/httpjson TestMetrics/Test_pagination_metrics (0.02s)
2024-05-21 12:10:23 EDT	    metrics_test.go:162:
2024-05-21 12:10:23 EDT	        	Error Trace:	C:/buildkite-agent/builds/bk-agent-prod-gcp-1716306902497376129/elastic/beats-xpack-filebeat/x-pack/filebeat/input/httpjson/metrics_test.go:162
2024-05-21 12:10:23 EDT	        	Error:      	Received unexpected error:
2024-05-21 12:10:23 EDT	        	            	expected non zero value for metric httpjson_interval_pages_execution_time
2024-05-21 12:10:23 EDT	        	Test:       	TestMetrics/Test_pagination_metrics
2024-05-21 12:10:23 EDT	
2024-05-21 12:10:23 EDT	=== FAIL: x-pack/filebeat/input/httpjson TestMetrics (0.02s)
@belimawr belimawr added flaky-test Unstable or unreliable test cases. Team:Security-Service Integrations Security Service Integrations Team labels May 22, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@belimawr
Copy link
Contributor Author

It's also failing on main (18a7e5447a3b474f3f09f98932ff124d210067a5):

PS C:\devel\beats\x-pack\filebeat> go test -v -count=10 -run=TestMetrics .\input\httpjson\
go: downloading github.com/elastic/elastic-agent-libs v0.9.8
go: downloading github.com/elastic/elastic-agent-client/v7 v7.9.0
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.06s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.06s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.03s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.03s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.04s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.04s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.06s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.06s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
    metrics_test.go:162:
                Error Trace:    C:/devel/beats/x-pack/filebeat/input/httpjson/metrics_test.go:162
                Error:          Received unexpected error:
                                expected non zero value for metric httpjson_interval_pages_execution_time
                Test:           TestMetrics/Test_pagination_metrics
--- FAIL: TestMetrics (0.05s)
    --- FAIL: TestMetrics/Test_pagination_metrics (0.05s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.05s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.05s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.04s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.04s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.05s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.05s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.06s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.06s)
=== RUN   TestMetrics
=== RUN   TestMetrics/Test_pagination_metrics
--- PASS: TestMetrics (0.03s)
    --- PASS: TestMetrics/Test_pagination_metrics (0.03s)
FAIL
FAIL    github.com/elastic/beats/v7/x-pack/filebeat/input/httpjson      0.551s
FAIL
PS C:\devel\beats\x-pack\filebeat>

@efd6
Copy link
Contributor

efd6 commented May 22, 2024

Putting together a windows skip now.

@belimawr
Copy link
Contributor Author

Putting together a windows skip now.

Thanks, I was about to do it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Security-Service Integrations Security Service Integrations Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants