Skip to content

Gate the axum-health-check-api-server test environment behind a testing feature (#2482 subissue 7) #2757

Closed

Description

@josecelano-bot

Subissue 7 (the last) of sub-EPIC #2482 (Reorganize test support code shared between workspace packages), itself a sub-EPIC of EPIC #1669 (Overhaul: Packages). It applies rule A of the ADR docs/adrs/20261021190318_share_workspace_test_support_through_testing_features.md to axum-health-check-api-server, after the same move for udp-server, axum-http-server and axum-rest-api-server.

Goal

Compile packages/axum-health-check-api-server/src/environment.rs only with a non-default testing feature, make torrust-tracker-configuration (the only dependency only that module and test code use) optional, and let the package's own targets enable the feature through a path-only self dev-dependency. Then regenerate the workspace coupling report and check #2482's AC8.

Why

pub mod environment; is compiled unconditionally, so the health check test environment is part of the shipped public API and forces a direct dependency into normal builds.

Tasks

  • T1: record the baseline (dependency tree, test counts).
  • T2: gate the module, add the feature, the optional dependency, the self dev-dependency and the deny.toml wrapper entry.
  • T3: update the inventory, the diagram and the docs.
  • T4: verify the container recipe (cargo chef) and the Shipped Features check.
  • T5: regenerate the coupling report and check AC8 (check only; the Reorganize test support code shared between workspace packages (EPIC #1669) #2482 close-out steps are separate).

The full specification is in the spec PR that follows.

Activity

  1. self-assigned this
    on Nov 6, 2026
  2. added 2 commits that reference this issue on Nov 6, 2026
  3. added 2 commits that reference this issue on Nov 9, 2026
  4. added 10 commits that reference this issue on Nov 9, 2026
  5. added 3 commits that reference this issue on Nov 9, 2026
  6. added a commit that references this issue on Nov 10, 2026
  7. added 5 commits that reference this issue on Nov 10, 2026
  8. added 2 commits that reference this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions