Fix Stage 8-9 scripts: paths and Python command syntax
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled

- Fix REPO_ROOT path in stage8 and stage9 scripts
- Remove --json flag from Python command (use positional arg)
- Stages 8-9 now run successfully with --with-skill-update
- All 9 stages now generate learnings files correctly
This commit is contained in:
aitbc1
2026-05-07 17:00:52 +02:00
parent 9fc87c97c7
commit 9ba19c8cd4
2 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,8 @@ echo
# Execute stage from JSON definition
execute_stage_from_json() {
local stage_num=8
local json_file="$SCRIPT_DIR/../docs/agent-training/stage${stage_num}_advanced_agent_specialization.json"
local repo_root="${REPO_ROOT:-/opt/aitbc}"
local json_file="$repo_root/docs/agent-training/stage${stage_num}_advanced_agent_specialization.json"
print_status "Executing stage from JSON definition: $json_file"
@@ -40,7 +41,7 @@ execute_stage_from_json() {
# Use Python training setup to execute stage
cd "$AITBC_DIR"
if python3 -m aitbc.training_setup.cli run-stage --json "$json_file" 2>&1 | tee -a "$CURRENT_LOG"; then
if python3 -m aitbc.training_setup.cli run-stage "$json_file" 2>&1 | tee -a "$CURRENT_LOG"; then
print_success "Stage $stage_num executed successfully"
return 0
else

View File

@@ -29,7 +29,8 @@ echo
# Execute stage from JSON definition
execute_stage_from_json() {
local stage_num=9
local json_file="$SCRIPT_DIR/../docs/agent-training/stage${stage_num}_multi_chain_architecture.json"
local repo_root="${REPO_ROOT:-/opt/aitbc}"
local json_file="$repo_root/docs/agent-training/stage${stage_num}_multi_chain_architecture.json"
print_status "Executing stage from JSON definition: $json_file"
@@ -40,7 +41,7 @@ execute_stage_from_json() {
# Use Python training setup to execute stage
cd "$AITBC_DIR"
if python3 -m aitbc.training_setup.cli run-stage --json "$json_file" 2>&1 | tee -a "$CURRENT_LOG"; then
if python3 -m aitbc.training_setup.cli run-stage "$json_file" 2>&1 | tee -a "$CURRENT_LOG"; then
print_success "Stage $stage_num executed successfully"
return 0
else