-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
Team:Elastic-Agent-Data-PlaneLabel for the Agent Data Plane teamLabel for the Agent Data Plane teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.
Description
Flaky Test
- Test Name: TestDoubleStarCanBeUsed
- Link: filebeat/input/journald/input_test.go#L471-L513
- Branch: main, 9.0, 9.2
- Artifact Link:
- Notes: it's flaky, running it 100 times, it fails a few times with different numbers of events. Perhaps it just needs a bigger timeout.
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
Team:Elastic-Agent-Data-PlaneLabel for the Agent Data Plane teamLabel for the Agent Data Plane teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.