You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build the shipped container binary without test features (#2482 subissue 9) #2670
Subissue 9 of sub-EPIC #2482 (Reorganize test support code shared between workspace packages), itself a sub-EPIC of EPIC #1669 (Overhaul: Packages). Required: rule A.5 of the ADR docs/adrs/20261021190318_share_workspace_test_support_through_testing_features.md says a shipped artifact is built by an invocation of its own, with explicit features, and a check fails if a testing feature reaches it.
Goal
Build the container image's shipped binaries (torrust-tracker and http_health_check) by cargo build invocations of their own with explicit features, and fail CI if a workspace testing feature is ever enabled in a shipped binary's dependency tree, before rows 3 to 7 add the first testing features.
Why
The release image's binaries are copied out of the test archive built by cargo nextest archive --tests --all-features --release. --tests and --all-features enable dev-dependency features and every feature, so every testing feature (and its optional dependencies, such as mockall) would ship once rows 3 to 7 land. Nothing is wrong today because no testing feature exists yet, which is why this row runs first.
Tasks
T1: re-verify the audit of shipped-artifact build commands; record a test count and build time baseline.
T2: add a TORRUST_TRACKER_BINARY override to the native-tracker tests (test first), so the container tests run the shipped binary.
T3: add a Rust dev-tool check over cargo tree -e normal,build that fails on a workspace testing feature in a shipped package's tree (test first, with a scratch-workspace red case).
T4: run the check as a job in testing.yaml.
T5: add the shipped cook and build stages to the Containerfile for the release and debug images.
T6: amend ADR 20260603 and update docs/containers.md.
The full specification is in the spec PR that follows.
Activity
docs(issues): [torrust#2670] require test design reviews and maintain…
docs(issues): [torrust#2670] require baseline tests to remain with a …
docs(issues): [torrust#2670] select the Containerfile in the baseline…
docs(pr-reviews): [torrust#2670] record the first review round of PR …
docs(issues): [#2670] specify building shipped artifacts without test…
Merge #2671: docs(issues): [#2670] specify building shipped artifacts…
fix(tracker): [torrust#2670] anchor a relative TORRUST_TRACKER_BINARY…
docs(pr-reviews): [torrust#2670] record the first review round of PR …
docs(issues): [#2670] record the audit and the container build baseline
test(tracker): [#2670] let the native-tracker tests run a shipped binary
feat(shipped-features-check): [#2670] fail when a testing feature rea…
ci(testing): [#2670] check that no testing feature reaches a shipped …
test(tracker): [#2670] stop calling the spawned tracker executable Ca…
ci(container): [#2670] build the shipped binaries without test features
docs(containers): [#2670] describe the shipped build and amend the in…
fix(tracker): [#2670] ignore an empty TORRUST_TRACKER_BINARY
fix(shipped-features-check): [#2670] fail instead of passing on tree …
docs(issues): [#2670] record the pre-PR review, the final image and t…
docs(pr-reviews): [torrust#2670] record the review of PR 2679
docs(pr-reviews): [torrust#2670] record the second Copilot review of …
chore(issues): archive closed issue #2670 spec to docs/issues/closed
Merge #2679: chore(issues): archive closed issue #2670 spec to docs/i…
Merge torrust#2676: ci(container): [torrust#2670] build the shipped b…