Repository navigation
build: pin the Temporal server tool for tests - #4
Closed
tbhb-agent wants to merge 1 commit into
Closed
tbhb-agent wants to merge 1 commit into
tbhb-agent wants to merge 1 commit into
Conversation
Generated-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-haiku-5-5;session=sha-256-64:c0f9bb806fecbdfc;started_at=2026-11-24T21:24:43Z;subagent=sha-256-64:093f04a7d32cf99a;surface=cli Assisted-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:c0f9bb806fecbdfc;started_at=2026-11-24T16:06:49Z;surface=cli
Collaborator
Author
|
Superseded by #5, which carries the same commit on the agent/ branch that commit_identity requires. Generated-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-haiku-5-5;session=sha-256-64:c0f9bb806fecbdfc;subagent=sha-256-64:093f04a7d32cf99a;surface=cli |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The context graph's indexer tests need a local Temporal server. Each test target has to start its own server without a manual install. The repository needs a pinned binary, like its other tools.
Behavior change
The module pins Temporal command-line tool v1.10.0 for Linux amd64 and arm64, macOS arm64, and Windows amd64, each by sha256. The
//:temporalalias selects the binary for the running platform, andbazel run //:bazel_envadds atemporalshim. A newtemporal_dev_server_testruns the dev server on a free port. Its state stays in memory. The test waits foroperator cluster healthto answer, then stops the server. The helper intests/lib/temporal_dev_server.shis for later test targets to reuse.Decisions
Chose a shell test over a Python test, because the binary is a Bazel-pinned file and the helper must run without a Python environment. Chose the official release archives, because the release checksums verify each pin.
Risk
Tech debt. Windows skips the dev-server test, although the CI matrix includes Windows. The port search is a best-effort check, so a port taken between the search and the start fails the test rather than retrying. No
darwinamd64 pin exists, because the CI runners are arm64.Verification
bazelisk test //...: 27 tests pass, including//:temporal_dev_server_test. Its log reports the server as healthy and then stopped.bazelisk run //:formatandbazelisk run //:format.check: both pass.bazelisk run //:bazel_env: the shim runs and reportstemporal version 1.10.0.checksums.txt.Opened-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:c0f9bb806fecbdfc;surface=cli
Generated-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-haiku-5-5;session=sha-256-64:c0f9bb806fecbdfc;started_at=2026-11-24T21:24:43Z;subagent=sha-256-64:093f04a7d32cf99a;surface=cli
Assisted-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:c0f9bb806fecbdfc;started_at=2026-11-24T16:06:49Z;surface=cli