Skip to content

docs(configuration): analyse coupling, record DEC-07, add follow-up subissue specs (#1856) - #1862

Merged
josecelano merged 6 commits into
torrust:developfrom
josecelano:1856-analyse-configuration-package-coupling
Jun 1, 2026
Merged

josecelano merged 6 commits into
torrust:developfrom
josecelano:1856-analyse-configuration-package-coupling

Conversation

@josecelano

Copy link
Copy Markdown
Member

Closes #1856

What this PR does

Full analysis of torrust-tracker-configuration package coupling,
recording the decision in DECISIONS.md and opening three follow-up
subissues for the concrete action items.

Commits

Commit Description
6f2a00a1 docs(configuration): analyse coupling and record DEC-07 decision (#1856)
ff8f3220 test(examples): add manual test results for UDP and HTTP tracker examples (#1856)
d0f1eb35 docs(tracker-client): replace deprecated udp/http_tracker_client with unified tracker_client binary
49dadbff docs(1856): close remaining acceptance criteria and update EPIC.md (#1856)
8c2bbef3 docs(1669): add subissue specs for FU-1, FU-2, FU-3 from issue #1856

Decision (DEC-07)

Keep torrust-tracker-configuration as 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:

Artefacts added/updated

Related

@josecelano
josecelano requested a review from a team as a code owner June 1, 2026 18:16
Copilot AI review requested due to automatic review settings June 1, 2026 18:16
@josecelano josecelano self-assigned this Jun 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_client CLI 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.

josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Jun 1, 2026
- 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
…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

codecov Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.80%. Comparing base (a5ed18a) to head (46e2e77).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@josecelano
josecelano force-pushed the 1856-analyse-configuration-package-coupling branch from dfa583b to 46e2e77 Compare June 1, 2026 18:48
@josecelano

Copy link
Copy Markdown
Member Author

ACK 46e2e77

@josecelano
josecelano merged commit 3d4bf1f into torrust:develop Jun 1, 2026
18 checks passed
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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.

This branch was previously deployed

1 inactive deployment
coverage — 46e2e770 Deployed Jun 1, 2026 by josecelano via Generate Coverage Report #1338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Analyse configuration package coupling and evaluate splitting strategies

3 participants