Skip to content

refactor: environment-driven snapshot upload#53

Merged
bdchatham merged 1 commit intomainfrom
refactor/env-driven-snapshot-upload
Apr 1, 2026
Merged

refactor: environment-driven snapshot upload#53
bdchatham merged 1 commit intomainfrom
refactor/env-driven-snapshot-upload

Conversation

@bdchatham
Copy link
Copy Markdown
Contributor

@bdchatham bdchatham commented Apr 1, 2026

Summary

Move snapshot upload S3 coordinates from task params to sidecar environment, matching the snapshot restore and genesis conventions.

  • SnapshotUploadRequest: remove Bucket/Prefix/Region (now empty)
  • NewSnapshotUploader: takes bucket/region/chainID from env at construction
  • Upload prefix derived as {chainID}/ from SEI_CHAIN_ID
  • Client SnapshotUploadTask stripped to empty struct

Companion PR

  • sei-k8s-controller: pending

Test plan

  • Build clean
  • Client tests pass
  • Full sidecar test suite (CI)

🤖 Generated with Claude Code

Move S3 bucket/region/prefix from task params to sidecar environment,
matching the snapshot restore and genesis conventions. The upload
prefix is now {chainID}/, derived from SEI_CHAIN_ID.

- SnapshotUploadRequest: remove Bucket/Prefix/Region
- NewSnapshotUploader: takes bucket/region/chainID from env
- Client SnapshotUploadTask: stripped to empty (no params)
- Upload and runLoop use struct fields instead of request params

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bdchatham bdchatham merged commit 193f692 into main Apr 1, 2026
2 checks passed
@bdchatham bdchatham deleted the refactor/env-driven-snapshot-upload branch April 1, 2026 23:41
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