Skip to content

feat: previewed one-way S3 folder sync [skip release] - #40

Merged
rgcsekaraa merged 3 commits into
mainfrom
feat/s3-folder-sync-preview
Sep 22, 2026
Merged

rgcsekaraa merged 3 commits into
mainfrom
feat/s3-folder-sync-preview

Conversation

@rgcsekaraa

@rgcsekaraa rgcsekaraa commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds local-folder-to-S3 copy/update through Upload > Sync local folder, preserving the existing UI and transfer workflows. No local or destination deletion.

Safety

  • Read-only preview with replacement approval, profile binding, expiry and single-use plans.
  • Bounded Rust streaming hashes and disk snapshots reject changed local content.
  • Conditional PUT and multipart completion reject destination conflicts, without an unconditional fallback.
  • Existing attributes are preserved or replacement fails safely, including MinIO placeholder ACLs and AWS bucket-owner-enforced ACL handling.
  • Reuses progress, cancellation, retries and recovery history. Sync retries after restart require a fresh preview.
  • Ordinary uploads remain create-only. Disk/journal failures stop safely.

Validation

  • 104 Rust tests passed; 4 opt-in integration tests excluded from the default run.
  • Separately passed new sync and existing multipart upload/cancellation tests against an isolated MinIO service, including 0-byte, small and 129 MiB replacements.
  • 87 frontend tests, 23 release-script tests and 62 Chromium/WebKit smoke tests passed locally.
  • Existing navigation smoke race fixed by waiting for the destination before pasting; passed 10 repeated runs.
  • Type checking, lint, clippy with warnings denied, formatting, production build and independent UI finish review passed.
  • Waiting for Linux, macOS and Windows CI on the final revision before merging.

Limits

One-way upload only, no delete/mirror/scheduling. Incomparable hashes are marked Unverified and require approval for re-upload. No real AWS/R2 account was mutated or claimed as live-tested. See docs/FOLDER_SYNC.md. This merge will not trigger a release.

@rgcsekaraa
rgcsekaraa marked this pull request as ready for review September 22, 2026 07:28
@rgcsekaraa

Copy link
Copy Markdown
Owner Author

Local validation completed: 102 Rust tests passed (4 opt-in integration tests excluded from the default run), 87 frontend tests, 23 release-script tests, and 62 Chromium/WebKit smoke tests passed. Type checking, lint, clippy with warnings denied, formatting and production build passed. Separately ran the new sync integration and the existing multipart upload/cancellation integration against an isolated MinIO instance; both passed, including empty/small/129 MiB replacements, preserved metadata/tags and stale ETag rejection. The live test caught MinIO placeholder ACL handling, now covered explicitly. AWS bucket-owner-enforced ACL fallback retains conditional writes and is covered by scripted endpoint tests. Independent UI finish review found no material issues. Waiting for the latest Linux/macOS/Windows CI before merging. No real AWS/R2 account was mutated; cloud-specific behavior beyond the fixtures is not claimed as tested.

@rgcsekaraa

Copy link
Copy Markdown
Owner Author

Additional hardening evidence on final commit 4822490: 104 Rust tests pass, including simulated snapshot-write failure, journal-write failure, expired/single-use approvals and recovery requiring a fresh preview. The navigation smoke test passed 10 repeat runs. Also directly verified real MinIO rejects stale If-Match on PUT and multipart completion, rejects If-None-Match on an existing key, and retains the original object after each conflict. Final frontend CI is green; native platform CI is still running.

@rgcsekaraa
rgcsekaraa merged commit f4fccce into main Sep 22, 2026
4 checks passed
@rgcsekaraa

Copy link
Copy Markdown
Owner Author

Merged after all four checks passed on the final revision: frontend, Linux backend, macOS backend and Windows backend. This adds only the first planned feature: one-way local-folder-to-S3 sync with preview. Existing transfer workflows are retained. It will be included in a future release; this merge deliberately does not publish a new build. Safety limits and provider-specific comparison behavior are documented in docs/FOLDER_SYNC.md.

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