Skip to content

Add credential-free per-tracker status snapshots - #215

Closed
linroid wants to merge 2 commits into
torrent-v2-11-private-admissionfrom
torrent-v2-11-tracker-status
Closed

linroid wants to merge 2 commits into
torrent-v2-11-private-admissionfrom
torrent-v2-11-tracker-status

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T21:23:41.146668Z 99cabc8 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment on lines 338 to +340
} catch (_: Exception) {
currentCoroutineContext().ensureActive()
failed(url, TrackerStatus.Outcome.FAILED)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

  717 files  + 5    717 suites  +5   4m 13s ⏱️ -5s
2 999 tests +18  2 999 ✅ +18  0 💤 ±0  0 ❌ ±0 
4 077 runs  +30  4 077 ✅ +30  0 💤 ±0  0 ❌ ±0 

Results for commit e173c80. ± Comparison against base commit d12db27.

♻️ This comment has been updated with latest results.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

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)

@linroid linroid closed this Sep 20, 2026
@linroid
linroid deleted the torrent-v2-11-tracker-status branch September 20, 2026 11:13
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.

1 participant