Skip to content

Organize workers/go#358

Open
THardy98 wants to merge 1 commit into
mainfrom
feat/sane-build-code
Open

Organize workers/go#358
THardy98 wants to merge 1 commit into
mainfrom
feat/sane-build-code

Conversation

@THardy98
Copy link
Copy Markdown
Contributor

@THardy98 THardy98 commented May 20, 2026

What was changed

Purely organizational change.

Organizing workers/go into 3 top-level dirs:

  • harness: harness that exposes worker/client helpers and gRPC methods for project tests
  • apps: harness.App entrypoints, these are build targets and what actually runs on the worker
  • workerlib: shared code that can be reused between harness.Apps (i.e. workflows, activities, etc.)

Note that workers/go shares a single go.mod between all tests in the module. This makes it much easier to share code between different app entrypoints and keeps the build logic simple. I took a different approach with the other langs, but I think this is better & simpler.

Why?

Clarifies boundaries / cleaner package roles (harness, app, shared code). Better build target model (look inside workers/go/apps/<x>)

…r shared worker code (i.e. workflows, activities, etc.)
@THardy98 THardy98 marked this pull request as ready for review May 20, 2026 19:11
@THardy98 THardy98 requested review from a team as code owners May 20, 2026 19:11
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