fix(engine): log warning when ephemeral directory deletion fails #138

Merged
fuzzy merged 1 commit from fix/0096-ephemeral-deletion-logging into main 2026-07-05 16:55:31 +00:00
Owner

What

Replace shutil.rmtree(ignore_errors=True) with explicit try/except OSError that logs a warning when ephemeral directory deletion fails.

Why

ignore_errors=True silently swallows all errors (permission, read-only, etc.), making failures invisible.

Testing

  • 145 unit tests pass
  • Pre-commit hooks pass

Closes #96

## What Replace `shutil.rmtree(ignore_errors=True)` with explicit `try/except OSError` that logs a warning when ephemeral directory deletion fails. ## Why `ignore_errors=True` silently swallows all errors (permission, read-only, etc.), making failures invisible. ## Testing - [x] 145 unit tests pass - [x] Pre-commit hooks pass Closes #96
fix(engine): log warning when ephemeral directory deletion fails
All checks were successful
CI / test (pull_request) Successful in 47s
CI / lint (pull_request) Successful in 1m20s
88be67fd6e
Replaced shutil.rmtree(ignore_errors=True) with explicit
try/except that logs a warning on failure.
Closes #96
the.auditor left a comment

Automated Review — PR #138

Result: APPROVED


Clean fix — replaces silent shutil.rmtree(ignore_errors=True) with explicit try/except OSError that logs a warning. Failures are now visible in logs. Closes #96.

No suggestions.

## Automated Review — PR #138 **Result: APPROVED** --- Clean fix — replaces silent `shutil.rmtree(ignore_errors=True)` with explicit `try/except OSError` that logs a warning. Failures are now visible in logs. Closes #96. No suggestions.
fuzzy merged commit 88be67fd6e into main 2026-07-05 16:55:31 +00:00
fuzzy deleted branch fix/0096-ephemeral-deletion-logging 2026-07-05 16:55:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai!138
No description provided.