Skip to content

fix(tracker-client): [#2867] report an invalid UDP health-check reply as an error instead of panicking - #2879

Merged
josecelano merged 17 commits into
torrust:developfrom
josecelano-bot:2867-udp-health-check-panics-on-invalid-response
Nov 16, 2026
Merged

josecelano merged 17 commits into
torrust:developfrom
josecelano-bot:2867-udp-health-check-panics-on-invalid-response

Conversation

@josecelano-bot

@josecelano-bot josecelano-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2867

Summary

Implements the spec merged in #2868. A UDP tracker that answers the health check with a datagram that is not a valid tracker response made GET /health_check panic three times in a chain, so the client got no report at all. Now the client gets a 200 report with status Error, and the UDP detail is an Err(..) that names the unrecognized response.

  • torrust_tracker_client::udp::client::check returns the receive error's text instead of calling unwrap() on it. Its stale # Panics doc comment now documents the errors.
  • The health-check handler reports a probe job that panicked or was cancelled (JoinError) as a failed check for that service, and logs it at error level. The report futures are awaited in place instead of spawned, so building the report cannot panic and the other services' results stay intact.

Regression tests

Each test was proven red against the bug; the red and green logs are in the issue folder's evidence/.

  • T2, tracker-client unit test: check against a UDP socket that answers with junk bytes returns an error naming the cause (AC1).
  • T3, health-check contract test: the junk-answering socket, registered with the production Launcher::check, gives a 200 report with status Error and an error detail naming the cause (AC2). Its red run is a mutate-then-restore run with the check fix reverted.
  • T5, health-check contract test: a probe whose job panics, next to a passing probe, gives a 200 report with an Err(..) detail for the panicking service and Ok("200 OK") for the other (AC3).

Files

  • packages/tracker-client/src/udp/client.rs: the check fix and T2.
  • packages/axum-health-check-api-server/src/handlers.rs: the handler fix.
  • packages/axum-health-check-api-server/tests/server/contract.rs: T3 and T5, which use the shared test helpers that the Eliminate parallel test port allocation races #2393 work added (T3 for registration and API start, T5 for API start).
  • docs/issues/open/2867-udp-health-check-panics-on-invalid-response/: spec progress, the regression-test logs, and the V4 like-for-like recheck in manual-verification-evidence.md.
  • docs/pr-reviews/pr-2868-review/PR-REVIEW.md: records the two findings of the second da2ce7 review of docs(issues): [#2867] add spec for the UDP health check panic on an invalid response #2868 (its F6 and F7) as follow-ups handled here.
  • docs/pr-reviews/pr-2879-review/PR-REVIEW.md: the review audit record for this PR.

Deferred findings from #2868

The maintainer merged #2868 with two non-blocking findings deferred to this PR (approval record: #2868 (comment)). F6: the evidence now says that the stored V1 to V3 logs start at Finished and that the V3 rebuild was not kept; every new log keeps its build lines. F7: the artifact-under-test line names the V3 diff.

Validation

  • Stable Rust toolchain (rustc 1.99.1): cargo test -p torrust-tracker-client-lib -p torrust-tracker-axum-health-check-api-server -p torrust-tracker-udp-server passes.
  • AC4: the stopped-UDP contract test, then ignored by default (Eliminate parallel test port allocation races #2393), passed when run with --ignored, still reporting exactly Err("Timed Out"). The Eliminate parallel test port allocation races #2393 rewrite, merged here with develop, replaced it with it_should_return_error_when_the_registered_udp_service_never_answers_the_check, which runs by default and passes with the same value (evidence/never-answering-udp-run.log).
  • linter all passes, and the pre-commit and pre-push hooks pass.

🤖 Generated with Claude Code

josecelano-bot and others added 4 commits November 16, 2026 09:43
…th check on an invalid response

`check` called `unwrap()` on the result of `receive()`, so a reply that is not a valid tracker
response panicked the check task, and through it the health-check handler. It now returns the
receive error's `Display` text, which names the unrecognized response. The stale `# Panics` doc
comment now documents the errors.

Regression tests: a `tracker-client` unit test against a junk-answering UDP socket, and a
health-check contract test that registers such a socket with the production UDP probe (AC1, AC2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ck job instead of panicking

The handler awaited each probe job with `.expect(..)` inside a spawned report task, and joined
those tasks with another `.expect(..)`. A probe job that panicked (for example the UDP check on
an invalid reply) therefore panicked the handler, and the client got no report at all.

A `JoinError` from a probe job is now reported as a failed check for that service, with the
join error in its `Err(..)` detail and logged at `error` level. The report futures are awaited in
place instead of spawned, so building the report cannot fail and the other services' results stay
intact.

Regression test: a contract test with a probe whose job panics next to a passing probe (AC3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…heck and the deferred PR 2868 findings

Adds the red and green logs of the three regression tests and the V4 like-for-like recheck, with
full output including build lines. Says that the stored V1 to V3 logs start at `Finished` and
that the V3 rebuild was not kept (second da2ce7 review of PR 2868, F6), and names the V3 diff on
the artifact-under-test line (F7). Marks the plan, checkpoints and acceptance criteria done.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…view of PR 2868 as follow-ups

The second da2ce7 review of PR 2868 arrived before its merge and was deferred by the maintainer to
the implementation PR 2879. Records its two findings as F7 and F8 (`FOLLOW_UP`, threads `OPEN`
until PR 2879 merges), the approval record URL, and drops the F6 Solution's rebuild claim, which no
stored file showed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@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.

Reviewed at 35f77c23a7f78a9842f562c68c68af08886ba957. Recomputed from the bytes at this head, against the merge base a25a27e23; git merge-tree against develop a25a27e23 merges cleanly and yields exactly the head's tree, because develop has not moved past the merge base.

Process: a bug fix, governed by the fix-bug skill (red and green run per regression test, like-for-like recheck, evidence in the issue folder, branch states named by commit subject), open-pull-request, commit-changes, and process-pr-review for the two deferred findings of #2868. The PR meets each of them: T2, T3 and T5 each have a red and a green log, V4 reruns the V1 scenario on the fixed build, and the deferred findings are rows F7 and F8 (FOLLOW_UP, OPEN) that keep the reviewer's IDs.

The change against its claim: on a receive failure, check now returns the error's Display text (Unrecognized UDP tracker response..., from udp/mod.rs) where it used to call unwrap(). The handler turns a JoinError into an Err(..) detail and an error log, and it awaits the report futures in place. The probes still run concurrently, because spawn_check has already spawned them. Each test fails with its fix reverted: the panic sites in the red logs (client.rs:275:40, handlers.rs:71:26 and :79:20, contract.rs:516:9) recompute against the base or this head. T3 tells the two states apart because the panic payload carries the error's Debug form, not its message.

Consistency: the relative links and evidence paths resolve, the frontmatter status and branch are valid, and the test counts in the logs (12 unit, 13 integration) recompute. No manifest change is needed.

Hygiene: four Conventional commits with [#2867]; in each, the author equals the committer and the body matches the diff. Each commit carries an attribution footer, and no rule in the tree forbids one. The commit-id check prints nothing. The only closing keyword is Closes #2867, in the description.

Findings: three Nits (F1 to F3). None of them blocks.

Checked, no finding: removing # Panics is correct, because check has no direct panic left. The longest added line is 123 of 130 columns. git diff --check flags a trailing blank line in four new logs, and two logs carry ANSI bytes; this issue's earlier logs on develop already have both forms, and develop docs already use "unparsable".

Checks

On the loop's compute node at this head, against the merge base a25a27e23 (receipt server-gates-kranich-948): the repository's pre-commit gate and lint roster exit 0 (448 s wall). This PR has no audit record of its own, so the gate ran no validator for it. The torrust-tracker-client-lib and torrust-tracker-axum-health-check-api-server package tests pass at this head: 34 passed, 0 failed, 7 ignored across 5 binaries (21.5 s wall); the 7 ignored tests are the existing flaky port race, see #2393 ignores on develop, which this PR does not touch. F2 checked against the bytes at posting: evidence/t5-red-run.log places the probe's panic at contract.rs:663:34, while at this head the panic! is on line 666 of packages/axum-health-check-api-server/tests/server/contract.rs. GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-client-lib): completed/success; Package Coverage (torrust-tracker-axum-health-check-api-server): completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on macos-latest (nightly): completed/success; Docker E2E: completed/skipped; Build on ubuntu-latest (nightly): completed/success; Unit (stable): in_progress/pending; Unit (nightly): completed/success; Workspace Packaging: completed/success; Shipped Features: completed/success; Documented Clippy Allows: completed/success; Layer Boundary Bans: completed/success; Docs Lint: completed/success; Discover Package Coverage: completed/success; Generate Coverage Report: completed/success; Test (Docker) (release): in_progress/pending". At posting, develop is a25a27e23.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 35f77c2 — the UDP check and handler fixes, their red-proven regression tests and the evidence and audit updates recomputed against a25a27e

josecelano-bot and others added 3 commits November 16, 2026 10:19
… their commits

The 09:55 progress-log entry and the evidence file's 09:50 `last-updated-utc` were committed at
09:44, and the PR 2868 audit's 09:58 processing-log entry at 09:48. Each stamp now names the time
its bytes were written, and a progress-log entry keeps the correction visible.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… used

The T5 red run happened before T3's assertion was tightened from five lines to eight, so its log
places the probe's panic at `contract.rs:663`, three lines above line 666 in the committed test.
The evidence row now says so, so a reader can match the log to the tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eferring the PR 2868 findings

The PR 2868 audit called its approval comment a retrospective record and dated the chat decision
only as before the merge. It now states the decision's time window (between the maintainer's ACK
at 07:35:29 UTC and the first deferral reply at 08:03:34 UTC) and the comment's creation time,
and describes the comment as the durable approval recorded before the audit edits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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.

🟡 Changes recommended

The junk-answering peer leaves a detached thread blocked in recv_from, retaining the thread and bound UDP port after the test ends.

1 open issue
What changed in this PR

Fixes #2867 so invalid UDP health-check replies produce an error report instead of dropping the HTTP connection through chained panics.

Changes:

  • Returns descriptive UDP receive errors and updates the API documentation.
  • Reports failed probe jobs while preserving other services’ results.
  • Adds regression tests and records verification evidence and deferred review follow-ups.
File Description
packages/​tracker-client/​src/​udp/​client.rs Handles receive errors and tests invalid replies.
packages/​axum-health-check-api-server/​tests/​server/​contract.rs Tests junk replies and isolation of probe panics.
packages/​axum-health-check-api-server/​src/​handlers.rs Converts probe join failures into service error details.
docs/​pr-reviews/​pr-2868-review/​PR-REVIEW.md Records deferred findings and follow-up references.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​manual-verification-evidence.md Documents regression runs and final verification.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​ISSUE.md Updates implementation progress and acceptance evidence.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​evidence/​t5-red-run.log Records the cascading probe-panic failure.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​evidence/​t5-green-run.log Records successful probe-panic handling.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​evidence/​t3-red-run.log Records failure with the UDP fix reverted.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​evidence/​t3-green-run.log Records the passing invalid-reply contract test.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​evidence/​t2-red-run.log Records the UDP client panic before the fix.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​evidence/​t2-green-run.log Records the passing UDP client regression test.
docs/​issues/​open/​2867-udp-health-check-panics-on-invalid-response/​evidence/​stopped-udp-run.log Records preserved stopped-service timeout behavior.

Review effort: Balanced

…e7 review of PR 2879

Creates the PR 2879 review audit with F1 to F3 from the first da2ce7 review (APPROVED, three
Nits), each fixed in its own commit and replied to before the push.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
josecelano-bot and others added 3 commits November 16, 2026 10:26
…swering peer as a task of the test runtime

The peer ran on a detached native thread that blocked in `recv_from` after the check finished, so
the thread and its UDP port lived until the test process exited, even after a failed assertion.
It is now a task of the test's Tokio runtime, like the tracker-client fixture, so the runtime's
shutdown at the end of the test drops it and its socket.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…me-owned junk peer

T3's fixture changed, so its red (mutate-then-restore) and green runs were repeated; the stored
logs are the new runs and the evidence says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lot review of PR 2879

Records Copilot's finding (its F1) as audit F4: the T3 junk-answering peer is now a task of the
test runtime, and T3's red and green runs were repeated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@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.

Reviewed at 43f6b980f9d336fbc558c586bd5c27eb0f0ccfba. Recomputed from the bytes at this head, against the merge base a25a27e23; git merge-tree against develop a25a27e23 merges cleanly and yields exactly the head's tree, because develop has not moved past the merge base.

Process: since the previous review, seven commits answer two reviews under process-pr-review. Each fix has its own commit, every thread has a reply that cites its commit subject and has been resolved, and the audit record has a row for every finding.

The change against its claim: F1 to F3 are fixed, as the earlier report found. F9 is resolved: thread r4584495261 has a reply and is resolved, and audit row F4 keeps Reviewer finding ID: F1. In 9741001 the T3 peer becomes a tokio::net::UdpSocket served by a tokio::spawn task, so dropping the test runtime cancels the task and closes the socket, even after a failed assertion. The package's tokio dependency already enables net, and the task is Send. The redone red log fails at contract.rs:520:9, the head's assert!, for the same reason as before, which is the Debug payload in place of the message. The redone green log passes.

Consistency: the validator's logic, run offline against the captured comments, reports status ok: 4 rows, 2 log entries, 0 failures. Every review thread in the capture has a row, a reply and a resolution.

Hygiene: seven Conventional commits with [#2867]; in each, the author equals the committer and the body matches the diff. Each commit carries an attribution footer, and no rule in the tree forbids one. The commit-id check prints nothing, git diff --check is clean over the new commits, and the only closing keyword is Closes #2867.

Findings: F10 and F11, both Nits. Neither blocks.

Checked, no finding: the new test line widths (at most 100 columns) and the chain break of the bind(..).await call; the T3 row and the new evidence paragraph; and the 10:26 and 10:28 stamps, both no later than their commits.

Checks

On the loop's compute node at this head, against the merge base a25a27e23 (receipt server-gates-kranich-957): the repository's pre-commit gate and lint roster exit 0 (85 s wall), and the review-audit validator reports 4 rows, 2 log entries and no failure. The torrust-tracker-axum-health-check-api-server package tests pass at this head: 22 passed, 0 failed, 7 ignored across 3 binaries; the 7 ignored tests are the existing flaky port race, see #2393 ignores on develop. Checked against the bytes at posting: the audit record now names review 5918382473, so its thread has a row. GitHub checks at this head at posting time: "". At posting, develop is a25a27e23.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 43f6b98 — the fixes, the runtime-owned T3 peer with its redone red and green runs, and an audit record covering every review thread recomputed against a25a27e

josecelano-bot and others added 2 commits November 16, 2026 10:39
Three statements still described T3's overwritten first runs: the V4 excerpt quoted the old
green time, the stopped-UDP note named "the T3 green run", and V4 called T3's peer the same socket
as V1's. They now name the redone run and the first pair where each applies, and the T5 row gives
the probe's current line (670) next to its line at the T5 commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ce7 review of PR 2879

Records da2ce7's F10 and F11 as audit F5 and F6, and fixes F6 here: the Copilot review's head is
the review's `commit_id` (the head ending in `docs(pr-reviews): [torrust#2867] record the deferred second
da2ce7 review of PR 2868 as follow-ups`), and its time is the review's 10:20:41Z.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@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.

Reviewed at 93f392cb97e8204f4485df3bcf366fb48d496513. Recomputed from the bytes at this head, against the merge base a25a27e23; git merge-tree against develop a25a27e23 merges cleanly and yields exactly the head's tree, because develop has not moved past the merge base.

Process: two docs commits answer the previous review under process-pr-review. f2d3c11 fixes F10, and 93f392c records F10 and F11 as audit rows F5 and F6 and fixes F11. Both threads have a reply that cites the fixing commit's subject, and both are resolved.

The change against its claim: F10 is fixed. The V4 excerpt quotes the redone green run (1.00s, as in evidence/t3-green-run.log) and dates the 1.01 s run and the stopped-UDP run to the first T3 pair. The build-line note says the same. V4's initial state calls T3's peer a runtime task. The T5 row adds line 670, which is where the panic! is at this head. F11 is fixed. The findings paragraph and the 10:28 entry name the head of review 5918382473's commit_id and its time, 10:20:41Z. No code changed. F1 to F9 stay fixed or resolved, as the earlier reports found.

Consistency: the validator's logic, run offline against the captured comments, reports status ok: 6 rows, 3 log entries, 0 failures. All six threads in the capture have a row, a reply on their own thread, and a resolution. Each row's review ID, severity and resolution subject matches its source. The audit's own verification greps print what they claim.

Hygiene: two Conventional commits with [#2867]; in each, the author equals the committer and the body matches the diff. Each carries an attribution footer, and no rule in the tree forbids one. The commit-id check prints nothing, git diff --check is clean over the new commits, and the only closing keyword is Closes #2867. The stamps (10:39 and 10:40) are no later than their commits (10:39:46Z and 10:41:00Z).

Findings: none.

Checked, no finding: the processing-log order (10:21, 10:28, 10:40); the description, unchanged since the previous review; and the V4 artifact line, which names the two fix commits, while the redone run's test commit is named in the paragraph after the red/green table.

Checks

On the loop's compute node at this head, against the merge base a25a27e23 (receipt server-gates-kranich-959): the repository's pre-commit gate and lint roster exit 0, and the review-audit validator passes with no failure. The commits since 43f6b980f change documentation only, so the package tests of gate 957 at that head stand (health-check server: 22 passed, 0 failed). Checked against the bytes at posting: the audit record names review 5918615659, so the round 2 threads have their rows. GitHub checks at this head at posting time: "". At posting, develop is a25a27e23.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 93f392c — the fixes, their regression evidence aligned with the redone T3 runs, and an audit record covering all six review threads recomputed against a25a27e

@josecelano

Copy link
Copy Markdown
Member

ACK 93f392c

…cs-on-invalid-response

Resolve the conflict in the `mod udp` imports of the health-check
contract tests: keep the imports of both sides (torrust#2393 added
`std::net::UdpSocket`; torrust#2867 added `SocketAddr`, `Registar`,
`ServiceRegistration`, `ConfigurationInstanceId` and
`RuntimeServiceMetadata`).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@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.

Reviewed at fe9f2784a8db1c09555f490717520e76ff370c2b. Recomputed from the bytes at this head, against the merge base e78491918; git merge-tree against develop e78491918 yields exactly the head's tree, because the head merges develop in.

Process: the branch conflicted with develop, and under open-pull-request that requires an update. A merge, unlike a rebase, keeps every cited commit id valid. fe9f278 is that merge. Its one conflict is the mod udp imports of the health-check contract tests, and it keeps the union of both sides. A clean re-merge of 93f392c and develop differs from the head only in that hunk.

The change against its claim: the fixes, T2, T3 and T5 are byte-identical. develop changed no production file on the health-check path, so V4 needs no rerun under fix-bug. However, develop replaced the ignored stopped-UDP test with one that runs by default and asserts the same Err("Timed Out"), while the evidence, the AC4 row and the description still name the removed test (F12). The merge also shifts the evidence's line references (F13) and adds a shared registration helper that T3 repeats (F14).

Consistency: the validator's logic, run offline, reports status ok: 6 rows, 3 log entries, 0 failures. All six threads have a row, a reply and a resolution, and no review comment has arrived since the previous review.

Hygiene: the merge commit's author equals its committer, its body matches its resolution, and it carries an attribution footer, which no rule in the tree forbids. The commit-id check prints nothing. git diff --check reports only the four trailing blank lines seen in earlier rounds. The only closing keyword is Closes #2867.

Findings: F12 (Minor), F13 (Nit) and F14 (Suggestion). None of them blocks. F1 to F11 stay fixed or resolved.

Checked, no finding: every import in the resolved block is used, the contract-test count (13) is unchanged, and develop already has merges of develop into PR branches.

Checks

On the loop's compute node at this head, against the merge base e78491918 (receipt server-gates-kranich-964): the repository's pre-commit gate and lint roster exit 0, and the audit-record validator for this PR reports status ok with 6 rows, 3 log entries and 0 failures. Package tests for torrust-tracker-client-lib and torrust-tracker-axum-health-check-api-server exit 0: 38 passed, 0 failed, 0 ignored across 5 test binaries (15.2 s wall); the 7 ignored in round 1 were the port-race ignores that the merged #2393 work removed. F12 checked against the bytes at posting: contract.rs no longer contains stopped_after_registration, its replacement it_should_return_error_when_the_registered_udp_service_never_answers_the_check is at line 453, and the evidence file still names the removed test three times. GitHub checks at this head at posting time: "". At posting, develop is e78491918.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK fe9f278 — the develop merge's conflict resolution, the unchanged fixes and regression tests, and an audit record covering all six review threads recomputed against e784919

josecelano-bot and others added 3 commits November 16, 2026 14:47
…art T5's API through the shared helpers

T3 now registers its junk-answering peer with `registar_with_one_service`
and starts the API with `start_health_check_api`, the helpers the torrust#2393
work added; its own helper only binds the peer. T5 starts its API with
`start_health_check_api`; its `register` stays, because it adds a second
service to one registar. No behaviour change: the contract tests pass,
and T3 still fails when the `check` fix is reverted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…as AC4 coverage after the develop merge

The torrust#2393 rewrite merged with `develop` removed the ignored stopped-UDP
test that V3, V4 and the AC4 row cite; its replacement runs by default
and asserts the same `Err("Timed Out")`. Name it as AC4's coverage from
the merge on, with a new run log, and tie the T3 and T5 line numbers to
the commits where they hold instead of to the branch head.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…2879

Record da2ce7's F12 to F14, on the develop merge, as F7 to F9, each
fixed, replied to and ready to resolve.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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.

Reviewed at a7f184d58d410e488690e25d6f8cb153bb926cd4. Recomputed from the bytes at this head, against the merge base e78491918; git merge-tree against develop e78491918 yields exactly the head's tree, because develop has not moved since the previous review.

Process: three commits answer the previous review under process-pr-review. 195f017 fixes F14, fe54dfe fixes F12 and F13, and a7f184d records them as audit rows F7 to F9. Each thread has a reply citing its commit subject and is resolved, and the description's Validation bullet was updated.

The change against its claim: F14 is fixed. T3 now registers through registar_with_one_service, and both T3 and T5 start the API through start_health_check_api. T5 keeps register for its second service. Only the Arrange blocks and imports change, every remaining import is used, and T3's cause assertion is now at line 541, as audit F9 says. F12 is fixed. A new V4 subsection names it_should_return_error_when_the_registered_udp_service_never_answers_the_check as AC4's coverage from the merge on, with a stored run (1 passed; 12 filtered out) taken after the commit it names. V3, V4 step 2 and the AC4 row speak of the removed test in the past tense, and the description says the same. F13 is fixed. Line 520 and line 670 are each tied to 9741001, where both hold.

Consistency: the validator's logic, run offline, reports status ok: 9 rows, 4 log entries, 0 failures. All nine threads have a row, a reply on their own thread and a resolution, and each audit verification grep prints what it claims.

Hygiene: three Conventional commits with [#2867]; in each, the author equals the committer and the body matches the diff. Each carries an attribution footer, and no rule in the tree forbids one. The commit-id check prints nothing. Every stamp (14:48, 14:50) is no later than its commit. The only closing keyword is Closes #2867.

Findings: none. F1 to F14 are fixed or resolved.

Checked, no finding: the new log's trailing blank line (the form of the other logs), the longest added line (122 of 130 columns), and T3's stored red and green logs. Those logs are dated to the fixture commit, and audit F9 records a red rerun after this refactor, which moved only registration.

Checks

On the loop's compute node at this head, against the merge base e78491918 (receipt server-gates-kranich-970): the repository's pre-commit gate and lint roster exit 0 (107 s wall), and the audit-record validator for this PR reports status ok with 9 rows, 4 log entries and 0 failures. Package tests for torrust-tracker-client-lib and torrust-tracker-axum-health-check-api-server exit 0: 38 passed, 0 failed, 0 ignored across 5 test binaries (10.3 s wall). F14's fix checked against the bytes at posting: contract.rs defines registar_with_one_service and start_health_check_api at lines 11 and 30, and the tests reach them through super::. GitHub checks at this head at posting time: "". At posting, develop is e78491918.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK a7f184d — the fixes, T3 and T5 on the shared helpers, AC4's replacement coverage after the develop merge, and an audit record covering all nine review threads recomputed against e784919

@josecelano

Copy link
Copy Markdown
Member

ACK a7f184d

@josecelano
josecelano merged commit 3134dea into torrust:develop Nov 16, 2026
20 checks passed
josecelano added a commit that referenced this pull request Nov 16, 2026
…nic issue

50ab209 docs(pr-reviews): [#2867] link the PR 2885 audit to the moved process-pr-review skill (josecelano-bot)
356efc0 docs(pr-reviews): [#2867] audit the second da2ce7 review of PR 2885 (josecelano-bot)
9c11ca9 docs(pr-reviews): [#2867] record the Copilot review of PR 2885 as a re-raise of F1 (josecelano-bot)
0e616b1 docs(pr-reviews): [#2867] audit the first da2ce7 review of PR 2885 (josecelano-bot)
f3f3c16 docs(issues): [#2867] leave the reviewer checkpoint open (josecelano-bot)
a70c193 docs(pr-reviews): [#2867] cite the fix commit as the resolution of the PR 2868 follow-ups (josecelano-bot)
b2bccc0 docs(pr-reviews): [#2867] close the PR 2868 follow-up findings after PR 2879 merged (josecelano-bot)
845accc chore(issues): archive closed issue #2867 spec to docs/issues/closed (josecelano-bot)

Pull request description:

  Close-out for #2867 after #2879 merged. Documentation only; no code changes.

  ## Changes

  - Archive the #2867 spec folder from `docs/issues/open/` to `docs/issues/closed/`. The spec now has `status: done`, `related-pr: 2879`, the new `spec-path`, the remaining workflow checkpoints ticked except "Reviewer validated acceptance criteria", and progress-log entries for the merge and this close-out. The reviewer checkpoint stays open: the approving reviews of #2879 validated the criteria, but no reviewer edited the boxes. The evidence file and the PR 2879 audit point at the new path.
  - Close the loop on the two #2868 findings deferred to #2879 (audit rows F7 and F8, da2ce7's F6 and F7 there). Both are now `FIXED`/`RESOLVED`. Their resolution reference is the follow-up's fix commit, `docs(issues): [#2867] record the regression tests, the fix recheck and the deferred PR 2868 findings`, and their Solution names the #2879 merge commit. Their Reply URLs are the closing replies, which carry the merge reference; both threads are resolved, and a GraphQL refresh shows no unresolved thread on #2868. The verification greps say they run at this PR's head, where the spec folder is closed.
  - Add this PR's review audit, `docs/pr-reviews/pr-2885-review/PR-REVIEW.md`: da2ce7's F1 to F4 (all fixed), Copilot's re-raise of F1 (F5, superseded by F1), and da2ce7's F9 (this description, fixed by editing it) and F11 (a push recorded before it happened, fixed in the audit).

  - Merge `develop` after #2886 moved the agent skills to `.claude/skills/`. GitHub reported a conflict on the moved spec; git's rename detection carries #2886's skill-path updates into `docs/issues/closed/2867-.../ISSUE.md` with no conflict. This PR's own audit then links the moved `process-pr-review` skill, as the template does; the older audits keep the old paths, which now lead to redirect stubs.

  The audits' verification greps that name the old `docs/issues/open/...` path record checks made at that time. They are kept on purpose, as the cleanup-completed-issues skill allows for historical records.

  ## History rewrite

  To remove a closing-keyword match from a commit body (review finding F2), the branch was rebuilt on the same base with the archive commit's body reworded, and force-pushed with `--force-with-lease`. Every commit was kept, and the final tree did not change. The review audit maps the two pre-rewrite commit ids to their subjects.

  ## Validation

  - `linter markdown` and `linter cspell` pass. The pre-commit hook passed when each commit was first made and on the reworded archive commit; the three commits replayed after it by `git cherry-pick` keep the trees that passed.
  - `validate-audit-record.py`, run with its GitHub calls sent through the bot account, reports `status ok` with 0 failures on the PR 2868 record and on this PR's record.
  - The `open-pull-request` closing-keyword scan matches nothing in the title, the description or the commit messages.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  da2ce7:
    ACK 50ab209 — the develop merge (tree equal to a clean merge), the moved-skill link and the unchanged close-out, description and audit record (seven threads, validator logic 0 failures) recomputed against 9e463cb
  josecelano:
    ACK 50ab209

Tree-SHA512: c5a57325687150517fe389a4a3de07ca59154d136d1178540b661c414aa03c65133b238fd74d291eb102e74797f32f3244ad1ed0b64d58b5d1fdf479c6297046

This branch was previously deployed

1 inactive deployment
coverage — a7f184d5 Deployed Nov 16, 2026 by josecelano-bot via Generate Coverage Report #3220
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.

UDP health check panics when the tracker answers with an invalid response

4 participants