Skip to content

[FlakyTest] TestContainerProcess - Received unexpected error: context deadline exceeded #212

@belimawr

Description

@belimawr

Stacktrace:

�_bk;t=1742823786027�=== RUN   TestContainerProcess/nsmode:private_priv:false_user:
�_bk;t=1742823786408�{"status":"Pulling from library/golang","id":"latest"}

�_bk;t=1742823786420�{"status":"Digest: sha256:52ff1b35ff8de185bf9fd26c70077190cd0bed1e9f16a2d498ce907e5c421268"}

�_bk;t=1742823786420�{"status":"Status: Image is up to date for golang:latest"}

�_bk;t=1742823786426�{"log.level":"info","@timestamp":"2025-03-24T13:43:06.426Z","log.origin":{"function":"github.com/elastic/elastic-agent-system-metrics/dev-tools/systemtests.(*DockerTestRunner).createTestContainer","file.name":"systemtests/container.go","file.line":223},"message":"using cwd: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1742822829479144526/elastic/elastic-agent-system-metrics","ecs.version":"1.6.0"}
�_bk;t=1742823786461�{"log.level":"info","@timestamp":"2025-03-24T13:43:06.461Z","log.origin":{"function":"github.com/elastic/elastic-agent-system-metrics/dev-tools/systemtests.(*DockerTestRunner).RunTestsOnDocker","file.name":"systemtests/container.go","file.line":178},"message":"running test...","ecs.version":"1.6.0"}
�_bk;t=1742823812100�    container.go:269: 
�_bk;t=1742823812100�        	Error Trace:	/opt/buildkite-agent/builds/bk-agent-prod-gcp-1742822829479144526/elastic/elastic-agent-system-metrics/dev-tools/systemtests/container.go:269
�_bk;t=1742823812100�        	            				/opt/buildkite-agent/builds/bk-agent-prod-gcp-1742822829479144526/elastic/elastic-agent-system-metrics/dev-tools/systemtests/container.go:179
�_bk;t=1742823812103�        	            				/opt/buildkite-agent/builds/bk-agent-prod-gcp-1742822829479144526/elastic/elastic-agent-system-metrics/dev-tools/systemtests/container.go:135
�_bk;t=1742823812103�        	Error:      	Received unexpected error:
�_bk;t=1742823812103�        	            	context deadline exceeded
�_bk;t=1742823812103�        	Test:       	TestContainerProcess/nsmode:private_priv:false_user:
�_bk;t=1742823812103�        	Messages:   	error in container
�_bk;t=1742823812103�--- FAIL: TestContainerProcess (300.02s)

PR: #206
BK link: https://buildkite.com/elastic/elastic-agent-system-metrics/builds/605/summary/annotations?sid=0195c855-a976-4f44-b899-ecf1c8ca7520#0195c855-a9e5-4d65-91d7-814fd7836e58/495

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testUnstable or unreliable test cases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions