Skip to content

refactor(packages): remove redundant -tracker- from HTTP and UDP crate names (SI-29) - #1923

Merged
josecelano merged 6 commits into
torrust:developfrom
josecelano:1910-rename-udp-and-http-core-protocol-crates
Jun 19, 2026
Merged

josecelano merged 6 commits into
torrust:developfrom
josecelano:1910-rename-udp-and-http-core-protocol-crates

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

Renames 4 unpublished workspace crate names and 2 folder paths per SI-29 to remove the redundant -tracker- segment.

Crate renames

Before After
torrust-tracker-http-tracker-core torrust-tracker-http-core
torrust-tracker-http-tracker-protocol torrust-tracker-http-protocol
torrust-tracker-udp-tracker-core torrust-tracker-udp-core
torrust-tracker-udp-tracker-protocol torrust-tracker-udp-protocol

Folder renames

  • packages/http-tracker-core/ → packages/http-core/
  • packages/udp-tracker-core/ → packages/udp-core/

Changes

  • Updated all crate name fields in package Cargo.toml files
  • Updated all dependency references across root and consumer Cargo.toml files
  • Updated all Rust use imports (snake_case crate names)
  • Updated package READMEs (docs.rs URLs)
  • Updated AGENTS.md, packages/AGENTS.md, src/AGENTS.md
  • Updated docs/packages.md and EPIC Overhaul: Packages #1669 documentation

Verification

  • cargo build --workspace ✅
  • cargo test --doc --workspace ✅
  • cargo test --tests --workspace --all-targets --all-features ✅
  • linter all ✅
  • cargo machete ✅

Closes #1910

Copilot AI review requested due to automatic review settings June 19, 2026 16:59

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 implements SI-29 by renaming the HTTP/UDP core + protocol workspace crates to remove the redundant -tracker- segment, and updates the workspace (Cargo manifests, Rust imports, tests, and documentation) to consistently reference the new crate names and folder paths.

Changes:

  • Renamed HTTP/UDP core and protocol crate name fields (and the http-core/udp-core package folders) and updated all dependent Cargo.toml references.
  • Updated Rust use paths and test imports across the workspace to use the new snake_case crate names.
  • Updated documentation and agent guidance files (AGENTS + EPIC/spec docs) to reflect the new crate/folder naming.

Reviewed changes

