Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 99cabc802e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } catch (_: Exception) { | ||
| currentCoroutineContext().ensureActive() | ||
| failed(url, TrackerStatus.Outcome.FAILED) |
There was a problem hiding this comment.
Record exhausted UDP retries as timed out
When a UDP tracker never replies, udpExchange absorbs every retry deadline with withTimeoutOrNull and ultimately throws IllegalStateException("Tracker did not respond"). This generic catch therefore records the outcome as FAILED, so real UDP response timeouts can never produce the newly documented TIMED_OUT status; propagate or explicitly classify the exhausted-retry condition as a timeout.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in e173c80: exhausted UDP retries throw a distinct TrackerTimeoutException, and tracker tiers record TIMED_OUT. A regression using the actual UDP retry path fails before the fix and passes afterward, including socket closure and failure accounting. The combined child stack passed 547 JVM and 526 executed iOS tests; subsequent test API opt-in annotations were compiled on both targets.
|
Superseded by #237 (Tracker lifecycle, editing and discovery privacy) in the consolidated eight-PR stack for #162. The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks. Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment) |
Adds per-tracker diagnostic snapshots with stable IDs, current outcome, attempt/failure counters, and peer count/intervals from the last successful response. Snapshots omit URLs, credentials, tracker IDs, peers, exceptions, and raw tracker text. One current record is retained per unique configured URL; no history accumulates.
Stacked on #214; advances #162. Tests cover recovery, immutable snapshots, local timeout versus parent cancellation, credential exclusion, and private cleanup failing before a replacement attempt. The snapshot API is serialized with its owning tracker tiers; SDK/daemon/UI publication and per-tracker scheduling remain separate work.
Validation: 539 JVM and 518 executed iOS simulator tests, zero failures/errors/skips; native-runtime guard and both pinned v1 conformance scenarios passed.