Skip to content

refactor: warn on output directory cleanup failure - #518

Merged
tenthirtyam merged 1 commit into
mainfrom
refactor/warn-on-output-directory-cleanup-failure
Jun 23, 2026
Merged

tenthirtyam merged 1 commit into
mainfrom
refactor/warn-on-output-directory-cleanup-failure

Conversation

@tenthirtyam

Copy link
Copy Markdown
Collaborator

Summary

  • Adds maxCleanupRetryAttempts (5) and replaces the magic '5' in the cleanup loop with this constant.
  • Adds a log a warning if dir.RemoveAll() fails during Run instead of ignoring the error.

These changes ensures that output directory removal failures are visible for debugging and the retry count is centralized.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

Documentation

  • Documentation has been added or updated.

Issue References

Release Note

Additional Information

- Adds `maxCleanupRetryAttempts` (5) and replaces the magic '5' in the cleanup loop with this constant.
- Adds a log a warning if `dir.RemoveAll()` fails during `Run` instead of ignoring the error.

These changes ensures that output directory removal failures are visible for debugging and the retry count is centralized.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam tenthirtyam added this to the v2.1.4 milestone Jun 23, 2026
@tenthirtyam tenthirtyam self-assigned this Jun 23, 2026
@tenthirtyam
tenthirtyam requested a review from a team as a code owner June 23, 2026 19:00
@tenthirtyam tenthirtyam added the refactor Refactor label Jun 23, 2026
@github-actions github-actions Bot added needs-review Needs Review size/xs Relative Sizing: Extra-Small labels Jun 23, 2026
@tenthirtyam
tenthirtyam merged commit 4df323a into main Jun 23, 2026
8 checks passed
@tenthirtyam
tenthirtyam deleted the refactor/warn-on-output-directory-cleanup-failure branch June 23, 2026 19:02
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Jun 23, 2026
@github-actions

Copy link
Copy Markdown

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

refactor Refactor size/xs Relative Sizing: Extra-Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant