Repository navigation
Labels
Description
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.
Activity
docs(issues): add issue specification for #2283
Merge #2286: docs(issues): add issue specification for #2283
[-]Increase UDP Server Package Coverage[/-][+]Overhaul Packages Testing: Increase UDP Server Package Coverage[/+][-]Overhaul Packages Testing: Increase UDP Server Package Coverage[/-][+]Overhaul Packages Testing: Increase `udp-server` package coverage[/+]Merge #2354: fix(udp-server): [#2345] keep the request kind in the UD…
docs(issues): [torrust#2281] repair invalid v1 frontmatter in three o…
docs(issues): [torrust#2281] repair invalid v1 frontmatter in three o…
docs(issues): [torrust#2281] repair invalid v1 frontmatter in three o…
docs(issues): define per-file test workflow for udp server
docs(issues): record udp server banning module wiring review
docs(issues): reconcile udp server per-file coverage results
19 remaining items
docs(issues): close udp server file review
docs(issues): record udp server mutation evidence
docs(issues): reconcile udp server coverage records
docs(issues): record final udp server coverage
docs(issues): complete udp server coverage review
test(udp-server): bound scrape event assertions
docs(issues): link torrust#2283 manual verification to its spec
chore(issues): archive closed issue torrust#2283 spec
docs(issues): link torrust#2283 manual verification to its spec
Merge #2384: chore(issues): archive closed issue #2283 spec
Merge torrust#2381: test(udp-server): [torrust#2283] increase udp ser…
docs(issues): [#1348] add udp-core package testing specification
Merge #2407: docs(issues): [#1348] add udp-core package testing speci…
Merge #2935: docs(issues): [#2583] make the #1347 publish prerequisit…