Skip to content

Narrow Containerfile build targets to tracker image needs #1853

Closed

Description

@josecelano

Goal

Reduce container image build time by avoiding compilation and linking of workspace targets that are not required to produce and validate the tracker runtime image.

Background

The current Containerfile builds and archives a very broad target set (--tests --benches --examples --workspace --all-targets --all-features) across multiple stages. A quick maintainer analysis suggests some of that work is unrelated to the final tracker image, including targets from packages such as packages/torrent-repository-benchmarking.

This issue should only proceed after the baseline subissue confirms both of these points:

  1. Unneeded target compilation/linking is materially present in the container build path.
  2. That work has significant impact on workflow runtime.

If confirmed, narrowing target scope can speed up container.yaml directly, and can also improve testing.yaml because Docker E2E builds and uses the tracker image there.

Acceptance Criteria

  • AC1: Baseline evidence confirms that unnecessary target compilation/linking is a significant bottleneck.
  • AC2: Containerfile target scope is reduced without removing artifacts required by the runtime image.
  • AC3: Container workflow runtime improves measurably after the change.
  • AC4: Testing workflow Docker E2E path remains valid and does not regress.

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 2, 2026
    ab23e4d
    c33f1b8
  4. added a commit that references this issue on Jun 2, 2026
    f9cd56c
  5. added 3 commits that reference this issue on Jun 3, 2026
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