Skip to content

[fix][deploy] Auto-sync dev binaries; move cache node list to env - #1127

Merged
rock-git merged 1 commit into
dingodb:mainfrom
rock-git:fix/main_092401
Sep 24, 2026
Merged

rock-git merged 1 commit into
dingodb:mainfrom
rock-git:fix/main_092401

Conversation

@rock-git

Copy link
Copy Markdown
Contributor

Summary

The dev-mds scripts assumed binaries were already copied into dist/ and that the distributed cache node list was fixed at two hardcoded UUIDs. Neither is true on a fresh checkout or when the cache topology changes.

start_cache.sh and start_client.sh now copy dingo-cache and dingo-client from build/bin/ into dist/ when the target is missing, and start_cache.sh reads CACHE_NODE_LIST from the deploy env file (defaulting to env.local) instead of embedding it. operate_mds.sh now defaults replace_conf to true, so edited config is actually applied on restart instead of silently keeping the old file.

Changes

  • start_cache.sh: load CACHE_NODE_LIST from the deploy env file, create the cache log/bin dirs, and stage the binary from build/bin/ on demand.
  • start_client.sh: stage dingo-client from build/bin/ when dist/client/bin is empty; drop the unused conf/cache dir creation.
  • operate_mds.sh: default replace_conf to true.

Test plan

Run bash scripts/dev-mds/operate_mds.sh start, start_cache.sh, and start_client.sh on a clean dist/: binaries should be staged automatically and the cache should pick up the node list from the env file.


Compound Engineering
pi

Dev-mds scripts relied on manually copied binaries under dist/ and a
hardcoded CACHE_NODE_LIST. Copy dingo-cache/dingo-client from build/bin
on demand, load CACHE_NODE_LIST from the deploy env file, and default
operate_mds replace_conf to true so config changes take effect.
Copilot AI lite review requested due to automatic review settings September 24, 2026 09:58
@rock-git
rock-git merged commit fe4384a into dingodb:main Sep 24, 2026
5 checks passed

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

Address the moderate startup/stop-path and clean-directory issues before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity

Open (2)
What changed in this PR

Updates dev deployment scripts to stage missing binaries, configure cache nodes via environment, and apply MDS configuration changes by default.

Changes:

  • Stage client and cache binaries from build/bin/ when absent.
  • Load CACHE_NODE_LIST from the deployment environment.
  • Enable configuration replacement by default.
File Summary
scripts/​dev-mds/​start_client.sh Adds client binary staging; stop handling and clean-dist directory setup need correction.
scripts/​dev-mds/​start_cache.sh Adds environment-based cache configuration and binary staging; stop handling should not require startup environment setup.
scripts/​dev-mds/​operate_mds.sh Defaults configuration replacement to enabled.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +46 to +50
if [ ! -f "$mydir/${FLAGS_env}" ]; then
echo "error: env file not found: $mydir/${FLAGS_env}"
exit 1
fi
source $mydir/${FLAGS_env} || exit 1
Comment on lines +69 to +78
# check CLIENT_BIN_PATH exist
if [ ! -f "$CLIENT_BIN_PATH" ]; then
mkdir -p $CLIENT_BASE_DIR/bin
if [ ! -f "$SRC_CLIENT_BIN_PATH" ]; then
echo "not found dingo-client at $SRC_CLIENT_BIN_PATH"
exit 1
fi

cp $SRC_CLIENT_BIN_PATH $CLIENT_BIN_PATH
fi
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