Skip to content

[Flaky test] filebeat/input/journald TestDoubleStarCanBeUsed #46904

@AndersonQ

Description

@AndersonQ

Flaky Test

However, only the failing tests take a long time. So there might be something else happening there

can be reproduced with:

go test -v -count 100 -run TestDoubleStarCanBeUsed ./filebeat/input/journald
go test -v -count 100 -run TestDoubleStarCanBeUsed ./filebeat/input/journald 
=== RUN   TestDoubleStarCanBeUsed
--- PASS: TestDoubleStarCanBeUsed (0.04s)
=== RUN   TestDoubleStarCanBeUsed
--- PASS: TestDoubleStarCanBeUsed (0.04s)
=== RUN   TestDoubleStarCanBeUsed
--- PASS: TestDoubleStarCanBeUsed (0.03s)
=== RUN   TestDoubleStarCanBeUsed
    input_test.go:512: 
        	Error Trace:	/home/ainsoph/devel/github.com/elastic/beats-main/filebeat/input/journald/environment_test.go:124
        	            				/home/ainsoph/devel/github.com/elastic/beats-main/filebeat/input/journald/input_test.go:512
        	Error:      	Condition never satisfied
        	Test:       	TestDoubleStarCanBeUsed
        	Messages:   	too few events; expected: 30, actual: 21
--- FAIL: TestDoubleStarCanBeUsed (5.02s)
=== RUN   TestDoubleStarCanBeUsed
--- PASS: TestDoubleStarCanBeUsed (0.03s)
=== RUN   TestDoubleStarCanBeUsed
--- PASS: TestDoubleStarCanBeUsed (0.03s)
=== RUN   TestDoubleStarCanBeUsed
--- PASS: TestDoubleStarCanBeUsed (0.04s)
=== RUN   TestDoubleStarCanBeUsed

Stack Trace


2025-10-01 18:54:02 UTC
=== FAIL: filebeat/input/journald TestDoubleStarCanBeUsed (5.03s)
2025-10-01 18:54:02 UTC
    input_test.go:512:
2025-10-01 18:54:02 UTC
        	Error Trace:	/opt/buildkite-agent/builds/bk-agent-prod-gcp-1759344649138934621/elastic/filebeat/filebeat/input/journald/environment_test.go:124
2025-10-01 18:54:02 UTC
        	            				/opt/buildkite-agent/builds/bk-agent-prod-gcp-1759344649138934621/elastic/filebeat/filebeat/input/journald/input_test.go:512
2025-10-01 18:54:02 UTC
        	Error:      	Condition never satisfied
2025-10-01 18:54:02 UTC
        	Test:       	TestDoubleStarCanBeUsed
2025-10-01 18:54:02 UTC
        	Messages:   	too few events; expected: 30, actual: 16```

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions