Skip to content

ateworker internal packages cleanup - #2700

Merged
Tim Hockin (thockin) merged 16 commits into
agent-substrate:mainfrom
BenTheElder:ateworker-packages
Oct 15, 2026
Merged

Tim Hockin (thockin) merged 16 commits into
agent-substrate:mainfrom
BenTheElder:ateworker-packages

Conversation

@BenTheElder

@BenTheElder Benjamin Elder (BenTheElder) commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #2254, renames the remaining internal/ateom* go packages.

After this change there is no ateom left in the repo. 🫡

  • Worker only packages move under internal/ateworker: register (the registration code, leaving internal/ateworker itself for the shared worker code), cgroup, pid1 (was ateominit), actornet (was ateomnet), phaselog, suspend, tunnel
  • Two packages go flat instead: internal/workerstats, which atelet also imports, and internal/netns, a generic named netns helper that atunnel's tests also use
  • The downward API file names atecontroller needs move to internal/workercapacity, so it doesn't import the worker registration code
  • depguard (golangci-lint) now fails any import of internal/ateworker outside cmd/ateworker-* and internal/ateworker
  • Drops an unused stopwatch package
  • Renames cmd/atelet's ateom* files

The move commits are only git mv, imports and package names are fixed in a separate commit after each round of moves, to make it clear which changes are just file moves and which changes are import rewrites etc.

We squash merge, so the intermediate commits don't need to build.

This PR was AI assisted. I have reviewed the changes.

@BenTheElder Benjamin Elder (BenTheElder) added kind/cleanup Small fixes that are not bugs, for example a typo in a code comment area/node labels Oct 15, 2026

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.

minor: Why internal/... and not cmd/atecontroller/internal/... ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's used by both atecontroller (to set the downward API) and internal/ateworker/register (to read the downward API), so they agree on paths and keys.

@thockin
Tim Hockin (thockin) added this pull request to the merge queue Oct 15, 2026
Merged via the queue into agent-substrate:main with commit cb0e233 Oct 15, 2026
15 checks passed
@BenTheElder
Benjamin Elder (BenTheElder) deleted the ateworker-packages branch October 15, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/node 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.

2 participants