Skip to content

Project harness for Go#340

Merged
THardy98 merged 3 commits intomainfrom
feat/go-harness
Apr 29, 2026
Merged

Project harness for Go#340
THardy98 merged 3 commits intomainfrom
feat/go-harness

Conversation

@THardy98
Copy link
Copy Markdown
Contributor

@THardy98 THardy98 commented Apr 28, 2026

What was changed

Adds go/harness/ package, effectively a port of the same Python harness (python/harness).

go/harness supports the same harness semantics, structure, and API as the existing Python harness. The test suite (project_test.go and worker_test.go) similarly mimic the existing Python harness test suite.

The Go worker uniquely supported additional flags for worker deployment versioning that were not available/used in other languages, that has correspondingly been added to the Go's worker harness.

Note: in contrast to the harness in other languages, the Go harness is not a standalone Go module. There is significant coupling between the existing go worker code and Omes which would make this either a much larger change, or cause a lot of duplication. The plan is to use the existing workers/go/go.mod as a single source to manage dependencies between the harness and the tests that consume it (at least, until this is resolved)

Why?

  • load testing ergonomics / DX
  • Language parity

@THardy98 THardy98 marked this pull request as ready for review April 28, 2026 05:46
@THardy98 THardy98 requested review from a team as code owners April 28, 2026 05:46
Copy link
Copy Markdown
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

Am I missing where there's a Go test project?

@THardy98
Copy link
Copy Markdown
Contributor Author

THardy98 commented Apr 28, 2026

Am I missing where there's a Go test project?

Adding in a subsequent PR. Wanted to separate the harness implementation and the actual helloworld project. Thought the diff might get quite big otherwise.

(this applies for the other harness PRs as well for TS and Ruby)

@THardy98 THardy98 requested a review from Sushisource April 28, 2026 18:24
@THardy98 THardy98 merged commit 0527556 into main Apr 29, 2026
34 checks passed
@THardy98 THardy98 deleted the feat/go-harness branch April 29, 2026 20:25
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