Repository navigation
docs(configuration): analyse coupling, record DEC-07, add follow-up subissue specs (#1856) - #1862
Conversation
There was a problem hiding this comment.
Pull request overview
This PR documents the outcome of issue #1856’s configuration-coupling analysis, records DEC-07 in the EPIC decisions log, updates tracker-client documentation to the unified tracker_client binary, and adds two minimal “single-protocol” Cargo examples plus supporting manual test evidence.
Changes:
- Add UDP-only and HTTP-only tracker Cargo examples to make configuration coupling concrete and runnable.
- Record DEC-07 (“keep configuration crate centralized; move misplaced domain primitives later”) and add follow-up subissue specs (FU-1/2/3).
- Update docs to use the unified
tracker_clientCLI and add manual test results for the new examples.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| project-words.txt | Adds new accepted terms used in the new specs/docs. |
| packages/udp-server/examples/udp_only_public_tracker.rs | Adds a runnable UDP-only tracker example to demonstrate configuration coupling. |
| packages/axum-http-server/examples/http_only_public_tracker.rs | Adds a runnable HTTP-only tracker example to demonstrate configuration coupling. |
| docs/issues/open/1861-1669-narrow-envcontainer-initialize-config-slices/ISSUE.md | New FU-3 subissue spec for narrowing initialization config slices. |
| docs/issues/open/1860-1669-evaluate-tslconfig-move-to-axum-server/ISSUE.md | New FU-2 subissue spec for evaluating moving TslConfig. |
| docs/issues/open/1859-1669-move-tracker-policy-and-private-mode-to-primitives/ISSUE.md | New FU-1 subissue spec for moving domain primitives into primitives. |
| docs/issues/open/1856-1669-analyse-configuration-package-coupling/manual-test-results.md | Adds manual evidence that both examples start and serve announces. |
| docs/issues/open/1856-1669-analyse-configuration-package-coupling/ISSUE.md | Moves/expands the full #1856 analysis into the standard issue-spec folder layout. |
| docs/issues/open/1856-1669-analyse-configuration-package-coupling.md | Removes the older single-file spec in favor of the folder-based spec. |
| docs/issues/open/1669-overhaul-packages/EPIC.md | Updates EPIC tables/status and adds FU-1/2/3 references + note. |
| docs/issues/open/1669-overhaul-packages/DECISIONS.md | Adds DEC-07 decision record with rationale and links to artifacts. |
| console/tracker-client/README.md | Updates CLI docs to reference unified tracker_client instead of deprecated binaries. |
| .github/skills/dev/testing/manual-udp-download-completion-e2e/SKILL.md | Updates skill steps to use unified tracker_client syntax. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- EPIC.md: remove spurious 6th column from Desired Package State table separator; move [^fu1] footnote marker into the crate name cell. - torrust#1860 ISSUE.md: fix related-artifacts path for TslConfig (packages/configuration/src/lib.rs, not v2_0_0/tls.rs). - torrust#1860 ISSUE.md: fix TslConfig field names to ssl_cert_path and ssl_key_path (not ssl_certificate_file_path / ssl_private_key_file_path). - torrust#1856 ISSUE.md: fix TrackerPolicy casing (was trackerPolicy).
…rust#1856) - Write issue spec for torrust#1856: analyse torrust-tracker-configuration coupling across the UDP and HTTP server packages - Add operative examples per protocol: - packages/udp-server/examples/udp_only_public_tracker.rs - packages/axum-http-server/examples/http_only_public_tracker.rs Both examples start real trackers, accept announce requests, and shut down cleanly on Ctrl-C. Both use public mode so they are self-contained (private mode would pull in the REST API just to issue keys — wrong coupling direction). Both doc comments include a 'Why these two examples exist' rationale section. - Record DEC-07 in docs/issues/open/1669-overhaul-packages/DECISIONS.md: keep Configuration as a single aggregate for now; define three follow-up tasks (FU-1 extract UdpTracker, FU-2 extract HttpTracker, FU-3 extract HttpApi) - Mark torrust#1856 as done in EPIC.md - Add 'footgun' to project-words.txt
… unified tracker_client binary
…orrust#1856) - Mark ADR criterion as n/a: no new ADR warranted; DEC-07 is the permanent record of the 'keep status quo' decision. - Mark EPIC.md criterion as done: three follow-up subissues (torrust#1859, torrust#1860, torrust#1861) added to EPIC.md Active Subissues table. - Add [^fu1] footnote to torrust-tracker-primitives row in Desired Package State table noting FU-1 will add TrackerPolicy/ TORRENT_PEERS_LIMIT/PrivateMode there. - Add issues torrust#1859, torrust#1860, torrust#1861 to the Quick List (Open GitHub Issue).
…t#1856 Add spec files for three follow-up subissues identified in DEC-07: - torrust#1859 (FU-1): Move TrackerPolicy, TORRENT_PEERS_LIMIT, and PrivateMode from torrust-tracker-configuration to torrust-tracker-primitives. Expected to remove swarm-coordination-registry and torrent-repository-benchmarking config deps. - torrust#1860 (FU-2): Evaluate moving TslConfig into torrust-tracker-axum-server. May enable reclassification to generic torrust-axum-server. - torrust#1861 (FU-3): Revisit EnvContainer::initialize to accept narrower config slices, addressing the root forcing function for full-config compile-in when only one server type runs. Also add 'envcontainer' and 'tslconfig' to project-words.txt.
- EPIC.md: remove spurious 6th column from Desired Package State table separator; move [^fu1] footnote marker into the crate name cell. - torrust#1860 ISSUE.md: fix related-artifacts path for TslConfig (packages/configuration/src/lib.rs, not v2_0_0/tls.rs). - torrust#1860 ISSUE.md: fix TslConfig field names to ssl_cert_path and ssl_key_path (not ssl_certificate_file_path / ssl_private_key_file_path). - torrust#1856 ISSUE.md: fix TrackerPolicy casing (was trackerPolicy).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1862 +/- ##
========================================
Coverage 77.80% 77.80%
========================================
Files 380 380
Lines 28648 28648
Branches 28648 28648
========================================
Hits 22291 22291
Misses 6052 6052
Partials 305 305 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dfa583b to
46e2e77
Compare
|
ACK 46e2e77 |
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: Only 88 of the 229 executable lines it added remain on the default branch, at their own paths or in the files those paths were later renamed to; the rest has since been rewritten or removed. |
Closes #1856
What this PR does
Full analysis of
torrust-tracker-configurationpackage coupling,recording the decision in DECISIONS.md and opening three follow-up
subissues for the concrete action items.
Commits
6f2a00a1ff8f3220d0f1eb3549dadbff8c2bbef3Decision (DEC-07)
Keep
torrust-tracker-configurationas a single package (Alternative C —status quo). The module structure already provides logical separation without
introducing extra cross-package dependency edges.
Three follow-up issues were opened for the concrete improvements identified
during analysis:
FU-1 (Move
TrackerPolicy,TORRENT_PEERS_LIMIT, andPrivateModefromtorrust-tracker-configurationtotorrust-tracker-primitives#1859): MoveTrackerPolicy,TORRENT_PEERS_LIMIT, andPrivateModefromtorrust-tracker-configurationtotorrust-tracker-primitives. Removes config dep fromswarm-coordination-registryandtorrent-repository-benchmarking.FU-2 (Evaluate moving
TslConfigfromtorrust-tracker-configurationintotorrust-tracker-axum-server#1860): Evaluate movingTslConfigintotorrust-tracker-axum-server(only production consumer). May enablereclassification to generic
torrust-axum-server.FU-3 (Revisit
EnvContainer::initializeto accept narrower config slices instead of&Configuration#1861): RevisitEnvContainer::initializeto accept narrowerconfig slices, addressing the root forcing function that compiles all
service config types even for single-server binaries.
Artefacts added/updated
docs/issues/open/1856-1669-analyse-configuration-package-coupling/ISSUE.md— complete, all criteria checkeddocs/issues/open/1856-1669-analyse-configuration-package-coupling/DECISIONS.md— DEC-07 recordeddocs/issues/open/1856-1669-analyse-configuration-package-coupling/manual-test-results.md— evidence for both Cargo examplesdocs/issues/open/1669-overhaul-packages/EPIC.md— primitives row annotated, MoveTrackerPolicy,TORRENT_PEERS_LIMIT, andPrivateModefromtorrust-tracker-configurationtotorrust-tracker-primitives#1859/Evaluate movingTslConfigfromtorrust-tracker-configurationintotorrust-tracker-axum-server#1860/RevisitEnvContainer::initializeto accept narrower config slices instead of&Configuration#1861 added to Active Subissuesdocs/issues/open/1859-1669-move-tracker-policy-and-private-mode-to-primitives/ISSUE.mddocs/issues/open/1860-1669-evaluate-tslconfig-move-to-axum-server/ISSUE.mddocs/issues/open/1861-1669-narrow-envcontainer-initialize-config-slices/ISSUE.mdconsole/tracker-client/README.md— deprecated binary references replaced.github/skills/dev/testing/manual-udp-download-completion-e2e/SKILL.md— unified tracker_client syntaxpackages/udp-server/examples/udp_only_public_tracker.rs— new Cargo examplepackages/axum-http-server/examples/http_only_public_tracker.rs— new Cargo exampleRelated
TrackerPolicy,TORRENT_PEERS_LIMIT, andPrivateModefromtorrust-tracker-configurationtotorrust-tracker-primitives#1859, Evaluate movingTslConfigfromtorrust-tracker-configurationintotorrust-tracker-axum-server#1860, RevisitEnvContainer::initializeto accept narrower config slices instead of&Configuration#1861