Copilot reviewed 99 out of 129 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
src/container.rs Updates HTTP/UDP core container imports to renamed crates.
src/console/ci/e2e/logs_parser.rs Updates UDP log target import to renamed UDP core crate.
src/bootstrap/jobs/udp_tracker.rs Updates UDP core imports after crate rename.
src/bootstrap/jobs/udp_tracker_core.rs Updates UDP core statistics listener path after crate rename.
src/bootstrap/jobs/http_tracker.rs Updates HTTP core container import after crate rename.
src/bootstrap/jobs/http_tracker_core.rs Updates HTTP core statistics listener path after crate rename.
src/bootstrap/app.rs Updates UDP core crypto/imports and static init call after crate rename.
src/AGENTS.md Updates crate/folder references for HTTP/UDP core in architecture guidance.
packages/udp-server/tests/server/contract.rs Updates UDP protocol crate imports in UDP server contract tests.
packages/udp-server/tests/server/asserts.rs Updates UDP protocol crate imports in test helpers.
packages/udp-server/tests/common/fixtures.rs Updates UDP protocol crate import in shared fixtures.
packages/udp-server/src/testing/environment.rs Updates UDP core imports + static init call in test environment.
packages/udp-server/src/statistics/event/listener.rs Updates UDP core log target import.
packages/udp-server/src/server/states.rs Updates UDP core container/log target imports.
packages/udp-server/src/server/spawner.rs Updates UDP core container import.
packages/udp-server/src/server/request_buffer.rs Updates UDP core log target import.
packages/udp-server/src/server/processor.rs Updates UDP core container/self import + UDP protocol Response import.
packages/udp-server/src/server/mod.rs Updates UDP core container import + static init call in tests.
packages/udp-server/src/server/launcher.rs Updates UDP core container/self/log target imports.
packages/udp-server/src/server/bound_socket.rs Updates UDP core log target import.
packages/udp-server/src/lib.rs Updates UDP protocol crate links/paths in crate-level docs.
packages/udp-server/src/handlers/scrape.rs Updates UDP core service imports + UDP protocol types.
packages/udp-server/src/handlers/mod.rs Updates UDP core container import + UDP protocol request/response types.
packages/udp-server/src/handlers/error.rs Updates UDP core imports + UDP protocol error/response types.
packages/udp-server/src/handlers/connect.rs Updates UDP core service imports + UDP protocol connect types.
packages/udp-server/src/handlers/announce.rs Updates UDP core service imports + UDP protocol announce types.
packages/udp-server/src/event.rs Updates UDP core error type imports + UDP protocol request types.
packages/udp-server/src/error.rs Updates UDP core error type imports + UDP protocol parse/common types.
packages/udp-server/src/banning/event/listener.rs Updates UDP core log target + ban service imports.
packages/udp-server/src/banning/event/handler.rs Updates UDP core ban service import.
packages/udp-server/Cargo.toml Updates dependency keys/paths for renamed UDP core + UDP protocol crates.
packages/udp-protocol/Cargo.toml Renames UDP protocol crate name.
packages/udp-core/src/statistics/services.rs Adds/updates UDP core statistics service module under new crate path.
packages/udp-core/src/statistics/repository.rs Adds/updates UDP core statistics repository module under new crate path.
packages/udp-core/src/statistics/mod.rs Adds/updates UDP core statistics module wiring/describe_metrics.
packages/udp-core/src/statistics/metrics.rs Adds/updates UDP core metric collection wrapper + accessors.
packages/udp-core/src/statistics/event/mod.rs Adds/updates UDP core statistics event module wiring.
packages/udp-core/src/statistics/event/listener.rs Adds/updates UDP core statistics event listener implementation.
packages/udp-core/src/statistics/event/handler.rs Adds/updates UDP core statistics event handler implementation/tests.
packages/udp-core/src/services/scrape.rs Updates UDP core scrape service to use renamed UDP protocol types.
packages/udp-core/src/services/mod.rs Adds UDP core services module + test utilities module wiring.
packages/udp-core/src/services/connect.rs Updates UDP core connect service to use renamed UDP protocol types.
packages/udp-core/src/services/banning.rs Adds UDP core banning service module under new crate path.
packages/udp-core/src/services/announce.rs Updates UDP core announce service to use renamed UDP protocol types.
packages/udp-core/src/peer_builder.rs Updates peer builder to use renamed UDP protocol request/event types.
packages/udp-core/src/lib.rs Adds/updates UDP core crate root + static initialization function.
packages/udp-core/src/event.rs Adds/updates UDP core event types + label mapping.
packages/udp-core/src/crypto/mod.rs Adds UDP core crypto module wiring.
packages/udp-core/src/crypto/keys.rs Adds UDP core crypto key keeper logic under new crate path.
packages/udp-core/src/crypto/ephemeral_instance_keys.rs Adds UDP core ephemeral key material module under new crate path.
packages/udp-core/src/container.rs Adds/updates UDP core DI container + services wiring under new crate path.
packages/udp-core/src/connection_cookie.rs Updates connection-cookie code to use renamed UDP protocol ConnectionId type.
packages/udp-core/README.md Updates docs.rs URL for renamed UDP core crate.
packages/udp-core/Cargo.toml Renames UDP core crate name + updates UDP protocol dependency name.
packages/udp-core/benches/udp_tracker_core_benchmark.rs Adds UDP core benchmark harness under new crate path.
packages/udp-core/benches/helpers/utils.rs Updates benchmark helper imports to renamed UDP core crate.
packages/udp-core/benches/helpers/sync.rs Updates benchmark helper imports to renamed UDP core crate.
packages/udp-core/benches/helpers/mod.rs Adds benchmark helper module wiring.
packages/tracker-client/src/udp/mod.rs Updates tracker-client UDP module to use renamed UDP protocol crate.
packages/tracker-client/src/udp/client.rs Updates tracker-client UDP client to use renamed UDP protocol types.
packages/tracker-client/Cargo.toml Updates tracker-client dependency to renamed UDP protocol crate.
packages/rest-api-core/src/statistics/services.rs Updates REST API stats aggregation to use renamed HTTP/UDP core stats repos and BanService path.
packages/rest-api-core/src/container.rs Updates REST API core container wiring for renamed HTTP/UDP core containers and repositories.
packages/rest-api-core/Cargo.toml Updates dependencies to renamed HTTP/UDP core crates.
packages/http-protocol/src/v1/responses/scrape.rs Updates rustdoc examples to renamed HTTP protocol crate path.
packages/http-protocol/src/v1/responses/error.rs Updates rustdoc examples to renamed HTTP protocol crate path.
packages/http-protocol/src/v1/responses/announce.rs Updates rustdoc examples to renamed HTTP protocol crate path.
packages/http-protocol/src/v1/requests/announce.rs Updates rustdoc examples to renamed HTTP protocol crate path.
packages/http-protocol/src/v1/query.rs Updates rustdoc examples to renamed HTTP protocol crate path.
packages/http-protocol/src/percent_encoding.rs Updates rustdoc examples to renamed HTTP protocol crate path.
packages/http-protocol/README.md Updates docs.rs URL for renamed HTTP protocol crate.
packages/http-protocol/Cargo.toml Renames HTTP protocol crate name.
packages/http-core/src/statistics/repository.rs Adds/updates HTTP core statistics repository under new crate path.
packages/http-core/src/statistics/mod.rs Adds/updates HTTP core metrics description module.
packages/http-core/src/statistics/metrics.rs Adds/updates HTTP core metric collection wrapper + accessors.
packages/http-core/src/statistics/event/mod.rs Adds/updates HTTP core statistics event module wiring.
packages/http-core/src/statistics/event/listener.rs Adds/updates HTTP core statistics event listener implementation.
packages/http-core/src/statistics/event/handler.rs Updates HTTP core event handler tests to use renamed HTTP protocol crate.
packages/http-core/src/services/scrape.rs Updates HTTP core scrape service imports to renamed HTTP protocol crate.
packages/http-core/src/services/mod.rs Adds HTTP core services module docs + exports.
packages/http-core/src/services/error_mapping.rs Updates HTTP core error mapping to renamed HTTP protocol crate.
packages/http-core/src/services/announce.rs Updates HTTP core announce service imports and test code to renamed HTTP protocol crate.
packages/http-core/src/lib.rs Adds/updates HTTP core crate root module and test helpers.
packages/http-core/src/event.rs Updates HTTP core event types to use renamed HTTP protocol crate types.
packages/http-core/src/container.rs Adds/updates HTTP core DI container + services wiring under new crate path.
packages/http-core/README.md Updates docs.rs URL for renamed HTTP core crate.
packages/http-core/Cargo.toml Renames HTTP core crate name + updates HTTP protocol dependency name.
packages/http-core/benches/http_tracker_core_benchmark.rs Adds HTTP core benchmark harness under new crate path.
packages/http-core/benches/helpers/util.rs Updates benchmark helper imports to renamed HTTP core + HTTP protocol crates.
packages/http-core/benches/helpers/sync.rs Updates benchmark helper imports to renamed HTTP core crate.
packages/http-core/benches/helpers/mod.rs Adds benchmark helper module wiring.
packages/axum-rest-api-server/src/v1/context/stats/handlers.rs Updates REST API server handler state types to renamed core stats repositories + BanService.
packages/axum-rest-api-server/src/testing/environment.rs Updates test environment to renamed HTTP/UDP core containers and static init call.
packages/axum-rest-api-server/src/server.rs Updates static init call to renamed UDP core crate.
packages/axum-rest-api-server/Cargo.toml Updates dependencies to renamed HTTP/UDP core crates.
packages/axum-http-server/src/v1/routes.rs Updates HTTP server routes to renamed HTTP core container type.
packages/axum-http-server/src/v1/handlers/scrape.rs Updates scrape handler + tests to renamed HTTP core + HTTP protocol crates.
packages/axum-http-server/src/v1/handlers/announce.rs Updates announce handler + tests to renamed HTTP core + HTTP protocol crates.
packages/axum-http-server/src/v1/extractors/scrape_request.rs Updates extractor docs/imports to renamed HTTP protocol crate.
packages/axum-http-server/src/v1/extractors/client_ip_sources.rs Updates extractor imports to renamed HTTP protocol crate.
packages/axum-http-server/src/v1/extractors/authentication_key.rs Updates extractor docs/imports to renamed HTTP protocol crate.
packages/axum-http-server/src/v1/extractors/announce_request.rs Updates extractor docs/imports to renamed HTTP protocol crate.
packages/axum-http-server/src/testing/environment.rs Updates test environment to renamed HTTP core container + stats listener.
packages/axum-http-server/src/server.rs Updates server wiring/tests to renamed HTTP core crate.
packages/axum-http-server/src/lib.rs Updates crate-level docs to renamed HTTP protocol crate paths.
packages/axum-http-server/Cargo.toml Updates dependencies to renamed HTTP core + HTTP protocol crates.
packages/AGENTS.md Updates package layer diagram + package catalog references for renamed core crates.
docs/packages.md Updates packages listing and package catalog entries for renamed core crates.
docs/issues/open/1910-1669-si-29-rename-udp-and-http-core-protocol-crates-to-remove-redundant-tracker.md Updates SI-29 issue spec references to renamed crates/folders and verification checklist.
docs/issues/open/1805-fix-workspace-coupling-report-for-brace-and-reexport-imports.md Updates coupling report references to renamed UDP core crate naming.
docs/issues/open/1669-overhaul-packages/workspace-coupling-report-proposed-merge.md Updates proposed-merge doc references to renamed core crate/folder names.
docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-06-10.md Updates coupling report references to renamed HTTP/UDP protocol/core crates.
docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-05-19.md Updates coupling report references to renamed historical core crate names.
docs/issues/open/1669-overhaul-packages/readme-audit.md Updates README audit entries for renamed core packages.
docs/issues/open/1669-overhaul-packages/EPIC.md Updates EPIC package tables and references for renamed HTTP/UDP core + protocol crates.
docs/issues/open/1669-overhaul-packages/DECISIONS.md Updates decisions doc to renamed package names and examples.
console/tracker-client/src/console/clients/unified/udp.rs Updates console client imports to renamed UDP protocol crate.
console/tracker-client/src/console/clients/udp/responses/dto.rs Updates UDP response DTO imports to renamed UDP protocol crate.
console/tracker-client/src/console/clients/udp/mod.rs Updates UDP console module imports to renamed UDP protocol crate.
console/tracker-client/src/console/clients/udp/checker.rs Updates UDP checker imports to renamed UDP protocol crate.
console/tracker-client/src/console/clients/udp/app.rs Updates UDP console app imports to renamed UDP protocol crate.
console/tracker-client/src/console/clients/checker/monitor/udp.rs Updates monitor imports to renamed UDP protocol crate.
console/tracker-client/src/console/clients/checker/checks/udp.rs Updates check imports to renamed UDP protocol crate.
console/tracker-client/Cargo.toml Updates console client dependency to renamed UDP protocol crate.
Cargo.toml Updates workspace dependencies to renamed HTTP/UDP core crate paths/names.
Cargo.lock Updates lockfile package entries to renamed crate names and dependency graph.
AGENTS.md Updates workspace package catalog to renamed HTTP/UDP core + protocol crate/folder names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/udp-server/src/lib.rs Resolved
Comment thread packages/udp-server/src/lib.rs Resolved
- .github/workflows/deployment.yaml: 4 crate names
- contrib/dev-tools/benches/run-benches.sh: 2 bench targets
- packages/axum-rest-api-server/src/testing/mod.rs: comment
- Containerfile: 12 folder paths (already pushed)
@josecelano
josecelano requested a review from a team as a code owner June 19, 2026 17:17
The sed-based bulk rename accidentally replaced the 'Current' columns
in the issue spec tables, making before/after values identical.
Restored historical pre-rename names in all Current/Change tables.

Also fixed pre-existing grammar issues flagged by Copilot review:
- 'send' -> 'sent' (udp-server lib.rs)
- 'Request are' -> 'Requests are', 'build' -> 'built' (udp-server lib.rs)
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.27273% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.37%. Comparing base (4022cc4) to head (aa7ec3b).
⚠️ Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
packages/http-core/src/services/announce.rs 76.92% 3 Missing ⚠️
packages/udp-core/src/peer_builder.rs 50.00% 3 Missing ⚠️
...m-rest-api-server/src/v1/context/stats/handlers.rs 33.33% 2 Missing ⚠️
packages/rest-api-core/src/statistics/services.rs 50.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1923      +/-   ##
===========================================
- Coverage    79.42%   79.37%   -0.06%     
===========================================
  Files          327      324       -3     
  Lines        23024    22963      -61     
  Branches     23024    22963      -61     
===========================================
- Hits         18287    18226      -61     
+ Misses        4476     4472       -4     
- Partials       261      265       +4     

☔ View full report in Codecov by Harness.
📢 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 requested a review from Copilot June 19, 2026 18:46
@josecelano

Copy link
Copy Markdown
Member Author

ACK aa7ec3b

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

Copilot reviewed 104 out of 134 changed files in this pull request and generated 7 comments.

Comments suppressed due to low confidence (4)

docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-06-10.md:107

  • This workspace-coupling report section still lists the old snake_case module paths for the renamed torrust-tracker-http-core crate (torrust_tracker_http_tracker_core::…). Update these bullet items to the new crate identifier so the report matches the current workspace naming.
#### `torrust-tracker-http-core` [normal]

- `torrust_tracker_http_tracker_core::container`
- `torrust_tracker_http_tracker_core::container::HttpTrackerCoreContainer`
- `torrust_tracker_http_tracker_core::statistics::event`

docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-06-10.md:139

  • This section still references the old torrust_tracker_udp_tracker_core::… module paths even though the crate was renamed to torrust-tracker-udp-core (snake_case torrust_tracker_udp_core). Update these bullet items to avoid stale documentation.
- `torrust_tracker_udp_tracker_core::UDP_TRACKER_LOG_TARGET`
- `torrust_tracker_udp_tracker_core::container`
- `torrust_tracker_udp_tracker_core::container::UdpTrackerCoreContainer`
- `torrust_tracker_udp_tracker_core::crypto::keys`
- `torrust_tracker_udp_tracker_core::initialize_static`

docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-06-10.md:235

  • In this later section, the dependency list for torrust-tracker-http-core still uses the old crate identifier torrust_tracker_http_tracker_core::…. It should be updated to torrust_tracker_http_core::… to match the rename.
- `torrust_tracker_http_tracker_core::container::HttpTrackerCoreContainer`
- `torrust_tracker_http_tracker_core::event::bus`
- `torrust_tracker_http_tracker_core::event::sender`
- `torrust_tracker_http_tracker_core::services::announce`
- `torrust_tracker_http_tracker_core::services::scrape`

docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-06-10.md:245

  • This report section still uses the pre-rename module path prefix torrust_tracker_http_tracker_protocol::… even though the crate is now torrust-tracker-http-protocol (snake_case torrust_tracker_http_protocol). Updating these bullet items keeps the report consistent with current code.
- `torrust_tracker_http_tracker_protocol::v1`
- `torrust_tracker_http_tracker_protocol::v1::query`
- `torrust_tracker_http_tracker_protocol::v1::requests`
- `torrust_tracker_http_tracker_protocol::v1::responses`
- `torrust_tracker_http_tracker_protocol::v1::services`

Comment on lines +261 to 264
#### `torrust-tracker-udp-protocol` [normal]

- `torrust_tracker_udp_tracker_protocol::PeerId`

Comment on lines +333 to +338
//! `bytes_downloaded` | [`NumberOfBytes`](torrust_tracker_udp_protocol::common::NumberOfBytes) | `0`
//! `bytes_uploaded` | [`TransactionId`](torrust_tracker_udp_protocol::common::NumberOfBytes) | `0`
//! `event` | [`AnnounceEvent`](torrust_tracker_udp_protocol::AnnounceEvent) | `Started`
//! `ip_address` | [`Ipv4Addr`](torrust_tracker_udp_protocol::common::ConnectionId) | `None`
//! `peers_wanted` | [`NumberOfPeers`](torrust_tracker_udp_protocol::common::NumberOfPeers) | `200`
//! `port` | [`Port`](torrust_tracker_udp_protocol::common::Port) | `17548`
Comment thread src/container.rs
Comment on lines +11 to +12
use torrust_tracker_udp_core::container::{UdpTrackerCoreContainer, UdpTrackerCoreServices};
use torrust_tracker_udp_core::{self};
Comment on lines +8 to +9
use torrust_tracker_udp_core::container::UdpTrackerCoreContainer;
use torrust_tracker_udp_core::{self};
Comment on lines +8 to +9
use torrust_tracker_udp_core::services::scrape::ScrapeService;
use torrust_tracker_udp_core::{self};
Comment on lines +8 to +10
use torrust_tracker_udp_core::container::UdpTrackerCoreContainer;
use torrust_tracker_udp_core::services::banning::BanService;
use torrust_tracker_udp_core::{self};
Comment on lines +6 to +7
use torrust_tracker_udp_core::services::banning::BanService;
use torrust_tracker_udp_core::{self};
@josecelano
josecelano merged commit c2e41a7 into torrust:develop Jun 19, 2026
16 of 17 checks passed

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a post-merge review of the change from #1923 as it stands at e170b9620 on the default branch.

What still runs from it: the crate names torrust-tracker-http-core, torrust-tracker-http-protocol, torrust-tracker-udp-core and torrust-tracker-udp-protocol, the folders packages/http-core and packages/udp-core, and the Rust paths that import them. Of the lines it edited outside Rust, the four name = lines and the bench script remain, while the root-manifest dependency lines, the deployment workflow and the Containerfile have since been rewritten. The compiler checks the import paths, so this review concentrates on places where a crate or folder name is matched as text, where nothing checks it.

[Minor] The text substitution behind the rename also rewrote the older bittorrent-* crate names into names that never existed. docs/issues/open/1669-overhaul-packages/EPIC.md:215 and :229 give the old crate name of torrust-tracker-http-core and torrust-tracker-udp-core as bittorrent-http-core and bittorrent-udp-core. The crates were bittorrent-http-tracker-core and bittorrent-udp-tracker-core (packages/http-tracker-core/Cargo.toml at 1477975a1), and neither short name occurs anywhere at the merge base 4022cc40e. The protocol rows at :227 and :228 still read bittorrent-udp-tracker-protocol and bittorrent-http-tracker-protocol, which shows the replacement matched only -tracker-core. The same two names appear on 37 lines in six files: DECISIONS.md:915 (line 912 just above still reads bittorrent-udp-tracker-protocol), ten headings of workspace-coupling-report-2026-05-19.md from line 54, workspace-coupling-report-2026-06-10.md:862-863, 21 lines of workspace-coupling-report-proposed-merge.md from line 49, and docs/issues/closed/1805-fix-workspace-coupling-report-for-brace-and-reexport-imports/ISSUE.md:60. A search for the predecessor crate on crates.io or in the history by these names finds nothing. Fix: in those files, replace bittorrent-http-core with bittorrent-http-tracker-core and bittorrent-udp-core with bittorrent-udp-tracker-core. In the same two EPIC rows, the "Old folder name" cells could also read http-tracker-core and udp-tracker-core, as the rows of the other renamed folders do.

