Skip to content

ategcs: rename and move to pkg/ for reuse outside atelet - #2013

Merged
Michelle Au (msau42) merged 1 commit into
agent-substrate:mainfrom
ILLUM1N0X:pr1-ategcs
Oct 1, 2026
Merged

Michelle Au (msau42) merged 1 commit into
agent-substrate:mainfrom
ILLUM1N0X:pr1-ategcs

Conversation

@ILLUM1N0X

@ILLUM1N0X ILLUM1N0X commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #1827

Moves cmd/atelet/internal/ategcs to pkg/objectstorage and renames the package to objectstorage. No code changes besides the package name, its import path and uses, the tracer name, and comments that named the old package.

Why: the Platform-Provided Snapshot API Proposal moves snapshot transfer out of atelet and ate-api-server into a snapshot plugin binary that runs as a sidecar. The reference plugin (GCS and S3) reuses this package's transfer code as is, and so can snapshot plugins built outside this repository, which is why it goes in pkg/ rather than internal/.

Naming: objectstorage, not objectstore, because internal/objectstore already exists. That package only lists, copies and deletes objects for the control plane and is deliberately separate from this one (see its package comment, updated here). The snapshot plugin binary imports both.

This PR stands alone and changes no behavior.

Reviewing: git show -M --stat shows 20 renames as {cmd/atelet/internal/ategcs => pkg/objectstorage}/.... Each changes only its package clause, except:

  • objects.go: tracer name ategcs → objectstorage
  • gcscompose_test.go, s3bench_test.go: the go test ./pkg/objectstorage path in a comment; gcscompose_test.go also renames its emulator test bucket

The other 4 files:

  • cmd/atelet/{main,main_test,sandbox_assets}.go: import path and ategcs. → objectstorage., plus one comment in main_test.go

  • internal/objectstore/objectstore.go: package comment now points at pkg/objectstorage

  • Tests pass (make test, make verify)

  • Appropriate changes to documentation are included in the PR (none needed)

@mayawang Maya Wang (mayawang) added kind/cleanup Small fixes that are not bugs, for example a typo in a code comment area/storage labels Sep 30, 2026

@msau42 Michelle Au (msau42) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After today's discussion, I think we actually want to move this to pkg/ so that it can be imported by plugin authors.

Eventually once we get the whole org/repo thing sorted out, I would actually want to move it to its own repo(s) as well.

@msau42

Copy link
Copy Markdown
Collaborator

cc Anish Ramasekar (@aramase)

@ILLUM1N0X ILLUM1N0X changed the title ategcs: move to internal/ for reuse outside atelet ategcs: rename and move to pkg/ for reuse outside atelet Oct 1, 2026
The object storage client and its zstd, ranged and composed transfer
helpers are needed by the snapshot plugin binary as well as atelet, and
by snapshot plugins built outside this repository. Move the package from
cmd/atelet/internal/ategcs to pkg/objectstorage so all of them can
import it.

No code changes besides the package name, import paths, the tracer
name, and comments that named the old package. It stays separate from
internal/objectstore, which only lists, copies and deletes objects for
the control plane.
@msau42
Michelle Au (msau42) added this pull request to the merge queue Oct 1, 2026
Merged via the queue into agent-substrate:main with commit 6a0519d Oct 1, 2026
10 checks passed
@ILLUM1N0X
ILLUM1N0X deleted the pr1-ategcs branch October 1, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/storage kind/cleanup Small fixes that are not bugs, for example a typo in a code comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants