-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
Team:obs-ds-hosted-servicesLabel for the Observability Hosted Services teamLabel for the Observability Hosted Services teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.
Description
Flaky Test
- Test Name: TestRunnerFactoryWithCommonInputSettings
- Link:
p.logger.Debugf("add_cloud_metadata: fetchMetadata ran for %v", time.Since(start)) - Branch:
main - Artifact Link: https://buildkite.com/elastic/filebeat/builds/26835/steps/canvas?jid=019b32b8-785b-4954-8adc-3fea018e6f16#019b32b8-785b-4954-8adc-3fea018e6f16/L494
- Notes:
t.Logcannot be used after the test ends. The test uses it as the logger output and some component is not completely shutdown before the test ends.
Stack Trace
=== Failed
=== FAIL: filebeat/channel (0.00s)
PASS
panic: Log in goroutine after TestRunnerFactoryWithCommonInputSettings has completed: 2025-12-18T18:42:33.844Z DEBUG add_cloud_metadata add_cloud_metadata: received disposition for openstack after 53.0391ms. result=[provider:openstack, error=failed requesting openstack metadata: Get "https://169.254.169.254/2009-04-04/meta-data/instance-type": tls: failed to verify certificate: x509: certificate signed by unknown authority, metadata={}]
panic: Log in goroutine after TestRunnerFactoryWithCommonInputSettings has completed: 2025-12-18T18:42:33.844Z DEBUG add_cloud_metadata add_cloud_metadata: fetchMetadata ran for 53.0391ms
goroutine 83 [running]:
testing.(*common).logDepth(0xc00028ac40, {0xc00067f0a0, 0x65}, 0x3)
C:/Users/Buildkite/.go/go-1.24.11/src/testing/testing.go:1064 +0x4b4
testing.(*common).log(...)
C:/Users/Buildkite/.go/go-1.24.11/src/testing/testing.go:1046
testing.(*common).Logf(0xc00028ac40, {0x4422dd7?, 0x400?}, {0xc0006fb8f0?, 0xff?, 0x2?})
C:/Users/Buildkite/.go/go-1.24.11/src/testing/testing.go:1097 +0x54
go.uber.org/zap/zaptest.TestingWriter.Write({{0x185d1c66318?, 0xc00028ac40?}, 0x0?}, {0xc00021e400?, 0x66, 0xc00019a4c0?})
C:/Users/Buildkite/.go/go-1.24.11/packages/pkg/mod/go.uber.org/zap@v1.27.1/zaptest/logger.go:146 +0xdb
go.uber.org/zap/zapcore.(*ioCore).Write(0xc0001a6f90, {0xff, {0xc24930a6725d2c58, 0x77b517d, 0x6373560}, {0x4444573, 0x12}, {0xc000209740, 0x33}, {0x0, ...}, ...}, ...)
C:/Users/Buildkite/.go/go-1.24.11/packages/pkg/mod/go.uber.org/zap@v1.27.1/zapcore/core.go:99 +0xb5
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00066c8f0, {0x0, 0x0, 0x0})
C:/Users/Buildkite/.go/go-1.24.11/packages/pkg/mod/go.uber.org/zap@v1.27.1/zapcore/entry.go:258 +0x119
go.uber.org/zap.(*SugaredLogger).log(0xc0003d6150, 0xff, {0x448d7ff?, 0x2c?}, {0xc00064b640?, 0x1?, 0x1?}, {0x0, 0x0, 0x0})
C:/Users/Buildkite/.go/go-1.24.11/packages/pkg/mod/go.uber.org/zap@v1.27.1/sugar.go:355 +0xec
go.uber.org/zap.(*SugaredLogger).Debugf(...)
C:/Users/Buildkite/.go/go-1.24.11/packages/pkg/mod/go.uber.org/zap@v1.27.1/sugar.go:198
github.com/elastic/elastic-agent-libs/logp.(*Logger).Debugf(...)
C:/Users/Buildkite/.go/go-1.24.11/packages/pkg/mod/github.com/elastic/elastic-agent-libs@v0.28.0/logp/logger.go:227
github.com/elastic/beats/v7/libbeat/processors/add_cloud_metadata.(*addCloudMetadata).fetchMetadata.func1()
C:/buildkite-agent/builds/bk-agent-prod-gcp-1766082525793526796/elastic/filebeat/libbeat/processors/add_cloud_metadata/providers.go:160 +0x91
panic({0x3d98060?, 0xc0006fb8b0?})
C:/Users/Buildkite/.go/go-1.24.11/src/runtime/panic.go:792 +0x132
testing.(*common).logDepth(0xc00028ac40, {0xc00032c180, 0x162}, 0x3)
C:/Users/Buildkite/.go/go-1.24.11/src/testing/testing.go:1064 +0x4b4
testing.(*common).log(...)
C:/Users/Buildkite/.go/go-1.24.11/src/testing/testing.go:1046
testing.(*common).Logf(0xc00028ac40, {0x4422dd7?, 0x400?}, {0xc0006fb890?, 0xff?, 0x2?})
C:/Users/Buildkite/.go/go-1.24.11/src/testing/testing.go:1097 +0x54
go.uber.org/zap/zaptest.TestingWriter.Write({{0x185d1c66318?, 0xc00028ac40?}, 0x0?}, {0xc00021e000?, 0x163, 0xc00019a4c0?})
C:/Users/Buildkite/.go/go-1.24.11/packages/pkg/mod/go.uber.org/zap@v1.27.1/zaptest/logger.go:146 +0xdb
go.uber.org/zap/zapcore.(*ioCore).Write(0xc0001a6f90, {0xff, {0xc24930a6725d2c58, 0x77b517d, 0x6373560}, {0x4444573, 0x12}, {0xc000158dc0, 0x130}, {0x0, ...}, ...}, ...)
Metadata
Metadata
Assignees
Labels
Team:obs-ds-hosted-servicesLabel for the Observability Hosted Services teamLabel for the Observability Hosted Services teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.