Skip to content

Delegate mixedbrain devserver lifecycle to Omes#10216

Draft
stephanos wants to merge 2 commits into
mainfrom
stephanos/omes-server-dl
Draft

Delegate mixedbrain devserver lifecycle to Omes#10216
stephanos wants to merge 2 commits into
mainfrom
stephanos/omes-server-dl

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 11, 2026

What changed?

Replaces the local clone/build/config/process plumbing with calls into github.com/temporalio/omes/devserver, which now exposes a Server type that handles all of those steps.

Why?

Reduce code; retain behavior.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@stephanos stephanos changed the title mixedbrain: delegate server lifecycle to omes/devserver Delegate devserver lifecycle to Omes May 11, 2026
@stephanos stephanos force-pushed the stephanos/omes-server-dl branch from d8ef038 to d0ba57f Compare May 12, 2026 16:31
@stephanos stephanos changed the base branch from main to stephanos/extend-template May 12, 2026 16:31
stephanos added a commit that referenced this pull request May 12, 2026
Two fixes for the CI failure on PR #10216:

1. Postgres' cluster_membership.rpc_port is SMALLINT (max 32767), but
   omes/devserver's default port allocator picks ephemeral ports from
   :0 — Linux returns 32768+, which overflows. When PERSISTENCE_DRIVER
   is non-sqlite, pass PortBase 7230 / 7240 so the two servers use
   sequential low ports that fit. (Mirrors the portSetA/portSetB pins
   from the pre-refactor mixedbrain.)

2. Pin go.temporal.io/sdk to v1.42.0 in this sub-module via a replace.
   omes' go.mod ships with sdk v1.43.0, which started vendoring an
   internal copy of go.temporal.io/api. Linking both sdk's internal
   vendored proto and the external go.temporal.io/api our parent
   pulls in (v1.62.12-pre) panics at init() with "proto: file ...
   has a name conflict over temporal.api.sdk.v1.ExternalStorageReference".
   sdk v1.42.0 has no internal vendored copy, so no collision.

Also bumps omes ref to c4036f16020e (the PortBase commit on
stephanos/omes-server-dl) and refreshes omesRef accordingly.
Comment thread tests/mixedbrain/go.mod
@@ -0,0 +1,42 @@
module go.temporal.io/server/tests/mixedbrain
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since the dev server code now lives in Omes, we need to import Omes now. But we don't want to pull it into the top-level go.mod.

@stephanos stephanos changed the title Delegate devserver lifecycle to Omes Delegate mixedbrain devserver lifecycle to Omes May 12, 2026
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@stephanos stephanos force-pushed the stephanos/extend-template branch from cad1090 to 711bc3c Compare May 12, 2026 17:51
@stephanos stephanos force-pushed the stephanos/omes-server-dl branch 9 times, most recently from 6e8cd0c to 25f3b04 Compare May 12, 2026 20:06
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@stephanos stephanos force-pushed the stephanos/omes-server-dl branch from 25f3b04 to d15ccd9 Compare May 12, 2026 20:38
@stephanos stephanos force-pushed the stephanos/extend-template branch from 711bc3c to ab383bb Compare May 14, 2026 19:16
Base automatically changed from stephanos/extend-template to main May 15, 2026 00:08
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