Skip to content

fix(adapters): clean failed SFTP uploads - #883

Open
chbndrhnns wants to merge 1 commit into
oblien:mainfrom
chbndrhnns:fix/882-sftp-temp-cleanup
Open

chbndrhnns wants to merge 1 commit into
oblien:mainfrom
chbndrhnns:fix/882-sftp-temp-cleanup

Conversation

@chbndrhnns

Copy link
Copy Markdown
Contributor

Summary

  • remove failed SFTP upload temp files after stream or finalization errors
  • keep cleanup best-effort so original upload errors remain visible
  • add regression coverage for stream failures, rename failures, and successful atomic finalization

Closes #882

Verification

  • bun run --cwd packages/adapters vitest run src/backup/destinations/sftp.test.ts
  • bun run --cwd packages/adapters lint
  • bun run --cwd packages/adapters test
  • bun format

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.

[Bug] SFTP backup failures leave .uploading-* temporary files

1 participant