Skip to content

[Flaky Test]: TestCISKeepsRunningOnNonFatalExitCodeFromStart – Condition never satisfied #11590

@pchila

Description

@pchila

Failing test case

TestCISKeepsRunningOnNonFatalExitCodeFromStart

Error message

seems like an expected warn log message is not collected in time

Build

https://buildkite.com/elastic/elastic-agent/builds/31428#019ae6c8-e6a4-4401-95ca-f4280c52ff78/824-4467

OS

Windows

Stacktrace and notes

{"log.level":"warn","@timestamp":"2025-12-04T01:29:37.055Z","log.logger":"test.service_runtime","log.origin":{"function":"github.com/elastic/elastic-agent/pkg/component/runtime.(*serviceRuntime).Run","file.name":"runtime/service.go","file.line":263},"message":"exit code 99 is non-fatal, continuing to run...","ecs.version":"1.6.0"}
    service_test.go:346:
        	Error Trace:	C:/buildkite-agent/builds/bk-agent-prod-gcp-1764808539643871919/elastic/elastic-agent/pkg/component/runtime/service_test.go:346
        	Error:      	Condition never satisfied
        	Test:       	TestCISKeepsRunningOnNonFatalExitCodeFromStart
{"log.level":"debug","@timestamp":"2025-12-04T01:29:39.013Z","log.logger":"test.service_runtime","log.origin":{"function":"github.com/elastic/elastic-agent/pkg/component/runtime.(*serviceRuntime).Run","file.name":"runtime/service.go","file.line":218},"message":"context is done. exiting.","ecs.version":"1.6.0"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Elastic-AgentLabel for the Agent teamflaky-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