[Nit] docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-06-10.md is a dated, generated snapshot (line 13 records when it was produced). This change renamed its headings to crate names that did not exist on that date but left the import paths listed under them. For example, line 103 heads torrust-tracker-http-core over torrust_tracker_http_tracker_core::container at line 105, and 91 lines still carry the old names. The report is now neither the snapshot it says it is nor a current one. Fix: reverse the edits this change made to that file; if current names are wanted, regenerate the report instead.

[Nit] This one predates the change, but the rename shifted its effect. packages/udp-core/src/services/announce.rs:178 and packages/udp-core/src/services/scrape.rs:140 call tracing::debug!(target = crate::UDP_TRACKER_LOG_TARGET, ...). With =, tracing records an ordinary field named target with the value "UDP TRACKER", and the event's real target stays the module path. This change moved that path from torrust_tracker_udp_tracker_core::services::… to torrust_tracker_udp_core::services::…. A subscriber filter or structured-log consumer that selects the UDP TRACKER target misses the "Sending UdpAnnounce event" and "Sending UdpScrape event" lines, and one keyed on the old module path stopped matching at c2e41a727. Every other event in the crate uses target:, for example packages/udp-core/src/statistics/event/listener.rs:136. Both lines date from 1477975a1. Fix: write target: instead of target = on both lines.

[Nit] Manual check M2 of the closed specification (docs/issues/closed/1910-1669-si-29-rename-udp-and-http-core-protocol-crates-to-remove-redundant-tracker/ISSUE.md:266) records "Zero matches" for grep -r "http_tracker_core\|udp_tracker_core" --include="*.rs" packages/. At the pull request's head aa7ec3b18, that pattern matches 90 lines in 20 files. These are legitimate identifiers such as http_tracker_core_services, bench names and metric names, so the recorded result is not what the command prints, and the check cannot tell a stale crate path from a legitimate identifier. The anchored pattern torrust_tracker_(http|udp)_tracker_(core|protocol) matches nothing in Rust files at that head, and it is the check the row means. Fix: record that pattern and its result.

Checked and found sound: at e170b9620 no old crate name or old folder path remains outside docs/issues/, in workflows, Containerfiles, scripts, deny.toml, manifests, configuration or Rust string literals; at c2e41a727 the only ones outside issue documents were historical review records. Every -p/--package name used outside Markdown resolves to a declared crate, and so does every workspace crate named in deny.toml. The log targets that the end-to-end log parser and the native fixture select on are explicit constants ("UDP TRACKER", "HTTP TRACKER", "HEALTH CHECK API"), not crate paths. The tracker's trace_filter is level-only, so no configured filter names a crate. The import renames are mechanical and the compiler checks them. The description's table of renames matches the diff. Its list of changes omits the deployment-workflow, Containerfile and bench-script edits that later commits on the branch added; the first two have since been rewritten.

This branch was previously deployed

1 inactive deployment
coverage — aa7ec3b1 Deployed Jun 19, 2026 by josecelano via Generate Coverage Report #1456
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.

SI-29: Remove redundant -tracker- from HTTP and UDP crate names (EPIC #1669)

3 participants