Workspace startup tombstone to detect and clean partial starts (BT-969)#1004
Merged
Workspace startup tombstone to detect and clean partial starts (BT-969)#1004
Conversation
…BT-969 - Write `starting` tombstone before spawning BEAM node in start_detached_node - Remove tombstone on successful startup completion - Detect tombstone on entry and clean all stale runtime files via remove_stale_runtime_files - Add `starting` to remove_stale_runtime_files (alongside node.info, port, pid) - Add integration test: simulate mid-startup crash, verify next start succeeds - Add unit tests for remove_stale_runtime_files covering tombstone and idempotency Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughA startup tombstone mechanism was implemented to handle incomplete BEAM node startups. A "starting" marker file is written before node startup and removed after successful TCP readiness, enabling cleanup of partial state from interrupted startups on subsequent start attempts. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements the startup tombstone approach from BT-969 to make workspace startup crash-recovery self-describing and complete.
startingsentinel file at the very beginning ofstart_detached_node, before spawning the BEAM nodesave_node_info)start_detached_node, the existingremove_stale_runtime_filescall now also removesstarting, so if the file is present from a previous interrupted startup, all stale runtime files (node.info, port, pid, starting) are cleaned before proceedingstartingafter a kill, verifies nextstart_detached_nodesucceeds cleanlyremove_stale_runtime_filesremovesstartingtombstone, idempotent on missing filesThis is additive to BT-967 — the
remove_stale_runtime_filescleanup now covers all current and future runtime files via the tombstone mechanism.Linear
https://linear.app/beamtalk/issue/BT-969/workspace-startup-tombstone-to-detect-and-clean-partial-starts
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests