Skip to content

diagnostics: say what stop-all deletes, flag missing server logs, unbreak bleep fmt - #634

Merged
oyvindberg merged 1 commit into
masterfrom
diagnostics-not-silently-deleted
Jul 31, 2026
Merged

diagnostics: say what stop-all deletes, flag missing server logs, unbreak bleep fmt#634
oyvindberg merged 1 commit into
masterfrom
diagnostics-not-silently-deleted

Conversation

@oyvindberg

Copy link
Copy Markdown
Owner

Fallout from an OOM incident report against M10, where the evidence trail went cold twice:

  • bleep config compile-server stop-all deleted a socket dir holding 10GB of heap dumps without a word. It still deletes — that is its job — but now logs each dir with its size, at warn level when it was ≥1GB, so gigabytes of diagnostics no longer vanish silently.

  • The failure path printed BSP server log: <path> for a file that did not exist (server never started, or the dir was already cleaned), sending the reader to a dead end. Both call sites now say (missing — …) when the file is not there.

Separately, bleep fmt failed repo-wide: scalafmt cannot parse a lambda whose body is an indented try/catch followed by , arg in the same call (ServerRunInterruptTest.scala, from #629). Verified against scalafmt 3.11.5 under dialects scala3/scala36/scala3future — none parse it, so the fix is binding the Runnable to a val first, with a comment so nobody simplifies it back. Bumped scalafmt 3.11.1 → 3.11.5 while at it; zero reformat churn.

Verified locally: bleep compile green, bleep fmt exits 0, ServerRunInterruptTest 3/3 passed.

🤖 Generated with Claude Code

…reak bleep fmt

Fallout from an OOM incident report against M10, where the evidence trail went cold twice:

- `bleep config compile-server stop-all` deleted a socket dir holding 10GB of heap dumps
  without a word. It still deletes — that is its job — but now logs each dir with its size,
  at warn level when it was ≥1GB, so gigabytes of diagnostics no longer vanish silently.

- The failure path printed `BSP server log: <path>` for a file that did not exist (server
  never started, or the dir was already cleaned), sending the reader to a dead end. Both
  call sites now say `(missing — …)` when the file is not there.

Separately, `bleep fmt` failed repo-wide: scalafmt cannot parse a lambda whose body is an
indented try/catch followed by `, arg` in the same call (ServerRunInterruptTest.scala, from
#629). Verified against scalafmt 3.11.5 under dialects scala3/scala36/scala3future — none
parse it, so the fix is binding the Runnable to a val first. Bumped scalafmt 3.11.1 → 3.11.5
while at it; zero reformat churn.

Co-Authored-By: Claude Fable 5 <[email protected]>
@oyvindberg
oyvindberg merged commit c45d5a0 into master Jul 31, 2026
7 of 8 checks passed
@oyvindberg
oyvindberg deleted the diagnostics-not-silently-deleted branch July 31, 2026 20:59
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