-
Notifications
You must be signed in to change notification settings - Fork 57
test(udp-server): [#2149] add focused UDP server tests #2174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
josecelano
wants to merge
68
commits into
torrust:develop
Choose a base branch
from
josecelano:2149-add-focused-udp-server-package-tests
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,932
−186
Draft
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
b798a44
docs(udp-server): plan request buffer tests
josecelano 34b6ae7
test(udp-server): cover available request capacity
josecelano f20d39e
docs(udp-server): approve request buffer reclamation test
josecelano c1e2921
docs(udp-server): clarify request eviction policy
josecelano 9838529
docs(udp-server): plan request buffer scenario fixture
josecelano 5fc5f91
test(udp-server): cover oldest request eviction
josecelano 9be6b6d
docs(udp-server): plan request buffer fixture cleanup
josecelano 3557917
test(udp-server): simplify request buffer fixture
josecelano ec886da
docs(udp-server): plan request buffer drop test
josecelano 8939dd1
test(udp-server): cover request buffer cleanup
josecelano 2bc779b
docs(udp-server): record request buffer race deferral
josecelano 2d48549
docs(udp-server): complete request buffer test plan
josecelano d4587c4
docs(udp-server): plan event classification tests
josecelano 96e3796
test(udp-server): cover event error classification
josecelano 3259810
docs(udp-server): plan event request-kind tests
josecelano 9fbadb5
test(udp-server): cover request-kind metrics
josecelano 8477fc7
docs(udp-server): complete event test plan
josecelano e5870bb
docs(udp-server): plan parse error adapter tests
josecelano 18d95f6
test(udp-server): cover parse error conversion
josecelano 75a93ae
docs(udp-server): plan invalid request conversion test
josecelano 5eeae72
test(udp-server): cover invalid request error
josecelano 73e821c
docs(udp-server): complete parse error test plan
josecelano 471c126
docs(udp-server): plan bound socket tests
josecelano 71f273a
docs(udp-server): plan bound socket port test
josecelano 85d27a2
test(udp-server): cover bound socket port
josecelano 8b5cb53
docs(udp-server): plan bound socket metadata test
josecelano c62d1f5
test(udp-server): cover bound socket metadata
josecelano 79cb536
docs(udp-server): complete bound socket test plan
josecelano 64f0008
docs(udp-server): reconcile test plan progress
josecelano b950620
docs(udp-server): plan handler dispatch test
josecelano d228c69
test(udp-server): cover sendable parse error routing
josecelano 2fecd51
test(udp-server): simplify parse error scenario
josecelano 975cb92
docs(issues): require test design reviews
josecelano 1052b4e
docs(agents): review test design in task reviews
josecelano 4267d5d
test(udp-server): clarify parse error test intent
josecelano 59ca541
docs(testing): require prose-first test verification
josecelano 072fe3b
docs(testing): format prose-first checklist
josecelano 2a6ab94
docs(udp-server): assess handler error routing
josecelano 777e901
docs(testing): distinguish unit and integration coverage
josecelano 9c05e35
docs(udp-server): complete handler dispatch test plan
josecelano c5e586e
docs(udp-server): plan launcher tests
josecelano 01cde54
docs(udp-server): update performance evidence status
josecelano 1ef8589
test(udp-server): harden request buffer test cleanup
josecelano 35294e1
docs(review): record PR 2174 Copilot suggestions
josecelano 550cf7a
test(udp-server): clarify launcher startup cleanup
josecelano f7b355d
docs(udp-server): approve port zero admission test
josecelano 9d96692
test(udp-server): cover port zero request admission
josecelano 954d4d2
docs(udp-server): approve banned IP admission test
josecelano a05bf16
test(udp-server): cover banned request admission
josecelano 0a3c132
docs(udp-server): approve port zero test split
josecelano 6da2e4c
docs(udp-server): approve banned request test split
josecelano 2f7643a
test(udp-server): split launcher admission contracts
josecelano 536ba0f
docs(udp-server): complete launcher test plan
josecelano 638a1f5
docs(udp-server): approve contract error test cleanup
josecelano 63da5ec
test(udp-server): clarify empty datagram contract
josecelano e6bc18d
docs(testing): align helpers with test abstraction
josecelano f64b911
docs(udp-server): approve connect contract cleanup
josecelano 87bf6b7
test(udp-server): clarify connect contract
josecelano 23889a8
docs(udp-server): complete contract test plan
josecelano 19efbf1
docs(udp-server): approve error metric test cleanup
josecelano 17c3353
test(udp-server): clarify error metric handler test
josecelano b6aaa78
docs(udp-server): approve error metric label test
josecelano 073f483
test(udp-server): cover connect error metric label
josecelano 4471c4c
docs(testing): document fixture expectation anti-pattern
josecelano 8533f76
test(udp-server): cover cookie error metric labels
josecelano e472276
docs(udp-server): complete error metric test plan
josecelano 576173f
docs(udp-server): finalize error metric test plan
josecelano 1f61c51
docs(testing): require separate unit coverage evidence
josecelano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| --- | ||
| semantic-links: | ||
| skill-links: | ||
| - process-copilot-suggestions | ||
| related-artifacts: | ||
| - .github/skills/dev/pr-reviews/process-copilot-suggestions/SKILL.md | ||
| - docs/issues/open/2149-1347-add-focused-udp-server-package-tests/performance-evidence.md | ||
| - docs/issues/open/2149-1347-add-focused-udp-server-package-tests/test-refactor-plans/README.md | ||
| - packages/udp-server/src/server/request_buffer.rs | ||
| --- | ||
|
|
||
| <!-- cspell:disable --> | ||
|
|
||
| <!-- skill-link: process-copilot-suggestions --> | ||
|
|
||
| # PR #2174 Copilot Suggestions Tracking | ||
|
|
||
| Source: Copilot PR review threads for https://github.com/torrust/torrust-tracker/pull/2174 | ||
|
|
||
| Status legend: | ||
|
|
||
| - `action`: code/docs change applied | ||
| - `no-action`: suggestion reviewed; no code change needed | ||
| - `resolved`: thread resolved in PR | ||
|
|
||
| ## Processing Log | ||
|
|
||
| - 2026-09-09: Started processing six Copilot suggestions after rebasing the draft PR. | ||
| - 2026-09-09: Completed all six suggestions. Three received focused action commits, and three | ||
| were resolved as already addressed or intentionally declined with a documented rationale. | ||
|
|
||
| ## Suggestions | ||
|
|
||
| | # | Thread ID | Path | URL | Suggestion Summary | Decision | Reply URL | Status | Thread State | | ||
| | --- | --- | --- | --- | --- | --- | --- | --- | --- | | ||
| | 1 | `PRRT_kwDOGp2yqc6goHu9` | `packages/udp-server/src/server/request_buffer.rs` | [thread](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3967777870) | Bound task-completion waits so a cleanup regression cannot hang CI. | action: added one-second absolute cleanup bound in `1ef8589b`. | [reply](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3968614576) | DONE | RESOLVED | | ||
| | 2 | `PRRT_kwDOGp2yqc6goHvj` | `docs/issues/open/2149-1347-add-focused-udp-server-package-tests/performance-evidence.md` | [thread](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3967777918) | Update stale request-buffer implementation status. | no-action: duplicate suggestion addressed in `01cde544`. | [reply](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3968226077) | DONE | RESOLVED | | ||
| | 3 | `PRRT_kwDOGp2yqc6goHv9` | `docs/issues/open/2149-1347-add-focused-udp-server-package-tests/performance-evidence.md` | [thread](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3967777950) | Update stale request-buffer implementation status. | action: corrected test-only completion/deferred benchmark status in `01cde544`. | [reply](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3968216396) | DONE | RESOLVED | | ||
| | 4 | `PRRT_kwDOGp2yqc6goHwW` | `docs/issues/open/2149-1347-add-focused-udp-server-package-tests/test-refactor-plans/README.md` | [thread](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3967777992) | Mark completed handler-dispatch plan as complete. | no-action: already addressed in `9c05e359`. | [reply](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3968220747) | DONE | RESOLVED | | ||
| | 5 | `PRRT_kwDOGp2yqc6goHwn` | `packages/udp-server/src/server/request_buffer.rs` | [thread](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3967778018) | Avoid direct ring-buffer mutation in tests where public behavior can express setup. | no-action: `force_push` is the test Act; direct insertion remains controlled Arrange mechanics. | [reply](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3968617981) | DONE | RESOLVED | | ||
| | 6 | `PRRT_kwDOGp2yqc6goHwz` | `packages/udp-server/src/server/request_buffer.rs` | [thread](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3967778042) | Avoid hard-coded active-request capacity in test setup. | action: derive the retained count from actual buffer capacity in `1ef8589b`. | [reply](https://github.com/torrust/torrust-tracker/pull/2174#discussion_r3968621167) | DONE | RESOLVED | | ||
|
|
||
| ## Notes | ||
|
|
||
| - Process every thread individually: reply before resolving it. | ||
| - Record the action/no-action decision, rationale, and reply URL in this audit log. | ||
| - R6 in `test-refactor-plans/request-buffer-tests.md` records the approved rationale and prose-first | ||
| design review for request-buffer suggestions 1, 5, and 6. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor — disabling markdown format-on-save is a shared editor default for everyone who opens this repo, and it arrives inside
f20d39e3 docs(udp-server): approve request buffer reclamation test, whose subject gives no hint the change is there.Given that markdown formatting is checked by
linter all, turning off format-on-save makes it easier to commit markdown the gate will later reject. If the intent is to stop the editor fighting a specific formatter, a one-line comment or its ownchore(vscode):commit would make the reasoning reviewable.