Skip to content

Harden workspace backup cleanup - #278

Open
eshulman2 wants to merge 1 commit into
mainfrom
fix/workspace-backup-cleanup
Open

Harden workspace backup cleanup#278
eshulman2 wants to merge 1 commit into
mainfrom
fix/workspace-backup-cleanup

Conversation

@eshulman2

Copy link
Copy Markdown
Collaborator

Summary

  • retry transient ENOTEMPTY failures while removing a replaced workspace backup
  • treat backup deletion as best-effort after the replacement has been atomically installed
  • log persistent cleanup failures with the backup path instead of failing the recovered workflow
  • add regression coverage for both transient and persistent cleanup failures

Context

AISOS-2385 recovered a dirty workspace by swapping in a fresh clone, but deletion of the renamed old workspace raced with filesystem activity and raised [Errno 39] Directory not empty. That secondary cleanup exception then became the reported task failure even though the replacement workspace was already installed.

Testing

  • uv run ruff check src/forge/workflow/nodes/workspace_setup.py tests/unit/workflow/nodes/test_workspace_setup.py
  • uv run pytest tests/unit/workflow/nodes/test_workspace_setup.py (14 passed)

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