Skip to content

Evaluate test execution policy in container image build #1854

Closed

Description

@josecelano

Goal

Decide whether tests should continue running inside the container image build path, and if not, define a safer and faster workflow policy that separates validation from packaging while preserving quality.

Background

The current Containerfile runs tests during image build stages. At the same time, test verification is already executed in testing.yaml. This may duplicate expensive work and increase runtime in both container.yaml and testing.yaml paths.

This coupling also scales poorly when packaging targets grow. If the same source revision is packaged in multiple forms (for example multi-architecture container images, Linux distribution packages, or other release artifacts), embedding test execution in each packaging path can repeat the same validation work many times.

Two policy ideas need explicit evaluation:

  1. Quality gate alternative: do not run test execution in container build, but enforce image publication or release flow only after testing workflow passes.
  2. Debugging flexibility: optionally allow building an image from commits that fail tests, so maintainers can reproduce failures in external environments.

This issue is analysis-first and baseline-driven. Any policy change must preserve trust in merge and release checks.

Acceptance Criteria

  • AC1: The report quantifies runtime cost of test execution in the container build path.
  • AC2: Duplicate versus unique test coverage is documented for container and testing workflows.
  • AC3: At least one policy option separates validation from packaging and preserves strict quality gates.
  • AC4: A safe and explicit debug-image policy is defined for failure reproduction use cases.
  • AC5: Recommended policy is justified with performance and risk evidence.

Related

Activity

  1. self-assigned this
    on Jun 1, 2026
  2. added 2 commits that reference this issue on Jun 1, 2026
  3. added 2 commits that reference this issue on Jun 5, 2026
  4. added a commit that references this issue on Jun 18, 2026
  5. added a commit that references this issue on Jul 20, 2026
    d9ec549
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions