Skip to content

Exec probe failures are indistinguishable from container-runtime failures #94

Open

Description

@jacobtomlinson-bot

An exec probe treats every failure from the container runtime as an ordinary failed check. A command that ran and exited non-zero is therefore indistinguishable from a command that could not run because Docker is unavailable, the container disappeared, or docker exec itself failed.

Verified on main at 1f65961: the exec probe discards the error returned by the runtime and returns (false, nil). The result is rendered as [failed], so users can be told that an image does not meet a requirement when the requirement was never actually tested.

Expected behavior

Validation should distinguish a command that ran and reported failure from a failure to execute the probe. Runtime failures should be reported as errors with enough diagnostic context to act on them.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions