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:
- Unneeded target compilation/linking is materially present in the container build path.
- 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
Related
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 aspackages/torrent-repository-benchmarking.This issue should only proceed after the baseline subissue confirms both of these points:
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
Related
docs/issues/open/(after spec PR merge)