refactor: update MCC commands and documentation to use version 1.21.11-Vanilla for consistency across workflows

This commit is contained in:
BruceChen 2026-04-12 20:48:30 +00:00
parent f0b79d5f9c
commit 2b8a8113f5
14 changed files with 1114 additions and 51 deletions

View file

@ -458,13 +458,13 @@ Two worktrees can share one local server like this:
# worktree A
cd ~/Minecraft/Minecraft-Console-Client
source tools/mcc-env.sh
mc-start 1.21.11
mcc-debug -v 1.21.11 --file-input
mc-start 1.21.11-Vanilla
mcc-debug -v 1.21.11-Vanilla --file-input
# worktree B
cd ~/Minecraft/Minecraft-Console-Client-foo
source tools/mcc-env.sh
mcc-debug -v 1.21.11 --file-input
mcc-debug -v 1.21.11-Vanilla --file-input
# from each worktree, mcc-* targets that worktree's default session
mcc-state

View file

@ -320,7 +320,7 @@ Run:
```bash
source tools/mcc-env.sh
mcc-debug -v 1.21.11 --file-input --no-build
mcc-debug -v 1.21.11-Vanilla --file-input --no-build
ls -la /tmp/mcc-debug
tmux list-sessions | grep '^mcc-debug:'
```
@ -432,8 +432,8 @@ Run:
```bash
source tools/mcc-env.sh
mcc-debug -v 1.21.11 --session smoke-a --username SmokeA --file-input --no-build
mcc-debug -v 1.21.11 --session smoke-b --username SmokeB --file-input --no-build
mcc-debug -v 1.21.11-Vanilla --session smoke-a --username SmokeA --file-input --no-build
mcc-debug -v 1.21.11-Vanilla --session smoke-b --username SmokeB --file-input --no-build
test -f "$(_mcc_session_log_file smoke-a)"
test -f "$(_mcc_session_log_file smoke-b)"
test -f "$(_mcc_session_meta_file smoke-a)"
@ -602,7 +602,7 @@ REPO_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
source "$REPO_ROOT/tools/mcc-env.sh"
source "$SCRIPT_DIR/common.sh"
VERSION="${1:-1.21.11}"
VERSION="${1:-1.21.11-Vanilla}"
SESSION_A="parallel-a"
SESSION_B="parallel-b"
USER_A="ParallelA"
@ -631,7 +631,7 @@ mc-log "$VERSION" 50 | grep -Fq "$USER_B joined the game"
- [ ] **Step 2: 运行脚本,确认它先因为新参数或旧的共享路径逻辑而失败**
Run: `bash .skills/mcc-integration-testing/scripts/run_parallel_session_smoke_test.sh 1.21.11`
Run: `bash .skills/mcc-integration-testing/scripts/run_parallel_session_smoke_test.sh 1.21.11-Vanilla`
Expected: FAIL错误类似 `Unknown option: --session`、固定 `mcc_input.txt` 被共用,或者只有一个客户端会话存活
@ -680,9 +680,9 @@ mkdir -p "$(_mcc_session_root "$SESSION")"
Run:
```bash
bash .skills/mcc-integration-testing/scripts/run_parallel_session_smoke_test.sh 1.21.11
bash tools/run-creative-e2e.sh 1.21.11 1.21.11 modern
bash .skills/mcc-integration-testing/scripts/run_full_spectrum_test.sh 1.21.11
bash .skills/mcc-integration-testing/scripts/run_parallel_session_smoke_test.sh 1.21.11-Vanilla
bash tools/run-creative-e2e.sh 1.21.11-Vanilla 1.21.11 modern
bash .skills/mcc-integration-testing/scripts/run_full_spectrum_test.sh 1.21.11-Vanilla
```
Expected: 三个脚本都 PASS并行 smoke test 中一个 session 被 kill 后,另一个 session 和共享服务器继续存活
@ -722,13 +722,13 @@ git commit -m "test: cover shared server with isolated MCC sessions"
# worktree A
cd ~/Minecraft/Minecraft-Console-Client
source tools/mcc-env.sh
mc-start 1.21.11
mcc-debug -v 1.21.11 --file-input
mc-start 1.21.11-Vanilla
mcc-debug -v 1.21.11-Vanilla --file-input
# worktree B
cd ~/Minecraft/Minecraft-Console-Client-foo
source tools/mcc-env.sh
mcc-debug -v 1.21.11 --file-input
mcc-debug -v 1.21.11-Vanilla --file-input
# Each worktree gets:
# - its own session
@ -761,7 +761,7 @@ Run:
bash tools/test-mcc-env.sh
source tools/mcc-env.sh && unset MCC_BUILD_MODE && mcc-build
source tools/mcc-env.sh && export MCC_BUILD_MODE=tmpfs && mcc-build
bash .skills/mcc-integration-testing/scripts/run_parallel_session_smoke_test.sh 1.21.11
bash .skills/mcc-integration-testing/scripts/run_parallel_session_smoke_test.sh 1.21.11-Vanilla
```
Expected:

