Skip to content

Verify v2 recovery across abrupt process exits - #185

Closed
linroid wants to merge 1 commit into
torrent-v2-07-creation-logfrom
torrent-v2-07-crash-recovery
Closed

linroid wants to merge 1 commit into
torrent-v2-07-creation-logfrom
torrent-v2-07-crash-recovery

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Adds four JVM child-process tests that exit without cleanup during a partial payload write, after a flushed piece with no checkpoint, immediately before checkpoint replacement, and immediately after replacement. Recovery authenticates current bytes, loads the expected old/new complete snapshot, finishes the download and preserves an unrelated neighbor during cleanup.

Stacked on #184; advances recovery validation for step 07 of #162. Child deadlines and forced-termination joins prevent leaking processes or removing fixtures beneath a live child. These controlled exits do not establish power-loss ordering, physical mobile lifecycle guarantees, or v2 network/runtime integration.

Validation: all four new process-crash tests passed with zero failures/skips. The unchanged common production/test sources also executed 375 iOS simulator torrent tests with zero failures/errors/skips using :library:torrent:iosSimulatorArm64Test -PenableIosSimulatorTests=true on the #184 base. The earlier run without the opt-in flag skipped execution and is explicitly excluded from test evidence.

@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-12T16:18:29.371629Z 9f23c0d 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.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

  597 files  + 3    597 suites  +3   4m 0s ⏱️ +6s
2 567 tests + 4  2 567 ✅ + 4  0 💤 ±0  0 ❌ ±0 
3 357 runs  +12  3 357 ✅ +12  0 💤 ±0  0 ❌ ±0 

Results for commit 9f23c0d. ± Comparison against base commit 31fa11f.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #234 (V2 catalog, checkpoints and crash recovery) 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 added a commit that referenced this pull request Sep 20, 2026
Consolidates #180–#185, preserving source 9f23c0d.
Includes the foundation listener cancellation regression fix discovered by consolidation CI.
@linroid
linroid deleted the torrent-v2-07-crash-recovery 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