Skip to content

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

Merged
Hydralerne merged 1 commit into
oblien:feat/bugfix-integration-2026-09-15from
chbndrhnns:fix/882-sftp-temp-cleanup
Sep 15, 2026
Merged

Hydralerne merged 1 commit into
oblien:feat/bugfix-integration-2026-09-15from
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

@Hydralerne

Hydralerne commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Incorporated this PR into feat/bugfix-integration-2026-09-15 via 3bf8ec1d, preserving the original commits and adapting the fix to the current architecture.

Failed SFTP uploads reclaim their temporary file through a bounded fresh connection and preserve the original failure.

GitHub now records this contributor PR as merged into the integration branch. The integrated changes are tested and awaiting merge to main.

Validation:

  • 12 focused SFTP tests passed, including disconnect, stalled cleanup/finalization, early close, missing temporary file, and slow healthy upload
  • Both new deadline regressions failed against original PR fix(adapters): clean failed SFTP uploads #883
  • All 3,667 adapter tests passed
  • Adapter, platform, and API TypeScript checks passed

@Hydralerne Hydralerne closed this Sep 15, 2026
@Hydralerne Hydralerne reopened this Sep 15, 2026
@Hydralerne
Hydralerne changed the base branch from main to feat/bugfix-integration-2026-09-15 September 15, 2026 18:25
@Hydralerne
Hydralerne merged commit 3bf8ec1 into oblien:feat/bugfix-integration-2026-09-15 Sep 15, 2026
12 checks 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.

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

2 participants