Skip to content

Real agent test: StartContainer failed once in CI without a cause #517

Backlog

Description

@samuelmbabhazi

What happened

agent/internal/actions › TestRealCaddySwitchesUnderLoadWithoutAFailedRequest failed once in the CI job Agent against Docker and Caddy, on run 45830866620 (PR #513 after it was updated with main at f777e27).

real_caddy_test.go:155: start v2: action_id:"019d0000-0000-7000-8000-000000000008"  state:OPERATION_STATE_COMPENSATED  attempts:1  error:"action failed"

What the failure shows:

Why it is worth a look

The test only shows the dispatcher's fixed text. The agent does not log the Docker answer either, so nothing says why Docker refused to start a container it had just created. When a start fails, the test could log the agent's own log lines, or the container's state from Docker. The next occurrence would then say whether Docker, the network or the test caused it.

Not the cause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtrack:agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions