Repository navigation
docs(issues): [#2699] specify gating the udp-server test environment - #2700
josecelano merged 6 commits into
Conversation
…onment Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
What changed in this PR
Spec-only PR to formalize and track subissue #2699 (from EPIC #2482) for gating the udp-server test environment behind a non-default testing feature, and to update related EPIC/inventory references accordingly.
Changes:
- Added a PR review audit record for PR #2700.
- Updated EPIC/inventory/coupling-report links and subissue status to reference #2699 in
docs/issues/open/.... - Refreshed the udp-server gating spec content (including the maintainer’s example decision and updated gate/baseline notes).
| File | Description |
|---|---|
| docs/pr-reviews/pr-2700-review/PR-REVIEW.md | Adds a structured audit record for PR #2700 reviews/threads. |
| docs/issues/open/2482-1669-reorganize-shared-test-support/test-support-inventory.md | Updates the inventory row link for the udp-server gating subissue to point to #2699 in open/. |
| docs/issues/open/2482-1669-reorganize-shared-test-support/EPIC.md | Updates EPIC metadata and Subissues table/progress log to reflect #2699 as IN_PROGRESS and link to open/. |
| docs/issues/open/1669-overhaul-packages/workspace-coupling-report-2026-10-06.md | Updates the udp-server subissue link from drafts/ to open/. |
| docs/issues/drafts/2482-gate-udp-server-test-environment/ISSUE.md | Updates the spec metadata/content to represent issue #2699 and new decisions, but remains under drafts/ path. |
Review effort: Lite
…t as specs Co-authored-by: Copilot <[email protected]>
…spec Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
No open issues 🎉
2 resolved since last review
Review effort: Lite
Co-authored-by: Copilot <[email protected]>
|
ACK 76310b8 |
…behind a testing feature 246617d docs(issues): [#2699] record the passing container job, round 2 of the review and the completion (Jose Celano) e8209bd docs(udp-server): [#2699] word the testing module note as a workspace rule, not a Cargo limit (Jose Celano) 53b0646 refactor(udp-server): [#2699] accept any number of listeners in the production-style example helper (Jose Celano) db3926e docs(pr-reviews): [#2699] record round 1 of the PR 2711 review (Jose Celano) 6c2a649 docs(issues): [#2699] record the published cargo-chef 0.1.79 and the container failure in the audit (Jose Celano) 8064163 fix(udp-server): [#2699] use a per-process database file in the production-style example (Jose Celano) fa1b133 docs(issues): [#2699] record the cargo-chef fix, its fork PR and the container recipe evidence (Jose Celano) c6367ad fix(container): [#2699] pin torrust-cargo-chef 0.1.79 for optional workspace dependencies (Jose Celano) 94d2089 docs(issues): [#2699] record the cargo-chef problem, the options and the decision (Jose Celano) e9bf0ba docs(pr-reviews): [#2699] start the audit record of PR 2711 (Jose Celano) 78f669e docs(issues): [#2699] record the completion review and the retrospective (Jose Celano) ce52887 docs(issues): [#2699] record the verification re-run, pre-push and the pre-PR review (Jose Celano) fc922d2 refactor(udp-server): [#2699] follow the application's listener policy and loop error handling in the production-style example (Jose Celano) 5b04b4a docs(issues): [#2699] mark the udp-server part of inventory pattern A resolved (Jose Celano) 6b33b2f docs(issues): [#2699] record the manual verification evidence (Jose Celano) ab736a6 feat(udp-server): [#2699] add a production-style public tracker example (Jose Celano) 3d33a8d docs(udp-server): [#2699] label the public tracker example as following the testing conventions (Jose Celano) 0a7beca refactor(axum-health-check-api-server): [#2699] enable the udp-server testing feature from its dev-dependencies (Jose Celano) c06729f refactor(udp-server): [#2699] put the test environment behind a testing feature (Jose Celano) Pull request description: Closes #2699 Subissue 4 of sub-EPIC #2482 (row 4: gate the `udp-server` test environment), the first server environment to move behind a `testing` feature. The spec merged in #2700; the example decision is recorded there. The pattern is the one of row 3 (#2681). ## What changes - `udp-server`: `src/testing/` is compiled only with the new non-default `testing` feature (`testing = ["dep:torrust-tracker-swarm-coordination-registry"]`). That registry crate was the only direct dependency used solely by the module, so it is now optional; every other direct dependency has a production use. - `udp-server`'s own targets (the `src/` unit tests, `tests/` and the examples) enable the feature through a path-only self dev-dependency (ADR option O1c), and `axum-health-check-api-server` enables it from its `[dev-dependencies]`. No `[dependencies]` entry or `default` chain enables `testing`. - `deny.toml`: `torrust-tracker-udp-server` is listed as its own wrapper, which the self dev-dependency requires; it is in the same commit as the manifest change, together with `Cargo.lock`. - Examples, as the maintainer decided on 2026-11-03: `examples/udp_only_public_tracker.rs` stays on the test environment and its header says it follows the testing conventions; a new `examples/udp_only_public_tracker_production_style.rs` starts the server the way the binary does (no `testing` module), and both headers explain the difference. - The inventory marks the `udp-server` part of pattern A resolved. The evidence is in `manual-verification-evidence.md` (V1 to V8), and there is an implementation retrospective. ## Verification - A default `udp-server` build has no direct dependency on the registry crate (27 direct normal dependencies before, 26 after; it stays reachable through `tracker-core` and `udp-core`), and `src/testing/` is absent from the default rustdoc output. - Test counts are equal before and after for `udp-server` (233 + 16 + 1 + 2), `axum-health-check-api-server` (15 + 8), `axum-rest-api-server` and `rest-api-runtime-adapter`, plain, with `--all-features` and with `--all-targets --all-features`; no `required-features` is used. Without its new dev-dependency feature the health check package fails to compile. - The `Shipped Features` check is green on the real tree and red (exit 1) with the feature on the root `[dependencies]` entry of `udp-server` or in its `default` chain. The shipped-profile binary has no test environment strings and the 35 `cli-configuration` tests pass with `TORRUST_TRACKER_BINARY` set to a preserved copy. - Both examples build under `cargo test --examples` and the nightly `--all-features` check, run under plain `cargo run`, answer a real UDP connect request and stop on SIGTERM. - `cargo machete --with-metadata`, `cargo deny check bans` (and red without the self wrapper), `cargo +stable package --workspace --no-verify`, the bench build and the pre-push script pass. An independent pre-PR review returned PASS WITH FINDINGS; its findings are fixed or answered in the evidence (V8). ## Notes for reviewers - `testing` is public surface of a not yet published crate, outside semver; #2583 decides versions and this PR does not touch its spec. - The new example compiles through the self dev-dependency (it imports the optional registry crate), so a packaged crate needs `--features testing` to build it, like the `src/` unit tests. The header explains the self dev-dependency. - The ADR still lists the example question as open; this PR records the decision in the spec and leaves any ADR amendment to the coordinator. - Rows 5 to 7 reuse the pattern, including the `deny.toml` self-wrapper entry and staging `Cargo.lock` with the manifest. ACKs for top commit: josecelano: ACK 246617d Tree-SHA512: a5456e2ee7529f57be68e8474710346a086388232ee3e0601f873e3a8ea454cbb6f3de0a4e9e49944babc0bab2e4eab1ff772102d577e43f713d1076b4b61636
|
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: It changed only an issue specification, EPIC and inventory records and a review record under |


Related to #2699
Spec-only PR for subissue 4 of #2482: gate the
udp-servertest environment (src/testing/) behind a non-defaulttestingfeature (ADR rule A).docs/issues/open/2699-2482-gate-udp-server-test-environment/ISSUE.md, refreshed after Stop event producers before event listeners #2416 merged and re-verified againstdevelop.udp_only_public_trackeron the testing environment and add a production-style example.