Skip to content

Overhaul Packages Testing: Increase udp-server package coverage #2283

Closed

Description

@josecelano

Goal

Continue improving the maintainable package-local safety net for torrust-tracker-udp-server after #2149. Start with a refreshed complete module inventory, prioritize unit-test coverage, and implement only maintainer-approved focused increments.

Scope

  • Record fresh aggregate/global, unit-only, and integration-only package-source coverage separately. Unit-only coverage is the primary metric; aggregate or integration coverage cannot establish sufficient unit coverage.
  • Inventory every packages/udp-server/src/ file before changing tests. Each file receives a terminal decision: test-added, no-change-with-reason, or deferred-with-owner.
  • Work one source/test file at a time. Refactor approved issues in its existing tests first; validate and review that result before adding coverage or advancing to another file.
  • Prefer deterministic package-local unit tests. Add a real-loopback package integration test only when that boundary is demonstrably clearer or necessary, and record the rationale.
  • Retain Overhaul: Tracker Shutdown #1488 ownership of shutdown, cancellation, active-request draining, task joining, and standalone environment lifecycle design.
  • Use bounded mutation sampling as an analysis aid, without a score target or CI gate.

Acceptance Criteria

  • Complete module inventory and fresh separated coverage evidence are recorded in the issue-local specification.
  • Selected work increases maintainable package-owned unit-test coverage where feasible.
  • Each selected file completes existing-test refactoring, focused validation, and completed-file review before new coverage or another file begins.
  • Integration coverage is used only with an explicit unit-boundary rationale.
  • Final verification includes relevant tests, cargo +nightly fmt --all -- --check, linter all, manual verification, and acceptance review.

Specification

The approved repository-local specification is tracked at docs/issues/open/<assigned-number>-1347-increase-udp-server-package-coverage/ISSUE.md after this issue is created. It defines the detailed scope, ownership boundaries, one-file-at-a-time workflow, verification, evidence, and reconciliation requirements.

Parent EPIC: #1347
Prior UDP server testing issue: #2149

Activity

  1. added 2 commits that reference this issue on Sep 22, 2026
  2. changed the title [-]Increase UDP Server Package Coverage[/-] [+]Overhaul Packages Testing: Increase UDP Server Package Coverage[/+] on Sep 22, 2026
  3. added theissue type on Sep 22, 2026
  4. self-assigned this
    on Sep 22, 2026
  5. changed the title [-]Overhaul Packages Testing: Increase UDP Server Package Coverage[/-] [+]Overhaul Packages Testing: Increase `udp-server` package coverage[/+] on Sep 22, 2026
  6. added 7 commits that reference this issue on Sep 28, 2026
  7. 19 remaining items

  8. added 4 commits that reference this issue on Sep 30, 2026
  9. added a commit that references this issue on Oct 1, 2026
  10. added 2 commits that reference this issue on Oct 2, 2026
  11. added a commit that references this issue on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions