Repository navigation
feat(hub): the hub watches itself and leaves a dump when stuck (#398) - #402
Merged
Merged
Conversation
A thread outside the async runtime asks the hub's own port for /hub/ping every 30 s; a connection the OS took is not enough, only an HTTP answer counts. After two minutes without one the hub writes a minidump of itself (Windows, MiniDumpWriteDump; the newest three kept), logs `hub_stuck`, starts the next hub and exits. The release publishes the Windows build's PDB beside the archive, so a dump can be read. Refs #398 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
feat/hub-watchdog
branch
from
October 31, 2026 10:55
ad4452e to
5155e12
Compare
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.
Refs #398. This PR captures the next hang so its cause can be found; it does not fix that cause.
crates/devstack-hub/src/watchdog.rs):GET /hub/pingto the hub's own port every 30 s and waits 10 s for an answer.who_answerstakes such a hub for foreign, and fix(hub): a start ends a hub that holds the lock and no longer answers (#398) #399's replacement never sees it.hub-stuck-<ms>.dmpnext to its log (Windows,MiniDumpWriteDumpwith thread info and indirectly referenced memory), keeping the newest 3 dumpshub_stuckwith the path of the dump, or the error if writing it faileddevstack_proc::write_dump: Windows only; elsewhere it answersUnsupported, and the hub still restarts.Win32_System_Diagnostics_Debug,_Kerneland_Memoryadded, whichMiniDumpWriteDumpneeds.devstack.pdbships asdevstack-x86_64-pc-windows-msvc-pdb.zip. It is attested and listed in SHA256SUMS. The installer,devstack update, winget and Homebrew keep using their archives by name.docs/releasing.mdand the changelog are updated.No review card: diagnostics and a self-restart within the hub's existing role.
Tests:
MDMPsignature).🤖 Generated with Claude Code