-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.
Description
Flaky Test
- Test Name: TestStandAloneRunningSuite/TestOpAMP
- Link: https://github.com/elastic/fleet-server/blob/main/testing/e2e/stand_alone_test.go#L640
- Branch:
main - Notes:
Claude Code analysis
The single failing test is TestStandAloneRunningSuite/TestOpAMP. It fails with signal: killed at stand_alone_test.go:659, which is the Require().NoError(err) after the make otelcontribcol call.
The cause is straightforward: the test runs under a 3-minute context timeout (context.WithTimeout(..., 3*time.Minute) at line 603), but it tries to do all of this within that window:
- Clone the entire
opentelemetry-collector-contribrepo (shallow, but still large) - Run
make otelcontribcol— a full Go compilation of a massive multi-module project - Enroll an agent, start the OTel collector, and verify enrollment
Compiling OTel contrib from scratch on a resource-constrained CI agent can easily take 5–15 minutes. When the 3-minute deadline expires, Go's exec.CommandContext sends SIGKILL to the build process, and the temp directory gets cleaned up mid-compile, causing the cascading "no such file or directory" errors seen in the log.
Stack Trace
Error Trace: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1773340912775914247/elastic/fleet-server/testing/e2e/stand_alone_test.go:659
/opt/buildkite-agent/.gvm/versions/go1.25.8.linux.amd64/src/runtime/asm_amd64.s:1693
Error: Received unexpected error:
signal: killed
Test: TestStandAloneRunningSuite/TestOpAMP
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.
Type
Fields
Give feedbackNo fields configured for Task.