Skip to content

Add an upstream cluster profile for client-rust's own integration suites - #56

Merged
eduralph merged 2 commits into
mainfrom
cluster-upstream-profile
Oct 18, 2026
Merged

eduralph merged 2 commits into
mainfrom
cluster-upstream-profile

Conversation

@eduralph

Copy link
Copy Markdown
Contributor

Why: client-rust's integration suites (make integration-test-txn / -raw in client-rust) need the cluster its CI runs: three TiKV stores under tiup playground with client-rust's config/tikv.toml and config/pd.toml, which are api-v2 with TTL and gzip. The harness's single and 3store profiles deliberately are not (cluster/tikv.toml says why), so verifying a client-rust PR against a live cluster meant installing tiup.

What:

  • cluster/docker-compose-upstream.yml: the 3-store compose shape with the same pinned images, host networking and broker-assigned ports. It mounts client-rust's two config files from $CLIENT_RUST_CONFIG (default: the sibling ../client-rust/config; point it at the checkout under test).
  • scripts/cluster-broker: the upstream profile (3 stores).
  • make cluster-up-upstream / cluster-down-upstream: lease manual-upstream on slot 0, like the other two profiles.

Usage for a PR checkout:

CLIENT_RUST_CONFIG=/path/to/client-rust-prs/config ./scripts/cluster-broker lease upstream --ttl 2h
cd /path/to/client-rust-prs && PD_ADDRS=<pd_addrs from the lease> make integration-test-txn integration-test-raw

Verification: a broker lease came up with all three stores Up, and TiKV's /config reported api-version = 2, enable-ttl = true, gzip and the CI split thresholds. tikv/client-rust#558's txn (55/55) and raw (10/10) suites passed against it. make check is green.

Note, not fixed here: broker-test binds real ports (slots 1–2, e.g. 32000), so it fails while a broker lease holds slot 1, and for about a minute after one is released (TIME_WAIT). That is pre-existing; this PR doesn't change it.

…uites

client-rust's integration suites (`make integration-test-txn` / `-raw`) need
the cluster its CI runs: three TiKV stores under `tiup playground` with its
config/tikv.toml and config/pd.toml, which are api-v2 with TTL and gzip. The
harness's `single` and `3store` profiles deliberately are not (cluster/tikv.toml
says why), so until now running those suites locally meant tiup.

- cluster/docker-compose-upstream.yml: the 3-store compose shape with the same
  pinned images, host networking and broker-assigned ports, mounting
  client-rust's two config files from $CLIENT_RUST_CONFIG (default the sibling
  ../client-rust/config; point it at the checkout under test).
- cluster-broker: the `upstream` profile (3 stores).
- make cluster-up-upstream / cluster-down-upstream: lease manual-upstream on
  slot 0, like the other two profiles.

Verified: a broker lease came up with all three stores Up and TiKV reporting
api-version 2, enable-ttl, gzip and the CI split thresholds; client-rust PR
#558's txn (55) and raw (10) suites passed against it. `make check` green.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T11:22:10.766476Z 8e2da1c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e2da1c1c0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cluster/docker-compose-upstream.yml Resolved
@eduralph
eduralph merged commit b202788 into main Oct 18, 2026
3 checks passed
@eduralph
eduralph deleted the cluster-upstream-profile branch October 20, 2026 11:23
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