View file

@ -403,7 +403,7 @@ Expected: `Build succeeded.`
Run:
```bash
bash tools/test-pathing-template-regressions.sh 1.21.11
bash tools/test-pathing-template-regressions.sh 1.21.11-Vanilla
```
Expected:

File diff suppressed because it is too large Load diff

View file

@ -861,7 +861,7 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
source "$REPO_ROOT/tools/mcc-env.sh"
VERSION="${1:-1.21.11}"
VERSION="${1:-1.21.11-Vanilla}"
INPUT_FILE="$REPO_ROOT/mcc_input.txt"
LOG_DIR="${TMPDIR:-/tmp}/mcc-debug"
LOG_FILE="$LOG_DIR/mcc-template-regressions.log"
@ -913,7 +913,7 @@ Run:
```bash
dotnet test MinecraftClient.Tests/MinecraftClient.Tests.csproj -v minimal
dotnet build MinecraftClient.sln -c Release
bash tools/test-pathing-template-regressions.sh 1.21.11
bash tools/test-pathing-template-regressions.sh 1.21.11-Vanilla
```
Expected:
@ -975,7 +975,7 @@ Before calling this project done, the implementing agent must have fresh evidenc
- `ClimbFallTemplateTests` passes
- full `MinecraftClient.Tests` project passes
- `dotnet build MinecraftClient.sln -c Release` passes
- `tools/test-pathing-template-regressions.sh 1.21.11` shows positive runtime evidence for:
- `tools/test-pathing-template-regressions.sh 1.21.11-Vanilla` shows positive runtime evidence for:
- flat final stop stays within target block support
- parkour into L-turn completes without rescue replan
- accepted 2x1 side-wall jump completes

View file

@ -1435,7 +1435,7 @@ set -euo pipefail
source "$(dirname "$0")/mcc-env.sh"
VERSION="1.21.11"
VERSION="1.21.11-Vanilla"
SESSION="mcc-brake-test"
CFG="/tmp/mcc-debug/MinecraftClient.debug.ini"

View file

@ -199,8 +199,8 @@ Expected defaults:
Example commands:
```bash
mcc-debug -v 1.21.11 --session alice-a --username AliceA --file-input
mcc-debug -v 1.21.11 --session alice-b --username AliceB --file-input
mcc-debug -v 1.21.11-Vanilla --session alice-a --username AliceA --file-input
mcc-debug -v 1.21.11-Vanilla --session alice-b --username AliceB --file-input
mcc-cmd --session alice-a "debug state"
mcc-log-mcc --session alice-b
mcc-kill --session alice-a
@ -266,7 +266,7 @@ When possible, the error should print the resolved repo root, shared server root
### Manual Verification Matrix
1. Build from two different worktrees at the same time and confirm isolated output roots.
2. Start one shared `1.21.11` server and confirm only one `mc-1_21_11` session exists.
2. Start one shared `1.21.11-Vanilla` server and confirm only one `mc-1_21_11-Vanilla` session exists.
3. Launch two MCC sessions from two different worktrees without explicit usernames and confirm distinct derived usernames.
4. Join both clients to the shared server and confirm neither client disconnects the other.
5. Send different commands through each session's input file and confirm only the intended client responds.