Repository navigation
Fix shared UDP connection ID error limit configuration - #2087
Conversation
2b23be2 to
c92f9e4
Compare
There was a problem hiding this comment.
Pull request overview
This PR corrects the v3 configuration contract for the UDP connection-ID error limit by moving max_connection_id_errors_per_ip from per-listener [[udp_trackers]] to the shared [udp_tracker_server] section, matching the shared BanService boundary and eliminating listener-order-dependent semantics.
Changes:
- Remove the v3 per-listener
max_connection_id_errors_per_ipfield and add it as a server-wide field underUdpTrackerServerwith default10. - Add/adjust v3 configuration tests to cover defaulting, round-trip serialization, two-listener behavior, and rejection of the removed listener-scoped key.
- Update v3 documentation/examples and the v2→v3 migration guide to reflect the new placement.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/configuration/src/v3_0_0/udp_tracker.rs | Removes the listener-scoped error-limit field from the v3 UDP listener schema. |
| packages/configuration/src/v3_0_0/udp_tracker_server.rs | Introduces the shared server-wide error-limit field, default, and targeted unit tests. |
| packages/configuration/src/v3_0_0/mod.rs | Updates generated default TOML + adds configuration regression tests for the new contract and rejection behavior. |
| docs/issues/open/2083-1978-move-max-connection-id-errors-per-ip-to-udp-tracker-server.md | Updates the subissue spec progress/evidence to match the implemented schema/test changes. |
| docs/issues/open/1978-configuration-overhaul-epic/configuration-v2-to-v3-migration.md | Documents the new v3 placement (and renumbers steps) in the migration guide. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
ACK 7f77edd |
|
The failing
The maintainer indicates the fix is expected in Other checks remain green. I will temporarily bypass this known-broken nightly check to allow the PR to merge, then re-enable and rerun it once the fixed nightly is available. No workflow or product-code workaround is included in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2087 +/- ##
===========================================
+ Coverage 82.66% 83.82% +1.15%
===========================================
Files 349 349
Lines 25732 26444 +712
Branches 25732 26444 +712
===========================================
+ Hits 21271 22166 +895
+ Misses 4151 3942 -209
- Partials 310 336 +26 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
ACK 7f77edd |
Summary
Move the v3
max_connection_id_errors_per_ipconfiguration from each UDP listener to the shared[udp_tracker_server]section. This reflects the deliberately sharedBanServiceboundary and removes listener-order-dependent configuration semantics.10Validation
cargo test -p torrust-tracker-configurationlinter all./contrib/dev-tools/git/hooks/pre-commit.shcargo test --tests --benches --examples --workspace --all-targets --all-features./contrib/dev-tools/git/hooks/pre-push.shFollow-up
Production v3 consumer migration, including wiring the server-wide value through
AppContainerand a cross-listener runtime test, remains explicitly assigned to #1980.Related to #2083