You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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
m.fs.StringVar(&m.BuildID, "build-id", "", "DEPRECATED: Build ID for legacy Build-ID-based worker versioning. Temporal Server will soon stop supporting the Rules-Based Versioning APIs that back this flag - use --deployment-name and --deployment-build-id instead. Mutually exclusive with --deployment-name")
32
44
m.fs.StringVar(&m.DeploymentName, "deployment-name", "", "Worker Deployment name. When set, enables Worker Deployment Versioning and must be combined with --deployment-build-id")
33
45
m.fs.StringVar(&m.DeploymentBuildID, "deployment-build-id", "", "Build ID within the Worker Deployment. Required when --deployment-name is set")
34
46
m.fs.StringVar(&m.DefaultVersioningBehavior, "default-versioning-behavior", "", "Default versioning behavior for workflows that don't set one at registration. One of: pinned, auto-upgrade. Defaults to auto-upgrade when --deployment-name is set")
m.fs.BoolVar(&m.ErrOnUnimplemented, "worker-err-on-unimplemented", false, "Fail on unimplemented actions (currently this only applies to concurrent client actions)")
m.fs.BoolVar(&m.ErrOnUnimplemented, prefix+"err-on-unimplemented", false, "Fail on unimplemented actions (currently this only applies to concurrent client actions)")
0 commit comments