-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
Team:Obs-InfraObsLabel for the Observability Infrastructure Monitoring teamLabel for the Observability Infrastructure Monitoring teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.
Description
Flaky Test
- Test Name: TestNegativeCases
- Link:
}() - Branch:
main - Artifact Link: https://buildkite.com/elastic/beats-xpack-filebeat/builds/24331/steps/canvas?sid=019a834c-dcb7-4cf9-ac14-93294f4be867#019a8361-b7a5-4064-938a-0200e34a3865/7-275
- Notes: Another case of a panic because the
testing.Tis used as the logger output and something logs after the test has finished
Stack Trace
=== Failed
=== FAIL: x-pack/filebeat/input/cometd (0.00s)
PASS
panic: Log in goroutine after TestNegativeCases has completed: 2025-11-14T17:29:10.589Z INFO cometd Input worker has stopped. {"pubsub_channel": "channel_name"}
goroutine 45 [running]:
testing.(*common).logDepth(0xc0002008c0, {0xc000111c00, 0x61}, 0x3)
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/go/src/testing/testing.go:1064 +0x4b4
testing.(*common).log(...)
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/go/src/testing/testing.go:1046
testing.(*common).Logf(0xc0002008c0, {0x153b480?, 0x400?}, {0xc000482ae0?, 0x0?, 0x2?})
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/go/src/testing/testing.go:1097 +0x54
go.uber.org/zap/zaptest.TestingWriter.Write({{0x7d8e4d325b38?, 0xc0002008c0?}, 0x40?}, {0xc000121400?, 0x62, 0xc000121400?})
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/zaptest/logger.go:146 +0xdb
go.uber.org/zap/zapcore.(*ioCore).Write(0xc000206fc0, {0x0, {0xc23df799a328e0f2, 0x42ecf21e, 0x1f1c300}, {0x153d172, 0x6}, {0x1551610, 0x19}, {0x0, ...}, ...}, ...)
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/zapcore/core.go:99 +0xb5
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00051c000, {0x0, 0x0, 0x0})
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:253 +0x119
go.uber.org/zap.(*SugaredLogger).log(0xc00011ca78, 0x0, {0x0?, 0x0?}, {0xc00016de18?, 0x1?, 0x1?}, {0x0, 0x0, 0x0})
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/sugar.go:355 +0xec
go.uber.org/zap.(*SugaredLogger).Info(...)
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/go.uber.org/[email protected]/sugar.go:155
github.com/elastic/elastic-agent-libs/logp.(*Logger).Info(...)
/opt/buildkite-agent/.asdf/installs/golang/1.24.10/packages/pkg/mod/github.com/elastic/[email protected]/logp/logger.go:186
github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).Run.func1.1()
/opt/buildkite-agent/builds/bk-agent-prod-gcp-1763140818762033913/elastic/beats-xpack-filebeat/x-pack/filebeat/input/cometd/input.go:77 +0x602
created by github.com/elastic/beats/v7/x-pack/filebeat/input/cometd.(*cometdInput).Run.func1 in goroutine 36
/opt/buildkite-agent/builds/bk-agent-prod-gcp-1763140818762033913/elastic/beats-xpack-filebeat/x-pack/filebeat/input/cometd/input.go:41 +0x93
FAIL github.com/elastic/beats/v7/x-pack/filebeat/input/cometd 1.139s
Metadata
Metadata
Assignees
Labels
Team:Obs-InfraObsLabel for the Observability Infrastructure Monitoring teamLabel for the Observability Infrastructure Monitoring teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.