Skip to content

Support persistent split for s3 upload - #10

Merged
Rexagon merged 7 commits into
masterfrom
feature/s3-split-persistent
Sep 10, 2026
Merged

Rexagon merged 7 commits into
masterfrom
feature/s3-split-persistent

Conversation

@SmaGMan

@SmaGMan SmaGMan commented Aug 12, 2026

Copy link
Copy Markdown
Member

Linked with broxus/tycho#1122

COMPATIBILITY

Special logic applied

The uploader supports publishing splitted persistent state bundles. It uploads parts first, then metadata, and finally the main object, so readers never observe a partial bundle as ready.

Without activated persistent_state_split_depth the uploader will store a single-file state without metadata.

Existing split bundles are validated before reuse. Missing or zero-sized objects are resumed; malformed metadata, incompatible metadata, wrong object sizes, and conflicting legacy representations are rejected.

SPECIAL DEPLOYMENT ACTIONS

[Required]

Deploy updated Tycho readers before deploying this uploader. The new uploader can publish metadata and declared state files that older readers do not recognize.

The uploader uses the Tycho feature/s3-split-persistent dependency graph. The required tycho-types and tycho-vm patches remain in the indexers root because Cargo does not inherit patches through dependencies.

Dependencies should be updated to a tagged versions before merging the PR.


TESTS

Unit Tests

[Covered by:]

  • split_plan_handles_missing_incomplete_complete_and_duplicate_states
  • split_conflicts_with_legacy_or_invalid_manifest
  • single_file_rejects_manifest_and_uploads_missing_or_zero_main
  • wrong_sizes_and_manifest_metadata_are_conflicts

Manual Tests

Described in broxus/tycho#1122

@SmaGMan
SmaGMan force-pushed the feature/s3-split-persistent branch from 48d4af4 to 0fdbc92 Compare August 12, 2026 11:18
@SmaGMan
SmaGMan force-pushed the feature/s3-split-persistent branch from 0fdbc92 to c9a07ca Compare August 20, 2026 09:59
@SmaGMan
SmaGMan requested review from 0xdeafbeef and Rexagon August 20, 2026 09:59
@SmaGMan
SmaGMan marked this pull request as ready for review August 20, 2026 10:01
@SmaGMan
SmaGMan force-pushed the feature/s3-split-persistent branch from 8b1958b to 13912b9 Compare September 7, 2026 15:39
@Rexagon
Rexagon merged commit c690bd2 into master Sep 10, 2026
2 checks passed
@Rexagon
Rexagon deleted the feature/s3-split-persistent branch September 10, 2026 11:06
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.

2 participants