Skip to content

Decide how packages share test support code #2618

Closed

Description

@josecelano

Subissue 1 of sub-EPIC #2482 (Reorganize test support code shared between workspace packages), itself a sub-EPIC of EPIC #1669 (Overhaul: Packages). It blocks every other #2482 subissue. Not blocked.

Goal

Record, as one approved ADR backed by verified Cargo behaviour, the rules by which workspace packages share test support code, and turn the result into a migration plan of drafted subissues for the other rows of #2482, so no package moves test code before the rules exist.

Why

#2482 found five test support patterns (A to E). Two hurt: public unconditional testing modules that put nine test-only dependency edges into production builds (pattern A), and a shared test-helpers crate that has become a coupling hub (pattern B). DEC-13 chose the public module on a wrong premise: tracker-core/src/test_helpers.rs is #[cfg(test)] and private. The EPIC lists options O1 to O8 and three mechanisms O1a to O1c, whose trade-offs rest on Cargo behaviour nobody has recorded with commands. #2582 failed in CI because of one unchecked assumption about a self dev-dependency.

Tasks

Acceptance criteria

  • MV1 to MV4 and a packaging baseline are recorded with exact commands and results; contradictions of the EPIC were raised with the maintainer.
  • The ADR is approved by the maintainer and registered in the ADR index.
  • DEC-13 is amended by a new DEC entry that links the ADR.
  • Rows 2 to 8 are drafts with epic: 2482, and every inventory item has a destination and a draft.
  • Findings 1 and 2 of the 2026-10-06 coupling report link the drafts; the 2026-10-17 report is unchanged.
  • The change set is documentation only.

Spec

docs/issues/open/2618-2482-decide-test-support-rules/ISSUE.md (added by the spec-only PR).

Activity

  1. added 12 commits that reference this issue on Oct 21, 2026
  2. 3 remaining items

  3. added 10 commits that reference this issue on Oct 23, 2026
  4. added a commit that references this issue on Oct 23, 2026
  5. added 3 commits that reference this issue on Oct 23, 2026
  6. added a commit that references this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions